≡ Menu

Apache – FastCGI : Error 500, Internal server error

If you try to upload a file through http to your web site running on Apache2/PHP5/mod_fcgid, and in your browser you get the error:

In Apache’s error log you see something like

First check in your php.ini that upload_max_filesize has a big enough value for your upload. By default it’s

Then open your Apache vhost configuration and add the FcgidMaxRequestLen directive with a big enough value (in bytes), for example

which equals roughly 2 MB.

The default value is

which is very small (see http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidmaxrequestlen).

Finally restart Apache.

{ 0 comments… add one }

Leave a Comment

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.