Setting display_errors in the hosting template?
Re: Setting display_errors in the hosting template?
/etc/php5/apache2/php.ini
/etc/php5/cli/php.ini
search display_errors and set on
/etc/init.d/apache2 restart
or httpd, if you use centos/rhel
Other way - code:
/etc/php5/cli/php.ini
search display_errors and set on
/etc/init.d/apache2 restart
or httpd, if you use centos/rhel
Other way - code:
Code: Select all
<?php
error_reporting(E_ALL); ini_set('display_errors', '1');
echo "Hello world";
owieufpowiejf
?>
Re: Setting display_errors in the hosting template?
Yep, may be you show us phpinfo output?GreenUnicorn wrote:seems to work as phpinfo() reports
but oddly that particular site still doesn't show the errors
the reason might be elsewhere though
Re: Setting display_errors in the hosting template?
You can also enable it in your PHP script usually:
If that doesn't help, then try a quick workaround first:
(Could be used to replicate the original behaviour, if it's suppressed by some other circumstance.)
Code: Select all
ini_set("display_errors", 1);
ini_set("track_errors", 1);
ini_set("html_errors", 1);
error_reporting(E_ALL);
Code: Select all
set_error_handler("var_dump");