如何修复 Plesk 中的 FastCGI 超时问题?

2022-01-13 00:00:00 centos php fastcgi plesk connection-timeout

PHP 支持当前设置为:以 Fast CGI 方式运行.

我的服务器日志中不断出现这些错误:

<块引用>

mod_fcgid:45秒内读取数据超时

脚本头提前结束:index.php

我认为应该快速修复,但我找不到要编辑的文件.这是我可以从 Plesk 改变的东西吗?

有人知道如何增加超时时间吗?

解决方案

在 Plesk 12.x 和类似版本中,转到 Web 服务器设置 并设置以下指令:

HTTP & 的附加指令HTTPS

FcgidBusyTimeout 300FcgidIO超时 250

以上几行将更改静默时间过长且执行时间过长的脚本的超时时间.

额外的 nginx 指令

proxy_read_timeout 300;

以上几行将更改代理超时.

如果问题仍然存在,请增加值.

另请参阅:

PHP support is currently set to: run as Fast CGI.

I keep getting these errors in my server log:

mod_fcgid: read data timeout in 45 seconds

Premature end of script headers: index.php

Should be quick fix I think, but I cant find the file to edit. Is this something I can change from Plesk.

Anyone know how to increase the timeout?

解决方案

In Plesk 12.x and similar go to Web Server Settings and set the following directives:

Additional directives for HTTP & HTTPS

FcgidBusyTimeout 300
FcgidIOTimeout 250

Above lines will change the timeout for scripts that are quiet too long and take too long to execute.

Additional nginx directives

proxy_read_timeout 300;

Above lines will change the proxy timeout.

If the problem persist, increase the values.

See also: Premature end of script headers: index.php, mod_fcgid: read data timeout


Check the screenshots for the guidance:

相关文章