【问题标题】:Centos 6 - Plesk 11 - MaxRequestLen - cannot modify mod_fcgidCentos 6 - Plesk 11 - MaxRequestLen - 无法修改 mod_fcgid
【发布时间】:2013-07-08 14:10:26
【问题描述】:

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

[warn] [client] mod_fcgid:HTTP 请求长度 16777368(到目前为止) 超过 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 并添加以下内容:

    MaxRequestLen 20000000

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

【问题讨论】:

  • 请将解决方案移到下面的答案中并将其标记为已接受。

标签: centos plesk mod-fcgid


【解决方案1】:

好的,这是解决方案:

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 重启

【讨论】:

    猜你喜欢
    • 2013-09-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-04
    • 2015-11-04
    • 2016-05-22
    • 2013-09-02
    • 2016-08-09
    相关资源
    最近更新 更多