psquance
asked on
Advice on implementing mod_fcgid on windows platform
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 2.2.9.0, faulting module php5ts.dll, version 5.2.6.6, 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:
#Section Start
LoadModule fcgid_module modules/mod_fcgid.so
DefaultInitEnv PHPRC "c:/php/"
DefaultInitEnv PATH "c:/php;C:/WINDOWS/system3 2;C:/WINDO WS;C:/WIND OWS/System 32/Wbem;"
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 s">
SetHandler fcgid-script
Options execCGI
AllowOverride None
Order allow,deny
Allow from all
FCGIWrapper "c:/php/php.exe" .php
</Directory>
# 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.
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 2.2.9.0, faulting module php5ts.dll, version 5.2.6.6, 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:
#Section Start
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
SetHandler fcgid-script
Options execCGI
AllowOverride None
Order allow,deny
Allow from all
FCGIWrapper "c:/php/php.exe" .php
</Directory>
# Section Finish
If I make a call http://localhost/phpinfo.php sited at "C:/Program Files/Apache Software Foundation/Apache2.2/htdoc
Could anyone provide advice on mod_fcgid configuration to allow testing to resolve the servers underlying problems.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER