Each WordPress install at Kinsta can have its own 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.
Create WordPress Staging Environment
Creating a staging site is incredibly simple. Just click on “Sites” in the left navigation. You’ll see a list of your sites/installs. Click on the one you’d like to add a staging area to. Click on “Staging” from the drop down menu at the top right, then click on the “Create a Staging Environment” button.
The URL structure for every staging area appears as follows: https://staging-sitename.kinsta.com. If you have SSL enabled on your live site, SSL will also be enabled on your staging site.
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. You can launch phpMyAdmin from right within the dashboard. The URL structure for phpMyAdmin staging will appear as follows: https://mysqleditor-staging-sitename.kinsta.com.
If you would like to push your staging site to live you can utilize the “push staging to live” feature.
Delete Staging Environment
You can then easily remove your staging site by clicking “Delete Staging Environment” from the dashboard. When deleting a staging site all of its data will be completely removed, including the databases and files. To delete this environment type the site name, followed by a dash and the word “staging” (SITENAME-staging) in the field below and then click the “Delete This Environment” button.
Important Notes Regarding Staging
When you use the staging environment there are a couple important things to be aware of.
1. Caching is Disabled on Staging Sites
Due to the fact that staging environments are for development purposes, debugging, and testing, caching is disabled. If you try to run website speed tests you will see higher than average load times due to the fact that the pages aren’t being served from cache.
2. Staging Environment Stopped
If for some reason your staging environment is stopped you might see the following error: 501 not implemented.
501 not implemented error
Under your site’s Info tab you will see the option to “Start staging environment.”
Start staging environment
Staging sites by default will have indexing turned off so that they don’t harm the SEO on your live production site. Under “Reading” in the settings of your staging’s WordPress dashboard the search engine visibility is checked. This settings adds the following HTTP header onto your WordPress site. x-robots-tag:noindex, nofollow, nosnippet, noarchive
Kinsta temporary URLs also have a robot-restricting robots.txt, meaning the staging-sitename.kinsta.com URL’s won’t be indexed by the search engines.
4. Social Scheduling Plugins
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: http://staging-sitename.kinsta.com/. This could then skew your analytics.
5. Staging Should Be Used For Development/Testing Only
The staging environment should be used for development and testing only. They are not 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 staging for a live site.