Ubuntu Server Apache2 Restart Error

February 9, 2015 1k 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): https://www.dropbox.com/s/dr7ooon0ys0sy3z/Selection_002.png?dl=0

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.

Have another answer? Share your knowledge.