How to Increase Bitnami WordPress Upload Limit?


🖊 Written by Updated on

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

wordpress media upload limit
WordPress Drag & Drop Upload System showing maximum upload size

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

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

Connect Compute Engine with SSH

ssh connect gcp
GCP SSH Bar

If you are you using cloud hosting then this step would work properly.

editing php.ini by sudo nano /opt/bitnami/php/etc/php.ini
SSH Terminal using the command
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
Searching “post_max_size”

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

Also Read:-

Modify WordPress PHP file upload limit

wordpress php before editing post size
Showing default post max size value

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

wordpress php editing post size
Modifying default value to custom value

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
PHP Server restart command
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.

after wordpress limit increase
After Modifying the Maximum upload file size value

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

Bonus

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.

Search-paluging-by-file
Searching “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
Opening file manager dashboard

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

edit-.httscces
Finding the “.htaccess” file in the file manager & editing

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

add-the-module-for-maximum-value
Adding the PHP value in “.htaccess”
php_value upload_max_filesize 500M
php_value post_max_size 500M
php_value max_execution_time 300
php_value max_input_time 300

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.

Thank You

Follow my blog with Bloglovin

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Share via
Copy link
Powered by Social Snap