Unable to start apache after installation

Posted on 2004-04-21
Last Modified: 2008-01-16

I have installed Apache 2.0.49 succesfully on a windows xp professional system.However when i try to start the applcation using the startup menu ,apache woould not start and i  get the following error.

[Wed Apr 21 22:48:09 2004] [notice] Parent: Created child process 3604
[Wed Apr 21 22:48:09 2004] [crit] (OS 10050)A socket operation encountered a dead network.  : alloc_listener: failed to get a socket for
Syntax error on line 120 of C:/Apache/Apache2/conf/httpd.conf:
Listen setup failed
[Wed Apr 21 22:48:09 2004] [crit] master_main: create child process failed. Exiting.
[Wed Apr 21 22:48:09 2004] [notice] Parent: Forcing termination of child process 2539160

Apache howevver starts fine if i try to start it through the command line.

Please help.

Question by:satishmadhu
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +1

Author Comment

ID: 10885065

I checked line 120 of my config file and it says


LVL 10

Expert Comment

ID: 10885198
Try delete the line (in case a special char was in...) and insert this one as below:

Listen 80
LVL 10

Expert Comment

ID: 10885224
After a rethink: it is likely apache could not bind to the socket (on port 80)
- you had another server running
- a previous instance socket was still alive and thus not free
and at the time you started manually the socket was free.

Does your server start automatically at boot ?
( after a boot check in task manager if you see a process named "apache" or "httpd" )

If not started at boot, to be sure where the problem comes from, try again after a fresh reboot to start it from the Start menu.
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

LVL 17

Expert Comment

ID: 10885439
Thats what I was thinking, you have two servers wanting to grab that port at the same time, and IIS is probably faster in grabbing it.

You can have both running on one machine but you need to put them on a different IP address to make this work.

Author Comment

ID: 10888772

Actually the statement on line 120 is Listen 80 and not LISTEN 80 if that would have made a difference.I uninstalled IIS before I installed apache.So guess that the question of IIS grabbing it does not arise.Also Apache does not run automatically on boot or reboot.I have tried booting ad rebooting and still the same error comes back.I have tried it numerous times.However the only thing that works is to start apache through the command line by using apache.exe.

Still wondering whats the problem.

LVL 10

Expert Comment

ID: 10890012
Check the path associated to the icon for Apache.
And ensure the working directory is the same as the exe.
It is probably something simple.

Accepted Solution

apdtech earned 250 total points
ID: 10899358
First of all,


Listen XX.YY.AA.BB:80

Where XX.YY.AA.BB is your server's IP Address.

Listen is CASE SENSITIVE.   Secondly, what is in your $WINDOWS/system32/drivers/etc/hosts file?   And what is the output of your ipconfig /all?  Apache is trying to bind to which is not a real IP address.

LVL 10

Assisted Solution

Mercantilum earned 250 total points
ID: 10899486
1. Apache directives are *not* case sensitive (3rd line of syntax...)
    (while the arguments may be)

2. Better to keep Listen without an IP as it listens to all IPs...

Expert Comment

ID: 10899960
In the httpd.conf itself, it says:

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

So, I am guessing the docs may be somewhat in correct, brcause people Do run into issues when no address is typed in, and if the log files are checked, you will see errors like the gentleman above has.  And nonethelsess, this gentleman is still having his issue.

I stand corrected inregards to case, never knew it or tested it out.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

623 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