EN · $ USD
WordPress and E-commerce

How to Create a WordPress Staging Site

7 min read Updated: Sunucu Atlas technical team

In short

A WordPress staging site is an exact copy of your live site where you can test updates without affecting visitors. The easiest way is to use WP Toolkit's Clone feature to copy the site to a subdomain such as staging.alanadiniz.com, test there, then use Copy Data to push only the files or tables you need to production. The staging site should be password-protected and blocked from search engines.

In this guide
  1. When Do You Need Staging?
  2. Prerequisites: Storage, Database and Subdomain
  3. Step by Step: Creating Staging with WP Toolkit
  4. Hiding the Test Site from Search Engines and Visitors
  5. What to Watch Out for on Staging
  6. Example: Testing a PHP Version Upgrade on Staging
  7. Pushing Changes to Production
  8. Keeping Staging Up to Date and Deleting It
  9. Next Step

A WordPress staging site is an exact copy of your live site running at a separate address. Plugin updates, theme changes, PHP version upgrades or a new design are tried here first; if nothing breaks, they go live. That way, only your test site pays for a mistake, not your visitors and customers. This guide walks you step by step through setting up staging on a subdomain with WP Toolkit, pushing changes to production safely, and hiding the test site from search engines.

When Do You Need Staging?

You don't need a test site for every small post edit. But using staging before these tasks prevents downtime that could last hours:

  • WordPress major version updates and updating many plugins at once
  • Changing themes or switching page builders
  • Upgrading the PHP version
  • Changes to WooCommerce, payment or shipping plugins
  • Trying out caching and performance plugin settings

Prerequisites: Storage, Database and Subdomain

A staging site copies your live site's files and database, so your hosting plan needs room for three things:

  1. A free subdomain slot: The test site usually runs on a subdomain such as staging.alanadiniz.com. For how subdomains work, see the creating a subdomain guide.
  2. An extra database: The clone uses its own database; it must not share the live site's database.
  3. Disk space: The copy, including the media folder, takes up as much space as the live site. As a rule of thumb, plan for free space of at least twice your current usage.

If you plan to use staging regularly, the SA-WP-3 WordPress hosting plan, with a 10-subdomain limit, 10 databases and 60 GB NVMe storage, leaves comfortable room for your live site, a test copy and backups.

Step by Step: Creating Staging with WP Toolkit

WP Toolkit is the cPanel tool that lets you manage WordPress installations from one screen. If your version shows the Clone option, staging is ready in a few minutes:

  1. Open WP Toolkit in cPanel and find your live site's card.
  2. Click the Clone link on the card.
  3. For the Target, select Create subdomain and enter staging as the prefix. WP Toolkit creates the subdomain and document root for you.
  4. A database name is suggested automatically; make sure it differs from the live database.
  5. Click Start to begin. Copy time depends on the size of the site.
  6. When it's done, you'll see two separate sites in the WP Toolkit list. On the staging card, check that the address is staging.alanadiniz.com.

During cloning, WP Toolkit updates the addresses in the database for the new domain. Still, open the test site and click a few links to make sure none point back to the live site. If WP Toolkit's basics are new to you, the one-click WordPress install with WP Toolkit article introduces the interface.

No WP Toolkit? Manual staging

If there's no clone option, you can get the same result by hand: create a subdomain, copy the live site's files to the new document root, export the database and import it into a new database, and update the database details in wp-config.php. Finally, change the addresses. If you have SSH access, WP-CLI replaces them without breaking serialized data:

cd ~/staging.alanadiniz.com
wp search-replace 'https://alanadiniz.com' 'https://staging.alanadiniz.com' --all-tables --dry-run
wp search-replace 'https://alanadiniz.com' 'https://staging.alanadiniz.com' --all-tables

Use --dry-run first to see how many rows will change, then run the command without the flag. Don't do a plain-text find-and-replace in phpMyAdmin; it breaks the length values in serialized arrays and you lose widget and theme settings.

Hiding the Test Site from Search Engines and Visitors

An indexed staging site creates duplicate content issues and exposes unreleased changes to everyone. Use three layers of protection:

  1. WordPress setting: On the staging site, check "Discourage search engines from indexing this site" under Settings > Reading. The Search engine indexing toggle on the site card in WP Toolkit does the same thing; always confirm it's turned off after cloning.
  2. Password protection: Protect the staging folder with a username and password using the Directory Privacy tool in cPanel. This keeps search engines and curious visitors from seeing the content at all.
  3. HTTP header: For extra assurance, add a noindex header to the staging site's .htaccess file:
<IfModule mod_headers.c>
  Header set X-Robots-Tag "noindex, nofollow"
</IfModule>
Important: none of these settings should be carried over to production. When pushing changes, check that the "discourage indexing" option doesn't end up on the live site; otherwise your site will gradually drop out of Google.

What to Watch Out for on Staging

Because the test site carries all of the live site's settings, it can touch the real world by accident:

  • Emails: WooCommerce order notifications or membership emails may go to real customers. On staging, turn off email sending with a plugin or redirect all emails to your own address.
  • Payment processing: Put payment gateway plugins (in Türkiye, typically bank "sanal POS" virtual POS plugins) into test mode.
  • Scheduled tasks: Jobs such as backups, newsletter sending or stock sync may also run from staging; disable the ones you don't need.
  • External API keys: If you have shipping, ERP or marketplace integrations, make sure staging doesn't send data to live accounts.

Example: Testing a PHP Version Upgrade on Staging

One of the most valuable uses of staging is a PHP version upgrade, because an old plugin that's incompatible with a new PHP version often takes the whole site down. The recommended flow:

  1. Clone the live site to staging.
  2. In cPanel's PHP version manager, upgrade the PHP version for the staging subdomain only; the live site stays on the old version.
  3. On staging, enable WP_DEBUG_LOG in wp-config.php and browse all of the site's critical pages: home page, contact form, search, product page, cart and checkout.
  4. Review the Deprecated, Warning and Fatal error lines in wp-content/debug.log. Update the plugin causing a fatal error or find an alternative.
  5. Once the log stays clean, select the same PHP version for the live site.

In this scenario you don't need to push any files or database to production; staging serves purely as a safety test. You can use the same method for WordPress major version updates and big plugin updates.

Pushing Changes to Production

When testing is done, you can move the changes from staging to the live site with WP Toolkit's Copy Data tool. The most important decision here is what to copy.

OptionWhen to use itRisk
Files onlyTheme, plugin or code changesLow
Selected tablesIf only certain settings or pages changedMedium: tables must be chosen correctly
Files and entire databaseIf nothing changed on the live site during testingHigh: orders, comments and members added in the meantime are deleted

On an active e-commerce site, copying the entire database to production means losing the orders placed during testing. So follow this order:

  1. Take a full backup of the live site. If your WP Toolkit version offers to create a restore point before the transfer, select that option; also take an independent backup using the method in the cPanel backup guide.
  2. If the changes are only in themes and plugins, push files only.
  3. If database changes are needed, select only the relevant tables; don't push order, user or comment tables.
  4. For design changes made with a page builder, moving pages one by one with the export/import feature is often safer.
  5. After the transfer, clear the live site's cache and check the critical pages (home page, cart, checkout, contact form).

Do the transfer during your lowest-traffic hours and consider using maintenance mode while it runs.

Keeping Staging Up to Date and Deleting It

If a test site goes weeks without updates, it drifts away from production and your tests lose their meaning. Before a big change, the cleanest approach is to delete the old staging site and clone the live site again. Don't leave an unused staging site lying around either: an outdated WordPress copy can create a security hole for the live site in the same account. Deleting it in WP Toolkit removes the files and database together; then clean up the subdomain entry too.

Next Step

Staging is the foundation of managing WordPress professionally, and it needs three things: WP Toolkit, enough subdomain slots and disk space to hold the copy. Sunucu Atlas WordPress hosting plans come with one-click installs through WP Toolkit, LiteSpeed Web and a free SSL certificate, so you can reach your staging site securely with its own SSL too. To host your live site and test copy side by side comfortably, take a look at the SA-WP-3 plan with 3 GB RAM, a 3-core CPU and a 10-subdomain limit, or compare all WordPress hosting options to fit your needs.

Frequently asked questions

What is a WordPress staging site?

It's an exact copy of your live site running at a separate address. You test updates and theme or plugin changes there before they affect visitors.

Does a staging site cause duplicate content issues in Google?

It can if it gets indexed. That's why you should turn off search engine indexing on the staging site, password-protect the folder and add a noindex header.

Will I lose orders when pushing staging changes to the live site?

If you push the entire database, orders, members and comments created on the live site during testing are deleted. On active stores, push only the files or the relevant tables.

Should I use a plugin or WP Toolkit for staging?

Both work. Because WP Toolkit clones on the server side, it's less likely to hit timeouts on large sites and doesn't add another plugin to your site.

How much disk space does a staging site use?

Including media files, it takes up about as much space as the live site. When planning, leave free space of at least twice your current usage.

For this guide

Recommended plans

WordPress hosting with WP Toolkit, separate subdomain and database slots, and enough NVMe storage lets you build a test copy without touching your live site and publish changes safely.

SA-WP-1

cPanel
Recommended

20 GB NVMe disk

$0.39/mo

+VAT

  • Processor1 cores
  • Memory1 GB
  • LocationIstanbul
  • WordPress One-Click Install (WP Toolkit)
  • 1 Hosted Domains
  • 50 GB Traffic
  • 5 Email Account Limit

SA-WP-2

cPanel

40 GB NVMe disk

$0.69/mo

+VAT

  • Processor2 cores
  • Memory2 GB
  • LocationIstanbul
  • WordPress One-Click Install (WP Toolkit)
  • 1 Hosted Domains
  • 100 GB Traffic
  • 10 Email Account Limit

SA-WP-3

cPanel

60 GB NVMe disk

$0.98/mo

+VAT

  • Processor3 cores
  • Memory3 GB
  • LocationIstanbul
  • WordPress One-Click Install (WP Toolkit)
  • 1 Hosted Domains
  • 200 GB Traffic
  • 25 Email Account Limit

WordPress Hosting — tüm paketler

Need help with setup?

Send questions about your service in a support ticket, and our technical team will walk you through it step by step.