RAMP Documentation

Set Up a Staging Site within a WordPress Multisite

There are many ways to duplicate a site in WordPress Multisite, most of which require going into the database and running SQL commands which can take some time to complete. For the purpose of cloning a live site to create a staging site for RAMP we recommend using the Add Clone Sites for WPMS plugin to make this a little easier. Once the plugin is installed and activated, it allows you to choose an existing site that you’ve created and clone that existing site exactly including layout, posts, pages, menus, etc.

How to easily install and use the Add Clone Sites for WPMS plugin:

Installation

    • Download the Add Clone Sites for WPMS plugin
      • NOTE: If you have not downloaded and installed RAMP, you’ll need to download the zip file from your account page as we will need to activate it on the staging and live site later.
      • Although the Add Clone Sites plugin version 0.8.4.2 is only listed as compatible up to WP 3.1.4, we have tested it under WP 3.7 with no apparent issues.  However, we do recommend taking a backup before performing any significant maintenance regardless of the circumstances.
    • Log in as the administrator and navigate to the network admin dashboard of your WordPress Multisite installation
    • Go to Plugins > Add New and click the “Upload” link

ramp-wpmu-upload-plugin

  • Click Choose File, find and select the “Add Clone Sites for WPMU batch” zip file you downloaded, and click “open”
  • Click “Install Now” to install the plugin into your WordPress plugins folder
  • After successfully installing the plugin, click the “Activate Plugin” link. You should then see the “Plugin Activated” confirmation message.
  • If you haven’t installed RAMP follow the steps below. Otherwise, continue to the next section
  • Return to Plugins > Add New and click the “Upload” link
  • Click “Choose File”, find and select RAMP zip file and click open
  • Click “Install Now” to install the plugin into your WordPress plugins folder
  • Do not Network Activate RAMP, as we will set it up individually on the staging and live sites

Cloning a Site to Create a Staging Site for Use with RAMP

    • From the Network Admin go to Sites > Add Cloned Sites

ramp-wpmu-menu-cloned-sites

  • Follow the instructions on the page and select the site to clone and user for the admin of the staging site
      • You’ll need to adjust the green and red bars (which are toggles) by clicking on the silver discs, the screenshot below shows the correct configuration for cloning your site to work with RAMP

    ramp-wpmu-cloned-sites-admin-page

    • Here’s what you should see:
      • Batch add multiple sites or add just a single one: Single site
      • Domainmap or just clone the new sites: Just clone please
      • Copy all images and uploads from template to new blog(s): Yes, copy images
  • Follow the instructions on the page to enter details for the staging site
    • URL ( Note that the URL field is just the subdomain for a subdomain WPMS install, example: cloning a.example.com to b.example.com, you would enter ‘b’ in the URL field)
    • Title (The title of your new Site, example: Staging Server)
    • Description (example: Staging Server used to push stuff to production using RAMP)
  • Once you’ve confirmed your information is correct, click “Add Cloned Sites” to complete cloning your site. You’re done! You’ll be taken to the confirmaton screen
  • Depending on your set up you may need to set up DNS, adding the domain name to the appropriate web server config, etc. for the new site
  • Once you’ve completed cloning your staging server we recommend you confirm the Add Clone Sites for WPMS plugin is deactivated on all individual sites and return to the Network Admin > Plugins > go to Installed Plugins and network deactivate and delete the Add Clone Sites for WPMS plugin once it’s no longer needed.ramp-cloned-sites-wpms-deactivate

Activate RAMP on your sites

Individually activate RAMP on your WordPress Multisite staging and live sites as you would a single-site instance, by navigating to Plugins and activating RAMP. See our documentation for RAMP configuration and installation instructions.

See also: