Skip to main content
All CollectionsWebsiteWordPress Management
How to Create a WordPress Staging Environment
How to Create a WordPress Staging Environment

Using the WordPress staging functionality at Hostinger

Updated over a year ago

When working on the development of your WordPress website, one way to prevent any changes from affecting your live website is to have a copy of your website for testing - a staging environment.

At Hostinger, if you have a Web Busines or greater hosting plan, you can easily create and manage the staging environment with a few clicks!

How to Create the Staging Environment

Open Websites → Manage. In the left sidebar, search for Staging, and click on it:

The Staging option on hPanel sidebar

If the Staging option does not appear on the WordPress submenu, make sure your WordPress installation is detected.

Next, click on Create staging:

The create a staging environment section showing the button to create staging

Enter a subdomain name and click on Create:

The pop-up window to create a subdomain for the staging environment

After a few minutes, the staging website will be created.

NOTES

  • This tool allows the creation of staging websites only for domains. If you want to set up a staging environment for a subdomain, you'll need to create it manually

  • If your domain is pointing by nameservers to a different provider, make sure to create the A record for the staging subdomain on your active DNS Zone and point it to your hosting IP

How to Manage the Staging Environment

To access your staging website, go to the Staging section and click on Manage staging:

The Staging section on hPanel showing the option to Manage staging

You will be directed to the WordPress Dashboard of the staging website. Once you have worked on it and are ready to go live, you can push the changes by going back to the Staging section and clicking on the options button ( ⋮ ) → Publish:

The Staging section displaying the content after clicking the options button, highlighting the Publish option

In the next window, confirm that you want to replace your live website with the staging version by clicking on Publish.

Publishing replaces your files and database with the staging copy. If you had made changes on your original website after creating the staging, they will be lost.

You will also find the options to revert the changes in case you need to go back to the previous version of your website, as well as delete the staging environment.

NOTES

  • Staging websites are created as subdomains and add a new database to your hosting. In case you cannot create any more staging websites - you will need to upgrade your plan

  • The staging tool does not support WordPress Multisite

Did this answer your question?