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

In my PHP.ini, I have it set to log errors to a file, and display_errors is OFF.

However, my errors are NEVER being logged... anyone know what common issues are, or what could be preventing them from being logged?

There's definitely no overwritting issues in my code (I wrote the code, and I've never changed anything related to errors via the code...).


share|improve this question
up vote 1 down vote accepted
  • Be sure you modify the proper php.ini file (this may sound silly but I've had this problem many times). phpinfo() is your friend here to tell you which ini file is used.
  • Be sure the folder where the log file should be written is writable
  • Post your configuration (don't forget to hide secure information) and which OS you run.
share|improve this answer
Also check what your error_reporting levels are. Set them low enough and you'll never report an error... – OldTroll Jun 6 '11 at 21:40
You may have said "if you set them too low you'll never report an error" because if some foreign people like me read you answer it might be confusing ("set them" = could be and advice to do so). – Olivier Pons Jun 7 '11 at 7:16
Ah... good point. Thanks – OldTroll Jun 7 '11 at 12:58

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.