Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Apache Web Server won't start - no listening sockets available error - 500 points!!!

Posted on 2006-05-11
Medium Priority
Last Modified: 2012-05-05
I posted a question earlier, http://www.experts-exchange.com/Web/Web_Servers/Apache/Q_21843803.html, that relates to this problem.  Now I can find out why the Apache Web Server service is not starting but I don't know how to resolve the problem.  The error I'm getting is:

(OS 10048) Only one usage of each socket address (protocol/network/address/port) is normally permitted.  :make_sock: could not bind to address no listening sockets available, shutting down, unable to open logs

In summary, I have a Windows machine running Windows XP Pro SP2 that has 2 Web Servers installed on it.  The first one is Apache which I did not install and was assigned to ip address, xxx.xxx.xxx.74.  For another project that my client has going, the WebCrossing Web Server was installed and assigned to ip address, xxx.xxx.xxx.78.  If I type in the ip address for the WebCrossing Web Server, I get the correct website.  If I type in the ip address for the Apache Server I get the Page is Under Construction Message which appears to be in the default c:\inetpub\wwwroot directory which leads me to believe that MS IIS is started.  However, when I issue the iisrestart /stop command and go to the ip address for the Apache Server I still get the Page is Under Construction Message.

I'm very confused as to what is going on and would like to get the Apache Web Server and WebCrossing Web Server running on the same box.  Any help would be greatly appreciated!
Question by:dyarosh
LVL 10

Assisted Solution

sleep_furiously earned 1600 total points
ID: 16661168
Shouldn't "iisrestart /stop" be "iisreset /stop"?  I'll assume that's just a typo.

What does "iisreset /status" show?

You can use a free tool like TCPView to see what processes are listening on port 80 for the various interfaces.
http://www.sysinternals.com/Utilities/TcpView.html  (It may be easier to sort out if you turn off name resolution under Options.  You do want to show unconnected endpoints, otherwise you will only see the listeners when they are doing something.)

You can go into IIS Manager and set IIS Web Site(s) to use a port number other than 80.

Check the conf file for the Apache server (and the WebCrossing server, assuming it is some sort of Apache).  You don't want to have "Listen 80", but something that binds to a specific IP, like "Listen xxx.xxx.xxx.74:80"
LVL 23

Expert Comment

ID: 16661398

Take a look at  http://www.apacheworld.org/ty24/, in the secure server chapter for detailed instructions on how to get Apache 2 works.


Author Comment

ID: 16661697
iisreset /status shows:

Status for World Wide Web Publishing (W3SVC): running
Status for Simple Mail Transfer Protocol (SMTP) (SMTPSVC): running

TCPView shows the following:  (I'm only listing processes that reference the 2 ip addresses that I'm using or :80 port)

svchost.exe:1088 UDP xxx.xxx.xxx.74:123 *.*
svchost.exe:1088 UDP xxx.xxx.xxx.78.123 *.*
svchost.exe:1248 UDP xxx.xxx.xxx.78:1900 *.*
svchost.exe:932 TCP xxx.xxx.xxx.74:3389 xx.xxx.xxx.240:1042 Established
System4 TCP xxx.xxx.xxx.74:139 Listening
System4 TCP xxx.xxx.xxx.74:138 *.*
System4 TCP xxx.xxx.xxx.74:137 *.*
war-ftpd.exe:3252 TCP xxx.xxx.xxx.78:21 xx.xx.xx.217:33417 Established
webxserv.exe:2972 TCP xxx.xxx.xxx.78:80 Listening

While I was getting this information, the following showed up in the list:

[System Process]:0 TCP xxx.xxx.xxx.78:80 xx.xx.xx.217:32823 Time_Wait
[System Process]:0 TCP xxx.xxx.xxx.78:80 xx.xx.xx.217:32831 Time_Wait

The 2 lines above stayed for a couple of minutes and then disappeared.
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

LVL 10

Expert Comment

ID: 16662348
OK, well it looks like IIS needs to be stopped ... for whatever reason it is still running.  Go to Services Control Panel and Stop WWW Publishing Service, then try starting your Apache server.

Author Comment

ID: 16663146
Did as you suggested and still could not start the Apache Service (same error).  Here is what I have now:

iisreset /status:

Status for World Wide Web Publishing <W3SVC> : Stopped
Status for Simple Mail Transfer Protocol (SMTP) (SMTPSVC) : running


alg.exe:396      TCP      LISTENING      
inetinfo.exe:3684      TCP                  LISTENING      
inetinfo.exe:3684      TCP      LISTENING      
inetinfo.exe:3684      UDP      *:*            
lsass.exe:764      UDP      *:*            
lsass.exe:764      UDP      *:*            
mysqld-nt.exe:1660      TCP      LISTENING      
rdpclip.exe:372      UDP      *:*            
svchost.exe:1000      TCP      LISTENING      
svchost.exe:1088      UDP      *:*            
svchost.exe:1088      UDP      xxx.xxx.xxx.74:123      *:*            
svchost.exe:1088      UDP      xxx.xxx.xxx.78:123      *:*            
svchost.exe:1136      UDP      *:*            
svchost.exe:1136      UDP      *:*            
svchost.exe:1248      UDP      *:*            
svchost.exe:1248      UDP      xxx.xxx.xxx.78:1900      *:*            
svchost.exe:932      TCP      LISTENING      
svchost.exe:932      TCP      xxx.xxx.xxx.74:3389      xx.xxx.xxx.240:2994      ESTABLISHED      
System:4                      TCP      LISTENING      
System:4                      TCP      xxx.xxx.xxx.74:139      LISTENING      
System:4                      UDP      *:*            
System:4                      UDP      xxx.xxx.xxx.74:138      *:*            
System:4                      UDP      xxx.xxx.xxx.74:137      *:*            
war-ftpd.exe:3252      TCP                  LISTENING      
war-ftpd.exe:3252      UDP      *:*            
war-ftpd.exe:3252      UDP      *:*            
webxserv.exe:2972      TCP      xxx.xxx.xxx.78:80      LISTENING      
LVL 27

Accepted Solution

Nopius earned 400 total points
ID: 16664938
Your main mistake: Apache is NOT an IIS.
So this command: iisrestart /stop DOESN'T stop your Apache...

"(OS 10048) Only one usage of each socket address (protocol/network/address/port) is normally permitted.  :make_sock: could not bind to address no listening sockets available, shutting down, unable to open logs|

This error is shown because you are trying to bind apache to already captured 80 port.

As sleep_furiously said, check your apache config first and change line "Listen 80" or 'Listen *:80' to 'Listen xxx.xxx.xxx.74:80'. Otherwise your Apache tries to bind to ALL IP addresses 80 port, and attempt is failed because webxserv.exe is already there.

Author Comment

ID: 16668117
Thank you both for the input.  I changed the Apache httpd.conf file to Listen xxx.xxx.xxx.74:80 from Listen 80 and it now works.  Nopius - your explanation of what Apache was doing helped me see what was wrong in the Apache Conf file.  Sleep furiously - your suggestions taught me a lot that I will be able to use from here on out and I really appreciate the time and effort you put into this problem.

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month11 days, 18 hours left to enroll

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question