:: Plesk 10.3.1: HTTP POST Requests are Limited to 128kb
Problem:
In CentOS 6.0 you can’t upload files that are bigger than approx. 100kb in PLESK 10.3.1 on a domain that uses PHP with mod_fcgid.
Why?
mod_fcgid changed the maximum POST request length size from 1GB to only 128kb with release 2.3.6. I don’t know any reasons for this, but appearently Parallels forgot to change this setting to a reasonable value…
How to Fix it?
For CentOS 6.0 you have to edit /etc/httpd/conf.d/fcgid.conf and add a line with a new FcgidMaxRequestLen value. Just add it below the other options:
LoadModule fcgid_module modules/mod_fcgid.so <IfModule mod_fcgid.c> <IfModule !mod_fastcgi.c> AddHandler fcgid-script fcg fcgi fpl </IfModule> FcgidIPCDir /var/run/mod_fcgid/sock FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm FcgidIdleTimeout 400 FcgidProcessLifeTime 300 FcgidMaxProcesses 100 FcgidMaxProcessesPerClass 8 FcgidMinProcessesPerClass 0 FcgidConnectTimeout 300 FcgidIOTimeout 450 FcgidInitialEnv RAILS_ENV production FcgidIdleScanInterval 10 # set POST to 1GB FcgidMaxRequestLen 1073741824 </IfModule>