Skip to main content

Maximum Upload File Size


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.
If your Webserver allows the modification of PHP settings through a .htaccess file (Apache + mod_php) add the following two lines to a .htaccess in the installed directory:
php_value upload_max_filesize 15M  php_value post_max_size 15M
Otherwise you need to modify your php.ini (usually located in /etc/php5/php.ini, but refer to your administrator or distribution manual for the correct location):
upload_max_filesize = 15M  post_max_size = 15M
After modifying the global php.ini you will need to restart the webserver to have changes take effect.

Apache Users

Set the following parameter to a reasonable value in your php.ini if you get "Upload Failed" errors after setting upload_max_filesize and post_max_size :
memory_limit = 256M ; Maximum amount of memory a script may consume (default: 16MB)

Suhosin Users

Users with Suhosin might need to increase the suhosin.post.max_value_length value as well.

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.

FCGI Users

An updated default FastCGI restriction, which limited the maximum body size of a HTTP request results in internal server errors. You may set new values in your apache, i.e.
    
FcgidMaxRequestLen 26214400    
FcgidConnectTimeout 60  
for 25 MB and 60 sec timeout.
Source: https://www.dokuwiki.org/faq:uploadsize

Popular posts from this blog

Centos 5 Live CD, Rescue CD or Workstation

Have you ever try CENTos 5 Live CD? I had tried it. This Centos 5 Live Cd can be use as rescue cd and workstation cause it based on CentOS 5.0 i386 distribution. The following software that include with it : OpenOffice.org 2.0.4 Firefox 1.5.0.10 Thunderbird 1.5.0.10 Gaim-2.0.0 Scribus-1.3.3 xchat-2.6.6 k3b-0.12.17 Gimp-2.2.13 And for rescue, there is another software or tool : Full set of LVM and RAID command line tools QTParted Nmap and NMapFE Graphical Traceroute samba-3.0.23c with cifs kernel support to connect to Windows file shares System Log Viewer GUI Hardware Device Manager Unfortunately, in first release, this Centos Live CD doesn't hvae installer like Fedora Live CD.  And i have a problem when using it as workstation, i can connected to network just for a while. But, when i restart network service it worked but for a while and then it was drop. You have a same problem or solution ? Please tell me.  I will be appreciated it. Last, if you want to use root account, use thi...

Installation Of SMS Server Tools 3 And PlaySMS On Debian Server

This tutorial will show you how you can set up an SMS server on Debian with playsms and smstools. In my example I have used an old Nokia 5140i with a USB datacable. What we need before we start is apache2, mysql server, php5, lynx, wget, curl. Now we install updates, and install dependencies: apt-get update apt-get upgrade apt-get install apache2 mysql-server php5 php5-cli php5-cgi php-pear php-db phpmyadmin make gcc sendmail lynx wget curl Now create a password for mysql root user, and remember it. Installing playsms adduser playsms mkdir -p /var/www/playsms mkdir -p /var/spool/playsms mkdir -p /var/log/playsms chown -R www-data /var/www/playsms chown -R www-data /var/spool/playsms chown -R www-data /var/log/playsms And next download latest version of playSMS, find latest here, or grab my url: http://sourceforge.net/projects/playsms/ wget http://downloads.sourceforge.net/project/playsms/playsms/Version%200.9.5.2/playsms-0.9.5.2.tar.gz This will extract playsms to /usr/local/src. tar ...

Rapidshare Premium Link Generator

Rapidshare Premium LINK Generator . Rapidshare.com is one of the biggest site that allow you to upload and share files with vary sizes. From rapidshare, you also can download files that another person upload the re. There are 2 kinds of user can download from rapidshare. First, free user, this user have limit features from rapidshare. Limit bandwidth, limit connection, etc. Second, premium user. Premium user have many features that free user doesn't have. If you want to be a premium user, you have to buy it from the web. You can use this link to buy premium account or from reseller that near you. But if you have not enough money to buy it, you can use Rapidshare Premium Link Generator . This is a website that give free service for anyone to generate rapidshare link from free to premium, so anyone can download with premium feature. <br><br>I...