Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to restart apache and it's saying

Restarting web server: apache2 failed!

anyone offer any suggestions?

share|improve this question
If you bring me a dead cat all I can tell you is that it's dead, and it was a cat... (We'll need a lot more information to help you -- like perhaps something out of the Apache error logs that explains why it failed to start. :-) – voretaq7 Jan 29 '11 at 22:42
Check your error log, used to be in /var/log/apache/ – Ency Jan 29 '11 at 22:42
running debian os – Belgin Fish Jan 29 '11 at 22:43
And now, give us your error log. – Ency Jan 29 '11 at 22:49
it's not logging any errors for the apache2 reboot – Belgin Fish Jan 29 '11 at 22:53
up vote 1 down vote accepted

Check your config file. You didn't say which OS you are on, but Apache can validate it's own config:

httpd -t

Call your platform's Apache binary with -t at the end to validate the config.

share|improve this answer

First, a couple of things to make sure Apache really isn't running. First, check

ps axf |grep [a]pache

This will tell you if apache is running. If a result pops up, kill that process and try starting Apache again.

Second, make sure nothing is listening on port 80 (although this would log an error, but hey).

sudo netstat -tnlp | grep 80

Again, if this shows a process, kill it and try Apache again.

As an aside, can you check your Apache configuration and let me know what the value for the LogLevel directive is? You can try setting this to debug and trying the restart again.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.