【问题标题】:php curl_exec function causes error 500 (FastCGI server error)php curl_exec 函数导致错误 500(FastCGI 服务器错误)
【发布时间】:2014-11-20 14:00:54
【问题描述】:

我尝试运行 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

我在互联网上找到了一个修复建议,说我必须将此 sn-p 添加到我的 vhosts.conf 中。由于我的 apache 没有 vhosts.conf 文件,我将其添加到 httpd.conf:

<IfModule mod_fcgid.c>
      # 5 minutes for IO timeout, default is 40 seconds
      FcgidIOTimeout 300 
</IfModule>

但这没有帮助。我还发现一个建议说我必须更改/var/www/cgi-bin/cgi_wrapper/ 的权限,但在/var/www/cgi-bin/ 文件夹中我没有​​cgi_wrapper。

我在互联网上搜索了几个小时,但找不到任何有用的信息。有谁知道为什么会发生这种情况?

【问题讨论】:

    标签: php apache cgi fastcgi


    【解决方案1】:

    升级php解决了这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-01-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-23
      • 1970-01-01
      • 2014-04-10
      • 1970-01-01
      相关资源
      最近更新 更多