帅帅男孩 发表于 2016-12-26 09:12:10

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

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;



参考:https://blog.ed.gs/2012/10/16/php-fpm-error-logging-to-nginx/
页: [1]
查看完整版本: php-fpm nginx php 日志输出日志文件配置