How to open PHP error report for your reference.
There are many configuration settings in the php.ini file. You should have already set up your php.ini file and placed it in the appropriate directory, as shown in the documentation for installing PHP and Apache 2 on Linux.
There are two configuration variables you should be aware of when debugging PHP applications. Here are the two variables and their default values:
The default value of the error_reporting variable is E_ALL. This setting will show everything from bad coding practices to harmless tips to errors. E_ALL is a bit too granular for development purposes, as it also displays hints on the screen for small things (such as variables not being initialized), which messes up the browser's output. I only want to see errors and bad coding practices, but not harmless tips. So, please replace the default value of error_reporting with the following value: error_reporting = E_ALL & ~E_NOTICE
Restart Apache and the configuration is complete.