PHP-FPM doesn't write to error log

前端 未结 11 1096
予麋鹿
予麋鹿 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:54

    I'd like to add another tip to the existing answers because they did not solve my problem.

    Watch out for the following nginx directive in your php location block:

    fastcgi_intercept_errors on;
    

    Removing this line has brought an end to many hours of struggling and pulling hair.

    It could be hidden in some included conf directory like /etc/nginx/default.d/php.conf in my fedora.

提交回复
热议问题