> Chris Kirkland

67 Items, latest addition, Mon, 4th June 2007
 

Apache - Address already in use: make_sock: could not bind to address

08/06/2005

This error message can be caused by an improper shut down, the apache processes are still hanging around and apachectl restart won't work.

Solution


just kill off the hanging processes:
# fuser 80/tcp
80/tcp: 3010 3702 4088 16754
# kill -n 9 3010
# kill -n 9 3702
# kill -n 9 4088
# kill -n 9 16754
# apachectl start

or if there's loads of processes use
#for i in $(fuser 80/tcp);do kill -n 9 $i;done
to kill them all off