Each WordPress install at Kinsta can have its own WordPress staging environment, which is completely separate from your live production site. This is great for testing new WordPress versions, plugins, code, and general development work. Create a dev site in a matter of minutes and share it with your team.
Prefer to watch the video version?
Create WordPress Staging Environment
We’ve made creating a WordPress staging site as easy as possible. In MyKinsta, click on Sites in the left navigation. You’ll see a list of your sites/installs. Select the site you want to create a staging environment for, click on the Environment selector next to the site name, and select Staging from the drop-down menu.
On the next screen, click on the Create a Staging Environment button to start the process.
Accessing Your Staging Environment
Please wait 10-15 minutes until the staging is created and DNS propagates. You will then have a separate control panel with your connection information, DNS, backups, tools, and plugins for your staging environment.
The URL structure of your staging environment follows this format:
If you have an older staging site, your URL may look like this instead:
If you have SSL enabled on your live site, SSL will also be enabled on your staging site.
You can launch phpMyAdmin from right within MyKinsta. The URL structure for phpMyAdmin staging will appear as follows: https://mysqleditor-staging-sitename.kinsta.cloud.
Delete and Refresh Staging Environment
If you need to remove your staging site, go to Sites > Your Site and switch to the Staging environment. Scroll to the bottom of the page and click the Delete Staging environment button.
In the modal/pop-up that appears, confirm you understand what will be deleted, type the site name followed by a dash and the word “staging” (SITENAME-staging) in the field provided, then click the Delete environment button.
To refresh your staging environment, delete it and create a new one. This newly created staging environment will contain the most recent version of your production database and files for testing. Alternatively, you can restore a backup from your production site to staging.
Push Staging to Live
To overwrite your live site’s database, files or overwrite the entire site with your staging site, you can utilize the push staging to live feature.
Restore a WordPress Backup to Staging
You can also restore your WordPress site from a backup and push it directly to your staging environment. Check out how to restore a WordPress backup to staging. Note: When restoring a live backup to staging, all staging backups will remain intact.
Restart Staging Environment
In certain situations, we may stop a staging environment as part of a server troubleshooting process. If you notice your staging environment has been stopped and see a 501 not implemented or 502 error when visiting your site, you can restart the staging environment in MyKinsta by going to your site’s Info page and clicking Start Staging Environment.
If you are unable to restart your staging environment or don’t see the button in MyKinsta, please open a new chat with our Support team for further assistance.
Important Notes Regarding Staging
When you use the staging environment, there are a couple of important things to be aware of.
1. Page Cache Settings for Staging Sites
Because staging environments are for development purposes, debugging, and testing, Kinsta’s full-page caching and OPcache are disabled by default. If you run website speed tests, you will see higher than average load times since the pages aren’t being served from cache. If you want to enable caching on a staging site, click on the Enable Cache button on the Tools page of your site’s staging environment. When caching is enabled on a staging site, the Clear Cache button will be enabled and can be used to clear the cache.
2. Staging Environment Credentials
Because the staging environment is a copy of your production site, your WordPress admin login credentials will be the same for both your live site and staging site, unless you change them after creating your staging environment.
Staging sites, by default, will have indexing turned off so that they don’t harm the SEO on your live production site. You can check this by going to Settings > Reading in your staging site’s WordPress dashboard. The option to discourage search engines from indexing the site is checked beside Search Engine Visibility. This setting adds the following HTTP header onto your WordPress site.
x-robots-tag:noindex, nofollow, nosnippet, noarchive
Kinsta temporary URLs (including staging URLs) also have a robot-restricting
X-Robots-Tag: noindex, nofollow, nosnippet, noarchive HTTP header, meaning the staging-sitename.kinsta.com URLs won’t be indexed by the search engines.
If you use social scheduling plugins such as CoSchedule or Social Networks Auto Poster, it is recommended that you deactivate these plugins on your staging site. Otherwise, they might start sharing to social networks using your staging URL, which will look something like: https://staging-sitename.temp312.kinsta.cloud. This could then skew your analytics. The Jetpack plugin will automatically run in staging mode on Kinsta staging environments. You will see a message: “You are running Jetpack on a staging server.” While in staging mode, your staging site will act like your production site in virtually all ways, except no data is passed up to WordPress.com, and you cannot disconnect the staging site (to prevent an issue that would lead to problems with your production site).
5. Make Note of Your Login URL
If you’re using a WordPress plugin that changes your default login URL, the custom part of the URL will get copied over to the staging site. Example: http://staging-sitename.temp312.kinsta.cloud/yourcustomlogin
6. Staging Should Be Used For Development/Testing Only
The staging environment should be used for development and testing only. Staging isn’t designed to be used as live production sites, and there will be things that don’t function correctly. Kinsta is not responsible if you try to use a staging environment for a live site.
7. Disk Space Excluded From Plan Total
To give you as much space as possible, staging sites are excluded from our reporting when calculating your total disk space usage. Only live sites count against your disk space usage.
8. Cron Jobs
Server cron jobs from the live environment are not active in the staging environment, so the live site’s cron jobs won’t fire on the staging environment. Additionally, if you modify the crontab in your staging environment and push staging to your live environment, it will overwrite your live environment’s crontab.
If you’re running a WordPress multisite network, depending on how your multisite is set up, it may or may not work with our staging environment.
- If it’s a subdirectory multisite (example.com, example.com/subsite1, example.com/subsite2), it will work fine with our staging environment.
- If it’s a subdomain multisite (example.com, subsite1.example.com, subsite2.example.com), it will work fine, provided the subsites don’t require HTTPS.
- If it’s a domain-mapped multisite (loads different subsites at completely different domains, i.e. example.com, example1.com, example2.com), it won’t work without significant manual setup.
- Option 1: Turn off domain mapping and go back to the standard subdirectory/subdomain setup. Do a search and replace in the database manually.
- Option 2: Set up staging subdomains for each live domain, add all those to the staging site, and run a search and replace in the database manually.