Home  >  Article  >  Backend Development  >  How to set apache to display php errors

How to set apache to display php errors

藏色散人
藏色散人Original
2020-10-20 09:22:082813browse

How to set up Apache to display php errors: First open the php.ini file; then modify the content to "display_errors=On"; then open the httpd.conf file; and finally add the content to "php_flag display_errors on".

How to set apache to display php errors

Recommended: "PHP Video Tutorial"

Apache php displays error message

1. Modify the php.ini file.

Open E:\php\soft\PHP\php.ini,

display_errors   =  On
error_reporting =  E_ALL | E_STRICT

2. Modify Apache’s httpd.conf file

Open E:\php\soft\ Apache2.2\conf\httpd.conf,

Add the following two lines at the bottom:

php_flag display_errors         on
php_value error_reporting    2039

Finally restart Apache.

The above is the detailed content of How to set apache to display php errors. 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