【问题标题】:mod_fcgid: read data timeout in 45 seconds and Premature end of script headers: index.phpmod_fcgid:45 秒内读取数据超时和脚本头过早结束:index.php
【发布时间】:2018-09-04 15:45:56
【问题描述】:

我的一个网站客户在下订单时遇到了问题。 当我检查我的错误日志时,我可以看到:

[warn]  mod_fcgid: read data timeout in 45 seconds, referer: https://myDomain/cart
[error] Premature end of script headers: index.php, referer: https://myDomain/cart 

这个错误是什么意思?我应该怎么做才能消除这个错误? Plesk 控制面板中是否有任何设置需要更改?把'php设置'中的'max_execution_time'改成3600会解决吗?

我正在使用 Plesk 12.0.18、CentOS 5.11

【问题讨论】:

    标签: timeout plesk mod-fcgid


    【解决方案1】:

    该错误表示index.php文件中的网站代码未能在Apache FastCGI模块和/或PHP设置的时间限制内执行。

    • 很可能,index.php 中存在错误,导致它根本无法操作。在这种情况下,您应该在 Plesk > Domains > example.com > PHP Settings 中提高 PHP 错误报告级别并查看脚本本身。

    • 脚本需要很长时间才能执行的可能性较小。在这种情况下,您可以简单地通过 Plesk 增加超时。要设置 120 秒而不是默认的 45 秒,请执行以下操作:

    1。在 Plesk > 域 > example.com > PHP 设置中将max_execution_time 设置为120

    2。通过在 Plesk > Domains > example.com > Apache & Nginx 设置 > Additional Apache 指令 中添加以下 Apache 指令来增加 FastCGI timeout

    <IfModule mod_fcgid.c> 
    FcgidIOTimeout 120 
    </IfModule>
    

    【讨论】:

    • 嗨.. 你能帮我解决这个错误吗? mod_fcgid: stderr: PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0"
    • 嗨。我已经将 max_input_vars 增加到 10000。它会导致任何进一步的问题吗?
    猜你喜欢
    • 2013-01-07
    • 2016-12-22
    • 2012-09-23
    • 1970-01-01
    • 2015-03-07
    • 2012-03-18
    • 1970-01-01
    • 1970-01-01
    • 2011-11-01
    相关资源
    最近更新 更多