Last active
December 14, 2015 16:39
-
-
Save thomasmery/5117079 to your computer and use it in GitHub Desktop.
.htaccess php error handling - should allow to log and display all errors
This file contains 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
# PHP error handling for development servers | |
php_flag display_startup_errors on | |
php_flag display_errors on | |
php_flag html_errors on | |
php_flag log_errors on | |
php_flag ignore_repeated_errors off | |
php_flag ignore_repeated_source off | |
php_flag report_memleaks on | |
php_flag track_errors on | |
php_value docref_root 0 | |
php_value docref_ext 0 | |
php_value error_log /home/path/public_html/domain/PHP_errors.log | |
php_value error_reporting -1 | |
php_value log_errors_max_len 0 | |
# Protect log file | |
<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