Creating a WordPress staging site on UnderHost
Set up a staging copy of your WordPress site on a subdomain to test changes safely. Methods using Softaculous clone, manual copy, and WP Staging plugin.
On this page
A staging site is a private copy of your live WordPress site where you can test changes-theme updates, new plugins, code changes, redesigns-without affecting visitors. When satisfied, you push the changes to production.
Method 1: Softaculous clone (easiest)
- First, create a subdomain (e.g., staging.yourdomain.com) in cPanel → Domains → Subdomains
- Open cPanel → Softaculous → All Installations
- Click on your live WordPress installation
- Click Clone
- Set the destination to the staging subdomain and the correct folder
- Click Clone Installation
Softaculous copies files and the database, and updates the WordPress URL configuration to the new subdomain automatically. The clone is ready in a few minutes.
Method 2: Manual copy
- Create a subdomain in cPanel → it gets a folder like
/public_html/staging/ - Copy all files from
public_htmlto the staging folder (via File Manager or FTP) - Export the live database via phpMyAdmin
- Create a new database in cPanel for staging
- Import the exported SQL into the new database
- Update
wp-config.phpin the staging folder with the new database name, username, and password - Run a search-replace to update the URLs:
wp search-replace 'yourdomain.com','staging.yourdomain.com'
Method 3: WP Staging plugin
The WP Staging plugin (free) creates a staging site with a few clicks from within WordPress:
- Install and activate WP Staging from the plugin repository
- Go to WP Staging → Create New Staging Site
- Choose a name for the staging directory
- Select which tables and files to copy
- Click Start Cloning
Access the staging site from the WP Staging dashboard. Changes on staging do not affect the live site.
Password protect the staging site
Add password protection so the staging site is not publicly accessible and doesn't get indexed by search engines. Use cPanel → Directory Privacy or add a .htaccess Basic Auth. See: How to password protect a directory
Push staging to production
The paid version of WP Staging can push changes from staging to production. Manually: backup production, copy changed files via FTP, export the staging database, import to production, and run a search-replace to revert URLs back to the production domain.
Need managed WordPress hosting?
Run WordPress on UnderHost managed hosting with performance tuning, SSL, backups, security guidance, and expert support.





















