error_log per Virtual Host?

后端 未结 11 1891
独厮守ぢ
独厮守ぢ 2020-12-02 07:58

On one Linux Server running Apache and PHP 5, we have multiple Virtual Hosts with separate log files. We cannot seem to separate the php error_log between virtu

11条回答
  •  攒了一身酷
    2020-12-02 08:23

    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

提交回复
热议问题