PHP-FPM doesn't write to error log

前端 未结 11 1081
予麋鹿
予麋鹿 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 10:18

    In your fpm.conf file you haven't set 2 variable which are only for error logging.

    The variables are error_log (file path of your error log file) and log_level (error logging level).

    ; Error log file
    ; Note: the default prefix is /usr/local/php/var
    ; Default Value: log/php-fpm.log
    
    error_log = log/php-fpm.log
    
    ; Log level
    ; Possible Values: alert, error, warning, notice, debug
    ; Default Value: notice
    
    log_level = notice
    

提交回复
热议问题