Our forum magentoexpertforum.com meet the problem with images upload these days. The problem is we want to get the forum speed fast as much as possible so that we use CDN and server side fast-cgi without mod_rewrite activated.

One of the problems of fast-cgi is the default upload file is too small and we meet the problem when upload file all of time. we already fix it with this way and now share with you guys.

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:

HTML Code:
<IfModule mod_fcgid.c>
  MaxRequestLen 20971520
  FcgidMaxRequestLen 20971520
If you have other config info in your module, leave it. I’ve added 20971520 bytes which is 10Mb.

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

PHP Code:
$VAR->domain->physicalHosting->php || $VAR->domain->physicalHosting->phpHandlerType == 
): ?>
<IfModule mod_fcgid.c>
FcgidInitialEnv PP_CUSTOM_PHP_INI <?php 
$VAR->domain->physicalHosting->vhostDir ?>
FcgidMaxRequestLen 20971520 
<?php endif; ?>
edit the FcgidMaxRequestLen value. Mine is 10Mb now.

Let’s reconfigure your domain

--reconfigure-domain yourdomain.com
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

View more threads in the same category: