I have this code which should of course throw a few errors. But no errors are displayed at all, it just loads a blank page. I read PHP not displaying errors even though display_errors = On but it did not help.
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
blaswagagsd
gfdasgyoloeaifs
echo $_SERVER['SERVER_SOFTWARE'] sdfga
?>
/etc/php5/apache2/php.ini
display_errors = On
; Default Value: On
; Development Value: On
; Production Value: Off
error_reporting = E_ALL
; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
I also set the same settings in /etc/php5/cli/php.ini. Of course I restarted Apache after I changed the php.ini.
What else can I try?
phpinfo()and make sure those are the proper .ini files. and check for php_value directives in .htaccess files, other apache .conf files, which can override the .ini settings..htaccessfiles, how can i find out which is the right one? It found:./usr/share/doc/debian-reference-common/html/.htaccess./usr/share/phpmyadmin/setup/lib/.htaccess./usr/share/phpmyadmin/setup/frames/.htaccess./usr/share/phpmyadmin/libraries/.htaccessphp_value display_errors = Onandphp_value error_reporting = E_ALL. Could you try that?