PDA

View Full Version : Kill apache ... ?


dbee
October 29th, 2005, 04:48 AM
I'm trying to kill my apache processes, mainly because I keep getting this

Address already in use: make_sock: could not bind to address [::]:80

I go to ps -aux and I kill all the processes one by one

kill -9 <process_no>

only to run ps aux again and find that all the processes are still their under a different pid ???

herrpoon
October 29th, 2005, 05:18 AM
Try

ps ax | grep apache

Worked for me!

hav0x
October 29th, 2005, 06:12 AM
sudo /etc/init.d/apache stop

or

sudo /etc/init.d/apache2 stop

LordHunter317
October 29th, 2005, 12:25 PM
You have to kill the parent apache process to stop the children. Otherwise, they'll be respawned.

You should always use the daemon shutdown script or command, wherever possible.

Finally, kill -9 is a last resort and shouldn't be normally used.