我的一个网站客户在下订单时遇到了问题。当我检查我的错误日志时,我可以看到:
[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 settings'中的'max_execution_time'更改为3600,它会被解决吗?
我使用的是Plesk 12.0.18,CentOS 5.11
该错误意味着index.php
文件中的网站代码无法在为Apache FastCGI模块和/或PHP设置的时间限制内执行。
index.php
中存在错误,这使得它根本无法操作。在这种情况下,您应该在Plesk>域> example.com> PHP设置中增加PHP错误报告级别并查看脚本本身。1.在Plesk>域> example.com> PHP设置中将max_execution_time
设置为120
。
2.通过在Plesk>域> example.com> Apache和Nginx设置>其他Apache指令中添加以下Apache dirctives来增加FastCGI timeout
:
<IfModule mod_fcgid.c>
FcgidIOTimeout 120
</IfModule>