Articles on: WordPress

How can I create a WordPress staging site?

Creating a staging site allows you to test new settings, plugins, and themes without affecting your live website. This process is essential for maintaining the integrity of your main site while you make changes. We recommend using a subdomain rather than a folder for a clearer separation of environments. Follow the steps below to create a staging WordPress website.

Create a Subdomain


To create a staging site, you will need a subdomain. Here's how to do it:

Log into cPanel.
In the Domains section, click on Domains.
Click Create a New Domain.
Enter the subdomain name (e.g., staging.exampledomain.co.za).
Tick the Share document root option to point the subdomain to the same directory as your main website.
Click Submit.

The domain must utilize our name servers; otherwise, you will need to manually add the DNS record (e.g., via Cloudflare).

Create the Staging Site


After setting up your subdomain, follow these steps to create the staging site:

Go to cPanel and select WordPress Manager by Softaculous.
Expand the WordPress installation you wish to clone.
Click on Staging.
The Live Installation URL will be automatically populated. In the Choose Domain dropdown, select your staging subdomain (e.g., staging.exampledomain.co.za). Ensure that the In Directory field is left blank.
Click Create Staging.
Wait for the progress bar to reach 100% before leaving the page.

Your new staging site is now ready! You can log in to the WordPress dashboard to test new features, plugins, and themes safely.

The admin/user account login details will remain the same as the source installation.

Enable AutoSSL for the Staging Subdomain


To secure your new staging subdomain with AutoSSL, follow these steps:

Go to cPanel and click on SSL/TLS Status.
Select the checkbox next to your new staging subdomain.
Click the Run AutoSSL button.

Your SSL certificate will be generated and installed automatically.

Push Your Staging Site to Live


Once you're satisfied with the changes made on your staging site, you can push it live:

Go to cPanel and select WordPress Manager by Softaculous.
Expand the staging site you want to push live.
Click on Push to Live.
Confirm by clicking Push to Live again.
Wait for the progress bar to reach 100% before leaving the page.

Your staging changes will now be reflected on your live website!

If you have any questions or need further assistance, feel free to contact our support team or email helpdesk@elitehost.co.za.

Updated on: 27/10/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!