Installing WordPress On Windows Locally With WAMP

Installing WordPress On Windows Locally With WAMP

  • Published on: 25th February 2013
  • Author:
  • Under: Other
  • Comments: 55
Post Series: Installing WordPress Locally
  1. 1.Installing WordPress On Mac Locally With MAMP
  2. 2.Installing WordPress On Windows Locally With WAMP
  3. 3.Install WordPress On Ubuntu Locally With LAMP

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: Extracting the WordPress archive

Close phpMyAdmin and 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! :D

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.

Sourav K

Sourav K

Contributor at WPExplorer
Sourav is a WordPress enthusiast, an avid gamer and a sitcom collector. His playlists include heavy metal, electronic, and new-age tracks. When he's not online, he's spending quality time with his friends and family. You can follow him on Twitter.
Sourav K
This article has 55 comments
  1. Colin Crawford says:

    Seems like a lot of steps to get a local version of WordPress running, have you tried Microsoft’s WebMatrix? It’s a lot quicker and it does most of the install itself without you creating files.

    I use it all the time and you can even view any of the files for editing or for creating child themes etc. There’s also a Database view were you can see the actual WordPress database.

    1. AJ Clarke | WPExplorer says:

      I haven’t personally tried WebMatrix, but I’ll check it out. Thanks for the suggestion!

      The point of the article was to help those looking to use WAMP not necessarily to point out the best and most effective method for hosting WP locally on a PC. However, Webmatrix does look pretty nice, I’ll have to give it a shot some day – currently coding on a mac though, but still love my custom PC ;)

      Admin
  2. Karin Holmqvist (@tanketal) says:

    After using MAMP (equivalent on Mac) I tested AMPPS, http://www.ampps.com and found it much easier to install and configure. They provide WordPress and many, many other applications within the app – just a click to download and install. You can enable Multisite (WPMU) and choose language direct from the setup page. Also easy to create “domains” for installations and place them where ever you want on your computer.

    It is also free. It is run by Softaculous and I think they use it to promote the service they sell to web hosts.

    Works om Windows and Mac but not on Linux, yet

    1. AJ Clarke | WPExplorer says:

      Looks pretty nice. However, you really only need to install WordPress once because you should just setup a Multi-Site locally so you can quickly add/remove/manage sites.

      Admin
  3. bainternet says:

    Not really, when working on multiple languages and testing plugins a multi site install is useless. Also when working on client sites I keep a local install for development and then the move to production is much simpler than a multi site install.

    IMHO.

    1. AJ Clarke | WPExplorer says:

      To each their own ;) As a theme/plugin developer I don’t ever need to export a finished site to a live site. I’m sure it can’t be too difficult with MS, than again I’ve never had to do it. The multiple language thing I can see why MS might be a pain in the a**. There isn’t any good plugins for switching languages on an MS site easier?

      Admin
  4. Nick Piakal (@niicaux) says:

    I use XAMPP and XAMPP Lite to install WordPress locally. But then moving the site to the main domain poses a bigger problem for me, especially with links, etc.
    How do you go about this?

      1. VIVEK KUMAR says:

        Thanks for the script, when i’m moving WordPress from localhost to live, i have changed them manually,

        I think this script will help full for me…

  5. Sourav K says:

    Guys, the reason I created this ‘complex’ tutorial is to show you how to move the offline installation to your online hosting server.

    It wouldn’t be complete if you can’t move it right? ;)

    Next part of the series coming right up!

    Author
  6. Stewart says:

    Did I miss … “how to move the offline installation to your online hosting server.” from Sourav K? Is the info somewhere else? Thanks for any help.

    1. AJ Clarke | WPExplorer says:

      We haven’t written this post ;) But its a good idea for a future article! To move your local site to live it should be very easy, all you need to do is export/import your database and files.

      Admin
    2. Sourav K says:

      Hey Stewart,
      Thanks for that I idea, will make an article. =)

      Author
      1. Stewart says:

        And it would be a good idea to cover the issues related to trying to set up either WAMP, AMPPS, or others with “127.0.0.1 localhost” in a Windows 7 64bit / IE browser environment. It’s a mess out there. “Waiting for response from localhost” page requests never resolving. Even with Apache and MySQL working.

  7. Paul says:

    Hi, installation all good. Click on the green icon, select phpmyadmin, then instead of going to localhost where I can select My Databases in order to create a new database, I get a phpmyadmin Login screen. “root” and no password don’t work. How can I get the localhost screen from the phpmyadmin login?

    1. Paul says:

      Fixed – I uninstalled then re-installed, and that fixed it. I think it might have to do with choosing the WAMP homepage during installation.

      1. Sourav K says:

        Paul, I think there was an error during WAMP’s installation. Glad to know that the good ol’ uninstall – re-install trick still works! :D

        Author
  8. Paul says:

    Webmatrix only works on Windows 7 or Windows 8, no use to us dinosaurs on XP.

    1. Sourav K says:

      Come 2014, Microsoft is gonna drop support for Windows XP. It’s high time you upgraded mate! ;)

      Of course, I would always recommend Win7 over 8.
      Always. B-)

      Author
  9. Paul says:

    Bainternet’s autoinstaller plugin looks like a handy facility. When I activate it, it tells me that I need cURL installed for it to work. removing the “;” before the enable extension command in php.ini doesn’t work. Anyone know how I can install cURL on localhost?

  10. Paul says:

    I’m thinking seriously of switching to Mac. Would that be a good idea, or would it be a huge learning curve?
    I’m checking out ways of hosting more than one site locally , there’s a lot of advice available for that. Thank you, I appreciate your very good tutorial on installing WAMP.

    1. AJ Clarke | WPExplorer says:

      Hi Paul,

      It really depends…are you a fast learner? Do you like the Mac UI? I personally switched over about 3 months ago. At first I thought it was going to be horrible and I wouldn’t be productive. Within not even a week I pretty much had everything figured out and I’ve been working faster then ever before ;) I have been turned into a Mac lover, something I never thought I would be!

      ps: When I was using the PC I personally used XAMPP – maybe would want to test it out!

      Admin
  11. Sudhir Singh says:

    How to get file permission 755 like linux, my theme is not working and most probably due to access rights

  12. Alan says:

    I am trying to install this on WAMPEE, which is a portable version of WAMP. When I try to go to http://localhost/, I get an error message. WAMPEE seems to want to open at http://localhost:81.

    So when I get entering the DATABASE HOST into the configuration file, if I add LOCALHOST, gives an error message: “Error establishing a database connection.” If I try LOCALHOST:81, it seems to freeze, with the progress spinner going.

    Any help would be appreciated.

    By the way, I’m putting all those terms in lower case. I just put them in upper case in this message for the sake of clarity.

    Regards,
    Alan

    1. Sourav K says:

      Alan,
      I think you should remove the portable installation of WAMP (WAMPEE) and run a registry cleaner software, preferably CCleaner and clean your registry.
      Next download the latest version of WAMP and follow the instructions. If you run into any issues there, let me know.

      Cheers,
      Sourav

      Author
      1. Alan says:

        Thanks for the response, Sourav. I have ccleaner and run it only occasionally. I already have the regular WAMP installed on my C drive, on which I have WordPress. It is working normally.

        The WAMPEE is a portable version of WAMP and makes no registry changes. As such, I’m not sure what ccleaner would do. I hate to mess with the registry unless it is really necessary.

        The reason I wanted to use WAMPEE was to have a portable installation of WP so I could take it to a meeting and demonstrate an installation of WordPress for a club I belong to. They want to have their own WP website, and I wanted to show them a demo version.

        I could use XAMPP, but it is quite slow on a USB stick and on most computers, except really fast modern ones.. The meeting place that I go to will have a rather slow computer.

        Please let me know what I could do to make this work on WAMPEE if you have any ideas.

        Regards,

        Alan

        1. Sourav K says:

          Hi Alan,
          I understand your objective. Here are a few tips:
          1. Your WordPress database resides in your computer, in a .sql file which can be exported/imported in other databases.

          2. I don’t think using WAMPEE will copy the database files, i.e. you might not be able to show your WordPress project to your clients, in another computer. However, I’m not absolutely sure about this. Even if that works, there’s no guarantee that’s its going to work in the client’s computer flawlessly. ;)

          3. The best way to overcome this situation is to upload your work in a ‘dummy’ website. Buy the cheapest domain possible (.info or something) and get a simple host which allows multiple databases (and not sites). (Check out our hosting pages for recommendation)
          Next, you can shift your localhost WordPress database to the dummy site. Not only your clients will be able to see the changes real-time, but it is a much more systematic approach. I’ve tested this method with a few clients and the results were good.

          As for your original question on WAMPEE I’m afraid I won’t be of much/any help. But I #3 works for you. :)

          Cheers,
          Sourav

          Author
  13. David McFee says:

    Love the guide, but have your guys got a detailed one for multisite? I have no problem creating the multisite install on WAMP, but I can’t seem to add additional sites (at least none that work). I would also like to know more about back up, export and import of the multisite DB. Cheers Dave

    1. AJ Clarke | WPExplorer says:

      There isn’t anything that would need to be done in your WAMP setup for the subsites to work. You should be able to go to the Network admin page and simply create sites. If the subsites aren’t working, then maybe your Multisite settings aren’t correct – http://codex.wordpress.org/Create_A_Network#Step_2:_Allow_Multisite

      Exporting a MultiSite is the same as a regular site…You can just go to PHPMyAdmin and export the DB and then import it elsewhere.

      Admin
  14. Sunakshi Maurya says:

    hey hello…
    and thanks for help….this really went great start for me to install wordpress on wamp easily…….it worked :)

  15. Anders G. Nordby says:

    Great! Thanx a lot for the help. I struggled a bit with point 3.2, I got to a login screen. If you like to help the next guy, update the article with suggesting to try “root” as username and leaving the password field blank.

  16. ratan9rn says:

    Hi Sourav ,
    Nice post . Completed the installation and started with WP. Once I started downloading a theme , below error popped up :

    The uploaded file exceeds the upload_max_filesize directive in php.ini.

    Went to php.ini file but no clues .

    Please guide .

    Regards ,
    Ratan .

  17. bigfan1980 says:

    Thanks for the install instructions. Tried doing it with 2 other help sites and got no where, followed yours and got it working in 5 min.

  18. Hokikiwi says:

    Great tutorial & comments, I wish I had found wpexplorer.com earlier. Being new to WAMP/MAMP WordPress it is a little daunting at times.I am not a developer but an enthusiastic hobbyist who loves building web sites / blogs for friends.

    I have a small home network running WAMP and MAMP and would like to scale this down to one webserver MAMP or WAMP and then be able to access it and wordpress (websites) from my other computer, phone(android) or Tablet(android).

    Which would you recommend MAMP or WAMP? I find MAMP a little more intuitive than WAMP. If you could point me in the direction of a good tutorial on the above it would be much appreciated. A lot of tutorials I have read or watched seem to be made with assumption.

    Cheers Great work

    1. AJ Clarke says:

      Sorry for the delay! I personally use MAMP but pretty much only because it’s what I’ve always used. I’m not sure about being able to access the sites from another computer, I’ve never had the need for that.

      Admin
  19. Ed says:

    Thank you for posting. I have a question that im sure has hundreds of different answers. I have installed Wamp on my local machine which is running fine and all is great. I can view my WordPress site by typing in localhost/mysite. no issues.

    however, I am breaking my head with this follow up issue. What I did not mention is that I am part of a domain group at my company (where I installed Wamp locally) and what I would like to do is use this machine as a server so that other computers within my network can see this website. Ultimately, the site will be used as an IntrAnet site for other employees to access,view, comment, post, etc…

    I would like to have this machine always on to do host the site through Wamp. What do I need to configure to make this happen? A lot of the threads talk about moving to a hosting environment or a live internet environment, I dont want to do either of those…. my “live” environment would consist of making live for all the other pcs on my company’s network. Thanks for any follow up or help.

  20. Xavi says:

    Wamp Server is an outdate project died on 2013. Probably it is not the best best choice for wordpress

    1. AJ Clarke says:

      I personally use Mamp Pro and prefer XAMP for Windows…but Wamp is still fine to use if people prefer it. It still functions perfectly fine and the forum is still very much active.

      Admin
  21. Kingsley says:

    Well i think there are some changes you guys have to make, after hours of search, i got it working

    1. AJ Clarke says:

      If you could let us know the errors in the post that would be great so we can fix it. Thanks for the heads up Kingsley!

      Admin

Leave a Reply