In this tutorial we are going to walk through setting up a WordPress website on a locally hosted WAMP server, and assumes you already have a WAMP server setup on your computer. If you need to setup a WAMP server setup on your computer you can follow these steps.
If it’s not currently running, startup your WAMP server now.
Step 1: Gaining Access to phpMyAdmin
Your WordPress installation is going to connect to a mySQL database, hosted locally on your computer through the magic of WAMP, and the first thing we need to do is gain access to our phpMyAdmin so we can create a database.
By default there is no password setup for the MySQL database access. So let’s get that setup now, click on the WAMP icon->MySQL->MySQL Console.
Since this is our initial setup there is no password set as of yet, so leave the password field blank and hit enter. You should see the following in your console after clicking enter.
Ok, you are now logged in (without a password), so let’s set your MySQL password by typing the following into the MySQL Command Prompt.
UPDATE mysql.user SET Password=PASSWORD(‘Your new Password’) WHERE User=’root’;
If you see the “Query OK” the change has been made, if you don’t see that message, double check to make sure you didn’t miss-type the command input.
Step 2: Adding Some Necessary WAMP Modules
If you are planning on using WordPress it’s probably because of the features if offers so you will most likely be using some features and/or plugins that require a couple of different modules to be activated, so lets do that now.
Under WAMP icon->Apache->Apache Modules you will want to select “rewrite_module” so that the WordPress Permalinks work.
If your using a cache plugin you will also want to active the headers_module and expires_module.
If you are going to be using an ssl you will want to active the ssl_module.
Step 3: Creating A Database For Your WordPress Site
You should now be able to log into your phpMyAdmin using the username “root” and the password you just set in the above steps. Open your browser and visit the following URL http://localhost/phpmyadmin/.
Now that you are logged in, its time to create the database that our WordPress installation is going to use by clicking on “Databases” then entering your database name and clicking “Create”
That’s it, you should now have a new database available in the left hand column.
Step 4: Installing WordPress
Go to http://wordpress.org/download/ and download the latest version of WordPress.
Now that we have the WordPress files downloaded we need to unzip the packet and place the files into a new directory that you need to create at C:\www\you-new-directory (or your custom directory if you chose not to use the default WAMP setup).
Your newly created directory should now look like this:
You are nearly complete, now all we need to do is run through the WordPress installation wizard and connect it to the database we created earlier. This part is quite simple, just visit the folder you added the WordPress files to from any browser http://localhost/your-new-directory, or in my case http://localhost/wordpress-test and follow the WordPress installation prompts.
If you see a connection error check your mySQL username and Password and try again.
That’s it, your done! Congratulations, you now have a local WAMP server running your first WordPress Installation. You should be able to see your website by visiting http://localhost/your-new-directory.