Installing WordPress in a Local Development Environment Using WampServer (Video)
Installing WordPress in a Local Development Environment Using WampServer (Video)

Installing WordPress in a Local Development Environment Using WampServer (Video)
Installing WordPress on Your Local Server
Welcome, my name is Philip King.
In this guide we will be installing WordPress in a local development environment using a method that will allow multiple blogs on multiple MySql databases.
WordPress is well known for its easy five minute installation and many web hosts offer tools such as Fantastico to automatically install WordPress on their servers, but as we are installing WordPress on our local server (localhost) we will do a manual install so we know where everything is and what everything does.
I will presume you already have a local development environment installed and operational which should consist of at least the following, an Apache HTTP server, a MySql database server, a PHP application server and an application such as phpMyAdmin to handle the administration of the MySql database. Just use the latest versions and you should have no problems.
If you do not have a local development environment setup, my step-by-step video guide, ” Installing a local development server environment using WampServer2 (Video)”, will show you how to create a local development server environment (the links can be found at the end of the article). WampServer2 is the Windows, Apache, MySQL, PHP software stack for Windows based systems. It is an ideal starter platform for creating a local development environment.
This video tutorial, “Installing WordPress in a Local Development Environment“, is also available as a HD PDF file for download. You will need Adobe Acrobat 9 or better to view.
Create Database
To begin we need to create a database for WordPress. So presuming the WampServer2 setup is installed, click on the WampServer icon to display the menu.
- Select phpMyAdmin to administrator the MySql database.
- Enter a name for the WordPress database into the, “Create new database” text box. I’m just going to use, “wp_dbtest”.
- Click the, “Create” database button.
- When the database has been created, go back to the phpMyAdmin home page and select the User “Privileges” link to create a new user. Setting up a new user can be omitted if you intend to use just the administrator account. In which case just ignore the next few steps.
- Select the, “Add new user” link.
- Making sure, “Use text field” is selected in the dropdown menus.
- Select the, “User Name” text box and enter a user name.
- Select the, “Password” text box and enter a user password.
- Move to the, “re-type” password text box and enter the password again. Don’t forget to write down your username and password.
- Click the, “Go” button to implement the changes. All options under Global privileges can be left at their defaults.
- Return to the phpMyAdmin home page and select the User “Privileges” link again to assign user privileges.
- Select the edit wp_username Privileges icon link.
- Scroll down until you see the, “Database Specific Privileges” section and use the, “Add privileges on the following database” dropdown to select our database, “wp_dbtest”. The page will refresh with privileges for that database.
- Click “Check All” to select all privileges and click the “Go” button.
- Make a note of the host name listed after “Server” at the top of the page, (usually localhost.)
- Return to the home page and close phpMyAdmin.
Download WordPress Files
We now need to download the WordPress files. So open your browser.
- Browse to the WordPress download page at http://wordpress.org/download.
- Select the download link.
- Enter the file save location in the popup. I recommend you place the file in the web site root directory. This makes it easier to create WordPress sites.
- Click the save button.
- When the file has finished downloading close the browser window.
Extract WordPress Files
We now need to extract the WordPress files. So…
- Browse to the location you saved the WordPress archive using Windows Explorer and extract the files.
- Select the directory created and rename the directory to the same name as the database, wp_dbtest, this just makes things easier to remember and helps a lot when you have multiple WordPress sites and databases.
Setup wp-config.php
We now need to setup the wp-config.php file. This file controls the WordPress database usage.
- Open the new directory and copy the wp-config-sample.php configuration file to wp-config.php. Copy (Ctrl+C), Paste (Ctrl+V) and Rename (F2). You could just rename the file but I prefer to keep the original file as a backup.
- Open wp-config.php in your text editor, I’m using Notepad++ but any text editor will do.
- Scroll down and find, define (‘DB_NAME’… and enter the name of our MySql database ‘wp_dbtest’ in the indicated field.
- Scroll down and find, define (‘DB_USER’… and enter the name of a username ‘wp_username’ in the indicated field.
- Scroll down and find, define (‘DB_PASSWORD’… and enter the name of a password ‘wp_password’ in the indicated field.
- Click the save button.
- Close the text editor.
Configure WordPress
We now need to run the installation script to configure WordPress.
- Open your browser and run the install script, “http://localhost/wp_test/wp-admin/install.php”. This will display the configuration page.
- Enter your blog title.
- Enter your admin email address, this doesn’t have to be a valid address.
- Select the Allow my blog to appear in search engines like Google and Technorati check box if this is your requirement.
- Cick the install WordPress button.
- With a successful installation comes a new username and password. Make a note of these details, we’ll change the password straight away.
- Click the Log In button.
- Enter the username, “admin”.
- Enter the generated password (you did make a note, didn’t you).
- Click the Log In button
- At the top of the Dashboard page is a notice area, click on the link, “Yes, Take me to my profile page text box” so we can change the password.
- Scroll down to the bottom of the page and enter a new password. Don’t forget to make a note of the password.
- Click the, “Update Profile” button.
Test blog
It’s time for a test run of our new blog.
- Enter the blogs web address in the browsers address bar, “http://localhost/wp_test”, to see the public front page.
- Enter the blogs admin web address in the browser address bar, “http://localhost/wp_test/wp-admin”, to be taken to the Log In screen where you can enter the username and password again to obtain access to the administrators dashboard area. Here you can explore and begin customising your blog. The first area you should investigate is the, “Settings” and “Appearance” menu items.
Congratulations
Congratulations, we are finished, you have just learned how to install WordPress in a local development environment.
If you need more MySQL databases and more WordPress sites to play with, just repeat the steps and construct as many WordPress sites as you wish.
Well, that’s this step by step guide complete. I hope you found something useful and enjoyed this session, please don’t forget to let me have your thoughts on this tutorial.
See you soon.



![Download [Download]](http://kingsolutions.org.uk/ks/graphics/btn_download_round01.jpg)

Hi Phil
nearly six months on back to square one with the instructions you’ve kindly provided. I can install 1 site but when I try to add another I get a wordress error. If I just create a new database and create a new config file in wordpress with user as “root” an no password im fine I can create multiple sites. Is there a problem with this approach as it seems to work. What’s the advantage in doing it your way.
Sorry for the late reply Shirley, my system has been trashing all comments.
There are no right and wrong ways Shirley, only ways that work and way that don’t work. If you’ve found a new method, then go with it.
When installing multiple sites I just pace each WordPress site in its own directory off the root directory.
This method works fine if you want individual control over each site, not so good if you want a particular theme to globally effect all sites.
Followed your excellent tutorial on installing multiple copies of wordpress into WAMP. But I cant find anything on moving the local wamp database and wordpress files to a new host online. Plenty of MAMP stuff but nothing on WAMP
Hi Mark
Do you really want to move the WAMP database or do you want to move the WordPress installation and its MySQL database?
Update to my earlier post, I didnt follow the instructions correctly, works perfectly …..thanks
Glad to see you managed to get everything working Mark.
Hi I have followed your instructions and the first site worked fine but when I tried repeating the steps for another site it wouldn’t recognise it, then I had to uninstall wamp because to just errored when i tried to get into php my admin. I have reinstalled wamp and when i folloew the steps i get (db_create.php missing parameter: new_db (FAQ 2.8) plus i have a message at the bottom of the screen in red that says (your configuration file contains settings (root with no password etc etc…
Hi Phil
after using your tutorial for months to add sites to wamp I had to download wamp again after it crashed I find I can no longer use your instructions with the latest version of wamp and wp3 it just doesnt work no matter how many times I’ve tried.
Hello and thank you very much for an excellent tutorial.
I need some clarification on this point:
” If you need more MySql databases and more WordPress sites to play with, just repeat the steps and construct as many WordPress sites as you wish”.
Can you please specify what steps we should repeat.
Thank you once again.
Raphael.
Presuming you require independent WordPress sites, then you will need to follow all those steps needed to install WordPress in a new directory, with a unique name. This will also mean following all those steps needed to create a new MySql database, again with a unique name.
Hope this help.
Philip
Excellent, very easy to follow tutorial. Thank you soo much:)