大网数据广告活动
服务器运维问答

PHP-FPM ERROR: [/etc/php-fpm.d/www.conf:xxx] unknown entry 'process_control_timeout'

· 52CE 我爱测

I have a LAMP stack with Amazon Linux 2, Apache 2.4, and PHP-FPM for PHP 8.1 and I'm trying to set the value for process_control_timeout in my PHP-FPM config I added process_control_timeout=50s to the bottom of the file /etc/php-…

问题原文

原帖链接 · Arth · CC BY-SA 4.0

I have a LAMP stack with Amazon Linux 2, Apache 2.4, and PHP-FPM for PHP 8.1 and I'm trying to set the value for process_control_timeout in my PHP-FPM config

I added process_control_timeout=50s to the bottom of the file /etc/php-fpm.d/www.conf but on reloading PHP-FPM it fails and the status contains the error

ERROR: [/etc/php-fpm.d/www.conf:xxx] unknown entry 'process_control_timeout'

According to the PHP-FPM docs, process_control_timeout is a valid option, and the mentioned config file /etc/php-fpm.conf includes /etc/php-fpm.d/www.conf

How do I set this value correctly?

已采纳解答

原帖链接 · Arth · CC BY-SA 4.0

As pointed out by @GeraldSchneider in a comment, process_control_timeout is a global option and belongs under the [global] section

The [global] section was already defined in my /etc/php-fpm.conf file and adding process_control_timeout=50s there works as expected

By adding it to the bottom of /etc/php-fpm.d/www.conf I was inadvertently adding it to the pool definition for [www], which is what caused the error

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2023-01-30)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。