PHP-FPM doesn't write to error log

前端 未结 11 1116
予麋鹿
予麋鹿 2020-11-27 09:12

I\'ve just installed a nginx+php-fpm server. Everything seems fine except that PHP-FPM never writes error to its log.

fpm.conf

[default]
listen = /va         


        
11条回答
  •  没有蜡笔的小新
    2020-11-27 09:56

    in my case I show that the error log was going to /var/log/php-fpm/www-error.log . so I commented this line in /etc/php-fpm.d/www.conf

    php_flag[display_errors]   is commented
    php_flag[display_errors] = on  log will be at /var/log/php-fpm/www-error.log
    

    and as said above I also uncommented this line

    catch_workers_output = yes
    

    Now I can see logs in the file specified by nginx.

提交回复
热议问题