Home>Article>Backend Development> How to enable PHP error reporting function under Linux
How to enable PHP error reporting function under Linux: First enter the [/etc/php5/apache2] directory; then find and open the php.ini configuration file; finally change [display_errors=Off] to [display_errors] =On].
[Related learning recommendations:php programming(video),linux video tutorial】
How to enable PHP error reporting under Linux:
1. Path: /etc/php5/apache2/php.ini
2. Search and modify the following line , change the Off value to On
display_errors = On
3. Search for the following line
error_reporting = E_ALL & ~E_NOTICE
or search:
error_reporting = E_ALL & ~E_DEPRECATED
and change it to
error_reporting = E_ALL | E_STRICT
to learn more For more programming learning, please pay attention to thephp trainingcolumn!
The above is the detailed content of How to enable PHP error reporting function under Linux. For more information, please follow other related articles on the PHP Chinese website!