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>

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>

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!

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.