找不到php-fpm.conf

发布于 2025-01-21 12:00:04 字数 381 浏览 3 评论 0原文

我在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尴尬癌患者 2025-01-28 12:00:04

事实证明,我必须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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文