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:
/etc/apache2/mods-available/fcgid.conf
/var/www/vhosts/your_domain_name_here/conf/last_httpd_ip_default.include
and add these lines:
<IfModule mod_fcgid.c> MaxRequestLen 2147483648 FcgidMaxRequestLen 2147483648 </IfModule>
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:
/usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php
<?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 </IfModule> <?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 yourdomain.com
Finally, I restarted PSA and Apache2
% service apache2 restart and % 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