Report this

What is the reason for this report?

How can I increase the upload_max_filesize in WordPress?

Posted on November 10, 2013

I changed it here:

sudo nano /etc/php5/apache2/php.ini

but it didn’t work. I am uploading a plugin of a size bigger than 2M.

I tried the .htcaccess, but I get a 500 internal error.

I have Ubuntu 12.04

Thanks



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Check out ways to increase Max upload limit in WordPress http://prolifekits.com/how-to-increase-the-upload_max_filesize-in-wordpress/

Hi, all

You can create a php info file in order to check the current values and check which is the php.ini file in use. Create the following file in your public_hmtl folder - phpinfo.php and put the following code inside it:

<?php
phpinfo();
?>

Then check for the current value of upload_max_filesize you can also check which is the configuration file - php.ini that is currently used and apply the changes there (if the site using the global php.ini file and you change the values for these settings this will make the changes globally for all sites). Ideally you would like to have the following values:

upload_max_filesize = 64M

Hope that this helps! Regards, Alex

I did it, and I was able to upload a new theme, but later when i try to upload a picture 500kb , again the <br>exceeds the maximum upload size for this site! error. <br>Why? <br>Any suggestion? if yes, please include shh command. <br>thanks

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.