الأحد، 2 نوفمبر 2008

How to log PHP Errors with .htaccess 2

Below is the development edition, this setup is ideal for sites that are not yet published to the public. This setup is ideal as it will catch & display errors in real time.

.htaccess file: Development Edition

***********************
# PHP error handling for production 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 999999999
php_value log_errors_max_len 0
<Files /home/path/public_html/domain/PHP_errors.log>
Order allow,deny
Deny from all
Satisfy All
</Files>

*****************************

ليست هناك تعليقات: