加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – 如何解决Plesk中的FastCGI超时问题?

发布时间:2020-12-13 13:23:25 所属栏目:PHP教程 来源:网络整理
导读:PHP支持目前设置为:作为快速CGI运行. 我一直在服务器日志中收到这些错误: mod_fcgid: read data timeout in 45 seconds Premature end of script headers: index.php 应该快速修复我想,但我找不到要编辑的文件.这是我可以从Plesk改变的东西. 有谁知道如何
PHP支持目前设置为:作为快速CGI运行.

我一直在服务器日志中收到这些错误:

mod_fcgid: read data timeout in 45 seconds

Premature end of script headers: index.php

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

有谁知道如何增加超时?

Parallels员工在Plesk论坛上提供的解决方案

Edit the file:

/etc/httpd/conf.d/fcgid.conf

Specifically,change

FcgidIOTimeout 45

to

FcgidIOTimeout 3600

3600 seconds = 1 hour. Should be long enough for most but adjust
upwards if required. I saw one example quoting 7200 seconds in there.

Finally,restart Apache to make the new setting active.

apachectl graceful

希望能帮助到你

[R

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读