[Apache][Windows7] Solution for 'No listening sockets available' Error That Prevents Startup

Tadashi Shigeoka ·  Sun, March 9, 2014

I’ll introduce how to solve the problem when Apache installed on Windows7 fails to start with a “No listening sockets available” error.

When I checked the system event log in Event Viewer, the following message appeared:

The Apache service named reported the following error: >>> (OS 10048)Usually, only one usage of each socket address (protocol/network address/port) is permitted. : make_sock: could not bind to address 0.0.0.0:80

When Apache fails to start with a “No listening sockets available” error, the cause was that another service was using port 80 that Apache uses.

The resolution steps on Windows are as follows:

How to Check Used Ports
In the command prompt:

netstat -oan

This checks the process ID of the service using port 80
Also in the command prompt:

tasklist /svc

This checks the correspondence between services and process IDs
Stop the corresponding service or change its settings to use a port other than port 80

This should be OK for now.

Next, we’ll change the port Skype uses.

In this case, it was Skype that was using port 80.

Since it would be inconvenient if Skype couldn’t be used, we’ll change the port that Skype uses.

Menu "Tools" → "Advanced" → "Connection" Uncheck "Use port 80 as an alternative for incoming connections" (second from the top) Restart Skype
C:Usersyour_username>netstat -oan

Active Connections

  Proto  Local Address          Foreign Address        State           PID
  TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       3956
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING       804
  TCP    0.0.0.0:443            0.0.0.0:0              LISTENING       3956
・
・
・
C:Usersyour_username>tasklist /svc

Image Name                     PID Services
========================= ======== ============================================
System Idle Process              0 N/A
System                           4 N/A
・
・
・
Skype.exe                     3956 N/A

Reference Information

When Apache Doesn’t Start - Hextomino

That’s all from the Gemba.