zoukankan      html  css  js  c++  java
  • php-fpm.conf和www.conf配置问题

    最近搞这两个配置文件, 遇到好多部问题, 现在记录下来.

    error_log

    ; Error log file
    ; If it's set to "syslog", log is sent to syslogd instead of being written
    ; in a local file.
    ; Note: the default prefix is /usr/local/var
    ; Default Value: log/php-fpm.log ; error_log = log/php70-fpm.log

    这个搞好好久,  都没有生效, 日志都没有写入, 但是文件是有生成了, 而且也有旧的日记同容, 不知以前是怎样生成和.

    catch_workers_output

    ; Redirect worker stdout and stderr into main error log. If not set, stdout and
    ; stderr will be redirected to /dev/null according to FastCGI specs.
    ; Note: on highloaded environement, this can cause some delay in the page
    ; process time (several ms).
    ; Default Value: no
    ; catch_workers_output = yes

    这个怎样设置都没有效果, 网上说设置它可以写入php的error_log, 但无论值是yes或者no, 都不会影响php的error_log.

    error_log和log_errors

    ;php_admin_value[error_log] = /var/log/fpm-php.www.log
    ;php_admin_flag[log_errors] = on

     error_log和log_errors和php.ini文件的error_log和log_errors是相同的, 只过前者设置了会复盖后者.

  • 相关阅读:
    正则表达式的学习笔记
    apply()的使用
    for循环性能测试
    js基础复习~Array对象
    判断值是否为undefined
    layui 单选框取消选中
    layui 表单验证
    火狐浏览器下,表头边框无效
    css3 宽度百分比减去固定宽度 无效问题
    javaScript中的 call 和 apply
  • 原文地址:https://www.cnblogs.com/jimzbom/p/6699351.html
Copyright © 2011-2022 走看看