Created
June 5, 2020 14:02
-
-
Save domtra/9167cbe876a39aa599d388735dd40f8c to your computer and use it in GitHub Desktop.
php error reporting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# supress php errors | |
php_flag display_startup_errors off | |
php_flag display_errors off | |
php_flag html_errors off | |
# enable PHP error logging | |
php_flag log_errors on | |
php_value error_log /home/path/public_html/domain/PHP_errors.log | |
# prevent access to PHP error log | |
<Files PHP_errors.log> | |
Order allow,deny | |
Deny from all | |
Satisfy All | |
</Files> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment