将所有php错误日志都写入全局日志时出现问题:/var/log/php-fpm/error.log而不是单个池日志。 有办法解决这个问题吗?
全局配置:
[root@linuxbox88 etc]# grep error php-fpm.conf
error_log = /var/log/php-fpm/error.log
www.conf
[root@linuxbox88 php-fpm.d]# grep error_log www.conf
; (error_log, sessions.save_path, ...).
php_admin_value[error_log] = /var/log/php-fpm/www-error.log
error.log
[20-Aug-2018 18:59:49] WARNING: [pool www] child 19103 said into stderr: "NOTICE: PHP message: PHP Parse error: syntax error, unexpected 'dawiu' (T_STRING) in /usr/share/nginx/public_html/test.php on line 1"
[20-Aug-2018 19:00:04] WARNING: [pool www] child 19105 said into stderr: "NOTICE: PHP message: PHP Parse error: syntax error, unexpected 'dawiu' (T_STRING) in /usr/share/nginx/public_html/test.php on line 1"
[20-Aug-2018 19:00:05] WARNING: [pool www] child 19101 said into stderr: "NOTICE: PHP message: PHP Parse error: syntax error, unexpected 'dawiu' (T_STRING) in /usr/share/nginx/public_html/test.php on line 1"
[20-Aug-2018 19:00:05] WARNING: [pool www] child 19097 said into stderr: "NOTICE: PHP message: PHP Parse error: syntax error, unexpected 'dawiu' (T_STRING) in /usr/share/nginx/public_html/test.php on line 1"
谢谢