> ## Documentation Index
> Fetch the complete documentation index at: https://mainwp-mintlify-b66ccbcf.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Staging

> Create and manage staging sites for your Child Sites directly from your MainWP Dashboard using WP Staging. Test updates safely on staging replicas before applying changes to production sites.

<div id="addon-data" style={{display: 'none'}} data-title="Staging" data-purchase-url="https://mainwp.com/extension/staging/" data-pricing-tier="pro" data-bundle="MainWP Pro" data-addon-type="integration" data-version="5.1" data-developer="MainWP" data-changelog-url="https://mainwp.com/changelog/mainwp-staging-extension/" data-integrates-with="WP Staging" data-owned-by="Jestart LLC" data-privacy-url="https://mainwp.com/mainwp-plugin-privacy-policy/" />

## What You'll Learn

* Installing the Staging extension and WP Staging plugin
* Creating staging sites from child sites
* Updating and deleting staging sites
* Running updates on staging sites first

***

<Info>
  **Integration Add-on** - This add-on requires the WP Staging plugin on Child Sites.
</Info>

**Staging Sites** are sites that duplicate your **Production Sites** *(same hardware, same software, same settings)* so that any change can be tested and evaluated before being placed into production.
In other words, it's a complete but independent copy of your production site, including the database.
The MainWP Staging Extension allows you to create and manage staging sites without hassle.
The MainWP Staging Extension requires the [WP Staging](https://wordpress.org/plugins/wp-staging/) or WP Staging Pro plugin on your Child Sites.

## How it works

Once you trigger the process of creating a staging site, the WP Staging plugin will duplicate all site files and copy them to a subdirectory.
All database tables will be duplicated, but the prefix will be changed.
Once this process is done, the necessary data will be updated in the **wp-config.php** file in the staging site.
Within a couple of seconds, you will have a replica of your child site where you can test updates.

After creating a staging site, MainWP adds the new staging URL to your MainWP Dashboard as a staging site and places it in the **Staging Sites** tag when that tag exists.
MainWP Staging Extension is extensively tested by the MainWP team. If you find any issues, please contact [MainWP Support](https://mainwp.com/mainwp-support/).

## Install and Set the MainWP Staging Extension

Installation of the MainWP Staging Extension requires two important steps:

* Installing the Extension itself on your MainWP Dashboard site
* Installing the [WP Staging](https://wordpress.org/plugins/wp-staging/) plugin on Child Sites

### Installing the Extension

The MainWP Staging Extension needs to be installed only on your MainWP Dashboard site. You can [install it as any other MainWP Extension.](/dashboard/overview/manage-extensions#install-extensions)

### Installing the Plugin

For the proper use of the MainWP Staging Extension, you need to install and activate the WP Staging plugin on your child sites. The extension also detects WP Staging Pro when it is installed and active.

### Install from MainWP Dashboard

<Steps>
  <Step title="Login to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Sites > Plugins > Install Plugins page" />

  <Step title="In the Search field, enter the plugin name (WP Staging)" />

  <Step title="Press enter on your keyboard" />

  <Step title="After the search results appear, locate the plugin" />

  <Step title="Select the Install this Plugin option" />

  <Step title="Select your child sites">
    [Select your child](/getting-started/mainwp-user-interface) sites
  </Step>

  <Step title="In the Installation Options box, make sure that the Activate after installation option is selected.">
    In the **Installation Options** box, make sure that the **Activate after installation option** is selected.
  </Step>

  <Step title="Click the Button to complete the installation." />

  <Step title="Once the Installation is complete, Sync your MainWP Dashboard" />
</Steps>

For additional help with installing WordPress plugins from the MainWP Dashboard, please review this [help document](/sites/plugins/managing-plugins-with-mainwp).

### Install directly on Child Site

<Steps>
  <Step title="Login to your child site" />

  <Step title="Go to the WP > Plugins > Add New page" />

  <Step title="In the Search field, enter the plugin name (WP Staging)" />

  <Step title="After the search results appear, locate the plugin" />

  <Step title="Click the Install button" />

  <Step title="Click the Activate button" />
</Steps>

For additional help with installing WordPress plugins, please review this [help document.](https://wordpress.org/documentation/article/manage-plugins/) After installing the WP Staging plugin, it is required to Synchronize your sites so your MainWP Dashboard becomes aware that the plugin has been installed and activated.

## Create Staging Site

To create a staging site for a child site,

<Steps>
  <Step title="Login to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Add-ons > Administrative > Staging page" />

  <Step title="In the list of child sites, locate the wanted child site and click the Create Staging Site action">
    In the list of child sites, locate the wanted child site and click the **Create Staging Site** action<img src="https://mintcdn.com/mainwp-mintlify-b66ccbcf/fwqScicWdT_XReDl/images/add-ons/staging-create-action.png?fit=max&auto=format&n=fwqScicWdT_XReDl&q=85&s=075f1f3e4425d29e30dc71d0ff124c05" alt="Screenshot showing Create Staging Site action in child sites list" width="1920" height="947" data-path="images/add-ons/staging-create-action.png" />
  </Step>

  <Step title="On the Create Staging Site page, set your preferences" />

  <Step title="Enter the Staging Site Name">
    Enter the **Staging Site Name**

    1. Exclude/Include database tables
    2. Exclude/Include files
    3. Click the **Create Staging Site** button<img src="https://mintcdn.com/mainwp-mintlify-b66ccbcf/fwqScicWdT_XReDl/images/add-ons/staging-creation-form.png?fit=max&auto=format&n=fwqScicWdT_XReDl&q=85&s=ff7e4d074849e694e73f14627cca9f57" alt="Screenshot of staging site creation form with database and file exclusion options" width="1920" height="947" data-path="images/add-ons/staging-creation-form.png" />
  </Step>
</Steps>

## Update a Staging Site

Updating a staging site will copy the database and files from the live site to the staging site again. To do that,

<Steps>
  <Step title="Login to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Add-ons > Administrative > Staging page" />

  <Step title="Locate the wanted child site" />

  <Step title="Click the Manage Staging Sites action (you will be redirected to the page where you can see your staging sites for the child site)">
    Click the **Manage Staging Sites** action (you will be redirected to the page where you can see your staging sites for the child site)
  </Step>

  <Step title="Locate the staging site that you want to update" />

  <Step title="Click the Update action link" />
</Steps>

## Delete a Staging Site

To delete a staging site,

<Steps>
  <Step title="Login to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Add-ons > Administrative > Staging page" />

  <Step title="Locate the wanted child site" />

  <Step title="Click the Manage Staging Sites action (you will be redirected to the page where you can see your staging sites for the child site)">
    Click the **Manage Staging Sites** action (you will be redirected to the page where you can see your staging sites for the child site)
  </Step>

  <Step title="Locate the staging site that you want to delete" />

  <Step title="Click the Delete action link" />
</Steps>

## Run Updates on Staging Sites

To run updates on your child sites,

<Steps>
  <Step title="Login to your MainWP Dashboard" />

  <Step title="Go to the MainWP > Sites > Updates page">
    <img src="https://mintcdn.com/mainwp-mintlify-b66ccbcf/fwqScicWdT_XReDl/images/add-ons/staging-updates-filter.png?fit=max&auto=format&n=fwqScicWdT_XReDl&q=85&s=f8fae67be52e503d1ead1bedc475ee96" alt="Go to the MainWP > Sites > Updates page" data-og-width="1920" width="1920" data-og-height="562" height="562" data-path="images/add-ons/staging-updates-filter.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/mainwp-mintlify-b66ccbcf/fwqScicWdT_XReDl/images/add-ons/staging-updates-filter.png?w=280&fit=max&auto=format&n=fwqScicWdT_XReDl&q=85&s=1610edc03ac82e9d43fde1ae5b1ac525 280w, https://mintcdn.com/mainwp-mintlify-b66ccbcf/fwqScicWdT_XReDl/images/add-ons/staging-updates-filter.png?w=560&fit=max&auto=format&n=fwqScicWdT_XReDl&q=85&s=9e0e713417b3149e6810d046c66635c7 560w, https://mintcdn.com/mainwp-mintlify-b66ccbcf/fwqScicWdT_XReDl/images/add-ons/staging-updates-filter.png?w=840&fit=max&auto=format&n=fwqScicWdT_XReDl&q=85&s=7caaec8914d6d3136075f97474e81136 840w, https://mintcdn.com/mainwp-mintlify-b66ccbcf/fwqScicWdT_XReDl/images/add-ons/staging-updates-filter.png?w=1100&fit=max&auto=format&n=fwqScicWdT_XReDl&q=85&s=e52cf19607acdde9b6ae22f96b310cbd 1100w, https://mintcdn.com/mainwp-mintlify-b66ccbcf/fwqScicWdT_XReDl/images/add-ons/staging-updates-filter.png?w=1650&fit=max&auto=format&n=fwqScicWdT_XReDl&q=85&s=ed0df9a38a9cf7a33c4a47f083efd90f 1650w, https://mintcdn.com/mainwp-mintlify-b66ccbcf/fwqScicWdT_XReDl/images/add-ons/staging-updates-filter.png?w=2500&fit=max&auto=format&n=fwqScicWdT_XReDl&q=85&s=e8647fa3c7c8cccf1747f980c653bc8f 2500w" />
  </Step>

  <Step title="Select Staging sites" />
</Steps>

After selecting **Staging sites**, updates will be performed only on staging sites. After you verify that everything is ok on the staging sites, you can run updates on your production sites.

***

## Related Resources

* [Development Add-ons](/add-ons/development) - Browse all development tools
* [Clone Extension](/add-ons/development/clone-extension) - Clone sites between servers
* [Manage Updates](/sites/updates/manage-updates) - Understanding update management
