Home > Article > Backend Development > How to set apache to display php errors
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".
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!