(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My GUESS is Apache was already grabbing this port via a virtual host in another config file, and a second attempt to hold onto it confues good old Apache to such an extent that it would just totally give up. This could be happening to you ;-)
im having the same problem, however this is not the case. the only directive that tells apache to listen is Listen. having an ip : port in a VirtualHost directive does NOT actually make apache listen on that ip : port.
my problem is similar, only i have 2 listen directives, one for 80 and one for 443. there are no others in any conf file. on top of that, no other process is bound to port 443. this is a real WTF right here.
Last edited by divide by zero; 07-31-2007 at 01:17 PM.
I have FC6 with the apache package and it was blowing up on port 80 'cannot bind' etc. I registered to thank Watski for posting this fix. I see that this was his only post too, good going bro'. thxthxthx
I too was confused as hell cause netstat showed no active processes using 80.
This worked beautifully:
Quote:
Originally Posted by watski
I had this problem too. It turned out that i had the "Listen 80" directive in two config files:
The latter comes from the Fedora Core system configurator for httpd. Removing "Listen 80" from httpd.conf solved the problem. I tried the above descriptions but I had noone listening on port 80 which got me confused.
Why this problem comes:
-------------------------------
this problem is comes only if u started the weberver and than made some modification or tried to load the jsp or asp support than u will find http locked when u tried to restart it .
so don't be confussed. just kill th process and than put ur configuration (original file) which has port 80 or 443.
My mobile is : 9810774912
I lives in New Delhi India.
cheers!!
pushkarbhatkot: thanks a lot for your post and info about lsof. Here is the shell output I got when performing the task.
Code:
box:/usr/local/apache/conf# lsof -i :80
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
bash 28009 apache 3u IPv6 58865005 TCP *:www (LISTEN)
box:/usr/local/apache/conf# kill -9 28009
box:/usr/local/apache/conf# /etc/init.d/apachectl start
box:/usr/local/apache/conf#
So its all working now, thanks to your info about lsof.
The question I have is, why would a bash process be using port 80? Is it a freak of nature for apache to do that every so often or is there something more serious at work here. I just don't want to see it happen again..
The latter comes from the Fedora Core system configurator for httpd. Removing "Listen 80" from httpd.conf solved the problem. I tried the above descriptions but I had noone listening on port 80 which got me confused.
Cheers,
Johan
I'm running Apache on ubuntu gutsy. I had the same issue, and like watski, it was because Listen 80 was included within multiple config files. commenting it out of httpd.conf solved my issues.
The latter comes from the Fedora Core system configurator for httpd. Removing "Listen 80" from httpd.conf solved the problem. I tried the above descriptions but I had noone listening on port 80 which got me confused.
Cheers,
Johan
Yep that worked for me too Johan!
It's a shame that instead of seeing your post, I went over each step of the first posts, then figured it out when I changed the httpd.conf file to listen to port 88.
im having the same problem, however this is not the case. the only directive that tells apache to listen is Listen. having an ip : port in a VirtualHost directive does NOT actually make apache listen on that ip : port.
my problem is similar, only i have 2 listen directives, one for 80 and one for 443. there are no others in any conf file. on top of that, no other process is bound to port 443. this is a real WTF right here.
Check for similar Listen directives in other httpd.conf files (updatedb;locate httpd.conf)
That was my problem, I had to comment out the last two:
Listen soleshop.x.com:80
Listen soleshop.x.com:443
Listen soleshop.x.com:8000
Listen soleshop.x.com:8002
Listen soleshop.x.com:8004
Listen soleshop.x.com:8006
Listen soleshop.x.com:8007
#Listen ebusiness.x.com:80
#Listen ebusiness.x.com:443
I guess that this can be "fixed" by saying:
Listen *:80
Listen *:443
Listen soleshop.x.com:8000
Listen soleshop.x.com:8002
Listen soleshop.x.com:8004
Listen soleshop.x.com:8006
Listen soleshop.x.com:8007
#Listen ebusiness.x.com:80
#Listen ebusiness.x.com:443
I know this topic is a little bit old, but i'll try my chance.
The server was working fine, the load was small, uptime a few weeks, and in a minute every died, only the ping and ssh remained alive.
I have received this error
"(98)Address already in use: make_sock: could not bind to address [::]:443" so i stopped httpd and i have looked to see who was listening on port 443. It was sshd. I really don't have any ideas how that was possible.
I didn't had any choice and i had to reboot the server. Now everything is fine, but i don't want things like this to happend in the future. Any idea somebody?
Last edited by boogiebogdy; 05-25-2009 at 08:35 AM.
The latter comes from the Fedora Core system configurator for httpd. Removing "Listen 80" from httpd.conf solved the problem. I tried the above descriptions but I had noone listening on port 80 which got me confused.
Cheers,
Johan
Johan, thankyou. Just installed FC11 with apache and this was precisely the issue I had. That was far from an obvious resolution - apache was in fact clashing with itself after all.
Hi,
I have applied some configurations to my httpd.conf file and restarted the server and the following error has come,
Starting httpd: [Tue Mar 30 16:13:40 2010] [warn] module php5_module is already loaded, skipping
(98)Address already in use: make_sock: could not bind to address [::]:443
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.