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

How to enable PHP error reporting function under Linux

coldplay.xixi
Release: 2023-03-05 19:16:02
Original
2157 people have browsed it

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
Copy after login

3. Search for the following line

error_reporting = E_ALL & ~E_NOTICE
Copy after login

or search:

error_reporting = E_ALL & ~E_DEPRECATED
Copy after login

and change it to

error_reporting = E_ALL | E_STRICT
Copy after login

to learn more For more programming learning, please pay attention to the php training column!

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template