PHP mit htaccess debuggen: Error Log

To log the potential for users in the operation of an error occurring websites, it is advisable to set up htaccess Error Log in the outside of the public part of the website. This must be provided via FTP with write access.

php_flag log_errors on

php_value error_log /srv/www/vhosts/domain/non-public/PHP_errors.log

php_flag ignore_repeated_errors on

php_flag ignore_repeated_source on

php_value error_reporting 1

Here, no repetitive and only fatal run-time error logged.