It’s very important to have an environment where you can test new themes and plugins without breaking your live site. That’s why many WordPress site administrators choose to set up a staging ground for exploring new options and then committing them to the live site after thorough testing. We’ve put together a list of some of the best ways to set up a testing environment. The local environments will depend on your operating system. Bookmark your favorites and start working unplugged!
DeployMint is a staging and development environment made especially for those using WordPress Multisite. It works as a plugin to take snapshots of sites within WordPress multisite and then turns them into staging environment(s), featuring robust version control and zero down time during deployments.
Instant WordPress is a complete standalone, portable WordPress development environment that can even run from a USB drive. It’s easy enough for anyone to use – developers and non-developers alike. Instant WordPress is entirely free and made for WordPress, so you don’t need to set up a database and install each time you want to create a new development site. Read our recent article for more information and download it from the Instant WordPress homepage.
Local WordPress Install with MAMP
Smashing Magazine has a very comprehensive tutorial on getting set up with MAMP (Macintosh, Apache, Mysql and PHP). Their guide will take you step by step through the process of setting up a local development server on your Mac.
Local WordPress Install with XAMPP
Siobhan wrote an excellent step-by-step tutorial on creating a test environment for WordPress on your Windows machine. Follow her instructions and you’ll be up and running with XAMPP in a matter of minutes. The tutorial then guides you through setting up a WordPress installation on your new local server. Check out: Install WordPress Locally on Windows with Xampp
Clone Your Production Site with the Duplicator Plugin
The Duplicator plugin lets you easily clone a WordPress site for use in another location. This is especially helpful if you want to create an exact copy of your production install to use as a testing environment on your local server or elsewhere. Read our introductory article and download the Duplicator plugin for free from the WordPress plugin repository.
Multisite Subdomain Test Environment for Mac
Here’s a tutorial from Paul Tech aimed at those using WordPress multisite. It shows you how to easily pull down your site, make changes, test, and upload to your production environment. The tutorial walks you through the process of dumping your database, moving files, setting up a MAMP test environment, configuring your subdomains to work, as well as sending the files and database back to production. Read the tutorial at: WPMU Sub Domain Test Environment on the Mac
Create a MacOS X Local Mirror of a Production Site
This tutorial comes to you from the WordPress codex. It contains a step-by-step guide for configuring Apache and PHP, create an example.mirror static site, install and configure MySQL, set up the WordPress user and database and then automate the updating of your local mirror with the contents of your blog.
DevPress Development Environment Tutorial
This tutorial is from Patrick Daly of DevPress. Basically the tutorial assumes that you’ve already used WAMP, XAMPP, MAMP or the like to set up a local development environment. Then you’ll learn how to use your real domain and edit your HOSTS file and Apache’s httpd.conf. Patrick also points you in the right direction for source control and deployment. This may be the perfect staging environment for you. Read the tutorial at: A really sweet WordPress development environment
BitNami WordPress Stack
BitNami WordPress Stack is a free, self-contained package that has everything you need in order to run WordPress for development or production. Downloads are available for Windows, Mac and Linux. Check out the WordPress codex article on installing the BitNami WordPress Stack.
Create virtual development websites with DesktopServer
DesktopServer is a product from ServerPress that lets you create isolated development sites for dozens of projects, accessible from your desktop web browser via a fictitious, pseudo top-level domain name. It’s based on XAMP but optimized specifically for WordPress developers and designers. It includes automatic WordPress database installation, configuration, and removal, as well as a unique integrated virtual hosting domain name manager. The free DesktopServer Limited allows for 3 virtual host servers, which is definitely enough for you to try it out. Downloads are available for both Windows and Mac.
Do you have another favorite method for setting up a testing environment? Let us know in the comments!