Home > Backend Development > PHP Problem > How to set apache to display php errors

How to set apache to display php errors

藏色散人
Release: 2023-03-06 18:32:01
Original
2854 people have browsed it

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

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

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!

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