Guide
WordPress staging site guide: what it is and how to use one
A staging site is a private copy of your live website where you can test updates, new plugins and design changes before your visitors see them. If something breaks on staging, nothing is lost. You can build one on a subdomain in the same hosting account, since subdomains and MySQL databases are unlimited on every plan with us.
The idea
How a staging workflow runs
- CopyClone the live site to a private address
- ChangeUpdate, edit and experiment on the copy
- TestCheck pages, forms and checkout
- PublishRepeat the changes on the live site
- Clean upKeep staging tidy and protected
Definition
What a staging site is and why you want one
A staging site is a duplicate of your website, with its own files and its own database, living at a separate address that the public cannot find. It looks and behaves like your live site because it is a copy of it. The difference is that nothing you do there affects real visitors, real orders or real search rankings.
The word comes from theatre and software, where a staging area is where you rehearse before the performance. The same logic applies. You would not test a big plugin update on a shop in the middle of the Saturday sales. You would try it on the copy, watch it for a bit, and only then repeat it on the live site. A staging site turns a risky live change into a calm rehearsal.
You do not need staging for every site. A small brochure site that changes twice a year can get by with a backup and care. Staging earns its keep when the site takes money or bookings, when several people edit it, when you are redesigning, or when you are making major updates to core, to a page builder or to a shop plugin.
Which one
Staging site or just a backup?
A backup is enough when
- The site is small and rarely changes
- You are making a minor text edit
- Downtime for an hour would not matter
- You can easily restore if it fails
- You update on a regular schedule
Use staging when
- The site takes orders or bookings
- You are changing the theme or layout
- You are installing a major plugin
- Several people edit the site
- You want to see problems before visitors do
Unlimited subdomains and databases
Room for a staging copy on every plan, with weekly remote backups.
Do it by hand
Creating a staging site on a subdomain
Create a subdomain
In the control panel, add a subdomain such as staging.yourdomain.co.uk. Subdomains are unlimited on every plan.
Create a new database
Make an empty MySQL database and a user for it. Staging must have its own database, never the live one.
Copy the files
Copy the live WordPress files into the subdomain's folder, using the file manager or SFTP.
Copy the database
Export the live database and import it into the new one using the database tool in the control panel.
Update wp-config.php
Change the database name, user and password in the staging copy to the new ones.
Change the site address
Update the site address stored in the staging database to the subdomain, using a search and replace tool that handles serialised data safely.
Block search engines and visitors
Tick the search engine visibility setting and add password protection to the subdomain folder.
Careful
The traps that catch people out
The biggest danger of a staging site is that it behaves like the real one. If your staging copy sends emails, it might send test order confirmations to real customers. If it connects to a payment gateway in live mode, a test order could take a real payment. Before you test anything, switch payment plugins to test mode, disable outgoing email or redirect it to your own address, and pause scheduled tasks that contact customers.
Search engines are the second risk. If Google finds a staging site with the same content as your live site, you can end up with duplicate pages competing against each other. Prevent this with a password on the staging address and the setting that discourages search engines. Password protection is the stronger of the two, because it blocks everyone by default.
Finally, remember that staging is a snapshot. While you work on it, your live site carries on receiving orders, comments and new posts. If you push the whole staging database back to live, you will overwrite those. That brings us to the question of how to move changes safely.
Going live
Ways to move staging changes to the live site
| Method | Best for | Watch out for |
|---|---|---|
| Repeat the changes by hand on live | Small updates and settings | Missing a step; keep a written list |
| Copy changed files only | Theme or plugin code edits | Files and database must stay compatible |
| Push the whole staging database to live | Sites with no new live data during testing | Overwrites new orders, comments and users |
| Use a migration or sync plugin | Larger changes and repeat work | Read the plugin's notes; back up first |
| Rebuild by applying updates on live after a pass on staging | Plugin and core updates | Do it at a quiet time with a fresh backup |
Best practice
A simple, safe staging routine
Start every staging session by refreshing the copy from the live site, so you are testing against current content and settings. Make your changes, test them thoroughly and write down exactly what you did. A short list such as update plugin A, change setting B, replace file C is enough, and it is gold when you repeat it on live.
Take a backup of the live site just before you publish, and choose a quiet time for the switch, early morning rather than lunchtime. After publishing, test the same journeys you tested on staging. Look at the home page, a post, a form and the checkout. Clear your caches so that visitors and you see the new version.
Treat staging as a tool, not a second home. Delete it when you are finished, or at least keep it protected and updated. An old staging site that nobody maintains is an unnecessary risk, since outdated plugins on a forgotten subdomain can be attacked just like any others.
What to test
Things worth testing on staging
Plugin and theme updates
See whether a major version breaks your layout or forms.
PHP version changes
Switch the staging copy to a newer PHP version and watch for errors before changing live.
Speed changes
Try caching and image settings and compare timings before and after.
Redesigns
Build new layouts out of sight and reveal them in one go.
Security tools
Test login protection and firewalls so you do not lock yourself out.
Forms and email
Check that messages arrive, using your own address, not customers'.
Checklist
Staging safety checklist
- Separate database for staging
- Password protection on the staging address
- Search engine visibility discouraged
- Payment plugins in test mode
- Outgoing email redirected or off
- Fresh backup of live before publishing
- Written list of changes to repeat
- Staging removed when finished
Related reading
Where staging fits in your wider routine
Staging works hand in hand with backups and a regular update habit. Our guide to updating WordPress safely shows where a staging test fits, and our backup guide explains how to keep copies you can trust.
If your site is business critical, consider whether you want a more automated setup. Many WordPress backup and migration plugins can create a staging copy in a few clicks. They are convenient, but they still rely on the same principles above, so keep the checklist in mind. If you would like advice on what suits your site, our live chat (open 24/7) is happy to help.
Room to test without risk
Unlimited subdomains, databases and email accounts on every plan.
FAQ
Common questions
Does a staging site cost extra?
Not on our plans. Subdomains and MySQL databases are unlimited, so a staging copy only uses some of your disk space.
Will staging hurt my search rankings?
Not if you password protect it and discourage search engines. An open copy could create duplicate content.
How big is a staging site?
Roughly the size of your live site, since it holds the same files and a copy of the database. Check your plan's disk space.
Can I use staging for a shop?
Yes, but use test mode for payments and avoid sending real emails. Be careful about orders arriving on live while you test.
Do I need a plugin?
No. You can create staging by hand as shown above. A plugin can save time on bigger sites.
Keep reading
Related pages
Test safely, publish confidently
Unlimited subdomains and databases on every plan.