Increasing the Server Max Upload Size

All SpinupWP servers are configured with a default maximum upload size of 64MB. However, you may increase this limit if you need to allow larger files to be uploaded via the Media Library.

Server Max Uploads

This setting cannot be adjusted via the SpinupWP UI, so start by connecting to your server using SSH, then update your PHP and Nginx configs, as follows:

PHP

Open your php.ini file and modify the following values:

upload_max_filesize = 64M
post_max_size = 64M

These settings can also be changed on a per-site basis.

Nginx

Open your nginx.conf file and modify the following directive:

client_max_body_size 64m;

For larger uploads you may also need to increase the client timeout:

client_body_timeout 30s;

Reload Services

Reload both PHP (replacing php7.2 with the desired version) and Nginx for the changes to take effect:

sudo service php7.2-fpm reload
sudo service nginx reload

Repeat As Needed

Repeat for each SpinupWP server where you need to increase the maximum upload limit.

Start Your 7-Day Free Trial

Start your SpinupWP journey today and spin up your first server within minutes.

Start Your Free Trial

No credit card required

Subscribe to get the latest news, updates and optimizations in performance and security.

Thanks for subscribing 👍

To receive awesome stuff, you'll need to head to your inbox and click on the verification link we sent you.
Make sure to check your "spam" folder or your "promotions" tab (if you have Gmail).
If you're still having trouble, then messages us at sudo@spinupwp.com.

You are already logged in

It looks like you are already logged in to SpinupWP.

Please log out of this account to continue.

Registration Successful

Thanks for registering for a new
SpinupWP account.

Before getting started, could you verify your email address by clicking on the link we just emailed to you?

SpinupWP

Free Trial

Start Your 7-Day Free Trial

No credit card required. All features included.

By signing up to SpinupWP, you agree to our Terms and Conditions.
For privacy related information, view our Privacy Policy.