PHP script throwing internal server error 500
Few days back had a problem where my php pages were working fine but had problem with response code it was sending. The page was returning “500 Internal server error” instead of “200 OK”. I recently had updated php and apache version so initially thought there must be some problem with it.
First I tried to match new php setting with old php. After about an hour, when I changed display_errors = On the response header was fixed. The issue was because I had error_reporting = E_ALL so there must be some warnings etc being thrown. My display_errors setting was Off so it was setting response code to “500 Internal Server Error”.
So simple fix is that you turn off error_reporting or turn on the display_errors.




PHP pages working fine but generating 500 internal server error ……
I found your entry interesting do I’ve added a Trackback to it on my weblog
…