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.

Share:
6,924
Germaike
Author by

Germaike

Updated on September 18, 2022

Comments

  • Germaike
    Germaike almost 2 years

    server :
    Plesk panel 10.3.1,
    PHP 5,
    Apache2

    When 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
    Germaike almost 13 years
    when 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
    l'L'l almost 13 years
    Is there a php.ini in /usr/share/php?
  • Germaike
    Germaike almost 13 years
    no, 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
    l'L'l almost 13 years
    The 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
    Germaike almost 13 years
    These 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
    benpalmer over 11 years
    Mate this saved me on my new ubuntu 10.04 on linode