Contents
Updating one plugin can break your store’s checkout, and a theme change can ruin the site on phones. A staging copy lets you see those problems before your visitors do: you test on a copy, push it if it works, and delete it if it doesn’t, without anyone noticing. The idea is explained in what is a staging environment; here are the practical ways to do it.
When do you need a staging copy?
- Before a major WordPress update, or an update to the theme or a core plugin such as WooCommerce.
- Before changing the theme or redesigning many pages.
- When trying a new plugin you don’t know.
- When changing the PHP version.
For small edits such as a line of text or an image you don’t need one; a backup is enough.
Method 1: from your hosting panel (easiest)
Many hosts let you create the copy in one click, often through Softaculous or their own tool. Look in your panel for “Staging”. The usual steps:
- Pick the WordPress site and choose to create a staging copy.
- Wait for the copy: files and database are copied to a folder or subdomain.
- Sign in to the copy’s dashboard and test what you want.
- If the change works, push the copy to the live site. If it doesn’t, delete it.
The advantage is that the host sets up the URLs and database for you, and pushing and deleting are one click each.
Method 2: with a WordPress plugin
Plugins such as WP Staging create the copy inside your site, usually in a subfolder. They are useful if your hosting panel doesn’t support staging. Note that pushing to the live site is a paid feature in most of these plugins, and the copy uses your site’s disk space and resources.
Method 3: by hand
For developers, or when you need full control:
- Create a subdomain such as
staging.example.com. - Copy the site files into its folder, create a new database and import a copy of the site’s database.
- Edit
wp-config.phpto point at the new database. - Change the site URLs to the subdomain, for example with WP-CLI:
wp search-replace 'https://example.com' 'https://staging.example.com' --all-tables
- Keep it out of indexing in the settings or with a password on the folder.
Pushing by hand means doing these steps in reverse, which is why it is the most error-prone method.
What to do on the copy before testing
- Stop outgoing email: a test store can email real customers. Turn off sending or use a plugin that blocks it.
- Put payment gateways in test mode so no real money is charged.
- Make sure it is out of search engines.
How to push it live without losing data
A full push replaces the live site’s files and database. Every order, comment or post added to the live site after the copy was made will be gone. So:
- Back up the live site before you push, every time.
- On quiet sites (a blog, a company site): push directly.
- On stores: make the copy, test, then push at a quiet time within a few hours, or repeat the change that worked on the live site by hand instead of pushing.
Common mistakes
- A copy that is too old: a month-old copy doesn’t reflect your site; make a fresh one before each big test.
- Forgetting to delete the copy: it keeps using disk and a database, and its outdated plugins can become a security hole.
- Leaving it indexed: duplicate content on Google under a staging address.
On ArabyHost
Staging is part of the Araby Panel: under WordPress, then Manage site, the Staging copy card has a Create a staging copy button. The files and database are copied to a side folder such as example.com/staging, you follow the progress on the same page, and Open the copy’s dashboard signs you in with no password. We keep the copy out of search engines and mark it “Staging copy” in its dashboard bar. When the change works, press Push to the live site, and we back up the live site before the push. Step by step in the help center.
It comes with our WordPress and WooCommerce plans and every plan running WordPress. An AI agent connected to your account can create the copy and work on it; pushing it to the live site stays in your hands.
FAQ
Does the staging site show up on Google?
It shouldn't, or your content appears twice in search results. Keep the copy out of indexing or put a password on it. Some hosting panels do this for you.
Should I push the whole copy or just the change?
On a site whose data rarely changes, pushing the whole copy is easiest. On a store that gets orders every hour, it's better to test on the copy and repeat the same change on the live site, or push at a quiet time right after making the copy.
Does a staging copy use my disk space?
Yes. It is a full copy of the files plus another database, so it needs about as much space as your site and a free database on your plan. Delete it when you're done.