Apache Address already in use: make_sock: could not bind to port 80 or 443 error and solution
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.
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- Linux: Find out which network card or NIC server is bind or running on
- How To Hide BIND DNS Sever Version
- Free DNS Server Software
- Bind Postfix Mail Server To Localhost or Specific IP Address Only
- Change vsftpd ftp server port 21
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: Apache, netstat_command, selinux



February 7th, 2007 at 1:28 pm
Sir,
I have already used above commands but still the problem persist. When i use netstat then no pid/program name displays associated with it as below output.
netstat -tulpn | grep :80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
Please help me in this situation what should i do.
thankyou.
vijay
November 24th, 2007 at 10:44 pm
you must sudo netstat or it won’t show you everything (sudo killall also)
May 8th, 2008 at 11:12 am
Try to killall -9 php - this should solve your problem