Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My /var/log/apache2/error.log is filling up about 1GB per hour with PHP Notice errors.

I've tried adding this: /apache2.conf

php_value error_log none

And in my /cgi/php.ini:

error_reporting = E_ERROR
display_errors = On
display_startup_errors = Off
log_errors = Off

PHP is running through fcgi. Even though display errors is ON, it is NOT displaying errors.

Is there a seperate config file I should be editting?

OS: Ubuntu Linux 10.04 PHP: 5.3.2 Apache: 2.2.14

share|improve this question
Can you please provide details about the OS, distribution, and versions of php? – Mircea Vutcovici Mar 21 '11 at 17:39
OS: Ubuntu Linux 10.04 PHP: 5.3.2 Apache: 2.2.14 – Juddling Mar 21 '11 at 17:43

Check where DefaultInitEnv PHPRC= is pointing and change the logging in that configuration file. I think it should be /etc/php5/php.ini.

share|improve this answer
I can't find any configuration files for fcgi :/ – Juddling Mar 21 '11 at 19:31
If it is not a production server, then restart apache so that php will reread the configuration file and search for a php.ini that was accessed in the last few minutes: find /etc -type f -amin 10 – Mircea Vutcovici Mar 21 '11 at 20:56


error_reporting = E_ALL & ~E_NOTICE

in your php.ini

share|improve this answer
This didn't work, I'm pretty sure my ini file isn't being used. – Juddling Mar 21 '11 at 19:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.