How to fix “(98)Address already in use: make_sock: could not bind to address” apache server error


Some time when you try to restart apache server you should see similar to the following error and apache server won’t start


After stopping apache server use the following command to check if your server is having httpd processes

netstat -ltnp | grep ‘:80’

If you have any httpd process on running you should see similar to the following out

tcp 0 0 :::80 :::* LISTEN 3945/gpasswd

Now you can kill this process using the following command

#kill -9 3945

3945 is process id

If you want to see more closely you can use ps -ef command to see any httpd running processes and kill all of them before restarting apache server process

Leave a comment

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