找不到php-fpm.conf
我在Ubuntu 21.10上使用nginx使用php-fastcgi,我想将log_limit
php-fpm指令设置为8000
,我的php日志不被截断,但是我可以't在任何地方找到php-fpm.conf
。
我可以找到的最接近的文件是/etc/php8.0/cgi/php.ini
,然后我将log_limit = 8000
插入其中,但是phpinfo()
phpinfo()< /代码>不会输出它与
log_errors_max_len
PHP配置变量不同,而PHP日志条目不断被截断。
I use php-fastcgi via nginx on Ubuntu 21.10, and I want to set the log_limit
php-fpm directive to 8000
for my PHP logs not to be truncated, but I can't find php-fpm.conf
anywhere.
The closest file I can find is /etc/php8.0/cgi/php.ini
and I inserted log_limit = 8000
into it, but phpinfo()
doesn't output it unlike the log_errors_max_len
PHP configuration variable, and PHP log entries keep getting truncated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,我必须
apt install php8.0-fpm
创建/etc/php/8.0/fpm/php-fpm/php-fpm.conf
。感谢 @John-Hanley揭示了根本原因!我的截断日志问题仍未解决;我将为它开一个新问题。
As it turned out, I had to
apt install php8.0-fpm
which created/etc/php/8.0/fpm/php-fpm.conf
. Thanks to @john-hanley for revealing the root cause!My truncated logs issue is still unresolved; I'll open a new question specifically for it.