Home » Server Managment » Troubleshooting » Apache Address already in use: make_sock: could not bind to port 80 or 443 error

Apache Address already in use: make_sock: could not bind to port 80 or 443 error

Q. How do I fix an error, while restarting Apache ~ Address already in use: make_sock: could not bind to port 80?

A. If you are running SELinux disable temporary for port 80.

Apache Address already in use: make_sock: could not bind to port 80 error and solution

First make sure port 80/443 is not used by any other service or application with netstat command:

# netstat -tulpn| grep :80

If port 80 is bind to httpd, kill all process:
# killall -9 httpd

Now start the httpd:
# /etc/init.d/httpd start

Also make sure you are root while starting the httpd.

Originally posted 2016-03-08 02:39:24.

About admin

I have been working with Linux based systems since 2002. I hope the article published on this site will be useful to those new to server administration.