In this post
Use a WordPress staging site to test updates first if your website brings in enquiries or sales. A staging site is a private copy of your live site. You change it, test it and only then repeat the change on the real site. If an update breaks something, your customers never see it.
What is a WordPress staging site?
The WordPress hosting handbook describes staging environments as a copy of a site that people use to check updates, themes and plugins before changing the live site. The copy has its own web address, so visitors and search engines should not stumble across it.
When is a staging site worth it?
Use one when a mistake would cost you money or trust. Good examples:
- an online shop taking orders;
- a site that depends on booking or enquiry forms;
- big changes such as a new theme, a PHP version change or a major plugin update;
- a redesign you want to review before launch.
A simple five-page brochure site may be fine with careful updates and a good backup. See our guide on how often to back up a WordPress website for that side of it.
How to set up a staging site
1. Check your hosting first
Many hosts offer staging as a one-click feature, and the WordPress hosting handbook notes that many give customers a staging copy. Look in your hosting control panel for the word "staging". Availability depends on your host and plan.
2. Take a backup
Back up the live site before you start, whatever method you use. A staging site is not a backup.
3. Create the copy
Use your host's staging tool, or a staging plugin. The copy should include your files and database.
4. Keep it away from search engines and customers
Make sure the staging copy is not indexed. A password on the staging address is the safest approach. Do not let it send real emails or take real payments. Check how your payment and email settings behave on the copy before testing orders.
What a staging site will not tell you
A staging copy is a good test, but it is not perfect. It may run on different server settings from the live site, and it will not have real visitors, real traffic or live payment activity. Some problems only show up under real use, such as a slow page when many people visit at once. That is why you should still check the live site straight after any update, and keep a recent backup ready in case you need to roll back.
Who should manage it?
If you are comfortable with your hosting control panel, a one-click staging tool is within reach for most owners. If your site is complex, uses custom code or takes a lot of orders, it is worth asking a developer to handle updates so that testing is done the same way each time.
How to test an update safely
- Refresh the staging site from live, so you are testing current content.
- Apply the update on staging, one change at a time where you can.
- Click through the pages that matter: home page, contact form, checkout, menus.
- Test on a phone as well as a computer.
- If everything works, repeat the same update on the live site, ideally at a quiet time.
- Check the live site again afterwards.
Testing one change at a time matters. If three plugins update together and the site breaks, you will not know which one caused it.
The catch: pushing changes back to live
Moving changes from staging to live can overwrite things on the live site. If your site takes orders or comments, new data on the live site could be lost when the staging copy replaces it. The hosting handbook also warns that WordPress stores URLs in the database, which is a common pitfall when copying a site between addresses.
For this reason, many people repeat the tested update on the live site by hand rather than pushing the whole staging copy across. If your site changes daily, ask your developer which approach suits it.
Staging and automatic updates
If you are deciding whether to let plugins update themselves, read our guide to WordPress plugin auto-updates. A staging site is one way to reduce the risk either way.
A short checklist
- Backup taken from the live site.
- Staging copy is private and blocked from search engines.
- Payments and emails are safe on staging.
- Updates tested one at a time.
- Key pages and forms checked on desktop and mobile.
- Same changes applied to live, then checked again.
If you would rather not manage this yourself, our WordPress development team can look after updates and testing. Get in touch to talk it through.
Common questions
Is a staging site the same as a backup?
No. A staging site is a working copy for testing. A backup is a stored copy you can restore from if something goes wrong.
Will a staging site hurt my SEO?
It can if search engines index it. Keep it private, for example with a password, so only you can see it.