Apache not working!

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

Apache not working!

Postby jlaursen » 15. September 2011 21:58

Hello all

Ive installed xampp on my external harddrive, and it worked fine for some days. Now, suddenly, I cannot connect to localhost. The control panel, says apache is running, but when using the .bat file, it stays at "Apache 2 is starting".

This is what i found in the apache error log:

Code: Select all
[Thu Sep 15 23:21:00 2011] [error] (OS 10038)An operation was attempted on something that is not a socket.  : Child 7636: Encountered too many errors accepting client connections. Possible causes: dynamic address renewal, or incompatible VPN or firewall software. Try using the Win32DisableAcceptEx directive.


and lots of them....
Dont know what they mean, but I can tell you that a re-install of xampp did not work...

*EDIT*

Running Windows 7 Home Premium 64-bit
Last edited by jlaursen on 16. September 2011 21:59, edited 2 times in total.
Image
jlaursen
 
Posts: 21
Joined: 15. August 2009 10:22

Re: Apache not working!

Postby glitzi85 » 15. September 2011 22:11

Did you read the error message? And did you then try what the message proposes?
You can find this Directive in apache\conf\extra\httpd-mpm.conf

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Re: Apache not working!

Postby jlaursen » 16. September 2011 21:32

Didnt know where to find that file... thanks

Though, still does not appear to be working, and Its not giving me any errors any more

*EDIT*

After a clean install of xampp on my C drive, I could get the following erros:

Code: Select all
[Fri Sep 16 23:33:43 2011] [notice] Server built: Oct 18 2010 01:58:12
[Fri Sep 16 23:33:43 2011] [notice] Parent: Created child process 6328
[Fri Sep 16 23:33:44 2011] [notice] Disabled use of AcceptEx() WinSock2 API
[Fri Sep 16 23:33:44 2011] [notice] Digest: generating secret for digest authentication ...
[Fri Sep 16 23:33:44 2011] [notice] Digest: done
[Fri Sep 16 23:33:45 2011] [notice] Child 6328: Child process is running
[Fri Sep 16 23:33:45 2011] [notice] Child 6328: Acquired the start mutex.
[Fri Sep 16 23:33:45 2011] [notice] Child 6328: Starting 150 worker threads.
[Fri Sep 16 23:33:45 2011] [notice] Child 6328: Listening on port 443.
[Fri Sep 16 23:33:45 2011] [notice] Child 6328: Listening on port 80.
[Fri Sep 16 23:33:45 2011] [error] (OS 10038)An operation was attempted on something that is not a socket.  : Too many errors in select loop. Child process exiting.
[Fri Sep 16 23:33:45 2011] [notice] Child 6328: Exit event signaled. Child process is ending.
[Fri Sep 16 23:33:46 2011] [notice] Child 6328: Released the start mutex
[Fri Sep 16 23:33:46 2011] [notice] Child 6328: All worker threads have exited.
[Fri Sep 16 23:33:46 2011] [notice] Child 6328: Child process is exiting
[Fri Sep 16 23:33:46 2011] [notice] Parent: child process exited with status 0 -- Restarting.
[Fri Sep 16 23:33:47 2011] [notice] Digest: generating secret for digest authentication ...
[Fri Sep 16 23:33:47 2011] [notice] Digest: done
[Fri Sep 16 23:33:48 2011] [notice] Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations


This just kept looping in the log
Image
jlaursen
 
Posts: 21
Joined: 15. August 2009 10:22

Re: Apache not working!

Postby Sharley » 16. September 2011 21:45

jlaursen wrote:After a clean install of xampp on my C drive...
If you did a clean install again then you need to once again edit the following file.

Open C:\xampp\apache\conf\extra\httpd-mpm.conf and uncomment the last entry that has #win32disableacceptex so it looks like this
Code: Select all
# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum  number of requests a server process serves
# Win32DisableAcceptEx: Use accept() rather than AcceptEx() to accept network connections
<IfModule mpm_winnt_module>
    ThreadsPerChild      150
    MaxRequestsPerChild    0
    Win32DisableAcceptEx
</IfModule>
Save the file after removing the # character in front of Win32DisableAcceptEx and then try again to start Apache.

See if that has fixed the error message.

Good luck. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Apache not working!

Postby jlaursen » 16. September 2011 21:55

I did that

And that was the messages I got...

Would it help any if I said im running windows 7 64-bit?
Image
jlaursen
 
Posts: 21
Joined: 15. August 2009 10:22

Re: Apache not working!

Postby Sharley » 16. September 2011 22:15

Xampp will work just fine on your OS but make sure you are logged in as an administrator.

Have you tried starting Apache and MySQL using the xampp_control.exe file instead of the bat file?

The bat file when it states "Apache 2 is starting" then that is normal - close the bat file to stop Apache.

Make sure that your Windows firewall is not the culprit by temporarily disabling it or any other firewall like ZoneAlarm you may use, try again using the Control Panel, then enable again if that is not the cause.

Have a look at this old topic and see if there is any help in the posts:
viewtopic.php?t=28456

You could try the zip file method of installing XAMPP instead of the installer exe version which has often cured these unusual errors.

Also you could issue this command netsh winsock reset by going to Start>Run... type cmd.exe and then type the command at the prompt>.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Apache not working!

Postby jlaursen » 16. September 2011 23:15

Yea, I am an administrator...

Usually using the .exe one, just tried the bats to see if any errors came up

More or less never have my firewall on.

Couldnt find any help there

My internet is way to unstable to download that, And the speed is just plain terrible.... torture if you ask me...

For some reason it wornt let me do that? It says something about a .dll file thats missing...

Anyway, Thanks for your help....
Image
jlaursen
 
Posts: 21
Joined: 15. August 2009 10:22


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 122 guests