So you’ve upgrade to Plesk and your users can’t upload large files any more. Upon looking at your log files, you see an fcgi error

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

Where is maxrequestlen (16777216) set in Parallels Plesk 11 and Ubuntu

It’s in a 2 locations… Edit the Apache2, virtualhost config and the virtual host setup files.

edit these 2 files:

and add these lines:

 <IfModule mod_fcgid.c>
   MaxRequestLen 2147483648
   FcgidMaxRequestLen 2147483648

If you have other config info in your module, leave it. I’ve added 2147483648 bytes which is 2gb.

Apparently fcgid settings ARE ALSO in your virtual hosts file here:


<?php if ($VAR->domain->physicalHosting->php || $VAR->domain->physicalHosting->phpHandlerType == 'fastcgi'): ?>
<IfModule mod_fcgid.c>
    FcgidInitialEnv PP_CUSTOM_PHP_INI <?php echo $VAR->domain->physicalHosting->vhostDir ?>/etc/php.ini
    FcgidMaxRequestLen 2147483648
<?php endif; ?>

edit the FcgidMaxRequestLen value. Mine is 2gb now.

Let’s reconfigure your domain with Plesk

 /usr/local/psa/admin/bin/httpdmng --reconfigure-domain

Finally, I restarted PSA and Apache2

% service apache2 restart
% service psa restart

Go back to your web page and you should be able to upload large files now.

mod_fcgid: HTTP request length (so far) exceeds MaxRequestLen

mod_fcgid MaxRequestLen ubuntu 12 plesk 11