How to get uncaught PHP errors from fcgi server

Posted by jason on Server Fault See other posts from Server Fault or by jason
Published on 2012-11-29T17:00:15Z Indexed on 2012/11/29 17:06 UTC
Read the original article Hit count: 270

Filed under:
|
|
|
|

My web hosting company recently replaced suPHP with fcgi on my dedicated server because I needed opcode functionality. Since then I see loads of 500 errors in apache error and php error log is empty. I have no way to figure out whats the root cause. One reason I found out was time out so my hosting company changed FcgidConnectTimeout and FcgidIOTimeout to a value of 200. I believe there are no more timeout errors in my php script.

My question is how do I capture PHP error before 500 internal server error page display to user?

I am using Centos 5.8 server, WHM 11.34.0 (build 9), PHP 5.3.18 and Apache/2.2.23 (Unix) mod_ssl/2.2.23 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_fcgid/2.3.6

© Server Fault or respective owner

Related posts about apache2

Related posts about php