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.