Monday, July 27, 2009

Apache Service error msg: no listening sockets available, shutting down.

if you could not start the apache service and error message in Event v iewer show you that an error occurred.
The Apache service named reported the following error:
>>> no listening sockets available, shutting down .

and
The Apache service named reported the following error:
>>> Unable to open logs

Solutions:
-Web servers accept incoming connections by listening on port 80 by default. Type "netstat -an" from a command prompt. You will see the actual port numbers currently being used by another application.You can change apache port to another port, by editing httpd.conf in the apache folder under conf. and then restart a proccess
for example:

# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
#Listen 80
Listen 888

-Remove comment "#" before "Listen 80" , by editing httpd.conf in the apache folder under conf. and then restart a proccess
for example:

# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80