PDA

View Full Version : Failed to start the Apache sevice....HELP


shalus
02-28-2007, 09:56 AM
OS:WinXP Pro SP2
Server: Apache HTTPD 1.3.31

I installed Apache as a service and it gives me da error..."Failed to start Apache service...."

When i checked da error log,

"(9)Bad file descriptor: make_sock: unable to listen for connections on port 8080"

I chked sum sites reagrding dis problem an al they say is

1. more than one http server running (like IIS)
I chked under Services n IIS is not installed
2. Windows firewall settings
I disabled it
3. Mcafee virus scan can cause problems
I disabled it
4. Corrupted winsock
Winsock is fine
5. Other stuff like SKYPE blocking da port
i dont have SKYPE

I have chked more sites but everything seems to fall into 2 major reasons why Apache wont start - IIS and firewall settings
I have changed these settings n still Apache wudn't start

When i try 2 start Apache under Services window it starts n stops immediately.

I chked Pid file of Apache, got da pid no and did a netstat n tasklist in cmd interface. But when i cross referenced there was no such pid found. I even chked under Win Task mgr.

I also did a "netstat...find" for specific port 8080 but no process was occupying it.

I have run out of ideas.......am also fairly new to Apache........Please help

Terminator1138
02-28-2007, 06:01 PM
I would uninstall and redownload the whole package.

Its hard to say with all the different programs you have and what windows is doing. I would also try a WAMP install and see if that helps, plus you get all the extras. A member on my site wrote this tutorial that may help also

http://www.developtheweb.org/Home/p2_articleid/18

shalus
03-01-2007, 04:50 AM
I have reinstalled Apache many many times n it still seems 2 give da same error. I even tried installing Apache as manual service but unfortunately it gives me dis

[warn] pid file c:/program files/apache group/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? <<<

Clearly Apache was not running n when i chked da error log there goes da same OLD error again

"..make_sock: unable to listen for connections on port 80...."


This Apache is an exe file downloaded form apache.org. When i tried install da apache no_src msi file the installer gives me da foll error

"Error 1901.Error attempting to read from the source installation database: C:\WINDOWS\Installer\198437.msi......"

I am not supposed to use WAMP or any other bundled prod

i am at a loss.....pls help

Terminator1138
03-01-2007, 08:16 AM
What do you mean you are not suppose to use a WAMP product, its the same :), perhaps go with a linux install and install the apache package.

Its hard to say since its on windows xp machine at which I'm not sure of all the services. Can you reach localhost?

Have you tried installing it on root drive instead of program files? There might be an issue where windows is not liking the location of the install. Just a guess.

shalus
03-04-2007, 02:37 AM
The Apache folder is in D:\Apache Group\Apache

I am doing project based on Apache-PHP-MySQL. Its an ecommerce type website.

Do u think i shud put all these three (Apache-PHP-MySQL) under a separate logical drive or in separate folder under C. Which one is better?

After installing Apache as a service the small icon doesnt appear on da desktop. I even tried da browser by typing localhost but da "page cannot be displayed" comes. I also tried 127.0.0.1 n yet da same error.

Before i move onto PHP an MYSQL am trying 2 get Apache working.....

i am not familiar with Linux nor with WAMP besides am supposed to install Apache-PHP-MySQL separately and then link it for my project.

Pls give sum idea.

Terminator1138
03-05-2007, 09:16 AM
I'm trying to think of what other programs you might be using to cause any issues,

I don't think a small icon will appear on the desktop like normal aps do. You have to manually start service, check windows services in your control panel using your admin tools

You should keep each one in a seperate folder. Keep in mind you are basically opening up your computer since I'm guessing this is a personal machine test.

Example of structure
C:\Apache
C:\PHP
C:\MySQL

Since you system is unique and I'm not sure what you have going on Its hard to say what the specific issue is. Make sure you have admin rights also.

this might help also (http://www.apachelounge.com/forum/viewtopic.php?p=1573)

and

this may (http://www.sematopia.com/?p=28) also

PsychoticDude85
03-05-2007, 11:58 AM
Triple post? For shame ;)

That would be the issue I would expect. That your user doesn't have the required permissions to hand a port over to a program. I'm not sure on how netstat operates, but if it just scans ports it's possible that it is taken - but closed/filtered. If it looks in some runtime information for which processes are allowed to listen to which ports that wouldn't be an issue. It depends. I'm no Windows expert.

Terminator1138
03-05-2007, 01:42 PM
yes shame on me....I tried to edit but site was acting way slow on edit button

PsychoticDude85
03-05-2007, 03:25 PM
How about the mod merge feature?

Terminator1138
03-05-2007, 06:15 PM
How about the mod merge feature?

done :)