Stage a website with Softaculous and cPanel
Before create a Staging website, please create a either a subdomain or addon domain first.
To create subdomain or addon domain, please refer to :
https://www.dataplugs.com/en/kb/create-a-subdomain-in-cpanel/
https://www.dataplugs.com/en/kb/create-an-addon-domain-in-cpanel/
And also please backup your site:
https://www.dataplugs.com/en/kb/backup-your-website-in-cpanel/
Create Staging Site
Login to cPanel then click Softaculous.
Click All Installations at the right top corner.
Click the Create Staging icon for the selected installation that needs the staging site.
Complete the staging installation details:
Choose Protocol, Choose Domain.
(this would be the staging subdomain/Addon domain you’ve previously created)
Push to live
Click All Installations at the right top corner.
Click on the Push to Live icon next to the corresponding staging site you wish to push to live.
Click Push to Live icon.
Default Push: The Default Options tab is selected by default. This option will replace all of the files of your existing live installation with the as-is files in the staging installation. Additionally, the existing live database will be erased and the database from your staging installation will be imported:
Custom Push: To create a custom push, click the Customize tab. On the Customize tab you can select to Push the Files, push Full Database changes (which includes structure changes as well as rows in the tables,) only push some of the Database Structure Changes, or push only Data Changes in Tables. This option is useful when you are working with a sample database, or if portions of the live site have been also been updated at the same time as the staging site: