How to Create a WordPress Staging Site (4 Ways)

WordPress staging test site backstage beside a live website

A WordPress staging site is a private copy of your live site where you can test updates, new plugins, design changes or a PHP version update without affecting visitors. The easiest way to create one is with your host’s one-click staging tool. If your host does not have one, a staging plugin or a local copy on your computer works too.

Below are four ways to set up staging, from easiest to most hands-on, followed by the safety steps most guides skip: keeping staging out of Google, stopping it from sending real emails, and pushing changes back without losing new orders or comments.

Which Staging Method Should You Use?

MethodBest forSkill needed
Your host’s staging toolMost sites on managed WordPress hostingBeginner
A staging pluginHosts without built-in stagingBeginner to intermediate
A local copy on your computerDevelopers and design workIntermediate
A manual copy on a subdomainFull control, or when nothing else is availableAdvanced

Way 1: Use Your Host’s Staging Tool

Most managed WordPress hosts include staging. You click a button, the host copies your files and database to a private URL, and when you are done you push the changes back. This is the method I recommend, because the host handles the copying, the URLs and the push in a way that is tested on its own servers.

Click on Staging Sites
Click on Staging Sites

Look for Staging, Staging & Dev or Environments in your hosting dashboard. Some examples:

Liquid Web by Nexcess

How-To WP is hosted with Liquid Web by Nexcess, and its plans include staging sites. In the current portal, open your site and choose Staging & Dev. If the site has no copy yet, the screen shows an Add Development Environment option. We may earn a commission through this link at no extra cost to you.

Staging & Dev screen for a WordPress site in the Liquid Web portal with the Add Development Environment option
The Staging & Dev screen in the Liquid Web portal

Nexcess explains the process step by step in its staging guide.

Kinsta

Setting up a WordPress staging site with Kinsta
Setting up a WordPress staging site with Kinsta

Kinsta offers one-click staging environments in its MyKinsta dashboard, including the option to push only files, only the database, or both. See Kinsta’s staging documentation.

To create a staging copy in MyKinsta:

  1. Click Sites and open your site.
  2. Click the environment name at the top, for example Live, and choose Create new environment.
  3. Select Standard, click Continue, then choose Clone an Existing Environment and pick your live environment.
  4. Give the environment a name and click Continue. After a few minutes, switch to it from the same environment menu.

When you are done, open the staging environment, click Push Environment and choose the push to your live site. Under Files and Database you choose what goes live, so leave the database out if you only changed themes, plugins or code. Kinsta backs up the live site before the push.

WP Engine

Setting up a WordPress staging site with WP Engine
Setting up a WordPress staging site with WP Engine

WP Engine gives each site separate production, staging and development environments that you can copy between from the User Portal.

To add a staging environment:

  1. In the User Portal, go to the Sites page and click your site.
  2. Click Add environment next to the environment name at the top.
  3. Enter a name, choose Staging as the environment type and finish the setup. WP Engine emails you when it is ready.
  4. Use the Copy environment tool in the User Portal to copy your production site into staging. Later, use the same tool to copy staging back to production.

Each site can have only one staging environment, so check whether yours already has one before you add it. A copy does not include WP Engine settings such as redirect rules, SSL certificates and Web Rules, so set those up separately.

If you are choosing a host and staging matters to you, my WordPress hosting guide compares the options.

Way 2: Use a Staging Plugin

If your host has no staging tool, a plugin can create the copy for you. Plugins work in one of two ways, and the difference matters:

  • Same-server staging creates the copy on your own hosting account. It is free or cheap, but it uses your server’s resources and disk space.
  • Cloud staging creates the copy on the plugin company’s servers. It does not load your server, but usually needs a paid plan.

WP Staging

WP Staging
Setting up a WordPress staging site using WP Staging plugin

WP Staging creates a copy of your site in a subfolder of your hosting account. After activating it, open WP Staging in the admin menu, start a new staging site, choose which tables and folders to include and start cloning. Pushing changes back to the live site is a feature of the paid version.

BlogVault

BlogVault Staging
Setting up a WordPress staging site using BlogVault Staging feature

BlogVault is a backup service that can create a staging copy on its own servers and merge changes back to your live site.

WP Time Capsule

WP Time Capsule
WP Time Capsule

WP Time Capsule is another backup plugin with staging. It lets you choose which files and database tables to push back.

Migration plugins such as Duplicator are not staging tools, but you can use them to copy a site to a subdomain and then follow the safety steps below.

Way 3: Work on a Local Copy

A local copy runs on your own computer, so nobody else can see it and you can test without a network connection. Local is a free app that runs WordPress sites on Windows, macOS and Linux. Export your site with a migration or backup plugin, import it into Local, and test there.

A local copy is ideal for design and code work. It is less useful for testing anything that depends on your live server, such as caching, the PHP configuration or email delivery, because your computer works differently from your host.

Way 4: Create a Staging Site Manually

If you are comfortable with hosting control panels and databases, you can build staging yourself on a subdomain:

  1. Create a subdomain such as staging.example.com in your hosting control panel, with its own folder.
  2. Copy the files. Copy everything from your live site’s folder to the subdomain’s folder, using the file manager or SFTP.
  3. Copy the database. Create a new, empty database and database user, then export the live database from phpMyAdmin and import it into the new one.
  4. Point the copy at the new database. Edit wp-config.php in the staging folder and change DB_NAME, DB_USER and DB_PASSWORD to the new database, and DB_HOST too if your host gives the new database a different server. Keep the same $table_prefix as the live site, or WordPress will not find the copied tables. If you skip this step, the staging site will write to your live database.
  5. Replace the URLs. Change every occurrence of the live address to the staging address in the copied database. Use a tool that handles serialized data, such as wp search-replace in WP-CLI or a search-and-replace plugin. Editing the database by hand breaks serialized settings.
  6. Apply the safety steps below before you start testing.

For example, with WP-CLI in the staging folder:

wp search-replace 'https://example.com' 'https://staging.example.com' --all-tables --skip-columns=guid --dry-run
wp search-replace 'https://example.com' 'https://staging.example.com' --all-tables --skip-columns=guid

Run the first command to preview the changes, then the second to apply them. The --skip-columns=guid part leaves each post’s GUID (its permanent ID) unchanged, as WordPress recommends when you change a site address. Manual staging has no “push to live” button, so you repeat your tested changes on the live site yourself.

Safety Steps for Every Staging Site

Whichever method you use, do these before you start testing:

  • Keep it out of search results. Password-protect the staging site, and tick Settings > Reading > Discourage search engines from indexing this site. Password protection is the reliable part; the checkbox alone does not stop every crawler.
  • Stop real emails. A copy of a store or membership site can email real customers. Disable outgoing email on staging or route it to a test inbox with an SMTP or mail-logging plugin.
  • Switch payments to test mode. Put payment gateways such as Stripe or PayPal into sandbox mode, and pause scheduled tasks such as subscription renewals.
  • Check the copy. Click through key pages, forms and features to make sure everything copied correctly before you test changes.

Pushing Changes Back to the Live Site

Pushing staging back to live is the riskiest step. If you push the whole database, anything that happened on the live site since you made the copy is overwritten. On a busy blog that means new comments; on a WooCommerce store it means orders and customers.

  • Take a fresh backup of the live site immediately before pushing.
  • Push only files when you have only changed themes, plugins or code.
  • For stores and membership sites, avoid pushing the full database. Repeat settings and content changes on the live site by hand, or use a tool that lets you choose specific tables.
  • Push during a quiet time and check the live site straight afterwards.

If you would rather have someone else handle updates and testing before changes reach your live site, take a look at my WordPress maintenance plans.

Frequently Asked Questions

Where is my WordPress staging site?

With host staging, it is usually on a separate temporary URL listed in your hosting dashboard. Plugin staging often lives in a subfolder of your site, such as example.com/staging. A manual copy lives wherever you created it, usually a subdomain.

Does a staging site hurt SEO?

Only if search engines can index it, because it then competes with your live site as duplicate content. Password protection prevents that.

Can I use staging on shared hosting?

Yes. Some shared hosts include staging, often through tools such as WP Toolkit or Softaculous. Otherwise, use a staging plugin or a local copy.

How do I publish a staging site?

Use your host’s or plugin’s push feature, after taking a backup of the live site. Read the section on pushing changes above first if your site takes orders or registrations.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to our Monthly Newsletter

Get monthly updates of WordPress tips, tricks, and tutorials in your email.

Thanks. You have successfully subscribed.