logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Apache2 stopped working after reboot

 
Post new topic   Reply to topic    Apache Forum Index -> Apache



View previous topic :: View next topic  
Author Message
jezek



Joined: 16 Sep 2007
Posts: 4

PostPosted: Sun 16 Sep '07 0:53    Post subject: Apache2 stopped working after reboot Reply with quote

Hi I have serious problem with my Apache2. It runs more than 1 year without any problem but one day i rebooted server(Win 2k3) and now getting this into error.log. Config file is the same but I tryed clean and tryed reinstall of Apache and reinstall to newer version.Without succes. Can somebody help me? Here is part of error.log:

Code:

[Sun Sep 16 00:33:06 2007] [notice] Apache/2.0.54 (Win32) PHP/5.0.5 configured -- resuming normal operations
[Sun Sep 16 00:33:06 2007] [notice] Server built: Apr 16 2005 14:25:31
[Sun Sep 16 00:33:06 2007] [crit] (OS 2)The system cannot find the file specified.  : Parent: Unable to connect child stdout to NUL.
[Sun Sep 16 00:33:06 2007] [crit] (OS 2)The system cannot find the file specified.  : master_main: create child process failed. Exiting.
[Sun Sep 16 00:33:06 2007] [info] removed PID file C:/Program Files/Apache Group/Apache2/logs/httpd.pid (pid=2044)
[Sun Sep 16 00:33:13 2007] [notice] Apache/2.0.54 (Win32) PHP/5.0.5 configured -- resuming normal operations
[Sun Sep 16 00:33:13 2007] [notice] Server built: Apr 16 2005 14:25:31
[Sun Sep 16 00:33:13 2007] [crit] (OS 2)The system cannot find the file specified.  : Parent: Unable to connect child stdout to NUL.
[Sun Sep 16 00:33:13 2007] [crit] (OS 2)The system cannot find the file specified.  : master_main: create child process failed. Exiting.
[Sun Sep 16 00:33:13 2007] [info] removed PID file C:/Program Files/Apache Group/Apache2/logs/httpd.pid (pid=720)
[Sun Sep 16 00:35:08 2007] [notice] Apache/2.0.54 (Win32) PHP/5.0.5 configured -- resuming normal operations
[Sun Sep 16 00:35:08 2007] [notice] Server built: Apr 16 2005 14:25:31
[Sun Sep 16 00:35:08 2007] [crit] (OS 2)The system cannot find the file specified.  : Parent: Unable to connect child stdout to NUL.
[Sun Sep 16 00:35:08 2007] [crit] (OS 2)The system cannot find the file specified.  : master_main: create child process failed. Exiting.
[Sun Sep 16 00:35:08 2007] [info] removed PID file C:/Program Files/Apache Group/Apache2/logs/httpd.pid (pid=2144)
[Sun Sep 16 00:42:59 2007] [notice] Apache/2.0.54 (Win32) PHP/5.0.5 configured -- resuming normal operations
[Sun Sep 16 00:42:59 2007] [notice] Server built: Apr 16 2005 14:25:31
[Sun Sep 16 00:42:59 2007] [crit] (OS 2)The system cannot find the file specified.  : Parent: Unable to connect child stdout to NUL.
[Sun Sep 16 00:42:59 2007] [crit] (OS 2)The system cannot find the file specified.  : master_main: create child process failed. Exiting.
[Sun Sep 16 00:42:59 2007] [info] removed PID file C:/Program Files/Apache Group/Apache2/logs/httpd.pid (pid=2324)



I don't really know what's wrong. - Tryed to remove some unneeded SW. I have only antivirus,mailserver,apache,mbm5.

Please help me, I am stuck. Sad Crying or Very sad
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 610
Location: Milford, MA, USA

PostPosted: Sun 16 Sep '07 3:48    Post subject: Reply with quote

That seems very odd that your system cannot find NUL , which is a reserved device on Windows and should always be readable and writeable.

NUL has its own device driver. You can check that this driver exists:
Code:
C:\> dir C:\WINDOWS\System32\drivers\null.sys

 Directory of C:\WINDOWS\System32\drivers

03/25/2003  05:00 AM             4,608 null.sys
You could also check in a DOS box what happens when you copy a file to NUL (it should succeed) and when you try to TYPE NULL
Code:
C:\>type NUL
(it should return to the command prompt without error).

It should be impossible to create any file named NUL on your system. Try:
Code:
dir /A "C:\Program Files\Apache Group\Apache2\bin"
dir /A "C:\Program Files\Apache Group\Apache2\logs"
and make sure there are no files named NUL.


-tom-
Back to top
jezek



Joined: 16 Sep 2007
Posts: 4

PostPosted: Sun 16 Sep '07 10:00    Post subject: Reply with quote

[quote="tdonovan"]That seems very odd that your system cannot find NUL , which is a reserved device on Windows and should always be readable and writeable.

NUL has its own device driver. You can check that this driver exists:
Code:
C:\> dir C:\WINDOWS\System32\drivers\null.sys

 Directory of C:\WINDOWS\System32\drivers

03/25/2003  05:00 AM             4,608 null.sys


Thank you for very fast reply.

I followed your guide but first step failed with: "File not found" So I decided that I have no device NUL in my system and I must add it, right?

(But I can't understand how it is possible to delete this device...)
I post my progress.
Back to top
jezek



Joined: 16 Sep 2007
Posts: 4

PostPosted: Sun 16 Sep '07 16:24    Post subject: Reply with quote

I am stuck and sad. I googled for adding null.sys into system but without success. I tried just copy and rename null.sy_ from install CD but it doesn't work. I'm confused.

Have someone success with same problem?

I hope somebody could help me solve this.
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 610
Location: Milford, MA, USA

PostPosted: Mon 17 Sep '07 1:20    Post subject: Reply with quote

You cannot just copy and rename null.sy_ from the install CD because it is a compressed file. You must expand it into System32.

For example ( if your install CD is drive E: ):
Code:
C:\> EXPAND   E:\I386\null.sy_    C:\WINDOWS\System32\drivers\null.sys

You will also need to re-boot to get the driver loaded into Windows.

-tom-
Back to top
jezek



Joined: 16 Sep 2007
Posts: 4

PostPosted: Mon 17 Sep '07 19:21    Post subject: Reply with quote

tdonovan wrote:
You cannot just copy and rename null.sy_ from the install CD because it is a compressed file. You must expand it into System32.

For example ( if your install CD is drive E: ):
Code:
C:\> EXPAND   E:\I386\null.sy_    C:\WINDOWS\System32\drivers\null.sys

You will also need to re-boot to get the driver loaded into Windows.

-tom-


Thanks very much... IT'S WORKING Very Happy Idea thank you...
Back to top
selmen



Joined: 06 Nov 2009
Posts: 1

PostPosted: Fri 06 Nov '09 2:26    Post subject: Reply with quote

tdonovan,
I subscribed to ths forum just to think you for the tip,
at lasst , apache says: "It works!" Smile
thank you very much for that , i was haviing this problem snce a year, i had to turn to the other wndows each time when developping.
thank you very very very much .
Back to top
Pauletienney



Joined: 14 Apr 2010
Posts: 1
Location: Paris, France

PostPosted: Wed 14 Apr '10 9:44    Post subject: Reply with quote

Hello,

I have found a different solution to this problem.
I have two versions of php on my wamp server.

Because of an unknow reason my 5.2 PHP version does not work but the 5.3 runs great.

Check your php versions.
Back to top
joetraff



Joined: 14 Jul 2010
Posts: 1

PostPosted: Thu 15 Jul '10 19:29    Post subject: Reply with quote

That was quite helpful.
Back to top
bfan



Joined: 20 Jul 2011
Posts: 1

PostPosted: Wed 20 Jul '11 20:32    Post subject: Reply with quote

Thx for this solution

However, if it doesn't work (type NUL) like for me after those operations, you might do this as explain on this link.
http://siebn.de/other/nulldevice/

In order to re-install the NULL driver

Best regards
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1