
My local sites run much faster, plus testing products on my local machine is much safer than testing on a live site – not to mention much cheaper without the cost of web hosting.
Setting up a local server environment for WordPress isn’t difficult and will save you time in the long run since you won’t have to install and uninstall a fresh copy of WordPress online each time you test or develop something for WordPress.
There are many options for Windows. I’ve previously looked at how to set up a localhost using XAMPP. In this tutorial I’ll walk you through how to set up WampServer, including installation, creating a MySQL database, and installing WordPress. I’ve included optional steps for setting up Multisite.
What is WampServer?
WampServer is a popular Windows web development environment that allows you to create web applications with Apache2, PHP and a MySQL database.WordPress isn’t a stand-alone application and needs server software to run. WampServer provides the necessary server environment so you can install and run WordPress on your local machine rather than on the internet.
Installing WampServer
Head over to the WampServer site and download the latest version of the software. WampServer is an open source project and is free to use.
A warning message will display. Click on “download directly,” and you’ll be taken to the SourceForge website. The download will automatically start in 5 seconds.
The WampServer executable file is small at just 41.5MB, compared to XAMPP, which is 125MB.
You may receive warnings about installing the software on your computer. As you would when installing any software on Windows, use your best judgment, though it’s best to ignore the warnings if you want the installation to continue.
The WampServer setup wizard will guide you through the installation.





You’ll then be prompted again to specify the SMTP server and the email address to be used by PHP. These settings aren’t all that important, so just leave the defaults and click “Next.”


Check WampServer is Running
If you click “Finish” and the software doesn’t launch and you run into any errors, it might be thatyou don’t have the Microsoft Visual C++ libraries installed on your computer. Apache and PHP won’t run without them.For Windows 32BIT: Install the Visual C++ 2010 SP1 Redistributable Package x86 : VC10 SP1 vcredist_x86.exe
For Windows 64BIT: Install the Visual C++ 2010 SP1 Redistributable Package x64 : VC10 SP1 vcredist_x64.exe
Depending on your local machine, you may have to install one or both of these files. If WampServer still doesn’t work, trying installing Visual C++ Redistributable for Visual Studio 2012 Update 4.
If you continue to have any issues, check out the WampServer forums.
If any security warnings pop up, such as firewall warnings, be sure to allow access otherwise the software won’t work.
If you click “Finish” and the software does launch, a WampServer icon will appear in the systems tray.

- If the icon is red, the server isn’t running and is offline. You may need to restart WampServer or check out the WampServer forums for more help.
- If it is orange, the server is partially running, i.e. Apache may be running and the MySQL service is offline. Click on the WampServer icon and check the service status next to Apache and MySQL to see if they are running. You may need to restart WampServer, and if it still doesn’t work, check out the WampServer forums.
- If the icon is green, it means the server is running and you should be able to access localhost from your browser.

Setting Up Your MySQL Database
Before we install WordPress, we need a database.Click on the WampServer icon in your system tray and then click on phpMyAdmin.

Sign up for more
WordPress wisdom

When you’ve entered a name, click “Create” and close the window.

Download and Install WordPress
Download the latest version of WordPress.In order to get WordPress working with WampServer you need to unzip WordPress to the right folder. Extract WordPress to the C:/wamp/www/ folder.
You can rename the WordPress folder whatever you like. I’m going to keep it as “wordpress.”

Replace “username_here” with “root” and leave “password_here” blank.
Save the file and close it.
Now we can get on with installing WordPress.
Open your browser and go to http://localhost/wordpress/
You should see the welcome screen for the famous five minute WordPress installation process.

Your WordPress installation is now complete!
Setting up WordPress Multisite
Setting up Multisite on a localhost provides a quick and easy way to test/develop themes and plugins away from a live site.Open your wp-config.php file again and add/edit the following lines to activate Multisite’s installation mode:

Login to your localhost site in your browser and under “Tools” you will now have a new option, “Network Setup.”

WordPress will prompt you to edit your wp-config.php and .htaccess files.
Following the onscreen instructions, open wp-config.php and add the following lines underneath your previous edit:

Your .htaccess file should look like this:

Edit your .htaccess file to complete your Multisite installation.
Multisite should now be enabled and working on your WordPress site!
