CodeIgniter Forums
display_errors with APACHE 2.2 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: display_errors with APACHE 2.2 (/thread-52423.html)



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