Menu Close

Installing WordPress On Windows Locally With WAMP

default

Wouldn’t it be great if you could install and use WordPress on your PC while coding or testing a new theme or plugin? Of course it would! In this tutorial I’m going to show you how to install WordPress in Windows using this great free software called WAMP. You won’t be needing an active internet connection after this – but who am I kidding, internet is like oxygen to us!

So lets get started. You’re going to need the latest version of WAMP and of course, the latest version of WordPress.

Step 1: Installing WAMP

This is a fairly simple step – keep on clicking Next till you see Finish. In case you have a doubt, you could go through the following:

  1. Its better to leave default installation directory unaltered i.e. “c:/wamp”
  2. During installation, a prompt will ask you for a “default browser”. It’s explorer.exe. Simply click on Open as shown in the screenshot.
  3. Click Yes when a prompt for “installing the new WampServer 2 homepage” pops up.
  4. Add an exception to your firewall for Apache HTTP Server.
  5. Let the SMTP and Email be set as the default values.
  6. Once the installation is complete, check the “Launch WampServer 2 now” box and click on Finish.

How to install WAMP step 1

How to install WAMP step 2

How to install WAMP step 3

How to install WAMP step 4

Step 2: Making sure WAMP is Running

To ensure that WAMP server is running, check the color of the WAMP icon (capital W icon) in your taskbar. Following are the possible situations:

  1. If the W icon is Red then WAMP server is not running and is offline. You will have to restart the sever or reboot your PC.
  2. If it is Orange, then the server is partially running, i.e. Apache (you web server) is running and the MySQL service is booting or is offline. You should usually wait around 30 seconds and if the icon still doesn’t turn Green the you should restart the server.
  3. If it is Green then it means that the server is online and should be accessible from your web browser.

How to install WAMP step 5

To test if your server’s running, open your favorite browser and enter “localhost” or “127.0.0.1” in the address bar and see what comes up. You should get this:

How to install WAMP step 6

Step 3: Create a New Database using phpMyAdmin

How to install WAMP step 7

  1. Left click on the WAMP server icon and select phpMyAdmin (second one from the top).
  2. A new tab/ window should open up in your default browser called phpMyAdmin. Select the Databases tab.
  3. Enter your desired database name under Create a database (I have chosen: “yousitename_wp”) and click on the Create button.

Config WP Database

 If successful, you should get a message like this:

Config WP Database 2

Step 4: Download & Extract WordPress

Close phpMyAdmin, head over to WordPress.org and download the WordPress.zip. Once you do this, extract the contents of the WordPress ZIP archive under “C:\WAMP\www”. You should find a new folder called wordpress. That’s the WordPress installation directory. If you want to change it – that’s fine. Your WordPress installation will be available under “http://localhost/folder-name”. Thus in our case, its “http://localhost/wordpress”.

Step 5: Configuring your WordPress Installation

In this part, we shall establish a connection to the MySQL database we created in Step 3.
Configure WordPress Step 1
  1. Open your browser and type http://localhost/wordpress in the address bar.
  2. Click on Create a Configuration file.
  3. On the next page, click on Let’s Go.
  4. Fill in the details carefully:
    • Database name: yoursitename_wp
    • User name: root
    • Password: (leave it blank)
    • Database Host: localhost
    • Table Prefix: xs_ (The default is wp_ but its a good security practice to use some other table prefix)

Configure WordPress Step 2

Click Submit. If the database connection is successful, then you should get this message:

Configure WordPress Step 3

WordPress then creates the necessary tables in the  “yoursitename_wp” database. In the following step, enter your Site TitleUsername, Password and the rest of the required data. You should leave the Privacy button unchecked (because we don’t want search engines to index our site in a developmental or experimental stage) and click on Install WordPress.

Configure WordPress Step 4

And you’re done! There you have it! A fully working offline installation of WordPress in your Windows PC using WAMP.

Configure WordPress Step 5

Happy offline blogging! 😀

Leave Some Feedback

Let me know how the WAMP install went for you, or if you have any other tips or tricks, in the comments section below.

View Source
Posted in WordPress