To provide you with a little information:
Display_errors = On
PHP defaults to open error message display, we change it to:
Display_errors = Off
When the error display is turned off, the PHP function does not display the wrong information to the user, which in some way prevents the attacker from knowing the physical location of the script from the error message, as well as some other useful information, at least causing a certain obstacle to the attacker's black box detection. These error messages may be useful to us and can be written to the specified file, then modify the following:
Log_errors = Off
To
Log_errors = On
and the specified file, locate the following line:
; error_log = filename
Remove the previous note, change the filename to the specified file, such as/usr/local/apache/logs/php_error.log
Error_log =/usr/local/apache/logs/php_error.log
So all the mistakes will be written in the Php_error.log file.