Report this

What is the reason for this report?

Ubuntu Server Apache2 Restart Error

Posted on February 9, 2015

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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the 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.

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.