Upgrade Wordpress Using a Staging Domain

  Print

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 Softaculous

Step 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 it

Step 3 - Click on the 'Create Staging' button on the 'All Installations' page
6e1c62e0155b22e352738f9cde6032cbe762bffe7e0423379891cf0c6d9483c70d0fdcd98713404c?t=502ce5b1dd8562ae030c35ff44a5dd46

Step 4 - Enter 'staging' as the directory name on the 'Cloning WordPress' screen, and then click 'Clone Installation'

64de80cc389c61373d8b2ef344d6cb786c30b3c3?t=83514ada44b18f0617d961abe4fa4e90

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)

65720aee33b9209d1bdb9c1105c3e8f24c028f0e?t=2897c5dfb5a2ca762b5ddaed7f73e662

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)


159c341f097d85ee918b86cab210ad9577607f32?t=b219f2cf1779dc02101a655fba4a0766


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.


Thank you for your feedback on this article.

Related Articles

© Crucial