Report this

What is the reason for this report?

How I can fix this issue "The uploaded file exceeds the upload_max_filesize directive in php.ini"

Posted on May 28, 2014

Plz anyone can help me on how to fix this issue on WordPress “The uploaded file exceeds the upload_max_filesize directive in php.ini”. Whenever I install a theme, I get this error.



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.

Login to SSH

  1. open file /etc/php5/apache2/php.ini
  2. find upload_max_filesize = 2M (default is set to 2MB)
  3. Change 2M to 16M
  4. Save (press control O to write out)
  5. exit (press control x to exit)
  6. restart Apache by using command (sudo service apache2 restart) Done!

Try uploading again :)

If you restart apache after making the change: sudo service apache2 restart

It takes affect right away!

https://drupal.org/node/97193 explains how to increase the max upload file size, php.ini should be somewhere around /etc/php5

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.