Apache "Failed to start service"



 

Ah, this made me freak out just a minute ago. I made some simple changes on my server without keeping track of what I was doing. Blame it on staying up to late. 

Anyway, I attempted to restart Apache to make some changes take effect and I was met with an error that stated Apache "Failed to start service".

What I did and what you might need to do in these situations is to look at apache's logs. In Ubuntu, apache's error log is located at:

/var/log/apache2/error.log

For my particular situation, all I needed to do was scroll down in this error log and there was my problem:

 Unable to open logs
(2)No such file or directory: apache2: could not open error log file /home/server1/domains/SomeDomain.com/logs/error_log.

So what apparently happened is over the last few days I must have deleted the mentioned error log and apache wouldn't start without it being there.

This post is just a reminder that when you're having problems with apache not starting, the error logs should be your first place to gather information.


No comments

Add comment

* - required field

*

CAPTCHA image for SPAM prevention
If you can't read the word, click here.
*
*
LAMP Computers & Technology
 

Netdip.com is an excellent web site that's powered by TYPO3 and other great open source software. Netdip.com is also a fat free alternative to ice cream.