php curl_exec函数导致错误500(FastCGI服务器错误)
我正在尝试运行curl_exec,结果出现错误500。在我的错误日志中php curl_exec函数导致错误500(FastCGI服务器错误),php,apache,cgi,fastcgi,Php,Apache,Cgi,Fastcgi,我正在尝试运行curl_exec,结果出现错误500。在我的错误日志中 [warn](104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: xxx [error] Premature end of script headers: myfile.php, referer: xxx 我在互联网上找到了一个修复建议,说我必须将这个片段添加到vhosts.conf中。因为我的
[warn](104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: xxx
[error] Premature end of script headers: myfile.php, referer: xxx
我在互联网上找到了一个修复建议,说我必须将这个片段添加到vhosts.conf中。因为我的apache没有vhosts.conf文件,所以我将其添加到httpd.conf中:
<IfModule mod_fcgid.c>
# 5 minutes for IO timeout, default is 40 seconds
FcgidIOTimeout 300
</IfModule>
#IO超时为5分钟,默认值为40秒
FcgidIOTimeout 300
但这没用。我还发现一个建议说我必须更改/var/www/cgi-bin/cgi\u-wrapper/
的权限,但在/var/www/cgi-bin/
文件夹中我没有cgi\u-wrapper
我在网上搜索了几个小时,但找不到任何有用的东西。有人知道为什么会发生这种情况吗?升级php解决了这个问题