Unable to upload files larger than 128KB error because of MaxRequestLen update
6,924
Solution:
FcgidMaxRequestLen -->This is causing the problem. Before updating to the newest version, it was default set to 1gb. Now it is 128kb. Add the following to the file /etc/apache2/conf.d/fcgid.conf :
FcgidMaxRequestLen 1073741824
This wil give you a limit of 1gb. Next, restart your apache.
Author by
Germaike
Updated on September 18, 2022Comments
-
Germaike almost 2 years
server :
Plesk panel 10.3.1,
PHP 5,
Apache2When I updated the plesk panel, I noticed a strange error while uploading files. My server does not allow any file to be uploaded above the 128kb, even when the settings in
/etc/php5/apache2/php.ini
are set to higher sizes.my settings:
upload_max_filesize = 10M, post_max_size = 8M, memory_limit = 128M
The error is really not clear. In drupal this is returned: http error 0 (when uploading I receive a 500 internal server error)
-
Germaike almost 13 yearswhen i upload a smaller file like 50kb, it just saves it on the server. When i type whereis then i receive this:/usr/bin/php /usr/lib/php /usr/share/php /usr/share/man/man1/php.1.gz
-
l'L'l almost 13 yearsIs there a php.ini in /usr/share/php?
-
Germaike almost 13 yearsno, i also did a sysinfo with php and found out he uses /etc/php5/cgi/php.ini but we have the same settings in this file. any other ideas? the other php.ini's are not filled or not in the dir.
-
l'L'l almost 13 yearsThe error you described also could mean that your Drupal is not configured correctly. Check the settings on that and refer to the image above for reference. Also try what Janne has suggested ~
-
Germaike almost 13 yearsThese fields are empty and set to the default php setting by drupal. I will try out janne his anwser. Thx in advance for all the help.
-
benpalmer over 11 yearsMate this saved me on my new ubuntu 10.04 on linode