diff --git a/install/dist/tpl/gentoo/apache_apps_fcgi_starter.master b/install/dist/tpl/gentoo/apache_apps_fcgi_starter.master
index c4800aaeebdec8a1af4c529f6557c7f11796d6a9..57e358b6799d2740ffc41a047f26e068076451db 100644
--- a/install/dist/tpl/gentoo/apache_apps_fcgi_starter.master
+++ b/install/dist/tpl/gentoo/apache_apps_fcgi_starter.master
@@ -3,4 +3,5 @@ PHPRC=/etc/php/cgi-php5/
 export PHPRC
 export PHP_FCGI_MAX_REQUESTS=5000
 export PHP_FCGI_CHILDREN=1
-exec /usr/bin/php-cgi -d magic_quotes_gpc=off
\ No newline at end of file
+export PHP_FCGI_MAX_REQUESTLEN=15728640
+exec /usr/bin/php-cgi -d magic_quotes_gpc=off
diff --git a/install/tpl/apache_apps_fcgi_starter.master b/install/tpl/apache_apps_fcgi_starter.master
index 8ef1cbbc7624f06f48e1185d6987ec694a1e57de..4ddb6637b69a2c920d9debe75afac4e3a8ef5c21 100644
--- a/install/tpl/apache_apps_fcgi_starter.master
+++ b/install/tpl/apache_apps_fcgi_starter.master
@@ -3,6 +3,7 @@ PHPRC={fastcgi_phpini_path}
 export PHPRC
 export PHP_FCGI_MAX_REQUESTS=5000
 export PHP_FCGI_CHILDREN=1
+export PHP_FCGI_MAX_REQUESTLEN=15728640
 exec {fastcgi_bin} -d  \
     -d disable_classes= \
     -d disable_functions= \