Php error report settings are always invalid

Source: Internet
Author: User
Php error report settings are always invalid win8.1 + apache2.4 + php5.6.11

Set in php and ini
Error_reporting = E_ALL
Display_errors = On

However, when the web browser is running, no error message is displayed. There is an error message record in the apache error. log file ..

Only set in the PHP file
Ini_set ('display _ errors ', 1 );
Error_reporting (E_ALL );
The error message is displayed in the web browser.


Reply to discussion (solution)

That's because the modified php. ini is not used.

That's because the modified php. ini is not used.




Configuration File (php. ini) Path C: \ Windows
Loaded Configuration File D: \ php5_6_11 \ php. ini

The above information is obtained by running phpinfo ..
It is correct to display the loaded php. ini ..

Make sure that the modified php. ini file is D: \ php5_6_11 \ php. ini. after modification, restart the server to make the modification take effect.

Make sure that the modified php. ini file is D: \ php5_6_11 \ php. ini. after modification, restart the server to make the modification take effect.



The modified php. ini file is D: \ php5_6_11 \ php. ini,
It also restarts the server ..

So I am particularly puzzled why the error reporting level set in php. ini is invalid.

What is your error code? Paste it to see.

Post your modifications to php. ini
Post the display_errors item in the phpinfo report

Post your modifications to php. ini
Post the display_errors item in the phpinfo report



Settings in php. ini


Phpinfo report




Apache?

Are there php_value items in httpd. conf and. htaccess?

Apache?

Are there php_value items in httpd. conf and. htaccess?




Yes, Apache server.
It is useless to set php_value in httpd. conf.
For example



It is a windows system, and there is no. htaccess file ..

I know why. after modifying php. ini, I didn't use the administrator permission to restart the apache server.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.