如何修复 Plesk 中的 FastCGI 超时问题? [英] How to fix FastCGI timeout issues in Plesk?

查看:25
本文介绍了如何修复 Plesk 中的 FastCGI 超时问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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:

这篇关于如何修复 Plesk 中的 FastCGI 超时问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆