All posts

Blog

How to Create a WordPress Staging Site (and Push Changes Live Safely)

Illustrated cover for the WordPress guide "How to Create a WordPress Staging Site (and Push Changes Live Safely)"

A staging site is a private copy of your live website. You can test plugin updates, try a new theme or rebuild a page there, and nothing changes for your visitors. When you're happy, you push the changes live, or simply repeat them on the real site.

It's one of the best habits you can build as a WordPress site owner, and you can do it on shared hosting.

Why use staging?

  • Test updates for WordPress, WooCommerce, page builders and your theme before they reach customers
  • Try a redesign without your site looking half-finished for weeks
  • Debug problems without affecting live visitors
  • Train staff on WordPress without risking real content

Option 1: Softaculous staging

If you installed WordPress with Softaculous, you may be able to create a staging copy in a few clicks, depending on the version of Softaculous on your account.

  1. Log into your control panel and open Softaculous.
  2. Go to All Installations (the icon that lists your installs).
  3. Next to your WordPress site, look for the Create Staging option.
  4. Choose where the staging copy should live, for example a subdomain like staging.yourdomain.com or a folder like yourdomain.com/staging.
  5. Click Create Staging.

Softaculous copies your files and database and adjusts the URLs. When you've tested your changes, the same list offers a Push to Live option for the staging install. It lets you push files, the database or both. Take a backup of the live site first.

If you don't see staging options, or your site wasn't installed with Softaculous, use one of the options below.

Option 2: A staging plugin

Several reputable WordPress plugins create a staging copy inside your hosting account, often in a subfolder. Some free versions only create the copy, and pushing changes back is a paid feature. Check before you choose.

Things to watch:

  • Storage: a staging copy roughly doubles your site's disk use. Check your plan's limits. See how much storage your website really needs.
  • Search engines: the staging site should never be indexed. Most plugins handle this, but double-check.
  • Emails: staging sites can send real emails, like order confirmations. Disable outgoing email on staging if your site sends automated messages.

Option 3: Manual staging on a subdomain

For full control, set it up yourself:

  1. Create a subdomain, for example staging.yourdomain.com, in your control panel (Domains in cPanel, Subdomain Management in DirectAdmin).
  2. Copy the files from your live site's folder into the subdomain's folder using File Manager (compress, copy, extract).
  3. Create a new database and user, and give the user all privileges on it.
  4. Export your live database in phpMyAdmin and import it into the new one.
  5. Edit wp-config.php in the staging folder to use the new database details.
  6. Update the URLs. Change siteurl and home in the wp_options table to the staging address, then use a search-and-replace plugin to update remaining URLs. Avoid editing serialized data by hand.
  7. Block search engines on staging. In WordPress go to Settings > Reading and tick Discourage search engines, and add password protection to the folder (cPanel's Directory Privacy, or DirectAdmin's Password Protected Directories).

This takes longer the first time, but you'll understand exactly how your site is put together.

Make sure your staging site gets HTTPS

Your free SSL covers subdomains that point to your hosting, so staging.yourdomain.com should get a certificate automatically, usually within a few hours. If it doesn't, run AutoSSL in cPanel or request a certificate in DirectAdmin.

Pushing changes live safely

You have two choices.

Push the whole site (files and database), using Softaculous or a plugin. This is good for redesigns. But anything that changed on the live site since you made the copy, such as new orders, comments or form entries, can be overwritten. Don't push a full database over a live store without a plan.

Repeat the changes on live. After testing a plugin update on staging, run the same update on live. For most routine work this is the safest approach.

Either way:

  1. Back up the live site immediately before.
  2. Pick a quiet time.
  3. Check the live site afterwards. Purge caches and test forms and checkout.

Keep staging tidy

  • Delete old staging sites you no longer need. Forgotten, outdated copies are a security risk and use your storage.
  • Keep staging updated if you keep it around.
  • Don't share the staging address publicly.

When staging is especially worth it

  • Major WordPress releases
  • WooCommerce and payment plugin updates
  • Page builder or theme updates
  • Changing PHP version
  • Any redesign

For minor plugin updates on a simple site, a fresh backup is usually enough. See how to safely update WordPress, themes and plugins.

Frequently asked questions

Does a staging site affect my SEO?

Not if it's blocked from search engines. Tick Discourage search engines in WordPress on staging, and add password protection to be safe.

Can I use staging on DirectAdmin?

Yes. If Softaculous on your account doesn't offer staging, use a plugin or the manual subdomain method above.

The bottom line

A staging site turns risky changes into safe experiments. Use Softaculous staging if it's available on your account, a reputable plugin, or a manual copy on a subdomain. Test there, back up live, then push or repeat the changes.