upload_max_filesize in wordpress
Wordpress

Upload max filesize in wordpress fixed

Today while I am migrating my ProDomainBlog from Justhost shared hosting to Digital Ocean VPS hosting I had couple of problems one big among them is upload_max_filesize in wordpress which The uploaded file exceeds the directive in php.ini” message. I got this error message while I am installing my WordPress theme (Splash from MyThemeshop), I know one thing, that is there is no problem with the theme because installed it couple of days back at my Niche domain Best Motorcycle Gloves. So what is the problem at my new host why I am getting following message?

“The uploaded file exceeds the upload_max_filesize in wordpress directive in php.ini”

I tried couple of things but nothing worked out and finally I found out the answer for this and sharing the same thing step by step here.

  1. Connect to your Digital Ocean Droplet using SSH command from your terminal window ( Check your digital ocean email for how to connect details and password)
  2. After login type following command in your terminal window: sudo nano /etc/php5/apache2/php.ini
  3. Now look for “upload_max_filesize = 2M” text and replace it with following lines of code upload_max_filesize in wordpress= 64M post_max_size = 64M max_execution_time = 300
  4. Restart your Apache 2 server using following command sudo service apache2 restart

Other hosting platform such as GoDaddy have different options of hosting websites. They host with Windows operating system, and well with Linux. The same issue occur as long as you are using wordpress to host you website

If 64M is not working than try 10MB.

That’s it. Now upload your theme. It will work without any problem. Note: This worked for me, I am using Ubuntu WordPress application image as my Droplet at DigitalOcean. You can try this at other hosts but I didn’t tried it anywhere else.

Find tips on Google Page rank to increase your website traffic

Leave a Reply

Your email address will not be published. Required fields are marked *