How to Create a WordPress Staging Site and Push It Live

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

  1. Log in to cPanel and go to Domains > WordPress Management (WP Toolkit).
  2. Find your live website in the list and click Clone on its card.
  3. 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.
  4. Leave the suggested database name as it is, or change it to something you'll recognize.
  5. 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.

  1. In Domains > WordPress Management (WP Toolkit), find the staging site's card and click Copy Data.
  2. Check the direction carefully: the staging site must be the source and your live site must be the target.
  3. 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.
  4. 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.
  5. Leave Create a restore point ticked so you can undo the copy.
  6. Start the copy. The live site is put in maintenance mode while it runs and comes back automatically when it finishes.
  7. 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

Still stuck? Open a support ticket and the Instant Access Internet Services team will help.

Ultrafast LiteSpeed hosting from InstantAccess.net: free SSL, free backups, cPanel included, no contracts. Check out our $10/month hosting.
  • wordpress staging site, wp toolkit clone, cpanel staging wordpress, push staging to live, wp toolkit copy data, test wordpress changes
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Install WordPress with WP Toolkit in cPanel

WP Toolkit lets you install WordPress on your hosting account in a couple of minutes, with no...

How to Log In to WordPress Admin from WP Toolkit

You don't need to remember your WordPress password to get into your site. WP Toolkit in cPanel...

How to Update WordPress, Plugins and Themes (and Turn On Auto-Updates)

Keeping WordPress up to date is the single best thing you can do to keep your site safe. This...

How to Move a WordPress Site from Another Host (WP Toolkit Import)

Moving a WordPress site from another host doesn't have to mean downtime or lost content. This...

How to Secure WordPress with WP Toolkit Security Hardening

WP Toolkit includes a set of one-click security measures that close the most common holes hackers...