Forum Moderators: coopster

Message Too Old, No Replies

How not to generate PHP warnings within Apache error log

"log_errors = Off" in 'php.ini' won't work

         

guarriman

12:57 pm on Mar 7, 2007 (gmt 0)

10+ Year Member



Hi.

Using Apache 2.0.52 with PHP 4.3.10 on Linux, I'd like not to include PHP warnings within the Apache error log.

Within 'php.ini' I set "log_errors = Off", but my Apache error log is still including these erorrs.

Any suggestion? Thank you very much.

eelixduppy

1:03 pm on Mar 7, 2007 (gmt 0)



That should work. You can always specify the error log [us3.php.net] and log php errors somewhere else. I find it helpful to log the errors somewhere, if not in your server's log file.

note: You must restart your server for the changes to take effect. :)