php-fpm nginx php 日志输出日志文件配置

[align=baseline; color: #1c1c1c; font-family: Varela, sans-serif; line-height: 30.399999618530273px;]php-fpm.conf
yes

php.ini

error_log =/dir/you/want/to/use/for/logging.log
nginx.conf
# The final "error" text at the end of the next line is crucial# You can also use any of the following in it's place:# "debug | info | notice | warn | error | crit | alert | emerg"

error_log /dir/to/your/nginx/site.log error;
[/align]


参考:https://blog.ed.gs/2012/10/16/php-fpm-error-logging-to-nginx/

猜你喜欢

转载自lnnujxxy.iteye.com/blog/2117017