• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
display_errors with APACHE 2.2

#1
[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


Messages In This Thread
display_errors with APACHE 2.2 - by El Forum - 06-10-2012, 08:16 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.