Ubuntu Server Apache2 Restart Error

Posted February 9, 2015 2.5k views

Hello everyone, Im cureently using Ubuntu 14.04 Server in my droplet. I installed apache2 php5 mysql to my server. And when I want to restart my apache thats give me an error that makes me crazy. Each help is welcome.

Here an error image (link):

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

This error is indicating there is something at the top of your apache2.conf file that is a problem. I would recommend opening this file and reviewing it. If you are not able to resolve the issue you can do a complete re-install with:

apt-get purge apache2
apt-get install apache2 php5

The purge option in apt-get will delete not just the program itself but also your configuration files and should resolve the problem. This is not a good option if you have already customized your configuration as you would have to start over.

I already review my apache2.conf file but there are no mistake. Also, I purge-install apache2 and php5 but when I edit apache2.conf (under /etc/apache2) for AllowOverride(Directory var/www) from None to All, it gives same error. Although I changed it to its previous option (None) again, problem is still there.