WordPress & Online Marketing Training // [email protected]

As I’m sure most of you are aware, WordPress 3.5 is out now and some of you may already have upgraded, hopefully smoothly. However, 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 experiement 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 WPEngine (cupcake money, ie. affiliate link) 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 you’re not on WPEngine 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!
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).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.
4) Navigate to your Websites folder where you will find a folder named for development site you just made (e.g. www.yoursite.dev). Move the wp-config.php file from this folder into the same folder where you downloaded the two files from Duplicator.
5) Delete all the other files from the dev website folder (sounds wierd 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
7) Navigate to the installer file by typing in the dev url you created and appending /installer.php, eg. www.yoursite.dev/installer.php
8) Open the wp-config.php file, then follow the onscreen steps, copying/ pasting the database info from the wp-config file. 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.
header image courtesy: http://www.flickr.com/photos/dopey/123646856/sizes/o/in/photostream/
Hi! I'm Lucy Beer. I believe that technology is liberating when you know how to use it, and bewildering when you don’t. That’s where I come in. I help non-techies understand and use the web to empower their personal or business mission. I'm here to share with you everything I've learned (and continue to learn) about WordPress and online marketing. Whether you need to build a website, optimize your existing site, or create a marketing strategy that works, I'll help you understand, in plain English, what you need to do to achieve your goals.
10 Responses to How To Make a WordPress Sandbox Site In 8 Small Steps
Steve
April 18th, 2013 at 3:04 pm
I get an error on deployment. I get the following message:
server code: 200
status: OK
response:
INSTALL ERROR!
A wp-config.php already exists in this location. This error prevents users from accidentally overwriting the wrong directories contents. You have two options:
Empty this root directory except for the package and installer and try again.
Delete just the wp-config.php file and try again. This will over-write all other files in the directory.
I can't get past this error. Any suggestions?
LucyBeer
April 19th, 2013 at 7:30 pm
Did you follow the instructions the error message provides? You already have a wp-config file so you have to deal with it in one of the two ways mentioned. Have you tried either method?
David Delp
May 1st, 2013 at 9:27 pm
I'm using option #2 so that my client can review changes before launching. The issue is that he's also adding content to the production site. How do I use Duplicate to copy all of my changes into the production site without stomping on all of his content updates? I can't find the answer anywhere so I'm stuck. I dont' want to screw up his database.
LucyBeer
May 3rd, 2013 at 12:41 am
Are you actually making changes in the database or just to theme files?
David Delp
May 3rd, 2013 at 2:21 am
Theme files mostly. Plus text widgets and maybe a few settings, but I'm willing to manually cut and paste those changes.
LucyBeer
May 3rd, 2013 at 6:45 pm
If you are primarily updating theme files you don't need to use duplicator. Just FTP your theme up to the server. Then you won't have to touch the database.
David Delp
May 4th, 2013 at 11:06 am
Thanks Lucy. I do that, but there's still a lot of handwork updating text widgets and plugin settings. Gotta keep good notes. Is that what you do?
Duplicator could work for creating the original sandbox. It was suggested I create a starter site with plugins and themes I like to work with, bundle that up and start all my sites with that.
Neat idea, huh?
LucyBeer
May 4th, 2013 at 11:23 am
Yeah, there's no simple way I know of to cleanly and easily 2-way sync EVERYTHING once your client is involved with adding content etc. I try and do as much as possible locally before the client is involved. Once the site is live it does change things a bit. I haven't used it yet, but you could check out this plugin for easy transport of your widgets: http://wordpress.org/extend/plugins/widget-settin…
David Delp
May 9th, 2013 at 3:26 pm
Boy (I mean girl), did that help! Thank you so much Lucy!
LucyBeer
May 9th, 2013 at 4:06 pm
Nice!! Glad to hear it!