Version 3 (modified by Jamie McClelland, 11 years ago) (diff)


You may need to modify your Web Configuration if you're uploading files to a Drupal site and getting an error message like this:

500 Internal Server error

And your error log file reports something like this:

mod_fcgid: HTTP request length 26214543 (so far) exceeds MaxRequestLen (26214400)

The HTTP request through your Drupal interface contains all data being uploaded, such as your file. The default limit is 15MB (this is true even if you've modified your php.ini setting to allow a higher amount).

So if you are uploading a file that is more than 15MiB, the request length is going to also be more than 25MiB.

You must modify a configuration setting in mod_fcgid through the Member's Control Panel. If you know you are going to need to be uploading files larger than 25MiB, that setting needs to be adjusted by adding this to your Web Configuration:

FcgidMaxRequestLen 36700160

Note that the value, in this case 36700160, is expressed in bytes. 36700160 is 35 Mbytes.