How to fix FastCGI timeout issues in Plesk?(如何修复 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 超时问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何修复 Plesk 中的 FastCGI 超时问题?
基础教程推荐
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- 如何替换eregi() 2022-01-01
