0

Hello
Is there a way to disable the php error logs per directory, if it is enabled globally?! I have this htaccess but it seems not to work:

<IfModule mod_php5.c>
php_value display_errors 0
php_value allow_url_fopen 0
php_flag display_startup_errors off
php_flag html_errors off
php_value docref_root 0
php_value docref_ext 0
php_flag  log_errors off
</IfModule>
2
Contributors
3
Replies
5
Views
6 Years
Discussion Span
Last Post by wattaman
0

Try this

php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
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_reporting -1
php_value log_errors_max_len 0

<Files PHP_errors.log>
 Order allow,deny
 Deny from all
 Satisfy All
</Files>
0

Hmmm... I did some modifications to your code, now is:

php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_flag log_errors off
php_flag ignore_repeated_errors on
php_flag ignore_repeated_source on
php_flag report_memleaks off
php_flag track_errors off
php_value docref_root 0
php_value docref_ext 0
php_value error_reporting -1
php_value log_errors_max_len 0

I think the php_value error_reporting -1 line actually does the trick, I'll confirm in a few hours to make sure.
Thank!

0

I've made a mistake, they're not php errors, they're apache's. The error is about the missing files - that's what I want to disable in the logs, per directory.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.