(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80

When you restart the httpd, the error as below shwo

(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:80
no listening sockets available, shutting down
Unable to open logs

First, list out the process that hold port 80

netstat -lnp | grep :80

Then kill it

sudo kill -9 PID

Note: PID=process ID

You should be able to restart the httpd after kill the proccess. Usually is those NOBODY holding the process. If you are still unable to kill all the NOBODY proccess, it might have hardware issue from my experience .

Leave a Reply

Your email address will not be published. Required fields are marked *