MaxRequestLen error while uploading files

3

I'm working on PHP and doing upload of files, trying to make a upload of 60M I get the following error:

  

mod_fcgid: HTTP request length 16784592 (so far) exceeds MaxRequestLen   (16777216)

I have my configuration file /etc/apache2/mods-available/fcgid.conf as configured:

... 
FcgidMaxRequestLen 1073741824
MaxRequestLen 1073741824
...

And I have php.ini com

upload_max_filesize = 2048M
post_max_size = 2048M

I've searched everywhere and can not find any resolution to this error.

    
asked by anonymous 04.06.2014 / 17:22

1 answer

2

The FcgidMaxRequestLen policy defines the maximum length of the body of a Request. According to the documentation of the module this directive defaults to 131072 bytes and that before version 2.3 .6 This policy was 2GB as default.

That said you need to reconfigure this value, either directly on the server) or in the configuration file of your VirtualHosts (usually vhost.conf) in>) view, according to with a ServerFault stack , this type of change can not be made within the scope of a simple .htaccess .

It is worth noting that these measures are complementary to those related to uploading files made in PHP.INI.

    
04.06.2014 / 20:04