服务器错误:通过对等方重置连接标题之前的脚本输出结束

时间:2017-09-06 07:48:26

标签: apache centos php-7.1 xenforo fcgid

我的服务器:

  • CentOS的
  • Webserver:Apache 2.4.26和Php 7.1.9,运行 Server MPM:event ;使用 mod_fcgid

我运行Xenforo,但它无法创建新线程!每个动作创建新线程都会在PHP日志中输出错误:

[fcgid:warn] [pid 10863:tid 140645245003520] (104)Connection reset by peer: [client ] mod_fcgid: error reading data from FastCGI server, referer: https://mywebsite.com/create-thread
[core:error] [pid 10863:tid 140645245003520] End of script output before headers: index.php, referer: https://mywebsite.com/create-thread

并在error_log中

[fcgid:error] [pid 9161:tid 140645850757056] mod_fcgid: process /usr/local/safe-bin/fcgid71.sh(11688) exit(communication error), get unexpected signal 11

请帮我解决这个问题!谢谢!

1 个答案:

答案 0 :(得分:1)

我设法通过添加 FcgidBusyTimeout 解决了这一问题。以防万一有人对我有类似的问题。

这是我在apache.conf上的设置:

<VirtualHost *:80>
.......
<IfModule mod_fcgid.c>
FcgidBusyTimeout 3600
</IfModule>
</VirtualHost>