Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
1  
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

2 Answers 2

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

 
discard

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.