Home>Article>Backend Development> How to enable PHP error reporting function under Linux

How to enable PHP error reporting function under Linux

coldplay.xixi
coldplay.xixi Original
2020-09-07 09:52:58 1997browse

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].

How to enable PHP error reporting function under Linux

[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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn