Restarting Apache2 for fog vhost............................Failed!
-
[root@localhost bin]# service apache2 restart Redirecting to /bin/systemctl restart apache2.service Failed to restart apache2.service: Unit apache2.service failed to load: No such file or directory.
right now it’s hung on systemctl restart httpd for a couple min now
-
Please get output of
df -h
my guess is it’s hung because there is no more disk space. -
[root@localhost etc]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos00-root00 20G 7.3G 12G 40% / devtmpfs 1.9G 0 1.9G 0% /dev tmpfs 1.9G 5.4M 1.9G 1% /dev/shm tmpfs 1.9G 183M 1.7G 10% /run tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/sda5 969M 302M 602M 34% /boot /dev/mapper/fog-opt_fog_images 395G 223G 152G 60% /opt /dev/sdb1 8.1T 93G 7.6T 2% /images tmpfs 379M 16K 379M 1% /run/user/1000
-
@ManofValor is the systemctl command still hung?
-
@Tom-Elliott I stopped it
-
@ManofValor try reinstalling apache.
apt-get remove apache2 -y
apt-get install apache2 -y
-
@Wayne-Workman he’s running redhat of some sort, probably centos.
-
@Tom-Elliott why apache2 then? Eh. Red hat / centos / Fedora would be:
yum remove httpd -y
yum install httpd -y
-
@Wayne-Workman I didn’t know what was installed so I tried both options to get info.
-
Well, I’m not sure what happened but I tried to restart it yesterday and then it wouldn’t boot up. Something about no controller. Anyway, I guess CentOS 7 gives you the ability to boot from a last known good configuration and when I did that everything worked. I updated FOG and Apache2 went through without a hitch. Sorry to waste your time, thanks guys.