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

Below is some configurations in my php.ini

error_reporting = E_ALL & ~E_DEPRECATED
display_errors = Off
log_errors = On

I get a lot of Deprecated errors, in my error log, which I wanted to skip. I think if I set log_errors = Off, it will completely shut off the server log. So is there any way I can stop only deprecated errors writing into my error log?


share|improve this question

Checkout the existing stackoverflow thread which discussed regarding the same issue.

share|improve this answer
Thanks! That does not work for me. Also, I am using nginx. – Adam C. Sep 23 '11 at 0:14
So far, what all settings you tried.? did you restarted apache/nginx after making the changes ?. Could you add more details on all the configurations that you have tried, to the question. – SparX Sep 23 '11 at 0:20
I added the following into my php.ini and restarted nginx, but I still see deprecated errors in the error log. php_admin_value error_reporting 22527 php_admin_flag log_errors On php_admin_flag display_errors Off – Adam C. Sep 24 '11 at 3:20

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.