Windows Server 2003 - Apache crash

Windows Server 2003 - Apache crash

am 10.04.2009 17:42:25 von destone.solutions

Hey folks,

We have a Windows Server 2003 SP2 with Intel Core 2 Duo - 2.66 GHz
processor and 4 GB RAM.

We are solely using PHP / MySQL and for some reason the Apache server
crashes daily (usually one time per day).

In the Event Viewer the following entry appears 4 times when the crash occurs:

Faulting application httpd.exe, version 2.2.8.0, faulting module
php5ts.dll, version 5.2.9.9, fault address 0x0000ad16 [this is always
different].

What the heck could be the problem? We upgraded from PHP 5.2.66 to PHP
5.2.9.9 but daily crash did not seem to cease.

What are we doing wrong?


Thanks,

James

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Windows Server 2003 - Apache crash

am 10.04.2009 17:59:54 von Steven Pierce

What version of HTTPD are you using? Did you look in the httpd logs to
see if there was anything there??

*********** REPLY SEPARATOR ***********

On 4/10/2009 at 5:42 PM Destone Solutions Ltd. wrote:

>Hey folks,
>
>We have a Windows Server 2003 SP2 with Intel Core 2 Duo - 2.66 GHz
>processor and 4 GB RAM.
>
>We are solely using PHP / MySQL and for some reason the Apache server
>crashes daily (usually one time per day).
>
>In the Event Viewer the following entry appears 4 times when the crash
>occurs:
>
>Faulting application httpd.exe, version 2.2.8.0, faulting module
>php5ts.dll, version 5.2.9.9, fault address 0x0000ad16 [this is always
>different].
>
>What the heck could be the problem? We upgraded from PHP 5.2.66 to PHP
>5.2.9.9 but daily crash did not seem to cease.
>
>What are we doing wrong?
>
>
>Thanks,
>
>James
>
>----------------------------------------------------------- ----------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org




------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Windows Server 2003 - Apache crash

am 10.04.2009 19:28:53 von destone.solutions

Before Apache crashes the following entries are in the log:

[Fri Apr 10 13:41:06 2009] [notice] Parent: child process exited with
status 3221225477 -- Restarting.
[Fri Apr 10 13:41:06 2009] [notice] Apache/2.2.8 (Win32) mod_ssl/2.2.8
OpenSSL/0.9.8g PHP/5.2.9-2 configured -- resuming normal operations
[Fri Apr 10 13:41:06 2009] [notice] Server built: Jan 18 2008 00:37:19
[Fri Apr 10 13:41:06 2009] [notice] Parent: Created child process 5840
[Fri Apr 10 13:41:08 2009] [crit] (OS 6)The handle is invalid. :
master_main: create child process failed. Exiting.
[Fri Apr 10 13:41:08 2009] [notice] Parent: Forcing termination of
child process 36

Then it just crashes.

Checked the access log as well and the crash occurs at different
pages. So it's definetely not a PHP code problem.


Cheers,

James

On Fri, Apr 10, 2009 at 5:59 PM, Steven Pierce wro=
te:
>
> What version of HTTPD are you using? =A0Did you look in the httpd logs to
> see if there was anything there??
>
> *********** REPLY SEPARATOR =A0***********
>
> On 4/10/2009 at 5:42 PM Destone Solutions Ltd. wrote:
>
>>Hey folks,
>>
>>We have a Windows Server 2003 SP2 with Intel Core 2 Duo - 2.66 GHz
>>processor and 4 GB RAM.
>>
>>We are solely using PHP / MySQL and for some reason the Apache server
>>crashes daily (usually one time per day).
>>
>>In the Event Viewer the following entry appears 4 times when the crash
>>occurs:
>>
>>Faulting application httpd.exe, version 2.2.8.0, faulting module
>>php5ts.dll, version 5.2.9.9, fault address 0x0000ad16 [this is always
>>different].
>>
>>What the heck could be the problem? We upgraded from PHP 5.2.66 to PHP
>>5.2.9.9 but daily crash did not seem to cease.
>>
>>What are we doing wrong?
>>
>>
>>Thanks,
>>
>>James
>>
>>---------------------------------------------------------- -----------
>>The official User-To-User support forum of the Apache HTTP Server Project=
..
>>See for more info.
>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
>>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Windows Server 2003 - Apache crash

am 10.04.2009 20:24:31 von wrowe

Destone Solutions Ltd. wrote:
>
> Checked the access log as well and the crash occurs at different
> pages. So it's definetely not a PHP code problem.

Bad, bad assumption. Apache can't log the requests which cause it
to crash; at least it couldn't before.

http://httpd.apache.org/docs/2.2/mod/mod_log_forensic.html

For some silly reason, we never included the check_forensic script
in the distribution; find it here;
http://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x/s upport/check_forensic
[it's shell script, easy to recode in perl or php or awk even, if anyone has
some energy to do so.]

FYI 2.2.8 is old, try 2.2.11.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Windows Server 2003 - Apache crash

am 10.04.2009 20:31:43 von destone.solutions

William, thanks for the info.

Just updated to 2.2.11 and now curiously waiting for the crash.
Hopefully it won't happen.


Cheers,

James

On Fri, Apr 10, 2009 at 8:24 PM, William A. Rowe, Jr.
wrote:
> Destone Solutions Ltd. wrote:
>>
>> Checked the access log as well and the crash occurs at different
>> pages. So it's definetely not a PHP code problem.
>
> Bad, bad assumption. =A0Apache can't log the requests which cause it
> to crash; at least it couldn't before.
>
> http://httpd.apache.org/docs/2.2/mod/mod_log_forensic.html
>
> For some silly reason, we never included the check_forensic script
> in the distribution; find it here;
> http://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x/s upport/check_=
forensic
> [it's shell script, easy to recode in perl or php or awk even, if anyone =
has
> some energy to do so.]
>
> FYI 2.2.8 is old, try 2.2.11.
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Windows Server 2003 - Apache crash

am 13.04.2009 12:17:47 von destone.solutions

Hey folks,

Still getting crashes: Faulting application httpd.exe, version
2.2.11.0, faulting module php5ts.dll, version 5.2.9.9, fault address
0x0000ad16.

Any ideas?

P.S.: Happy Easter!


Cheers,

James

On Fri, Apr 10, 2009 at 8:31 PM, Destone Solutions Ltd.
wrote:
> William, thanks for the info.
>
> Just updated to 2.2.11 and now curiously waiting for the crash.
> Hopefully it won't happen.
>
>
> Cheers,
>
> James
>
> On Fri, Apr 10, 2009 at 8:24 PM, William A. Rowe, Jr.
> wrote:
>> Destone Solutions Ltd. wrote:
>>>
>>> Checked the access log as well and the crash occurs at different
>>> pages. So it's definetely not a PHP code problem.
>>
>> Bad, bad assumption. =A0Apache can't log the requests which cause it
>> to crash; at least it couldn't before.
>>
>> http://httpd.apache.org/docs/2.2/mod/mod_log_forensic.html
>>
>> For some silly reason, we never included the check_forensic script
>> in the distribution; find it here;
>> http://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x/s upport/check=
_forensic
>> [it's shell script, easy to recode in perl or php or awk even, if anyone=
has
>> some energy to do so.]
>>
>> FYI 2.2.8 is old, try 2.2.11.
>>
>> ------------------------------------------------------------ ---------
>> The official User-To-User support forum of the Apache HTTP Server Projec=
t.
>> See for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Windows Server 2003 - Apache crash

am 13.04.2009 13:19:49 von aw

Destone Solutions Ltd. wrote:
> Hey folks,
>
> Still getting crashes: Faulting application httpd.exe, version
> 2.2.11.0, faulting module php5ts.dll, version 5.2.9.9, fault address
> 0x0000ad16.
>
> Any ideas?
>
Happy Easter too.
This being said, you already have been told in the past that this was
almost certainly not an Apache problem, but /is/ most probably a PHP
problem, as quite clearly indicated in the error message above which you
yourself quote.
The Apache logging is done at the end of the request cycle. If a module
causes Apache to crash before that, as quite clearly happens above,
Apache cannot log the real cause.
Why do you thus not ask in a PHP forum, where you will have much better
chances of obtaining a useful response ?


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Windows Server 2003 - Apache crash

am 13.04.2009 13:33:26 von aw

André Warnier wrote:
> Destone Solutions Ltd. wrote:
>> Hey folks,
>>
>> Still getting crashes: Faulting application httpd.exe, version
>> 2.2.11.0, faulting module php5ts.dll, version 5.2.9.9, fault address
>> 0x0000ad16.
>>
>> Any ideas?
>>
> Happy Easter too.
> This being said, you already have been told in the past that this was
> almost certainly not an Apache problem, but /is/ most probably a PHP
> problem, as quite clearly indicated in the error message above which you
> yourself quote.
> The Apache logging is done at the end of the request cycle. If a module
> causes Apache to crash before that, as quite clearly happens above,
> Apache cannot log the real cause.
> Why do you thus not ask in a PHP forum, where you will have much better
> chances of obtaining a useful response ?
>
This being Easter after all, let me add some chocolate eggs to the above
maybe rough-sounding response.
It is not that people here do not want to help you, it is that they
(probably) can't. This is an Apache-httpd forum, where you will find
Apache-httpd experts, not PHP ones.
William previously indicated an Apache module that might nevertheless be
able to provide a more detailed Apache log of what happens, but with 99%
probablity, this module will just tell you the same thing : the PHP
module is crashing.
Now why PHP would crash under Apache 2.x, that is something that PHP
experts may be able to tell right away. It may be as simple as some
PHP.INI option to set (or whatever), but we here don't know that.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Windows Server 2003 - Apache crash

am 13.04.2009 13:33:51 von shimmyshack

On Mon, Apr 13, 2009 at 11:17 AM, Destone Solutions Ltd.
wrote:
>
> php5ts.dll

why not use php within apache as a module

LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"

also have you commented out the mysql extension in your php.ini to see
whether it is a problem with your version of libmysql

At this stage you might consider getting a "pre-rolled" install,
xampp, or even zend server released the other day, and testing the
stability of that.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Windows Server 2003 - Apache crash

am 26.02.2010 10:34:33 von simon64

I had the same issue. I had a stray php5ts.dll file in my system32 folder
from a previous install.


Destone Solutions Ltd. wrote:
>
> Hey folks,
>
> We have a Windows Server 2003 SP2 with Intel Core 2 Duo - 2.66 GHz
> processor and 4 GB RAM.
>
> We are solely using PHP / MySQL and for some reason the Apache server
> crashes daily (usually one time per day).
>
> In the Event Viewer the following entry appears 4 times when the crash
> occurs:
>
> Faulting application httpd.exe, version 2.2.8.0, faulting module
> php5ts.dll, version 5.2.9.9, fault address 0x0000ad16 [this is always
> different].
>
> What the heck could be the problem? We upgraded from PHP 5.2.66 to PHP
> 5.2.9.9 but daily crash did not seem to cease.
>
> What are we doing wrong?
>
>
> Thanks,
>
> James
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>

--
View this message in context: http://old.nabble.com/-users%40httpd--Windows-Server-2003--- Apache-crash-tp22989973p27716163.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org