Making changes directly on a live site is asking for trouble. A staging site — a private copy where you can experiment freely — lets you test updates, redesigns and new plugins without any risk to what your visitors see. Here’s how to set one up.
What staging gives you
A staging site is a full clone of your live site living at a separate address, usually a subdomain like staging.yourdomain.com. You can break things there, undo them, and only push changes to live once you’re happy. It’s the difference between testing a parachute on the ground and testing it mid-jump.
Method 1: create it in cPanel
- In cPanel, create a subdomain such as
stagingunder Subdomains. This gives you a separate folder to work in. - Copy your live site’s files into the staging folder using File Manager.
- Create a new database, import a copy of your live database into it, and update the staging site’s
wp-config.phpwith the new database details. - Run a search-and-replace to change the live URL to the staging URL throughout the database.
Method 2: a staging plugin
If the manual route sounds fiddly, a staging plugin automates the whole thing — it clones your site to a staging URL with a couple of clicks, and later pushes your tested changes back to live. For most people this is the easier path.
Keep staging private
You don’t want search engines indexing your staging site or visitors stumbling onto it. Password-protect the staging folder via cPanel’s Directory Privacy, and set the staging site to discourage search indexing under Settings → Reading.
Test, then push live carefully
On staging, run your updates, click through everything, check forms and layouts. When you’re satisfied, push the changes to live. If you built staging manually, that means copying the tested changes across deliberately; a staging plugin handles the merge for you. Always back up live before pushing.
Keep staging in sync
A staging site drifts out of date as your live site gets new content. Before a big test, refresh staging with a fresh copy of live so you’re testing against current data.
Staging is one of those habits that feels like extra work until the day it saves you from a broken live site. We can set up a staging workflow for you as part of managed hosting — ask us how.