Solved

Unable to start apache after installation

Posted on 2004-04-21
9
1,349 Views
Last Modified: 2008-01-16
Hi,

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 0.0.0.0
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.

lerouge.
0
Comment
Question by:satishmadhu
  • 4
  • 2
  • 2
  • +1
9 Comments
 

Author Comment

by:satishmadhu
ID: 10885065
HI,

I checked line 120 of my config file and it says

LISTEN 80

thanks
lerouge
0
 
LVL 10

Expert Comment

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

Listen 80
0
 
LVL 10

Expert Comment

by:Mercantilum
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.
0
 
LVL 17

Expert Comment

by:Tacobell777
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.
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:satishmadhu
ID: 10888772
Hi,

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.

Thanks,
lerouge.
0
 
LVL 10

Expert Comment

by:Mercantilum
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.
0
 
LVL 2

Accepted Solution

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

Put:

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 0.0.0.0 which is not a real IP address.

0
 
LVL 10

Assisted Solution

by:Mercantilum
Mercantilum earned 250 total points
ID: 10899486
1. Apache directives are *not* case sensitive http://www.yaps.de/manual/configuring.html (3rd line of syntax...)
    (while the arguments may be)

2. Better to keep Listen without an IP as it listens to all IPs... http://httpd.apache.org/docs/mod/core.html#listen
0
 
LVL 2

Expert Comment

by:apdtech
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 (0.0.0.0)
#
#Listen 12.34.56.78:80


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.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
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.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now