Change maximum upload size on Vultr One-Click

staff
26 May 2021

Vultr’s One-Click WordPress application simplifies the entire WordPress installation process. In just a few clicks, you can get WordPress working successfully.

However, the script that handles the installation has some unique features that can be tricky when making changes to the standard installation.

In this article, I will show you how to change the maximum upload size on Vultr One-Click WordPress in just a few steps.

how to change the maximum upload size on Vultr One-Click WordPress
Image by Kevin Phillips from Pixabay

Prerequisites

This tutorial is assuming that you have downloaded and installed a Vultr One-Click WordPress server and are logged in as root.

1 – Check the current maximum upload size in WordPress

    The easiest way to check the current maximum upload size of your site is to log into the WordPress dashboard and from there go to Media> Library. From there, click the Add New button to activate the media upload tool.

    You can also go directly to Media> Add New and you will see the same message displayed below.

    You can see the maximum 2G upload file size here.

    Exit the dashboard.

2 – Edit the configuration file

    To do so, log into your WordPress root directory using SSH or FTP and locate the /etc/php/7.4/fpm/pool.d/www.conf file.

    Open the /etc/php/7.4/fpm/pool.d/www.conf file with any text editor. At the bottom of the file you will find two lines:

            php_admin_value [post_max_size] = 2G

            php_admin_value [upload_max_filesize] = 2G

    Change the value of both lines: from 2G to 3G, for example.

    Don’t forget to save the file after making the changes.

3 – Make the changes take effect

    To make the changes take effect, you must restart the php service:

            sudo service php7.4-fpm restart

4 – Check the new maximum size of the upload file of your WordPress site

    To do this, follow the same steps we discussed above to verify the maximum upload file size in WordPress.

    Go to your media library in the WordPress dashboard and check if the maximum upload file size limit has changed.

    It has changed!

    You can also go to the Site Status Information panel and check for the same thing under Media Management and Server dropdown menu