Upgrade Wordpress Using a Staging Domain
This article will explain how to test a WordPress update using a staging site, rather than upgrading your live site without knowing what the results will be.
You can use this same format to test any change on your site before bringing it live.Step 1 -
Log in to cPanel and access SoftaculousStep 2 -
Locate your existing WordPress installation in the 'All Installations' page
i: If your existing installation is not listed in Softaculous, you will need to Import
itStep 3 -
Click on the 'Clone' button on the 'All Installations' pageStep 4 -
Enter 'staging' as the directory name on the 'Cloning WordPress' screen, and then click 'Clone Installation'Step 5 -
You will now be able to log into your staging WordPress install, and perform changes/upgrades without affecting your live site. You can log in by browsing to your WordPress blog, and instead of typing '/wp-admin', type '/staging/wp-admin'.Step 6 -
Once you're logged in, make a small change to the staging site and ensure you can observe the difference compared to the live site (keep a close eye on your address bar as you work on each site)Step 7 -
Merge your upgraded site to the live domain.
This can be done in a number of ways, for example if you're just testing a quick change on the site, or if your WordPress upgrade goes through without any issues, you can proceed to perform the same action on your live site now that you know the results.
However, if you are performing a big change that requires extensive work on the staging site, you will likely want to merge the changes into the live site, this can be done like so:
a. Open the 'all installations' page in Softaculous, and make a backup of your live site
b. Remove your live WordPress installation (Including site files and databases)
c. Clone your staging site, leaving out the 'staging' directory. This will merge any upgrades or changes that you've made back into the live site.Step 8 -
Remove the staging site from the 'All Installations' page for security reasons, if you need to test any changes in future, you can always clone the live site again.
Did you find this article useful?