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:
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:
edit the FcgidMaxRequestLen value. Mine is 10Mb now.
($VAR->domain->physicalHosting->php || $VAR->domain->physicalHosting->phpHandlerType ==
FcgidInitialEnv PP_CUSTOM_PHP_INI <?php
<?php endif; ?>
Let’s reconfigure your domain
Finally, I restarted PSA and Apache2
% service apache2 restart
Go back to your web page and you should be able to upload large files now.
% service psa restart
mod_fcgid: HTTP request length (so far) exceeds MaxRequestLen
mod_fcgid MaxRequestLen ubuntu 12
View more threads in the same category: