PHP Errors to File

To log all PHP Errors to log file, edit php.ini file, add

error_log = /var/log/php-errors.log

To turn off displaying errors to browser, change value of display_errors to Off

display_errors = Off

Posted in PHP