I am running PHP and nginx and I am using the production version of php.ini. Therefore, the variable display_error is set to Off, and there is a good reason why I want to do this. But for some files I need to enable error reporting. I used ini_set to enable error reporting. But a simple piece of code, for example:
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
echo "hi"errorrrrr
?>
does not track error. It simply returns the error message "HTTP Server 500 Internal Server". What to do to enable error reporting?
Erjab source
share