Important: the php_value post_max_size must be greater than php_value upload_max_filesize, since any upload will be part of the post variables.

In case you get an “Error 500: Internal server error” after placing the above lines in the .htaccess, it probably means that you server’s configuration is too restrictive.

Open your httpd.conf (or apache2.conf), look for a section such as

...
AllowOverride Indexes AuthConfig Limit FileInfo
...
Deny from all

...
AllowOverride Indexes AuthConfig Limit FileInfo
...
Deny from all

and add “Options” to the allow override directive, as:

AllowOverride Indexes AuthConfig Limit FileInfo Options

AllowOverride Indexes AuthConfig Limit FileInfo Options

Also, if you don’t have it, add:

Deny from all

Deny from all

to the same section. This will prevent the possibility of any file beginning with .ht* to be served o the browser, even if you forget to change it’s permissions.

Related

This entry was posted
on Friday, February 27th, 2009 at 1:26 PM and is filed under Uncategorized.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.