Rank #1 on Google Maps
India English
Kenya English
United Kingdom English
South Africa English
Nigeria English
United States English
United States Español
Indonesia English
Bangladesh English
Egypt العربية
Tanzania English
Ethiopia English
Uganda English
Congo - Kinshasa English
Ghana English
Côte d’Ivoire English
Zambia English
Cameroon English
Rwanda English
Germany Deutsch
France Français
Spain Català
Spain Español
Italy Italiano
Russia Русский
Japan English
Brazil Português
Brazil Português
Mexico Español
Philippines English
Pakistan English
Türkiye Türkçe
Vietnam English
Thailand English
South Korea English
Australia English
China 中文
Somalia English
Canada English
Canada Français
Netherlands Nederlands

How to Create a Staging Site Using cPanel, Plugins or Your Hosting Account

  • Home
  • Web Hosting
  • How to Create a Staging Site Using cPanel, Plugins or Your Hosting Account

Buy domains, business emails, hosting, VPS and more: Get Started

Cheapest Domains in Kenya

Register a .co.ke domain for Kshs 299 for the first year. Renewal: Kshs 1,500 per year.

.COM registration: Kshs 1,200 for the first year. Renewal: Kshs 1,700 per year.

Have you ever clicked Update on a plugin and watched your live website fall apart? 

It happens more often than most people admit. 

Updating a website directly can introduce errors, break important functionality or change what your visitors see, and all of that can happen while real customers are browsing your pages.

Fortunately, there is a safer way to work. 

A staging site is a separate copy of your live website where you can test updates, designs, plugins, code and other changes before you publish them. 

Because the copy is private and isolated, you can experiment freely. 

If something goes wrong, your visitors never notice, and your live site keeps running as normal.

In this guide, we will cover the three main ways to create a staging site:

  • Through your hosting provider’s staging feature.
  • Using a WordPress staging plugin.
  • Manually through cPanel or a server environment.

We will walk through each method step by step. 

After that, we will show you how to test your changes properly and how to move approved updates to your live website without losing data. 

By the end, you will be ready to make changes with a lot more confidence.

What You Need Before Creating a Staging Site

How to Create a Staging Site

Before jumping into the tutorials, it helps to get a few things ready. 

Skipping this part is the most common reason a staging setup fails halfway through, so a few minutes of preparation can save you a lot of frustration.

Here is what you should have in place:

  • Access to your website’s hosting account or server.
  • Administrator access to the website.
  • A recent backup of the live website.
  • Enough storage space for a second copy of the website.
  • A staging subdomain or separate directory.
  • A separate database for database-driven websites.
  • An SSL certificate for the staging URL.
  • A staging tool, plugin or file management access, depending on the method you choose.

Storage deserves a special mention. 

A staging copy duplicates your website files and your database, so it can use as much space as the original site. 

For example, if your live website takes up 8 GB, you should expect the staging copy to need roughly another 8 GB. 

Therefore, check your available disk space first, especially if your site has a large media library.

In addition, keep your backup somewhere safe. 

Staging is designed to protect your live site, but mistakes can still happen during setup. 

A fresh backup gives you a simple way back if anything unexpected occurs.

How to Create a Staging Site Using Your Hosting Provider

The easiest route is often a staging tool that comes with your hosting plan. 

Some hosting providers offer a feature that automatically duplicates your website and creates a separate testing environment with just a few clicks. 

If your host has this option, it usually saves the most time, since the provider handles the copying of files and databases for you.

The general process looks like this:

  1. Log in to your hosting account.
  2. Open the website management dashboard.
  3. Select the website you want to copy.
  4. Look for a staging option.
  5. Choose the staging URL or subdomain.
  6. Start the staging process.
  7. Wait for the website files and database to be copied.
  8. Open the staging URL and confirm that the website works.

Keep in mind that the exact steps depend on your hosting provider and its control panel. 

One host may place the staging button under a “Websites” menu, while another may hide it inside an advanced tools section. 

If you cannot find it, the provider’s help documentation or support team can point you in the right direction.

Another benefit is worth noting. 

Some hosting providers also let you push approved changes from staging to production with a single click. 

As a result, you can test an update, approve it and publish it without moving files by hand. 

That said, always read what the push feature actually transfers, because some tools copy files only, while others copy the database as well.

How to Create a Staging Site in WordPress Using a Plugin

What if your hosting provider does not offer a built-in staging feature? 

In that case, a WordPress staging plugin is a very practical option. 

These plugins clone your site from inside the WordPress dashboard, so you do not need to touch cPanel or a database tool.

There are several plugins to choose from, and WP Staging is a popular example. 

We will use it here to show how the process works, although the steps are similar for most staging plugins.

Follow these steps:

  1. Log in to your WordPress dashboard.
  2. Go to Plugins > Add New Plugin.
  3. Search for a staging plugin such as WP Staging.
  4. Install and activate the plugin.
  5. Open the plugin’s staging or cloning interface.
  6. Choose the option to create a new staging site.
  7. Select the files and database tables to copy, if the plugin provides these settings.
  8. Start the cloning process.
  9. Wait for the plugin to complete the copy.
  10. Open the staging site and log in to test it.

Once the process finishes, you will usually receive a separate staging URL, often inside a subfolder of your main site. 

Log in with your normal administrator details and check that everything looks right before you start making changes.

Plugin features differ, so it is smart to check before you commit. 

Some plugins let you create a staging copy for free but restrict pushing changes to the live website to paid plans. 

In other words, you might be able to build the test site at no cost, then discover that moving your edits back requires an upgrade. 

Therefore, read the current feature list of any plugin before you choose one, and decide whether the free version covers your needs.

How to Create a Staging Site in cPanel Using Softaculous

If your hosting account includes cPanel, there is a good chance it also includes Softaculous. 

This is an app installer that can also clone WordPress installations, which makes it an excellent automated option for staging.

Here is how to do it:

  1. Log in to your cPanel account.
  2. Open Softaculous Apps Installer.
  3. Select All Installations or Installations.
  4. Find the WordPress installation you want to duplicate.
  5. Click the staging option next to the installation.
  6. Choose the staging domain or subdomain.
  7. Specify a directory if you want to create the copy in a subfolder.
  8. Confirm the database settings.
  9. Disable search engine visibility for the staging installation.
  10. Click Create Staging.
  11. Wait for the process to finish and open the staging URL.

Step nine deserves attention. If search engines index your staging site, they may treat it as duplicate content, and that could harm your rankings. 

Hiding the staging copy from search engines keeps your real website’s reputation clean.

As a note, the exact interface may vary depending on your Softaculous version and hosting configuration. 

Some screens use slightly different labels, and some options may not appear at all on certain plans. Even so, the core idea stays the same. 

The original website should remain separate from the new installation, so changes you make on staging never touch your live pages.

How to Create a Staging Site Manually Using cPanel

Sometimes your hosting account has no automated staging feature, and installing a plugin is not an option. 

In that situation, the manual method is your answer. 

It takes longer, but it gives you complete control, and it works for almost any database-driven website.

Here is the process, step by step.

1) Create a staging subdomain

Open cPanel’s Domains section and create a subdomain such as staging.example.com. 

Assign it a separate document root, which is the folder where its files will live. 

Keeping this folder apart from your live site prevents the two copies from interfering with each other.

2) Create a new database

Use the MySQL Database Wizard or the available database management tool to create a separate database and database user. 

Give the user full privileges on the new database, and write down the database name, username and password. You will need them shortly.

3) Copy your website files

Open File Manager and copy the live website’s files into the staging directory. 

Do not move or overwrite the original files. 

Copying is safe, whereas moving can break your live site instantly.

4) Export the live database

Open phpMyAdmin, select the production database and export its contents. 

The default export settings usually work well for most websites. 

As a result, you will get a single SQL file that holds all your pages, posts, settings and other data.

5) Import the database into staging

In phpMyAdmin, select the new staging database and import the exported SQL file. 

Wait for the import to complete, and check that the tables appear in the list afterwards.

6) Update the staging configuration

Edit the staging website’s configuration file so it uses the new database name, username and password. 

Otherwise, the staging site will keep talking to your live database, and any change you test could affect real data. 

This is the step people forget most often, so double-check it.

7) Update website URLs

Replace the live website URL with the staging URL where necessary. 

Use a database-aware search-and-replace tool for this job, because a simple text replace can corrupt stored data. 

Many platforms save settings in a format that depends on exact character counts, and a careless edit breaks them.

8) Install SSL

Configure HTTPS for the staging subdomain if SSL is available. 

A secure staging URL avoids browser warnings, and it also lets you test features that need HTTPS to work properly.

9) Test the staging website

Open the staging URL and confirm that its pages, images, navigation and functionality work correctly. 

If something looks wrong, go back through the steps above, because the problem is usually a wrong database detail or a missed URL.

Please note that database-driven applications may require extra configuration, depending on their platform. 

For WordPress, pay particular attention to wp-config.php, database URLs and serialized data. 

The wp-config.php file holds your database connection details, so it must point to the staging database. 

Meanwhile, serialized data is the reason a careful search-and-replace tool is so important.

How to Create a Staging Environment for a Non-WordPress Website

Staging is not exclusive to WordPress. 

Custom PHP websites, Laravel applications and many other web applications can use separate testing environments too, and the idea is the same everywhere. 

You build a safe copy, test your changes there and publish only when you are happy.

The usual process looks like this:

  • Create a separate staging subdomain or server environment.
  • Copy the application’s files and required dependencies.
  • Create a separate database and configure its credentials.
  • Set staging-specific environment variables.
  • Use test API keys and third-party service credentials.
  • Disable production email, payment and other live integrations.
  • Test the application before deploying approved changes.

The last few points deserve extra care. If your staging copy still uses live payment keys, a test checkout could charge a real customer. 

Likewise, if live email is switched on, test messages could land in real inboxes. 

Therefore, always swap in test credentials and turn off live integrations before you begin testing.

Developers may manage staging environments in several ways, depending on the application. 

Common approaches include Git branches, deployment pipelines, containers or entirely separate servers. 

Smaller projects often work fine with a simple subdomain, while larger teams usually prefer an automated pipeline that builds and tests every change.

How to Test Your Staging Site Before Going Live

Creating a staging site is only half the job. The real value comes from testing it properly. 

Without a clear checklist, it is easy to click through a few pages, declare success and miss a broken form.

Use the table below as a practical starting point.

What to testWhat to check
Website pagesPages load without errors
NavigationMenus and internal links work
FormsSubmissions are processed correctly
Images and mediaFiles display correctly
Plugins and integrationsNo compatibility issues
Mobile responsivenessPages work on different screen sizes
PerformancePages load without unusual delays
SecurityAccess restrictions and SSL work
CheckoutTest orders and payment flows work without charging real customers

Work through this list one row at a time. Start with the most important pages, such as your homepage and your top landing pages. 

Next, test anything that earns money or collects leads, including contact forms and checkout steps. 

Finally, check the smaller details, like footers and legal pages.

Also, remember to test on different browsers and devices. 

A layout that looks perfect in one browser may break in another, particularly when the staging changes involve design or frontend functionality. 

Check at least one phone, one tablet and one desktop screen, and try more than one browser if you can.

How to Move Changes From Staging to Your Live Website

Once your testing is complete, it is time to publish. 

Moving changes from staging to production is often called pushing to live or deployment. 

This step needs the most care, since a mistake here affects real visitors.

Here is the general process:

  1. Back up the live website and database.
  2. Confirm that the staging site contains the approved changes.
  3. Identify which files and database changes need to be transferred.
  4. Use the hosting provider’s push-to-live feature or deploy the changes manually.
  5. Check configuration files and environment variables.
  6. Test the live website after deployment.
  7. Restore the backup if the deployment causes a serious problem.

There is one warning you should take seriously. 

Replacing the entire production database with an older staging database can overwrite new customer orders, comments, form submissions and other data collected while you were testing. 

Picture an online store where customers keep placing orders for two weeks while you work on staging. 

If you overwrite the live database with the staging copy, those orders could vanish.

For that reason, active websites need a more careful approach. 

Deploy only the necessary changes, such as updated theme files or new plugin settings, or carefully merge the data so nothing new is lost. 

In contrast, a simple brochure website with no new data coming in can usually be replaced more freely. 

Either way, the fresh backup from step one is your safety net, and you should keep it until you are sure the live site works perfectly.

After deployment, go back through your testing checklist on the live website. 

Some problems only appear in production, so a quick final check is always worthwhile.

Create and Test Your Website With Reliable Hosting

A good staging workflow depends on the right foundation. 

A staging environment needs sufficient storage, database support and access to the tools required to manage website files and configurations. 

If your hosting plan is too small or too limited, creating a second copy of your website becomes difficult or even impossible.

For website owners who need a hosting account with cPanel to manage their websites, Truehost offers hosting services worth considering. 

With cPanel, you can create subdomains, manage databases, copy files and install tools such as Softaculous, which are the very features used in the methods above.

At Truehost, we provide hosting solutions that give website owners access to the tools they need to manage their websites. 

Explore our hosting plans and choose an option that supports your website’s storage, database and development requirements.

Ready to get started? Visit Truehost Hosting to compare plans and find the right fit for your website.

Truehost website builder home cta

Ivy Ngari
Author

Ivy Ngari

SEO Copywriter Kenya

Ivy Waithera Ngari is an SEO specialist and digital marketer based in Nairobi, Kenya, with experience in creating high-performing blog content and data-driven infographics. She specializes in keyword research, on-page SEO, and content optimization using tools like SEMrush, Ubersuggest, and Google Keyword Planner. Ivy has worked with agencies and marketing teams to improve search rankings, boost organic traffic, and enhance audience engagement through strategic storytelling and visual content. She is certified in SEO by the eMarketing Institute and has hands-on experience with WordPress, Google Analytics, and Search Console.

View All Posts