CodeIgniter Forums
display_errors with APACHE 2.2 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: display_errors with APACHE 2.2 (/showthread.php?tid=52423)



display_errors with APACHE 2.2 - El Forum - 06-10-2012

[eluser]gabybob[/eluser]
hello

you had asked that the errors will not appear on the screen:

Here's why the PB, you are using a recent version of Apache that manages the display_errors to Off by default, it's silly but that's how

two options available to you to overcome this PB

1) at the level of force at the root of index.php CI
Code:
switch (ENVIRONMENT)
{
case 'development':
ini_set ('display_errors', 1);
error_reporting (E_ALL);
break;

case 'testing':
case 'production':
ini_set ('display_errors', 0);
error_reporting (0);
break;

default:
exit ('The implementation environment is not set Correctly.');
}

2) change the config file php.ini

do not forget to restart the apache server

bye
Gabriel