How To Make a WordPress Test Site In 8 Small Steps

How To Set Up a WordPress Testing Site

Every time a new version of WordPress is released, some people will experience compatibility problems with their sites. These can be minor and easily resolved, or they can  be more tricky to diagnose. Either way, especially for non-developers, such problems are a little scary, particularly if they make your website inaccessible or unusable. One way to ease the stress of an upgrade, or to experiment with any changes you may want to make on your site, is to create a sandbox, or testing site. The video below shows you how you can easily do that using free tools. 

If you use WP Engine or another managed WordPress host,  you have access to a staging area, which allows you to make a duplicate of your site with one click.You can then use this staging area to test out upgrades, plugins, theme changes etc.

If your host doesn’t offer you a staging environment, you have a couple of other options:

1) Run a duplicate site on a local installation of WordPress. Local means it’s not accessible via  the internet, only on your computer.
2) Use a spare domain to create a duplicate of your site. This would be live on the internet to anyone that had the web address.

I prefer option 1 because it’s more secure. If you set up a live dummy site you either need to delete it after your tests, or you need to maintain it just like you would any other site to maintain security. When people forget about their test sites they then forget to update plugins, WordPress etc and they tend to be easier targets for hackers. This tutorial focuses on option 1.

The video below demonstrates the following 8 simple steps needed to create a fully functioning duplicate of your site, running on your computer that you can do your worst with and it won’t matter if you break it! Scroll on if you prefer text instructions.

1)  Download the free version of Desktop Server (if you are a developer or build a lot of sites, the Premium version is a must-have tool. I’ve been a premium subscriber since the product’s early days and it made my life SO much easier). The premium version will make the process even easier but I wanted to show you how it can be done for free.

2) Install the Duplicator plugin on your live site, create a Package and download the Installer and Package files to a folder on your computer

3) Launch Desktop Server and create a new development site, but stop short of creating a username and password.

blank

When you get to this screen, you have completed this step. Close the Desktop Server window and go to the next step:

blank

4) Navigate to your Sites folder where you will find a folder named for  development site you just made (e.g. www.yoursite.dev.cc). Move the wp-config.php file from this folder into the same folder  where you downloaded the two files from Duplicator.

blank

5) Delete all the other files from the dev website folder (sounds weird but we’re replacing them with all the files from your live site instead)

6) Move the Duplicator package zip and installer.php files into the now-empty dev website folder:

blank

7) Navigate to the installer file by typing in the dev url you created and appending /installer.php, eg. www.testsite.dev.cc/installer.php

blank

8) Open the wp-config.php file, then follow the onscreen steps, copying/ pasting the database info from the wp-config file:

blank

After you complete the onscreen steps, navigate to your dev url and boom! –  there’s a duplicate of your live site running locally on your computer. Congrats, you’re a genius!

Now you can test away, run the upgrade, see if any plugins need replacing etc. Then you will know exactly what needs to be done on your live site to ensure a smooth upgrade.

Get DesktopServer

Aff. link

header image courtesy Dopey

Similar Posts

  • How To Set Up a Free Download with Email Capture in your WooCommerce Shop

    How To Set Up a Free Download with Email Capture in your WooCommerce Shop

    I’ve had some clients in the past who wanted to set up a free download in their WooCommerce store, as an email list building strategy.

    In reality it can be a little cumbersome to do a free download in exchange for an email address within a store context because it takes several more clicks on the part of the user, than it would for a typical opt-in form. The steps I provide here will significantly streamline the process. I wouldn’t recommend it as your only opt-in process, but if you really want/need to use your WooCommerce store for this, the method in this tutorial will certainly ease the main pain points.

  • WordPress Image Positioning, Spacing & Alignment – Common Problems and Fixes

    WordPress Image Positioning, Spacing & Alignment – Common Problems and Fixes

    Wrestle no more with images in the WordPress editor. This guide to working with images in WordPress has now been updated to include tips for the new Gutenberg editor, released with WordPress 5.0. Don’t worry, if you haven’t updated yet just scroll down to the Classic Editor section of the guide. This tutorial shows you how to wrangle images with ease: alignment, positioning, spacing and more.

  • Local landing pages and how to create them

    Now more than ever, you have to make sure that your local audience is able to find you online. One way to make this happen is by creating local landing pages, which are designed to help you rank higher in local areas. So, if you want to increase your visibility on a local level or […]

    The post Local landing pages and how to create them appeared first on Yoast.