Translations of this page?:

Maximum Upload File Size

:?: Is there an easy way to increase the maximum file upload size (currently 2 megabytes)?

:!: The file upload size is set in your PHP configuration, php.ini, with the parameter upload_max_filesize.

The setting can be changed in a number of different places depending on your webserver and the method it uses to run PHP.

E.g.

For Apache & mod_php. add the following two lines to .htaccess in the installed directory:

php_value upload_max_filesize 15M
php_value post_max_size 15M

For CGI PGP (but not fast_cgi), add the following two lines to a local php.ini

upload_max_filesize = 15M
post_max_size = 15M

Red Hat E5 Servers

Red Hat ES users will also want to check (and probably increase) LimitRequestBody in /etc/httpd/conf.d/php.conf, which is set by default to a fairly low value. This directive specifies the number of bytes from 0 (meaning unlimited) to 2147483647 (2GB) that are allowed in a request body.

Ubuntu/Debian Servers

Modifying .htaccess had no effect.

Modify: /etc/php5/apache2/php.ini

post_max_size = 15M
upload_max_filesize = 15M

See Also

For more details check the support section of your webhost, the documentation for your webserver and the instructions for configuring PHP at www.php.net.

 
faq/uploadsize.txt · Last modified: 2010/02/19 18:59 by 74.93.99.97
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate