WordPress staging is a test copy of your site, usually on a subdomain such as staging.example.gr, where you try out updates and changes without touching the live site. In cPanel you create it with Softaculous, with WP Toolkit, with a staging plugin or manually on a subdomain. Before you push anything to the live site you keep a backup, and for as long as the staging copy exists you keep it locked with a password.
Which staging method should I choose
| Method | When it fits | How you move the changes to the live site |
|---|---|---|
| Softaculous, Create Staging | WordPress was installed from Softaculous | Push to Live |
| WP Toolkit, Clone | You want a copy in a few clicks and to choose what goes back | Copy Data |
| Staging plugin | You want to work only from the WordPress dashboard | From the plugin, often only in the paid version |
| Manually on a subdomain | You are building a new site from scratch or changing platform | Moving files and database to the main domain |
In our experience, no staging tool is flawless. On some sites the transfer from staging to the live site fails or leaves errors, whatever method you use. That's why the backup before every transfer is not optional.
Before you create a staging site
- The copy takes disk space, files (inodes) and one database from your plan. Check that there is room and delete the staging copy when you are done.
- Make sure a recent copy exists. At Konet, JetBackup 5 automatically keeps copies of files and databases, see the JetBackup 5 guide.
- If the site is a shop, think in advance about what will happen to the orders placed while you work on staging. We explain this further down.
WordPress staging in cPanel with Softaculous
If WordPress was installed from Softaculous or you have imported it there, this is the simplest method.
- Open cPanel > Software > Softaculous Apps Installer.
- Go to the list of all installations.
- On the site's row click Create Staging.
- Choose the domain or subdomain and the folder for the copy.
- Keep or change the name of the new database and complete the creation.
- Make the changes and updates on the copy and check it.
To move the changes to the live site, click Push to Live on the staging row. With the default option, Softaculous replaces the live site's files and database with those of the staging copy. With the custom option you choose what goes across, for example only files. Under the Terms of Service, Softaculous backup files are not kept in the hosting space, so rely on JetBackup 5 for restores. You'll find more on its tools in Softaculous App Installer.
Staging with WP Toolkit (Clone and Copy Data)
WP Toolkit is available in Konet's cPanel and shows each WordPress installation in the account on a separate card. If you don't see your site, click Scan to detect it.
Creating a copy with WP Toolkit Clone
- Open WP Toolkit from cPanel. If you can't find it, type "WP Toolkit" in the cPanel search.
- On the site's card click Clone.
- Keep Create subdomain, which suggests a subdomain with the
stagingprefix, or choose Use existing domain or subdomain. - If you want, change the name of the database that will be created.
- Click Start and wait for it to complete.
- On the copy's card check that the Search engine indexing toggle is off and turn on Password protection.
The target must be empty. Whatever already exists in the target folder or database is overwritten.
Moving the changes with Copy Data
- On the staging card click Copy Data.
- In Target choose the live site.
- In Data to Copy choose Files Only, Database Only or Files and Database.
- If you copy the database, choose All Tables, New tables only or Selected tables.
- Leave Create a restore point selected.
- Click Start.
The restore point helps you go back immediately if something goes wrong, but it is not a backup. Each site has only one, and the next Copy Data replaces it. The JetBackup 5 backup remains your main safety net.
Staging with a plugin
You can also use any staging plugin you like from the WordPress repository. Most create the copy with one button from the dashboard, while pushing back to the live site is often only in the paid version. Before you choose one, check where it stores the copy and its backups, because they count towards your plan's space. The rules on backups and locking the copy apply here too.
A new test site on a subdomain without touching the old one
If you are building a new site from scratch, for example switching platform from Joomla to WordPress, you don't need a copy of the old one. The old site stays as it is and the new one is built next to it.
- Create a subdomain, for example
newsite.example.gr, as we explain in creating a subdomain in cPanel. - Install a clean WordPress there with WordPress installation from Softaculous.
- Lock the subdomain with a password, as in the locking section further down.
- Build the site with the theme, plugins and content you want.
You can work in a subfolder the same way, for example example.gr/new. The subdomain is cleaner, because it isn't affected by the main site's .htaccess. If in a subfolder you see pages without CSS or with 403, see site in a subfolder without CSS or with 403.
Moving from a subdomain to the main domain
When the new site is ready, you move it into the place of the old one.
- Keep a full backup of the old site, files and database. You can also download a copy to your computer from JetBackup 5 or from cPanel > Files > Backup.
- If the new site is in WP Toolkit, click Clone on its card, choose Use existing domain or subdomain and the main domain as the target. Whatever exists at the target is overwritten, which is why the backup from step 1 is essential.
- If you want to do it manually, move the files from the subdomain folder to
public_htmlwith File Manager, after first moving the old site's files out of there. - In the WordPress dashboard open Settings > General and change the WordPress Address (URL) and Site Address (URL) fields to the main domain.
- Replace the old address throughout the database with a search and replace tool that supports serialized data.
- Open Settings > Permalinks and click Save Changes.
- Clear the cache, as shown in clearing the cache, and check pages, images and forms in a private browsing window.
Steps 4 and 5 are the same as changing the domain on WordPress, described in detail in changing the domain on hosting and on the website. If you don't want to do the move yourself, Konet does it for you free of charge. Open a ticket from the Client Area with the subdomain and the main domain. Once the new site works on the main domain, delete the subdomain and its database.
Why push to live can fail
- The site has plugins that write the full address or the folder path into their own settings.
- The database is large and the transfer is interrupted halfway.
- The staging copy runs a different PHP version from the live site.
- Cache or security plugins keep settings that don't match the new address.
On a shop the biggest risk is orders. If you push the whole staging database to the live shop, you wipe out the orders, customers and stock that changed in the meantime. On WooCommerce push only files, or repeat the changes by hand on the live site. For the same reason, see also how to restore a backup on a WooCommerce shop without losing orders.
Locking staging with a password so it doesn't show up on Google
An open staging site can get indexed by Google, confuse your customers with duplicate content and, on a shop, receive real orders for products that no longer exist. Lock it from day one.
- Password on the whole staging site. Open cPanel > Files > Directory Privacy, choose the subdomain folder, tick Password protect this directory and create a user with a password. Details in cPanel Directory Privacy. If the staging copy is in WP Toolkit, the Password protection toggle on its card is enough.
- Noindex. In the staging WordPress open Settings > Reading and under Search engine visibility tick Discourage search engines from indexing this site. In WP Toolkit the Search engine indexing toggle does the same.
- Payments and email. On a staging shop put the payment methods in test mode or disable them, so nobody gets charged and no emails go to real customers.
- Deletion. When you are done, delete the staging copy, its database and the subdomain.
Noindex on its own is not enough, because it asks search engines not to show the site but doesn't stop anyone from opening it. The password is what really closes access. If you push changes from staging to the live site, check afterwards that the live site wasn't left with the discourage option on.
Frequently Asked Questions
Does my plan include a staging feature or do I need a plugin?
At Konet you can create staging from Softaculous and from WP Toolkit, without an extra plugin. If you prefer, you can also use a staging plugin.
Are staging plugins safe to use?
Yes, as long as they are up to date and you keep a backup before every push to the live site. Lock the copy with a password, as with any other method.
An order came in for a product that doesn't exist, what happened?
Most likely the order came through the staging site, which was left open and shows up on Google. Lock it immediately with Directory Privacy, check your payment methods for any charge and delete the staging copy if you no longer need it.
The staging site shows up on Google, how do I remove it?
Put a password on the staging site or delete it. Pages that no longer open gradually drop out of the results. If you have access to Google Search Console for the domain, you can also request their temporary removal.
I can't get into the WordPress Dashboard after moving to the main folder, what's wrong?
Usually the database still has the address of the subdomain or subfolder. Check the two addresses in Settings > General and run search and replace across the whole database. The dashboard will now be at example.gr/wp-admin.
Does staging count towards my plan's space?
Yes. The copy takes disk space, files and a database from your plan, like any other site. That's why you delete it when you are done.