gpt4 book ai didi

Centos 6 - Plesk 11 - MaxRequestLen - 无法修改 mod_fcgid

转载 作者:行者123 更新时间:2023-12-04 19:31:32 25 4
gpt4 key购买 nike

我刚刚在 Centos 6 上安装了 Plesk 11,我无法上传大于 17-18 Mo 的文件。

[warn] [client ] mod_fcgid: HTTP request length 16777368 (so far) exceeds MaxRequestLen (16777216)



我这样设置我的 php.ini:
post_max_size = 150M

file_uploads = On

upload_max_filesize = 128M

memory_limit = 256M
  • 我尝试在 /etc/httpd/conf.d/fcgid.conf 中进行修改
    通过添加
    FcgidMaxRequestLen 30000000

  • 并重新启动apache;我仍然遇到同样的错误。

    这是我尝试过的:
  • 我发现这个文件中也设置了 FcgidMaxRequestLen
    /usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php
    更改,保存,apache 重新启动.. 同样的错误
  • 我尝试使用不同的大小设置 FcgidMaxRequestLen,1 giga,20 mo ect 仍然相同的错误。
  • 我尝试更改 http.conf 并添加以下内容:

    < IfModule mod_fcgid.c >
    MaxRequestLen 20000000

  • 我正在为每一个更改重新启动 apache。一定有一些我丢失的配置文件,但我不知道在哪里

    最佳答案

    好的,这是解决方案:

    http://stuffthatspins.com/2013/01/22/exceeds-maxrequestlen-16777216-plesk-mod_fcgid-unable-to-upload-large-files/

    用 centos 重新配置域:

    /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain yourdomain.com

    /sbin/service apache 重启

    /sbin/service psa 重启

    关于Centos 6 - Plesk 11 - MaxRequestLen - 无法修改 mod_fcgid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17528808/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com