<VirtualHost *:80>
ErrorLog ${APACHE_LOG_DIR}/error-site.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access-site.log combined
DocumentRoot /var/www/site
php_flag log_errors On
php_value error_log /var/log/apache2/php-site.log
</VirtualHost>
Но ошибки упорно продолжали сыпаться в ErrorLog сервера.
И вот нашёл решение:
Don't set error_log to where your syslog stuff goes, eg /var/log/apache2, because they errors will get intercepted by ErrorLog. Instead, create a subdir in your project folder for logs and do php_value error_log "/path/to/project/logs". This goes for both .htaccess files and vhosts. Also make sure you put php_flag log_errors on
Немає коментарів:
Дописати коментар