PHP does not show any errors

I have a PHP server at home for development. He works:

Ubuntu 9.10 Apache 2.2.12 PHP 5.3.2-0.dotdeb.1 MySql 5.0.7-dev 

Currently settings in php.ini errors for displayiong:

 display_errors = on error_reporting = E_ALL 

But I do not see errors in my php script. It is also very strange that phpinfo () shows me this:

 display_errors Off 

I checked the php.ini file and restarted the Apache server many times, but no luck. Does anyone know how this is possible?

edit:
When I installed this locally:

 ini_set('display_errors', 'on'); 

I get errors.

+24
php apache
Apr 15 '10 at 19:55
source share
3 answers

Is the display_errors parameter specified more than once in the php.ini file? If you define it more than once, the second instance will cancel it first.

+34
Apr 15 '10 at 20:45
source share

Ubuntu stores separate copies of the php.ini file for each type of PHP installation.

I am not familiar with the dotdeb release, but I would suggest that it would be in /etc/php5/apache2/php.ini

Edit: Since this is apparently not the case, try restarting Apache. PHP will not receive the changed settings until you do this.

+6
Apr 15 '10 at 20:00
source share

Enable the following settings as shown below.

display_errors

Default value: On

Development value: included

Production Cost: Off

error_reporting

Default value: E_ALL and ~ E_NOTICE

Development value: E_ALL | E_STRICT

Production Cost: E_ALL & ~ E_DEPRECATED

Restart apache server

-7
08 Feb '11 at 20:30
source share



All Articles