I am trying to log all the errors but for some reason I cannot get it to work! If I turn on display_errors in my .htaccess then errors pop up here and there. But instead of having them on display, I want them to be put in a log that I can read so that my users do not see the errors.
I have added these to my .htaccess file:
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_log /path/to/errors.txt
php_value error_reporting 32767
php_value log_errors_max_len 2048
Yet errors.log is still empty! Ive tried restarting apache, whole server, nothing. Any help would be greatly appreciated.
PHP Version - 5.4.39-0+deb7u2