I have recently setup a new install of PHP5 running on Apache on Windows Server 2008 r2.

I have APC and Image Magick installed as php modules, but is otherwise a pretty basic php setup. It is using fastCGI.

What happens is 3 or 4 times a day I have to restart apache because the site stops pulling up.

The event viewer ends up with entries like these around the time of failure: Faulting application path: D:\Apache\bin\httpd.exe Faulting module path: D:\PHP\php5ts.dll

Does anyone know of any way to get additional information about what is the precise cause of this problem?

I don't see anything really interesting in the PHP error log surrounding these events.

One thing that seems odd is when I restart apache it creates TWO httpd.exe processes. PHP_info output seems accurate and correct, mod_disk_cache is NOT in use.

Suggestions welcome, and thanks in advance,

Dan

link|improve this question
"when I restart apache it creates TWO httpd.exe processes" -- That's absolutely normal -- you should see more of those processes under load. I'll be honest -- I find Apache running PHP on Windows not stable enough (especially with APC) -- possibly it is just my bad setup/config. Currently I run PHP under IIS 7 in FastCGI mode (you will need VC9 non-thread safe build of PHP) with WinCache -- works absolutely fine on 5 diff servers. Consider similar setup, if your circumstances allow you so (check php.iis.net for details). – LazyOne Jul 31 '11 at 16:40
Thank you I'm going to try and run without apc and see what happens. – Daniel B. Jul 31 '11 at 16:55
I've tried removed APC and now the server runs - albeit obvoiusly slower. My configuration is going to be tough to cut over in time. – Daniel B. Aug 1 '11 at 20:46
feedback

1 Answer

I did a little searching and found others have experienced the same problem you have reported, and they found it was due to some fault in the php mssql extension. Commenting out the relevant extension line in php.ini resolved the issue according to this source: http://www.farinspace.com/php-error-faulting-module-name-php5ts/

link|improve this answer
Thank you for the suggestion. The scenario you've pointed out is different from mine in that in my case apache starts just fine and has to be periodically restarted. In the case you've suggested it does not start at all. On top of that I'm not using MSSQL. – Daniel B. Jul 31 '11 at 16:55
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.