apache - 服务器错误 : Connection reset by peer | End of script output before headers

标签 apache centos php-7.1 xenforo fcgid

我的服务器:

  • CentOS
  • 网络服务器:Apache 2.4.26 和 Php 7.1.9,运行 服务器 MPM:事件 ;使用 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
    

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

    最佳答案

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

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

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

    关于apache - 服务器错误 : Connection reset by peer | End of script output before headers,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46069590/

    相关文章:

    php - 如何使 openssl_encrypt 将输入填充到所需的 block 大小?

    php - 准备在 PHP 7.2 中删除 Mcrypt

    php - 当文件本身不存在时,如何显示自定义 404 页面未找到页面?

    apache - QGIS 服务器不工作

    java - 如何在 Apache Tomcat 8.0.27 中使用 @WebServlet 注解

    symfony - 调用未定义函数 Doctrine\ORM\Mapping\Driver\simplexml_load_file()

    apache - mod_wsgi.so : Cannot load mod_wsgi. so 进入服务器 : libpython2. 5.so.1.0: 无法打开共享对象文件: 没有这样的文件或目录

    text - 如何使用 sed 从分隔文件中提取字段

    linux - Samba 4.5 - 错误(ldb): uncaught exception - operations error (password_hash. c:2816)

    macos - 适用于PHP7 MacOS的SSH2?