[resolved]Apache shuts down when connection

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

[resolved]Apache shuts down when connection

Postby garyb10 » 30. November 2010 17:37

Yesterday I upgraded XAMMP from 1.7.2 to 1.7.3. Since the upgrade Apache shuts down when you try to view a local url. It start and stays running until you try to connect. I checked the logs and there is nothing in them about the shutdown. Running on Windows XP Pro
Last edited by garyb10 on 01. December 2010 05:10, edited 1 time in total.
garyb10
 
Posts: 3
Joined: 30. November 2010 17:27

Re: Apache shuts down when connection

Postby JonB » 30. November 2010 19:01

I checked the logs and there is nothing in them about the shutdown.


Unless your machine re-booted I find that a bit hard to believe - but hey its a 'puter, so anything could happen. :shock:

You should look in your system and application event logs if Apache's error.log REALLY has no releveant info. It proabably worth posting the last few entries from error.log anyway...

Good Luck
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Apache shuts down when connection

Postby garyb10 » 01. December 2010 02:07

I uninstalled XAMMP then did a reinstall and have the same problem. Now something is showing up in the logs. Also, my firewall says that apache is shutting down httpd.

[Tue Nov 30 21:20:35 2010] [notice] Child 440: Child process is running
[Tue Nov 30 21:20:35 2010] [crit] (OS 10022)An invalid argument was supplied. : Parent: WSADuplicateSocket failed for socket 25941584. Check the FAQ.
[Tue Nov 30 21:20:35 2010] [crit] (OS 10022)An invalid argument was supplied. : master_main: create child process failed. Exiting.
[Tue Nov 30 21:20:35 2010] [notice] Parent: Forcing termination of child process 36
[Tue Nov 30 21:20:35 2010] [crit] (OS 109)The pipe has been ended. : setup_inherited_listeners: Unable to read socket data from parent
garyb10
 
Posts: 3
Joined: 30. November 2010 17:27

Re: Apache shuts down when connection

Postby JonB » 01. December 2010 03:42

Also, my firewall says that apache is shutting down httpd.


That's because Apache (httpd.exe) thread safe is actually two processes when running properly on Windows. And the worker/'child' signalled for a graceful shutdown.

Because Apache for Windows is multithreaded, it does not use a separate process for each request, as Apache can on Unix. Instead there are usually only two Apache processes running: a parent process, and a child which handles the requests. Within the child process each request is handled by a separate thread.


http://httpd.apache.org/docs/2.2/platform/windows.html

First - are you using mod_perl for anything??? If not - try disabling it with the setup_xammp.bat or Setup in the XAMPP Control Panel. Its quirky and might be the cause.

If Apache is a service, you will want to reboot prolly, and see if everything is smiley :)

If that's not a fix -

Ok - its an upgrade - Did you move your files back into the document root?

Also possible you have a corrupt TCP/IP STACK (there's a non-destructive fix)

All just 'thoughts' at the moment.

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: [resolved]Apache shuts down when connection

Postby garyb10 » 01. December 2010 05:11

Something turned on windows firewall and it was blocking Apache.
garyb10
 
Posts: 3
Joined: 30. November 2010 17:27

Re: [resolved]Apache shuts down when connection

Postby JonB » 01. December 2010 17:28

OK - cool

thanks for posting what the resolution was, I wan't thinking along those lines - SOOO I need to revise my FAQ to include - check the statuts of the Windows Firewall.

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 48 guests