I need to log PHP error to .log file using .htaccess with log_errors:
# supress php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
# enable PHP error logging
php_flag log_errors on
php_value error_log C:\xampp\htdocs\cms\cache\logs\PHP_errors.log
# prevent access to PHP error log
<Files PHP_errors.log>
Order allow,deny
Deny from all
Satisfy All
</Files>
Now, This not work and .log file is empty.
NOTE:I change .log file to 777 permission.
I know, xampp log PHP error to this file : C:\xampp\php\logs\php_error_log.log
