Apache Doesn't Start After System Restart

Linux web server restart problem…
cd /etc/apache/
httpd -t httpd.conf
[which websites are "missing", comment them out in httpd.conf]
apachectl restart
…Had a power outage today which means our linux web server went down. And, once again, the web server didn't start because it couldn't find all the web sites listed in it's config file. To make a long story short, I went to /etc/apache/httpd.conf and ran… httpd -t httpd.conf …this told me that it couldn't find two of the websites listed in /etc/apache/httpd.conf. It also said that it "Cannot remove module mod_log_config.c" but I don't know what that's all about, and it doesn't matter.  I commented out the two websites (with #) and typed… apachectl restart …and that fixed it.

2 comments

    • paul on January 12, 2010 at 12:33 pm
    • Reply

    The command to restart for Apache 2 configurations is this…
    [sudo] apache2ctl restart

    • paul on January 22, 2010 at 2:35 pm
    • Reply

    For some reason (don't know why, and don't care) apachectl restart doesn't work successfully. It SAYS it works, but none of the hosts answer. Rebooting the machine works after that. I gotta replace this old Linux box…

Leave a Reply

Your email address will not be published.