I have a production server running Windows 2003 SP1.
Apache 2.2.9 is installed with 5.2.6 PHP called using LoadModule php5_module.
The Apache daemon will frequently crash, windows application event log recoding "Faulting application httpd.exe, version 18.104.22.168, faulting module php5ts.dll, version 22.214.171.124, fault address 0x0000b009."
On start up the Apache daemon behaves well. After a ( short ) period the Apache daemon consumes almost all of the processing ability of the new server when making MySQL database queries.
Non PHP database queries are handled in timely, low processor overhead manner.
The problem appears to be due to the volume and frequency of PHP database connects.
After much internet browsing there appears to be a repeatable PHP bug for several years, without any obvious resolution. I see FastCGI as a potential saviour, and have a configuration that is presumably processing PHP scripts, since I don't have a PHP script delivered as text. Pertinent current httpd.conf section is:
LoadModule fcgid_module modules/mod_fcgid.so
DefaultInitEnv PHPRC "c:/php/"
DefaultInitEnv PATH "c:/php;C:/WINDOWS/system3
DefaultInitEnv SystemRoot "C:/Windows"
DefaultInitEnv SystemDrive "C:"
DefaultInitEnv TEMP "C:/WINDOWS/TEMP"
DefaultInitEnv TMP "C:/WINDOWS/TEMP"
DefaultInitEnv windir "C:/WINDOWS"
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdoc
Allow from all
FCGIWrapper "c:/php/php.exe" .php
# Section Finish
If I make a call http://localhost/phpinfo.php
sited at "C:/Program Files/Apache Software Foundation/Apache2.2/htdoc
s" I now get a 403 error - 'You don't have permission to access /phpinfo.php on this server'. This file and the windows/temp folder now have OS ACLs to allow everyone to modify. Using php5_module the file processes fine.
Could anyone provide advice on mod_fcgid configuration to allow testing to resolve the servers underlying problems.