I installed drupal and using the site successfully. unexpectedly i could not upload images more than 100kb size.
In file upload size: i mentioned that maximum file size of upload file is "5MB".
I could not upload image more than 100kb for all content type.

Please help me to solve this. i have tried to find the similar issue in all drupal sites. no one has solved it. Please help me.


Error screen says:
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache Server at webneel.com Port 80"


TheOptimizer’s picture

I have encountered this error as well. And indeed, there seems to be no solution for this, till I digged a bit deeper.

Probably your PHP runs as FastCGI application. Then probably you are affected by this:

In FastCGI, for some reason, the default value has changed from 1GB to 130kB as you can read on the link above:

Before 2.3.6, this defaulted to 1GB. Most users of earlier versions should use this directive to set a more reasonable limit.

You should have following error in your error.log:
[Thu Feb 09 19:01:04 2012] [warn] [client] mod_fcgid: HTTP request length 131860 (so far) exceeds MaxRequestLen (131072), referer: .........

There are 2 ways you can solve this: change FastCGI or make PHP run as apache module. Here I explain how you can change your server configuration.

You should add following to your server config or virtual host config:

<IfModule mod_fcgid.c>
  # 20MB should be enough
  MaxRequestLen 20000000

You cannot add this to your .htaccess file, so you will need to have access to your server.

Please let me know if this helps.

mdupont’s picture

Category:bug» support
Priority:Critical» Normal
rionka’s picture

Issue summary:View changes

Thank you for you help, man! I was coming through this image upload problem in Commerce Kickstart 2.14 (based on drupal core 7.27) installed on my VPS for the last 3 days. I wasn't able to find anything really helpful what wouldn't direct me back to my memory_limit and other stuff in php.ini (didn't help). Seems that it was really the FastCGI problem: after switching to Mod_PHP (loading as Apache module) my upload works. At this moment the problem it's SOLVED. Thanks a lot.