Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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...).

Thanks.

share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.