Error: No listening sockets available


Sometimes while restarting/starting apache process, we get the following error:

Error:(98)Address already in use: make_sock: could not bind to address [::]:80(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80no listening sockets available, shutting downUnable to open logs

Fix:-

1)Kill All nobody process. Use the following script for doing that.

for i in `ps auwx | grep -i nobody | awk {'print $2'}`; do kill -9 $i; done

or

for i in `lsof -i :80 | grep http | awk {' print $2'}`; do kill -9 $i; done

2) Restart apache.


Comments

Popular posts from this blog

SVN: File remains in conflict

HowTo: Enable extended logging for exim

12 tweakings for WHM/cPanel to speed up WordPress