Apache quits after a few seconds

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

Apache quits after a few seconds

Postby nogiku » 29. September 2006 08:52

Dear Friends,

I found my way to the attractively designed xampp site because I want to try running Joomla on my Windows XP machine before uploading to a hosting site.

I installed xampp, but, alas, Apache will only start for a few seconds before turning itself off.

I looked through the forum and found a couple of people who had much the same problem, and it was solved by unchecking the "Enable LMHOSTS Lookup" box in the TCP/IP protocol setup, under the WINS tab (for example, waboo386, apache server not starting anymore...


Like waboo386, my log was showing the critical error "(OS 10022)An invalid argument was supplied." But disabling LMHOSTS Lookup didn't solve the problem for me. I am also getting the following critical error:

"(OS 232)PIPE CLOSED. : PARENT: UNABLE TO WRITE DUPLICATED SOCKET 3003496 TO THE CHILD."

Here is the entire log for the first 15 minutes. (systems that don't support Japanese will garble the OS 10022, OS 232 and OS 6 errors):

Code: Select all
[Wed Sep 27 14:00:24 2006] [notice] Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_autoindex_color PHP/5.1.6 configured -- resuming normal operations
[Wed Sep 27 14:00:24 2006] [notice] Server built: Aug 13 2006 19:16:43
[Wed Sep 27 14:00:24 2006] [notice] Parent: Created child process 508
[Wed Sep 27 14:00:25 2006] [notice] Child 508: Child process is running
[Wed Sep 27 14:00:25 2006] [crit] (OS 10022)無効な引数が提供されました。  : Child 508: setup_inherited_listeners(), WSASocket failed to open the inherited socket.
[Wed Sep 27 14:00:25 2006] [crit] Parent: child process exited with status 3 -- Aborting.
[Wed Sep 27 14:01:16 2006] [notice] Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_autoindex_color PHP/5.1.6 configured -- resuming normal operations
[Wed Sep 27 14:01:16 2006] [notice] Server built: Aug 13 2006 19:16:43
[Wed Sep 27 14:01:16 2006] [notice] Parent: Created child process 2556
[Wed Sep 27 14:01:17 2006] [notice] Child 2556: Child process is running
[Wed Sep 27 14:01:17 2006] [crit] (OS 10022)無効な引数が提供されました。  : Child 2556: setup_inherited_listeners(), WSASocket failed to open the inherited socket.
[Wed Sep 27 14:01:17 2006] [crit] (OS 232)パイプを閉じています。  : PARENT: UNABLE TO WRITE DUPLICATED SOCKET 3003496 TO THE CHILD.
[Wed Sep 27 14:01:17 2006] [crit] (OS 232)パイプを閉じています。  : master_main: create child process failed. Exiting.
[Wed Sep 27 14:01:17 2006] [error] (OS 6)ハンドルが無効です。  : Parent: SetEvent for child process 0 failed
[Wed Sep 27 14:01:53 2006] [notice] Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_autoindex_color PHP/5.1.6 configured -- resuming normal operations
[Wed Sep 27 14:01:53 2006] [notice] Server built: Aug 13 2006 19:16:43
[Wed Sep 27 14:01:53 2006] [notice] Parent: Created child process 3564
[Wed Sep 27 14:01:55 2006] [notice] Child 3564: Child process is running
[Wed Sep 27 14:01:55 2006] [crit] (OS 10022)無効な引数が提供されました。  : Child 3564: setup_inherited_listeners(), WSASocket failed to open the inherited socket.
[Wed Sep 27 14:01:55 2006] [crit] Parent: child process exited with status 3 -- Aborting.
[Wed Sep 27 14:02:54 2006] [notice] Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_autoindex_color PHP/5.1.6 configured -- resuming normal operations
[Wed Sep 27 14:02:54 2006] [notice] Server built: Aug 13 2006 19:16:43
[Wed Sep 27 14:02:54 2006] [notice] Parent: Created child process 2804
[Wed Sep 27 14:02:56 2006] [notice] Child 2804: Child process is running
[Wed Sep 27 14:02:56 2006] [crit] (OS 10022)無効な引数が提供されました。  : Child 2804: setup_inherited_listeners(), WSASocket failed to open the inherited socket.
[Wed Sep 27 14:02:56 2006] [crit] Parent: child process exited with status 3 -- Aborting.
[Wed Sep 27 14:04:30 2006] [notice] Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_autoindex_color PHP/5.1.6 configured -- resuming normal operations
[Wed Sep 27 14:04:30 2006] [notice] Server built: Aug 13 2006 19:16:43
[Wed Sep 27 14:04:30 2006] [notice] Parent: Created child process 3260
[Wed Sep 27 14:04:31 2006] [notice] Child 3260: Child process is running
[Wed Sep 27 14:04:31 2006] [crit] (OS 10022)無効な引数が提供されました。  : Child 3260: setup_inherited_listeners(), WSASocket failed to open the inherited socket.
[Wed Sep 27 14:04:31 2006] [crit] Parent: child process exited with status 3 -- Aborting.


I don't know what to do, and will be grateful for suggestions.
nogiku
 
Posts: 5
Joined: 29. September 2006 07:50
Location: Saitama, Japan

Postby Izzy » 29. September 2006 09:09

2 things possible, something else on port 80
run xampp\xampp-portcheck.exe

You can paste here the results if you want.

The other is a misconfigured httpd.conf file.

Click the Start button on your task bar.
Click on Run...
Type cmd.exe
type CD C:\xampp\xampp\apache\bin (or what ever your path to bin is).
Type apache -t

You can paste the results here again.

There are also a few more things to try if we can't find anything in the above but lets get those 2 out of the way first. There is talk about it being an OS thing. I am just going through a few error archives now for answers.

Sometimes, if this is your first attempt at an XAMPP install, the install might have been corrupted and an uninstall and delete of the XAMPP tree with a following clean reinstall sometimes after a reboot often fixes these strange errors.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby nogiku » 29. September 2006 10:17

Dear Izzy,

Thanks very much for your speedy reply!
Izzy wrote:2 things possible, something else on port 80
run xampp\xampp-portcheck.exe

You can paste here the results if you want.


For some reason, I wasn't able to copy this, so I retyped it by hand:

Code: Select all
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




Izzy wrote:The other is a misconfigured httpd.conf file.
......
You can paste the results here again.


I tried the command prompt method, and all I got was the following.

Code: Select all
 Syntax OK


Thinking maybe I did something wrong, I tried opening the xampp\apache\conf\httpd.conf file with an editor. It has 520 lines of mostly comment. Outside the comment section is just this:

Code: Select all
 <IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>


I hope this clarifies my problem! If uninstalling and reinstalling is recommended, please refer me to the procedure.
nogiku
 
Posts: 5
Joined: 29. September 2006 07:50
Location: Saitama, Japan

Postby Izzy » 29. September 2006 10:55

Those 2 look fine and there is no problems there.

For some reason, I wasn't able to copy this, so I retyped it by hand

There is a tiny icon in the top left of the title bar of the window. Click on it and it will give you a drop menu that includes the tools to Edit - mark, copy, paste etc.

Now there is not much available from here on in so we will just try another few suggestions before reinstalling.

If you have a firewall and/or anti-virus software, then temporarily deactivate them and try to start Apache again.

Also try starting Apache from the xampp/apache_start.bat file and see what the message returned is. You can use the copy paste method I outlined above. If it closes too quick to see the message then use the command console cmd.exe method I explaind above to get the apache -t command only CD to the xampp directory instead and type apache_start.bat

You could add this to the very bottom of the xampp/apache/conf/extra/httpd-mpm.conf file.
Win32DisableAcceptEx
EnableMMAP Off
EnableSendfile Off

Save the file and try and restart Apache again.
If it makes no difference then comment out (add # at the beginning of each line) or delete those lines.

Do you have a router. Check that the ports required for Apache 80 and 443 are configured to use. Check your router manual for that.

To uninstall:
If you used the installer method then uninstall just like you would any windows programs - from the Control Panel - Add or Remove Programs.
After the uninstall finishes, delete the xampp directory in total as it often leaves stuff behind.
Re-boot, then do your XAMPP install again.

All this seems hit and miss but there is not much documented to fix this issue. At least if there is I can't find it. You have tried the "unchecking the "Enable LMHOSTS Lookup" fix that seemed to fix it in most cases.
This link for some reading and you will see what I mean:
http://issues.apache.org/bugzilla/show_bug.cgi?id=31765

A developer might spot this post and may be able to shed more light on it for you.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby nogiku » 29. September 2006 12:43

Hi Izzy,

I haven't solved the problem -- I hope I will eventually -- but I am learning a lot from your posts.

I don't have a router. I don't have the Windows firewall enabled, and have been disabling my Trend Micro anti-virus/firewall app when trying to start Apache. This is the screen I get whether or not (1) that app is enabled, (2) LMHOSTS Lookup is enabled or (3) the three extra lines to the httpd-mpm.conf file that you suggested are enabled:
Code: Select all
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 ...


The link to Bugzilla you cited is interesting, but a little depressing. It tells me that people far more knowledgeable than me can't agree on whether this issue is settled. It doesn't look settled to me, though, for what that may be worth.

So my next step is to try uninstalling. I see there are three installation methods. The first time around I used method B, "without installer," so this time I guess I'll try one of the other methods, and let you know if the problem solves itself.

Thanks very much!
nogiku
 
Posts: 5
Joined: 29. September 2006 07:50
Location: Saitama, Japan

Postby Izzy » 29. September 2006 12:47

Can you check that Apache has indeed not started before you close the console window.
Do you get the XAMPP Welcome page when you type:
http://localhost
in your browser?

Are you using the XAMPP Control Panel?

If you did not use the installer method did you run the xampp\setup-xampp.bat?
If not you should have as it sets up your paths.
I prefer the manual install using the zip files over the installer method, you get to have more control where you can install XAMPP to.

You only need to delete the xampp folder if you did not use the installer method.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby nogiku » 29. September 2006 13:21

I just re-tried using the control panel, with virus scan and firewall disabled, to start Apache with LMHOSTS Lookup on and off and with "Win32DisableAcceptEx", etc (3 lines to httpd-mpm.conf file) on and off. In each case when I press the Start button, I get the green Running button for a few seconds and then it cuts off, though the panel on the bottom continues to say "Apache service started."

Opening the browser to http://localhost/ gives a "Can't display page" error.

Unfortunately.
nogiku
 
Posts: 5
Joined: 29. September 2006 07:50
Location: Saitama, Japan

Postby Izzy » 29. September 2006 13:28

Thank you for being responsive. Perhaps a reinstall might be in order and I will keep my fingers crossed for some success.

I really have run out of ideas except for one more thing. Perhaps you could copy and paste your httpd.conf file in a PM message along with the path you installed XAMPP to. I need to check that your conf file, for the correct path settings, even though the syntax is correct. It is just a hunch.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby nogiku » 29. September 2006 13:31

Sorry, I didn't give you an answer about the setup-xampp.bat file. Clicking on that gives the message, "Sorry, nothing to do!" and otherwise has no effect that I can see.
nogiku
 
Posts: 5
Joined: 29. September 2006 07:50
Location: Saitama, Japan

Postby Izzy » 29. September 2006 14:17

Your httpd.conf file checked out just fine. My hunch was not confirmed.

All thats left for me to suggest is the reinstall now. I will keep looking though for a solution and I hope others reading this thread can offer some useful suggestions for a fix to this most annoying problem.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby peeksey » 31. October 2006 08:10

Have a look here:
http://apache2triad.net/forums/archive/ ... cket..html

All you need to do is to uncheck the "Enable LMHOSTS Lookup" box in your TCP/IP protocol setup (Advanced.../tab WINS setting).
peeksey
 
Posts: 1
Joined: 31. October 2006 08:01

Postby Izzy » 31. October 2006 10:10

peeksey wrote:Have a look here:
http://apache2triad.net/forums/archive/ ... cket..html

All you need to do is to uncheck the "Enable LMHOSTS Lookup" box in your TCP/IP protocol setup (Advanced.../tab WINS setting).

I think he did that and posted so on several occasions.
It might be a good idea if you read the whole thread before posting in future.

nogiku wrote:I just re-tried using the control panel, with virus scan and firewall disabled, to start Apache with LMHOSTS Lookup on and off and with "Win32DisableAcceptEx", etc


nogiku wrote:This is the screen I get whether or not (1) that app is enabled, (2) LMHOSTS Lookup is enabled or (3) the three extra lines to the httpd-mpm.conf file that you suggested are enabled:


nogiku wrote:I looked through the forum and found a couple of people who had much the same problem, and it was solved by unchecking the "Enable LMHOSTS Lookup" box in the TCP/IP protocol setup, under the WINS tab


nogiku wrote:Like waboo386, my log was showing the critical error "(OS 10022)An invalid argument was supplied." But disabling LMHOSTS Lookup didn't solve the problem for me



Izzy wrote:You have tried the "unchecking the "Enable LMHOSTS Lookup" fix that seemed to fix it in most cases.
This link for some reading and you will see what I mean:
http://issues.apache.org/bugzilla/show_bug.cgi?id=31765
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 112 guests