如何解决Plesk中FastCGI超时问题? [英] How to fix FastCGI timeout issues in Plesk?

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

问题描述

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

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

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

I keep getting these errors in my server log:

mod_fcgid:45秒内读取数据超时

mod_fcgid: read data timeout in 45 seconds

脚本头过早结束:index.php

Premature end of script headers: index.php

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

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?

推荐答案

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

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

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.

其他nginx指令

proxy_read_timeout 300;

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

Above lines will change the proxy timeout.

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

If the problem persist, increase the values.

另请参阅:脚本标头的过早结尾:index.php,mod_fcgid:读取数据超时

查看屏幕快照以获取指导:

Check the screenshots for the guidance:

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

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