Skip to content

Instantly share code, notes, and snippets.

@thomasmery
Last active December 14, 2015 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasmery/5117079 to your computer and use it in GitHub Desktop.
Save thomasmery/5117079 to your computer and use it in GitHub Desktop.
.htaccess php error handling - should allow to log and display all errors
# 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