Skip to main content
Cloud Hosting starting at $2.91/mo. Auto-scaling servers with a FREE domain included. Start Now →
WordPress

How to Create a WordPress Staging Site (Test Changes Without Breaking Your Live Site)

Three proven methods to set up a staging environment — from one-click hosting tools to manual setups. Includes step-by-step instructions for safely pushing changes live.

S

Serverlys Team

May 4, 2026 · 6 min read

Updating WordPress core, changing themes, installing new plugins, or modifying custom code on a live website is like performing surgery on a patient who is wide awake. If something goes wrong, your visitors see the error immediately, your sales stop, and your credibility takes a hit. A staging site eliminates this risk entirely.

A staging site is an exact copy of your live WordPress website that exists on a separate URL. You make all your changes there — test them, review them, break things and fix them — and only push the changes to your live site when everything works perfectly. This guide covers three methods to create a staging site, from the simplest one-click approach to a fully manual setup.

Why You Need a Staging Site

If you have ever experienced any of the following, a staging site would have prevented it:

Each of these scenarios costs real money and real trust. A staging environment is not optional for any WordPress site that generates revenue, collects leads, or represents a business.

Method 1: One-Click Staging Through Your Host (Recommended)

The fastest and most reliable method. Many quality hosting providers, including Serverlys, include one-click staging as a built-in feature. No plugins needed, no manual file copying, and pushing changes live is just as easy.

Step-by-Step Instructions

  1. Log into your hosting control panel (cPanel, Plesk, or your host's custom dashboard).
  2. Navigate to the WordPress or Staging section. On Serverlys, this is under "WordPress Manager" in your dashboard. Other hosts may label it "Staging," "Clone," or "Dev Environment."
  3. Click "Create Staging Site" (or equivalent button). The system will create a complete copy of your WordPress files and database.
  4. Wait for the copy to complete. This typically takes 1–5 minutes depending on your site's size. Large WooCommerce stores with thousands of products may take longer.
  5. Access your staging site via the provided URL. It is usually a subdomain like staging.yourdomain.com or a temporary URL provided by the host.
  6. Make your changes on the staging site. Update plugins, change themes, edit code — anything you need to test.
  7. Verify everything works. Test all critical functionality: navigation, forms, checkout, login, and any custom features.
  8. Push to live. Click the "Push to Live" or "Deploy" button in your hosting dashboard. The system replaces your live files and database with the staging version.

Serverlys Tip: All Serverlys WordPress hosting plans include one-click staging with selective deployment. You can choose to push only files, only the database, or both — giving you precise control over what changes go live.

Advantages of Host-Based Staging

Limitations

Method 2: Staging with a WordPress Plugin

If your host does not offer one-click staging, a WordPress plugin can create a staging environment for you. This method works with any host but requires more setup and has some limitations.

Recommended Plugins

Plugin Free Version Push to Live Best For
WP Staging Yes Pro only ($8.25/mo) Most popular, reliable, well-documented
BlogVault No ($7.40/mo) Yes (included) Combined backup + staging solution
WP Vivid Yes Pro only ($49/yr) Budget-friendly with backup features
InstaWP Yes (limited) Pro only Cloud-based staging, no server impact

Step-by-Step with WP Staging (Free Version)

  1. Install WP Staging from the WordPress plugin directory (Plugins → Add New → search "WP Staging").
  2. Activate the plugin and navigate to WP Staging → Staging Sites in your WordPress admin.
  3. Click "Create New Staging Site." The plugin will scan your installation and show you a list of database tables and folders to include.
  4. Leave the default selections unless you have a specific reason to exclude certain tables or folders. For most sites, cloning everything is the safest option.
  5. Click "Start Cloning." The plugin copies your files and database to a subdirectory (typically yourdomain.com/staging/).
  6. Access the staging site using the link provided by the plugin. Log in with the same WordPress credentials as your live site.
  7. Make and test your changes. The staging site is fully independent — nothing you do here affects your live site.
  8. Push to live (Pro version only). In the free version, you will need to manually replicate changes on your live site, which is tedious and error-prone.

Important Considerations with Plugin Staging

Method 3: Manual Staging Setup

For developers who want full control, you can create a staging environment manually. This method gives you the most flexibility but requires comfort with databases, file management, and search-replace operations.

Prerequisites

Step-by-Step Instructions

  1. Create a subdomain in your hosting control panel. Point it to a new directory (e.g., /home/user/staging.yourdomain.com/).
  2. Create a new MySQL database and user for the staging site. Grant all privileges to this user on the new database. See our MySQL database guide for detailed instructions.
  3. Copy all WordPress files from your live site to the staging directory using FTP, SSH (with cp -r), or the File Manager in cPanel.
  4. Export your live database using phpMyAdmin (Export → Quick → SQL format) or the command line (mysqldump -u user -p database_name > backup.sql).
  5. Import the database into your new staging database using phpMyAdmin (Import) or the command line (mysql -u staging_user -p staging_db < backup.sql).
  6. Update wp-config.php in the staging directory. Change the database name, username, and password to match your new staging database credentials.
  7. Run a search and replace on the staging database to update all URLs from your live domain to the staging subdomain. Use a tool like WP-CLI (wp search-replace 'yourdomain.com' 'staging.yourdomain.com') or the Search Replace DB script. This step is critical — without it, links, images, and serialized data will point to your live site.
  8. Update the staging site's permalink structure by going to Settings → Permalinks and clicking "Save Changes" (this regenerates .htaccess rules).
  9. Add a noindex directive to the staging site. Go to Settings → Reading and check "Discourage search engines from indexing this site," or add <meta name="robots" content="noindex, nofollow"> to the header.
  10. Password-protect the staging directory using .htpasswd in cPanel to prevent unauthorized access.

Pushing Manual Staging Changes Live

When you are ready to push changes from a manually created staging site:

  1. Back up your live site completely (files + database) before making any changes.
  2. If you only changed files (themes, plugins, custom code), copy only the modified files from staging to live via FTP or SSH.
  3. If you changed the database (new posts, settings, plugin configurations), export the staging database, run a search-replace to swap the staging URL back to the live URL, and import it into the live database.
  4. Clear all caches on the live site (page cache, object cache, CDN cache) to ensure visitors see the updated content.
  5. Test the live site immediately after deployment. Check critical pages, forms, checkout, and any functionality you changed.

Warning: Manual database merges are risky. If customers placed orders or submitted forms on your live site while you were working on staging, importing the staging database will overwrite that data. For ecommerce sites, always use a host-based or plugin-based staging solution that supports selective merging.

Comparison of All Three Methods

Feature Host One-Click Plugin Manual
Setup Time 1–2 minutes 5–15 minutes 30–60 minutes
Technical Skill Beginner Beginner–Intermediate Advanced
Cost Free (included with hosting) Free–$99/yr Free (but time-intensive)
Push to Live One-click One-click (Pro only) Manual process
Selective Deploy Yes (some hosts) Yes (some plugins) Full control
Performance Impact None Uses server resources None (if on subdomain)
Reliability High Medium–High Depends on execution

Best Practices for Staging Sites

Before Creating the Staging Copy

While Working on Staging

When Pushing to Live

"A staging site is not a luxury — it is insurance. The 10 minutes it takes to test changes on staging saves hours of emergency troubleshooting when something breaks on your live site at the worst possible time."

Frequently Asked Questions

Does a staging site affect my live site's SEO?

Not if you set it up correctly. The staging site should have a noindex directive (either through robots.txt, a meta tag, or your hosting panel's automatic blocking) to prevent search engines from indexing it. Also, use the correct canonical URLs if your staging site is accessible publicly.

How often should I create a new staging copy?

Create a fresh staging copy before each round of changes. If your live site changes frequently (new products, blog posts, orders), a staging copy that is more than a few days old may have an outdated database, which can cause merge conflicts when pushing live.

Can I use staging for WooCommerce stores?

Yes, and you absolutely should. WooCommerce is complex, with payment gateways, shipping calculations, inventory management, and email notifications all interacting. Always set payment gateways to sandbox/test mode on staging and disable transactional emails. For hosting optimized specifically for WooCommerce, see our ecommerce hosting plans.

Does the staging site use my hosting resources?

If the staging site lives on your server (host-based or plugin methods), it uses your disk space and may use CPU/RAM when accessed. Most hosts isolate staging resource usage, and since staging sites have minimal traffic, the impact is negligible. Cloud-based staging solutions like InstaWP run on separate infrastructure entirely.

What happens to new orders placed while I am working on staging?

Orders on your live site are unaffected — staging and live are completely separate. The issue arises when you push the staging database to live, which can overwrite orders placed after the staging copy was created. Use host-based staging with selective deployment (files only, or specific database tables) to avoid this problem.

Related Articles

WordPress hosting with one-click staging

Serverlys WordPress hosting includes built-in staging, automated backups, LiteSpeed caching, and 24/7 support.