PHP – 500 instead of error

PHP 5.2 by default sends HTTP 500 in case of fatal error, if display_errors is off.
If the hosting is with older PHP, you have to register your own error handler and possibly exception handler and redirect the user to your 500 error page. Try setting the display_errors and error_reporting variables in your PHP script as @Umang suggested.

Leave a Comment