Increasing Server Timeout Limits

All SpinupWP servers are configured with a default timeout limit of 30 seconds. However, you may increase this limit if you are experiencing “504 Gateway Time-out” errors.

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

PHP

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

max_execution_time = 30

This setting can also be changed on a per-site basis.

Nginx

Open your nginx.conf file and add the following directive within the http block:

fastcgi_read_timeout 60s;

This should be greater than or equal to the value set in max_execution_time.

Reload Services

Reload both PHP and Nginx for the changes to take effect:

sudo service php{PHP_VERSION}-fpm reload
sudo service nginx reload

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.