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

标签 php centos fastcgi plesk connection-timeout

PHP 支持当前设置为:作为快速 CGI 运行。

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

mod_fcgid: read data timeout in 45 seconds

Premature end of script headers: index.php

我认为应该是快速修复,但我找不到要编辑的文件。这是我可以从 Plesk 更改的内容吗?

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

最佳答案

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

HTTP 和 HTTPS 的附加指令

FcgidBusyTimeout 300
FcgidIOTimeout 250

以上几行将更改安静太长且执行时间太长的脚本的超时。

额外的 nginx 指令

proxy_read_timeout 300;

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

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

另请参阅:Premature end of script headers: index.php, mod_fcgid: read data timeout


查看指南的屏幕截图:

Plesk 12.x - Web Server Settings - Additional Apache directives: Additional directives for HTTP & HTTPS - FcgidBusyTimeout & FcgidIOTimeout

Plesk 12.x - Web Server Settings - Additional nginx directives - proxy_read_timeout

关于php - 如何修复 Plesk 中的 FastCGI 超时问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13905004/

相关文章:

apache - 如何在 Centos 中为所有项目设置通用的一个 Nginx 服务器 block (虚拟主机)

linux - 如何读取 CGI Bash 脚本中的 HTTP header 值

CentOS机器安装JMeter显示错误

PHP检查字符串只包含任何语言的字母数字和空格

javascript - 如何获取最后一个元素的id?

php - 计算两个时间字段之间的差异

centos yum 无法安装任何东西或更新系统

c++ - 在 Lighttpd 中将 C++ 作为 FastCGI 运行

php - Nginx 和 FastCGI 下载 PHP 文件而不是处理它们

php - 如何检查链接(a)提交按钮是否被点击