HostOnNet Blog

PHP Errors to File

Looking for Linux Server Admin or WordPress Expert? We can help.

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.