Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not starting....Address already in use....

Status
Not open for further replies.

whegge

IS-IT--Management
Jan 2, 2002
40
US
I am getting this error:
(98) Address already in use: make_sock: could not bing to address 0.0.0.0:80 no listening sockets available, shutting down.

From what I have been able to figure out, this error is telling me something is listening on port 80 already. I do an 'nmap 172.20.3.1' or a 'netstat -a' and there is nothing listed for port 80. I also do 'ps -ef | less' and look to see if httpd is already started, it is not nor is any process running under the 'apache' username.

I change the 'Listen' directive in the httpd.conf file to 'Listen 81', then do a 'apachectl start' and everything seems to work fine. I do an 'nmap 172.20.3.1', now I have port 80, 81 and 443 showing up.

Any ideas?

Thanks,

Wes Hegge
Signalblast.com, Inc.
 
This is probably due to the fact that there is no 0.0.0.0 ip address. Check your network card configuration.
 
That is fine. The 'listen' directive is in the httpd.conf like this: 'Listen 80', this means listen on all ip's for this server. I have tried to change the directive to: 'Listen 172.20.3.1:80' and get the same result. I believe the problem is that there is something listening on port 80 already but I cannot find what it is. There is no way that the server could be compromised because it is not open to the outside yet, nor is it available to the inside, just the server all by itself. The other possibility is that the httpd.conf is messed up but I compared it to another one and that seems to be ok.
 
Hi mate,

There is something already listening on that port, you don't have IIS installed do you?

As for the Listen 80, just comment that out. The Listen directive tells Apache to listen on ports other than the default which is 80 so there is no need to specify 80 in that.

Hope this helps Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
That Worked! Just assumed I needed that line because it was already uncommented.

Thanks for the help dude!

Wes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top