I'm running Ubuntu Intrepid with Apache2. I was installing php5-cli, and after it was installed apache wouldnt restart. i get no errors it just tells me [OK]. htop, top, and ps -aux arent returning any apache processes. any ideas?

link|improve this question
feedback

4 Answers

up vote 0 down vote accepted

Do you see anything recorded in the relevant log files?

Usually in /var/log/apache2

link|improve this answer
nothing in any of the log files. that would indicate an error. – centr0 Oct 1 '09 at 18:35
found the actual log file. whoever set this server up before put the error.log in a different location.... eaccelerator was pulling errors saying it needed to be rebuilt. rebuilt it and restarted apache. everythings fine. – centr0 Oct 1 '09 at 19:45
feedback

Are you looking for 'apache' or are you looking for 'httpd'? httpd is the actual Apache server process.

Something like: ps ax | grep http should show you if there is any running Apache processes.

link|improve this answer
when i run ps aux | grep http: centro 5816 0.0 0.2 6236 648 pts/0 R+ 18:29 0:00 grep http nothing more than the grep. – centr0 Oct 1 '09 at 18:34
feedback

Try running a service httpd stop, then a start and grep for the service. Does anything show up then?

Also try a tail -f on /var/log/messagse and see what the system says when you perform any of the start/stop/restart commands.

link|improve this answer
feedback

the problem that i found when something like this happens is apache unable to write a log file and it usually hiccups there, so make sure all of your logs path are correct

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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