How to Increase Bitnami WordPress Upload Limit?

Loading...

If you are using Bitnami WordPress in any Cloud Platform like Google Cloud Platform, Amazon Web Services (AWS), and Microsoft Azure, you will find the upload limit; there is by default only 40 MB configured in your Bitnami WordPress.

WordPress media upload limit

So we are going to increase the file upload size 40 MB to 400 MB.

If you are using Google Cloud Platform or Other, use the same procedure shown below the images.

Connect Compute Engine with SSH

ssh connect gcp

If you are you using cloud hosting on any platform, then this step would work properly.

editing php.ini by sudo nano /opt/bitnami/php/etc/php.ini
sudo -i
sudo nano /opt/bitnami/php/etc/php.ini

Open WordPress ‘php.ini.

After executing the command there will be open a page of ‘php.ini.’

search post max size. wordpress

Click the keyboard icon on your screen showing as above the image, and then a pop up will open showing keyboard shortcut, choose ctrl+w and search ‘post_max_size‘ and then ‘upload_file_size.’

Modify WordPress PHP file upload limit

wordpress php before editing post size

Above the image showing the default Bitnami WordPress post upload maximum size, 40 MegaByte. We will modify this code by simply adding one extra zero before “M.” That’s mean the size will be 400M.

wordpress php editing post size

You can see the image above. The value has been changed, and now click by your keyboard ctrl+x then Y, and then hit the enter key to save modifications.

Restart Bitnami PHP server

bitnami wordpress php server
sudo /opt/bitnami/ctlscript.sh restart

Execute the following command and voila, now you can upload a huge size of the data file to your WordPress.

Loading...
Checking Media Upload Size on WordPress

You can increase as much you need, more than 400 Megabyte.

How to increase the WordPress upload limit by Plugin?

wordpress new plugin add
Adding new plugin

Go to WordPress dashboard and click Plugin then click Add New.

File Manager Plugin

Search new plugin by typing “file”, and above shown the image, as it as plugin install and activate. The plugin name is “File Manager“.

open-file-manager

After activating the plugin, open the WP File Manager dashboard, and find the .htaccess file.

edit htacess file on WordPress directory

Click the Pen tool and edit the .htaccess and add the following value.

php_value upload_max_filesize 500M
php_value post_max_size 500M
php_value max_execution_time 300
php_value max_input_time 300
add-the-module-for-maximum-value

Note:- This last method will work; there is no guarantee. Because this method mostly works with cPanel hosting and others, but there is no guarantee on Cloud Hosting.

Wrapping Up

In most WordPress websites, you will get a limited file upload size, so in this article, we have explained how to increase the upload limit.

If you are using shared hosting like Namecheap or Hostinger, then there is no need to worry or configure yourself. You need to contact support and the rest of the work they will do for you.

Read More:

Follow my blog with Bloglovin

Loading...

Pronay

Hi!
I am a blogger and a digital marketer based in Delhi, India. I have a passion for blogging and influencing people from my work. I am a student pursuing a Bachelor's Degree in Science from Delhi University.

Leave a Comment