如何更改 php-fpm.conf(或 php.ini),以便将所有错误/警告/...写入标准错误(或替代标准输出)?
我跑 php5-fpm
与 daemonize = no
并希望在我的终端中查看所有错误。
最佳答案
解决方法是设置...
; 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
关于logging - 如何将 PHP 错误写入 stderr?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24599821/