A staging site is a private copy of your WordPress website where you can test new plugins, theme changes or updates without risking the live site. This guide walks Instant Access Internet Services customers through how to create a WordPress staging site with WP Toolkit in cPanel, and how to push your tested changes live when you're happy with them.
Before you start
- A staging copy is a full copy of your site's files and database, so it uses about the same amount of disk space as your live site. Check your usage on the cPanel home page first.
- The staging site lives on a subdomain of your own domain (for example
staging.example.com). Subdomains are unlimited on your plan, and AutoSSL will add a free certificate for it automatically. - WP Toolkit turns off search engine indexing on cloned sites by default, so your staging copy won't compete with your real site in Google.
How to create a WordPress staging site
- Log in to cPanel and go to Domains > WordPress Management (WP Toolkit).
- Find your live website in the list and click Clone on its card.
- For the target, choose the option to create a new subdomain. WP Toolkit suggests the name
staging; you can keep it or type your own. - Leave the suggested database name as it is, or change it to something you'll recognize.
- Click Start. Cloning can take a few minutes on a large site. When it finishes, click Close.
Your staging site now appears as its own card in WP Toolkit, with its own files, database and WordPress admin login (the same usernames and passwords as the live site at the moment you cloned it). Use the Log In button on its card to open its dashboard.
Important: only clone to a new subdomain or an empty one. If you pick a domain or subdomain that already has a website on it, that site's files and database can be overwritten and lost.
Test your changes on staging
Make your changes on the staging copy: install and try plugins, switch or edit the theme, run WordPress updates, or rebuild pages. Check the staging site in a private browser window to see it the way visitors would.
Keep in mind that the live site keeps changing while you work. New orders, comments, form entries and posts added to the live site after you cloned it are not in the staging copy.
How to push staging changes to your live site
When you're happy with the staging site, copy it back over the live site with WP Toolkit's Copy Data tool.
- In Domains > WordPress Management (WP Toolkit), find the staging site's card and click Copy Data.
- Check the direction carefully: the staging site must be the source and your live site must be the target.
- Choose what to copy:
- Files only -- themes, plugins and uploads. Good for theme or plugin changes when the live database has new content you must keep.
- Database only -- posts, pages, settings and plugin data.
- Files and database -- makes the live site match staging completely.
- If you copy the database, choose which tables: All tables, New tables only (tables that don't exist on the live site yet, for example from a new plugin), or Selected tables.
- Leave Create a restore point ticked so you can undo the copy.
- Start the copy. The live site is put in maintenance mode while it runs and comes back automatically when it finishes.
- Open your live site and check the pages, forms and checkout you changed.
WP Toolkit automatically fixes the site address during the copy, so the live site keeps using example.com rather than the staging address. By default wp-config.php and .htaccess are not copied, so the live site keeps its own database settings.
How to undo a push with the restore point
If something looks wrong right after the copy, open the live site's card in WP Toolkit, find Restore Point and click the restore option next to it, then confirm. Do this straight away: a restore point is not a full backup, and changes made to the live site after the copy can make restoring from it impossible. Only one restore point is kept per site. For a full safety net, also make a backup first (see the backups guide below).
Common questions
Will pushing staging to live delete my new orders or comments?
It can. Copying the whole database replaces the live database, including anything added since you cloned. On shops, membership sites and busy blogs, copy Files only or Selected tables, or make content changes directly on the live site.
How do I delete the staging site when I'm done?
On the staging site's card in WP Toolkit, open the menu and choose the option to remove the installation. This deletes its files and database. You can then remove the leftover subdomain in Domains > Domains.
The staging site shows my live site, or a "not secure" warning
A brand-new subdomain may take a few minutes to get its SSL certificate. Wait a little and reload. If it still fails after an hour, open a ticket.
Related guides
- How to Back Up and Restore WordPress in WP Toolkit
- How to Update WordPress, Plugins and Themes (and Turn On Auto-Updates)
- How to Create a Subdomain in cPanel
- How to Put WordPress in Maintenance Mode
- How to Install WordPress with WP Toolkit in cPanel
Still stuck? Open a support ticket and the Instant Access Internet Services team will help.
