WordPress Media: Increase Maximum Upload File Size

In WordPress Media Manager, the default settings for “maximum upload file size” seem to come out different for each installation, depending on the server. Most often, the max size is descent enough to live with, but after a recent install was only offering an insultingly low 2MB, I figured it’s best to be prepared to increase this value quickly & painlessly.


1. Locate a file called php.ini. If you have SSH access, that’s great. You may find it with this:
php -i | grep php.ini
Otherwise, logon to your server via your FTP client and look in the root folder, as well as public_html. Don’t worry if you can’t find it – you can make one yourself by creating a text file and saving it as php.ini.

2. Insert the following text into the php.ini file:

memory_limit = 100M
upload_max_filesize = 64M
post_max_size = 64M
file_uploads = On

Go ahead and change the numeric values to your preferences.

3. Place the modified file. There are a number of locations to place the file, and different things seem to work for different people. If you modified a pre-existing file, try putting it back where you found it. Of course I recommend what worked for me, which is placing it inside the /wordpress/wp-admin folder. This may also be desirable because it will only affect that area of your site.

4. Modify wp-config.php. Add the following code to wp-config.php in order to match the desired file size:

/* Increases max file size for uploads */
define('WP_MEMORY_LIMIT', '64M');

Again, go ahead and change the numeric value to fit your preference.

5. Troubleshooting. If it doesn’t work right away, be sure to experiment with the location of the php.ini. One of these four locations should work: Root folder, public_html, wordpress (your wordpress install), or wordpress/wp-admin. In some cases, the .ini file may need to be renamed to php5.ini. Try both files in each location until the WordPress Media Manager reads “Maximum upload file size: 64MB”.


sumber : http://www.lanexa.net/2011/04/wordpress-media-increase-maximum-upload-file-size/


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s