Apache won't start.... what else

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache won't start.... what else

Postby powerof2 » 06. January 2008 03:00

XAMPP 1.6.5 on XP-SP2

On installation I got a real quick dialog that said something to the effect that my httpd.conf had errors. Didn't say what they were, of course.

Anyway, when I attempt to start Apache it starts for a few seconds and croaks.

My server root is as follows: ServerRoot "C:/xampp/apache"
Port 80 is clear.

Any ideas? I've read the other posts and comments and none of them seem to apply.

Thanks,
j
Jay Reidy
Pasadena, CA 91103
http://www.mtbaldyskipatrol.com
jay.reidy@gmail.com -08:00 GMT
powerof2
 
Posts: 10
Joined: 06. January 2008 02:54
Location: Pasadena, CA USA

Postby Izzy » 06. January 2008 03:34

Have you tried starting Apache using the C:\xampp\apache_start.bat file to see the error message why Apache can't start?

Also any clues in the server's error.log file?
C:\xampp\apache\logs\error.log

But I am sure that the above standard clue finding troubleshooting methods posted in other forums may not really apply to you ;)
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby powerof2 » 06. January 2008 03:53

Thanks for your quick response. Here are my results:

[quote="Izzy"]Have you tried starting Apache using the C:\xampp\apache_start.bat file to see the error message why Apache can't start?

Ran apache_start.bat with no joy.

Also any clues in the server's error.log file?
C:\xampp\apache\logs\error.log

Here are the error log entries. There are several of them, but they all say the same thing. AND, as I don't speak fluent computerese, they mean nothing to me.

[Sat Jan 05 18:49:33 2008] [notice] Child 3636: Child process is running
[Sat Jan 05 18:49:33 2008] [crit] (OS 10022)An invalid argument was supplied. : Child 3636: setup_inherited_listeners(), WSASocket failed to open the inherited socket.
[Sat Jan 05 18:49:33 2008] [crit] Parent: child process exited with status 3 -- Aborting.
Jay Reidy
Pasadena, CA 91103
http://www.mtbaldyskipatrol.com
jay.reidy@gmail.com -08:00 GMT
powerof2
 
Posts: 10
Joined: 06. January 2008 02:54
Location: Pasadena, CA USA

Postby Izzy » 06. January 2008 03:59

Ran apache_start.bat with no joy.

Why not - what does that mean?
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby powerof2 » 06. January 2008 04:18

Izzy wrote:
Ran apache_start.bat with no joy.

Why not - what does that mean?


It means nothing happened. The CMD screen appeared for a few minutes saying, "Apache is starting" but when I looked at the XAMPP control panel and my services display it wasn't running.

Apache is set to start automatically when I boot my computer.
Jay Reidy
Pasadena, CA 91103
http://www.mtbaldyskipatrol.com
jay.reidy@gmail.com -08:00 GMT
powerof2
 
Posts: 10
Joined: 06. January 2008 02:54
Location: Pasadena, CA USA

Postby Izzy » 06. January 2008 04:47

What happens when you go here in your browser?
http://localhost

or here:
http://localhost/xampp/status.php

If, as you say, Apache starts as a service when you boot then Apache should have started but may not appear so in the Control Panel.

To check if Apache has started after you boot right click on the Windows Task Bar and select Task Manager from the menu then select the Processes tab and look for 2 instances of apache.exe processes running.

Apache will not start again if it is already running and will cause it to have a severe migraine or throw unintelligible errors if you try it.

Anyhow here is some more on the subject:
powerof2 wrote:[Sat Jan 05 18:49:33 2008] [notice] Child 3636: Child process is running
[Sat Jan 05 18:49:33 2008] [crit] (OS 10022)An invalid argument was supplied. : Child 3636: setup_inherited_listeners(), WSASocket failed to open the inherited socket.
[Sat Jan 05 18:49:33 2008] [crit] Parent: child process exited with status 3 -- Aborting.

Have a look through these posts but follow the BTW note before trying to implement any of the solutions:
http://community.apachefriends.org/f/viewtopic.php?t=20134
http://community.apachefriends.org/f/viewtopic.php?t=27260
http://community.apachefriends.org/f/viewtopic.php?t=20540

BTW - Before attempting any of the solutions in the above post you should first uninstall the Apache service that starts Apache when you boot because what is happening is Apache seems to have already started.

Remove the check in the Svc box in the Control Panel or run the batch file C:\xampp\apache\apache_uninstallservice_2.2.bat
(there is an alternative method of uninstalling the service if that fails in one of the above post - look for sc delete apache2.2)

Then try and start Apache again but not using the Control Panel but by using the Batch file.

Once you can start Apache manually then try using the Control Panel but don't install the service yet.

If all checks out then re-install the Apache service and reboot to see if Apache has started - there is no need to try and start Apache again if you installed the Apache service and it has been started when you boot.

If the above is all too much gobbledygook for you then uninstall XAMPP referring to the readme-en.txt file - stop all the XAMPP modules and uninstall any XAMPP modules that are set as services.

Then re-install XAMPP.
(I think I even mentioned this re-install remedy in one of the above posts.)
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby powerof2 » 07. January 2008 05:20

Izzy wrote:What happens when you go here in your browser?
http://localhost

or here:
http://localhost/xampp/status.php

If, as you say, Apache starts as a service when you boot then Apache should have started but may not appear so in the Control Panel.



Well, I tried everything you said in all the posts and I've removed and reinstalled XAMPP till I'm blue in the face.

I really appreciate your help, but I'm just going to take my machine in to work and let the research guys help me.... or rather let them get things running right.

If they tell me what I'm doing wrong, I'll let you know what the solution was.

Thanks,

j
Jay Reidy
Pasadena, CA 91103
http://www.mtbaldyskipatrol.com
jay.reidy@gmail.com -08:00 GMT
powerof2
 
Posts: 10
Joined: 06. January 2008 02:54
Location: Pasadena, CA USA

Problem apache no work

Postby xombra » 16. January 2008 21:17

Good day to all
I have had problems for the working apache use MS-Windows XP SP2
I have tried each of the points, I have read each of the links, and is still not working

The log shows me the following
[Notice] 2596 Child: Child process is running
[Crit OS] (10022) has been provided an argument invalid. : Child 2596: setup_inherited_listeners (), WSASocket failed to open the inherited socket.
[Crit] Parent: child process exited with status 3 - Aborting.

Tested:
Uncheck the "Enable LMHOSTS Lookup" not worked
Check the "Enable LMHOSTS Lookup" not worked

Verify that the Apache is not running on Microsoft Windows Task Bar

Also add aal end of xampp\apache\conf\httpd.conf:
Win32DisableAcceptEx

And displays this error:
[Notice] Disabled use of AcceptEx () API WinSock2

Add also
Xampp / apache / conf / extra / httpd-mpm.conf file.
Win32DisableAcceptEx
EnableMMAP Off
EnableSendfile Off

And yet works showing the same error.

I tried xampp-portcheck.exe
Resulting in the following:
Service Port Status
=========================================
Apache (HTTP) 80 free
Apache (WebDAV) 81 free
Apache (HTTPS) 443 free
MySQL 3306 Free
FileZilla (FTP) 21 free
FileZilla (Admin) 14147 free
Mercury (SMTP) 25 free
Mercury (POP3) 110 free
Mercury (IMAP) 143 free


Running
C:\xampp\apache\bin> apache-t
Syntax OK

I performed the action on this link
Http://community.apachefriends.org/f/viewtopic.php?t=20141 and anything: (

Check with netstat which was not occupied port

Active Connections

Proto Address Local Remote Address State PID
TCP colossus: 2120 2121 2460
TCP colossus: 2121 2120 2460
TCP colossus: 2122 2123 2460
TCP colossus: 2123 2122 2460
TCP colossus: 1049 58.222.0.179: http 1916 ESTABLISHED

I have verified that turned off the firewall and still not worked

Complementing show links read:
Http://community.apachefriends.org/f/viewtopic.php?t=20134
Http://community.apachefriends.org/f/viewtopic.php?t=27260
Http://technet.microsoft.com/es-ve/library/bb490995 (en-us). Aspx
Http://community.apachefriends.org/f/viewtopic.php?t=20540
Http://issues.apache.org/bugzilla/show_bug.cgi?id=31765
Http://apache2triad.net/forums/viewtopic.php?t=2718
Http://community.apachefriends.org/f/viewtopic.php?t=20141


Any other suggestions?
xombra
 
Posts: 3
Joined: 16. January 2008 20:50
Location: Valencia - Venezuela

Postby Izzy » 17. January 2008 03:43

Thank you very much for your detailed post.

Do you have or have you ever used Skype before or perhaps ran it as a service?

Have you tried starting Apache using the apache_start.bat file which will usually give any errors for a failed start?

Try uninstalling as per the .\xampp\readme_en.txt file and then doing a fresh install again - don't overwrite the xampp directory, which should have been renamed or deleted after uninstalling XAMPP if using the installer version - see this post:
http://community.apachefriends.org/f/viewtopi ... 872#113872

Instead of using the installer version of XAMPP this time try any of the zipped variants - which is my preferred choice as I have more control over the installation of XAMPP, the uninstalling of XAMPP (I need only rename or delete the xampp directory, no registry entries to worry about after stopping and uninstalling any XAMPP services of course) and for easier and much more control over upgrades.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby xombra » 17. January 2008 18:19

I dont installed Skype (not use) or any other software that can occupy the port 80


C: \ xampp> apache_start.bat
Diese Eingabeforderung nicht waehrend des Running beenden
Bitte erst bei einem gewollten Shutdown schliessen
Please close this command only for Shutdown
Apache 2 is starting ...

C: \ xampp>

Error log
Child 2960: Child process is running
[Crit OS] (10022) has been provided an argument invalid. : Child 2960: setup_inherited_listeners (), WSASocket failed to open the inherited socket.
[Crit] Parent: child process exited with status 3 - Aborting.

Not work: (

Type:
C: \ xampp> sc delete apache2.2
[SC] OpenService FAILED 1060:

The specified service does not exist as a service installed.

Reading the link
Http://community.apachefriends.org/f/viewtopic.php?p=113872 # 113872

unnistall the xampp and deleted the folder

Download version. Zip of xampp
Http://www.apachefriends.org/en/xampp-windows.html # 521

Unzip all in the folder xampp

Run setup_xampp.bat

Set for Server 1.6.5
Set XAMPP with awk for 'Windows_NT'
Please wait ...
Enable AcceptEx Winsocks v2 support for NT systems DONE!

##### Have fun with ApacheFriends XAMPP! #####


Press any key to continue. . .


Run the Control Panel XAMPP generates the following error
[Crit OS] (10022) has been provided an argument invalid. : Child 1964: setup_inherited_listeners (), WSASocket failed to open the inherited socket.
[Crit] Parent: child process exited with status 3 - Aborting.

Close the XAMPP Control Panel

Change in file httpd.conf
Listen 80 to 8080
ServerName localhost: 80 to 8080


Run C: \ xampp> apache_start.bat
Diese Eingabeforderung nicht waehrend des Running beenden
Bitte erst bei einem gewollten Shutdown schliessen
Please close this command only for Shutdown
Apache 2 is starting ...

Send the following error
[Crit OS] (10022) has been provided an argument invalid. : Child 2684: setup_inherited_listeners (), WSASocket failed to open the inherited socket.
[Crit] Parent: child process exited with status 3 - Aborting.


If I use the xampp-control indicate using the port 80, you should not run the Apache in 8080 after changing the port in file httpd.conf??

I default httpd.conf (port 80)

Adjunt image of the processes running on the PC


Image


Another option to continue?
xombra
 
Posts: 3
Joined: 16. January 2008 20:50
Location: Valencia - Venezuela

Postby Izzy » 18. January 2008 00:25

Some info about the processes that you should look at that may be interfering with port 80 and preventing Apache from starting - it can now be established that the problem is system related and not your XAMPP installation.
http://www.whatsrunning.net/whatsrunning/main.aspx
http://www.neuber.com/taskmanager/process/index.html


wmiprvse.exe - Windows Management Instrumentation (WMI) is a component of the Microsoft Windows operating system that provides management information and control in an enterprise environment.
http://www.neuber.com/taskmanager/proce ... e.exe.html

Consider installing the free Security Task Manager
http://www.neuber.com/taskmanager/index.html



xfilter.exe - is either a malware item or is a firewall that you may not know about:
http://www.file.net/process/xfilter.exe.html
Consider installing the free Security Task Manager.

You can Kill this in the Processes tab to test Apache again using the bat file.

It can be started again by rebooting but make sure it is not malware - a good SpyWare program should detect any malware.



FilMsg.exe - Filseclab Personal Firewall as with the above xfilter.exe, could be malware under disguise and so worth checking as it could be dangerous.
http://www.file.net/process/filmsg.exe.html

Check the configuration if you have installed this firewall that all ports XAMPP needs are open.


Disable the Windows Firewall if you are using it - then test Apache again.

BTW - Having multiple firewalls installed and running can create some major issues - uninstall all of them and just install one very good firewall and may I recommend this excellent 'free for life' Comodo Free Firewall Software - Comodo is a trusted Security company who issue SSL certificates, so they should know what they are doing.



RaUI.exe - Ralink Wireless LAN Card Utility - check the LAN configuration and make sure that all the ports that XAMPP requires are open.
This link was down when I checked it:
http://www.ralinktech.com/
This link was OK:
http://www.ralinktech.com.tw/



nvsvc32.exe - NVIDIA Driver Helper Service which gets installed as a service under Windows.
http://www.neuber.com/taskmanager/proce ... 2.exe.html

Can give strange issue that may not be attributed to anything else - check out this link as they recommend disabling it:
http://searchtasks.answersthatwork.com/ ... le=NVSvc32



ave*.exe - Try temporarily disabling your AVG virus scanner - restart your computer so the AVG service is not started and make sure by checking the Processes tab again that no instances of avg*.exe are visible, then try start Apache using the bat file again.

Or you may be able to just Kill all the avg*.exe files from the Processes tab then test XAMPP again - then restart your machine after the test to start all the avg*.exe files again.

If there is no change you can enable AVG again without damage.

If disabling helps, then check your AVG configuration or consult the AVG tech support or their forum if they have one.



In conclusion, you will have to use your own judgment on these running processes but disabling them one at a time and checking the Processes tab after disabling each in turn is recommended - this is to make sure non of the disabled processes are not still running before checking Apache again.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby xombra » 18. January 2008 06:53

Thank you for your response in search 1 solution

Following your directions:
I read both link and installed software
Http://www.whatsrunning.net/whatsrunning/main.aspx
Http://www.neuber.com/taskmanager/process/index.html

Check each of the processes involved and delete suspects

FilMSg.exe
Xfilter.exe

Special thanks for information of Filseclab Personal Firewall (uninstall)

I dont know of this problem: (I have considered Comodo Free Firewall Software for installation.


As an additional step I chose to close the AVG


Run
Setup_xampp.bat (onlyverify)


C: \ xampp> apache_start.bat

Read log
[Notice] Apache/2.2.6 (Win32) DAV / 2 mod_ssl/2.2.6 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5 configured - resuming normal operations
[Notice] Server built: Nov 7 2007 11:48:48
[Notice] Parent: Created child process 2648
[Notice] 2648 Child: Child process is running
[Crit OS] (10022) has been provided an argument invalid. : Child 2648: setup_inherited_listeners (), WSASocket failed to open the inherited socket.
[Crit] Parent: child process exited with status 3 - Aborting.

To make sure that services no run... reset pc

Then;
C: \ xampp> apache_start.bat

WORKING!!!!!!!!

Close console MS-DOS

Still had doubts that it would be the fault and activate the AVG (Antivirus)

C: \ xampp> apache_start.bat

WORKING!!!!! : X

The problem was file FilMSg.exe because I had blocked their exit to the Internet. I unisntsall the Filseclab Personal Firewall.

thanks for your patience. Problem solved.
xombra
 
Posts: 3
Joined: 16. January 2008 20:50
Location: Valencia - Venezuela


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 154 guests