Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

How to Install WordPress on your Windows Computer Using WAMP

Last updated on by
Follow WPBeginner on YouTube
How to Install WordPress on your Windows Computer Using WAMP

Did you know that you can install WordPress on your personal computer for learning and testing purposes. The process of installing WordPress on your personal computer is also known as setting up a local server environment or localhost. Often theme designers and plugin developers install WordPress on a local server environment to speed up their development process. An average user can use the local server environment to test plugins and/or make changes to the site before making it live for their audiences. In this article, we will show you how to install WordPress on your Windows computer using WAMP.

Note: If you install WordPress locally on your computer, then the only person who can see that site is you. If you want to have a live WordPress site available to the public, then you need to have a Domain and WordPress Web hosting. We recommend that you follow this guide on how to install WordPress.

What is WAMP?

WAMP or WampServer is a compilation of Apache web server, PHP and MySQL bundled for Windows computers. Basically, you need WAMP to setup your own local server environment and install WordPress on Windows. There are other clients for Windows such as XAMPP, but we use and recommend WAMP. It is free and easy to use.

Installing Wampserver on your PC

First thing you need to do is go to WampServer website and download the latest WampServer. You will be presented with various options on their download page. Simply choose the one that applies to your Windows (64-bit or 32-bit). When in doubt, select the 32-bit version because it will work on 64-bit versions of Windows.

Once you have downloaded WampServer, run the installation program and follow on-screen instructions. At one point during the installation, WampServer will ask for the location of the default web browser. By default it will use Internet Explorer, but you can change that to Google Chrome or Firefox by locating the browser in Program Files.

Installing Wampserver

Once you are done with the installation, launch WampServer.

Setting Up a Database for WordPress

WampServer comes with phpMyAdmin, a web based application to manage MySQL databases. Click on the Wampserver icon in windows taskbar and then click on phpmyadmin.

launching phpMyAdmin in Wamp

phpMyAdmin will open in a new browser window. Click on Databases in phpmMyAdmin to create a new database for WordPress. Choose a name for your database and click on Create button.

Creating a database in phpMyAdmin for WordPress

Installing WordPress on Windows with WAMP

Download a copy of WordPress from WordPress.org. Extract the zip file and copy the wordpress folder. Go to C:\wamp\www and paste wordpress folder there. You can rename the wordpress folder to anything you want for example mysite, wpbeginner, etc. For the sake of this tutorial, we renamed our wordpress directory to mysite. Now open a web browser and go to:

http://localhost/mysite/

WordPress will inform you that it can not find a wp-config.php file. Click on the Create a Configuration File button to create it.

Create wordpress configuration wp-config file

On the next screen, you need to provide your database information. The database name will be the one that you selected. In our case, we called it test_db.

Please note that your default database username will be root and leave the password blank. Click on the submit button and WordPress will create a configuration file for you.

Provide your database information to install WordPress on localhost with WAMP

After this you will see a screen informing you that WordPress has successfully created the configuration file, and you can proceed with the installation. Click on Run Install button.

Run WordPress Installation Script

On the next screen, fill out the installation form. You need to provide a title for your website, choose an admin username and password, and provide admin email address. Finally press the Install WordPress button.

WordPress Installation Page

WordPress will quickly run the installation and create database tables. Once done, you will see a success message after the installation. You can then proceed to your WordPress by clicking on the Log in button.

Troubleshooting WAMP Skype Error

If you have Skype installed and running then WampServer may not be able to work properly due to a conflict with Skype. The conflict is caused by both Apache and Skype using the same port 80. There is a simple fix for this problem. Open Skype and go to Tools » Options. Click on Advanced and then Connections. Uncheck the box that says Use port 80 and 443 as alternatives for incoming connections. Save options and restart Skype.

Fixing Wamp / Xampp Skype Conflict

Enabling Pretty Permalinks in WAMP

Pretty permalinks will not work by default on your local server environment. All your URLs will look like localhost/mysite/?p=18. If you go to Settings » Permalinks and use one of the other opttions, then it will show you “page not found” errors. We have already written about a solution here that will show you how to enable custom permalinks in WAMP.

Migrating from WAMP to Live

After numerous request via twitter, facebook, email, and comments in this post, we have written a guide on how to move WordPress from WAMP local server to a live site. Hopefully you guys will find it helpful when you are ready to deploy your local site to production.

We hope that this article helped you install WordPress on your Windows computer using WAMP. Having a local server environment is great for learning and testing purposes. Remember, if you want to run a blog for other people to see, then you do not need to install WordPress on your computer. You need to install WordPress on a web hosting provider. If you have any questions, then please feel free to ask in the comments below.


Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »

Comments

  1. Geraldine says:

    Hello. I hope you can help me with this. After I created the test site, how can I share this to my friend via online?

  2. Rhian Williams says:

    thank you so much for this I have been battling with localhost software all day and this worked first time for me :-)

  3. moneytechnicals says:

    Ive installed WAMP in windows 7 32 bit. And want to use wordpress. But its not showing to create configuration file. Its showing an error like this-

    Warning:
    require(C:wampwwwwordpress-trunk/wp-blog-header.php): failed to open
    stream: No such file or directory in
    C:wampwwwwordpress-trunkindex.php on line 18

    Please help me to get out of this. Thank you in advance.

    • Campbell Sinclair says:

      Hello and to anyone who googles this error and is stuck like I was on this,

      You likely downloaded the zip installer and extracted them, maybe cancelled it some point because the extraction / transfer of the folder inside was slow. I’m not sure what happened, not the point either.

      This error occurs when not all the files are present. Try and hunt down wp-blog-header in your WordPress folder directory with a simple search. The index page (one that is first loaded by a browser when it opens a directory) is only asking for this file but it simply won’t be there with it in the directory. Index.php is asking for wp-blog-header and everyone else said I’m not the file you’re looking for.

      I downloaded the version prior and it was complete because I had the installation page as expected. This is the quickest and certain fix. If you do this, you will should be able to upgrade to the latest once you have installed as well.

  4. WPBeginner Staff says:

    Yes you can.

  5. ArtaGene says:

    Since I didn’t see any specs listed, not sure my old computer will have enough memory…can I install on a portable drive (connects with USB) and use that way ?

  6. WPBeginner Staff says:

    Seems like WAMP didn’t install correctly on your computer. Try installing again or try XAMP.

  7. jerry says:

    I get this error right at the end of the installation.

    httpd.exe – system error

    The program can’t start because MSVCR110.dll is missing from your computer. Try reinstalling the program to fix this
    problem

  8. nikhil says:

    i have install wamp server but when i am going to phpMyAdmin it is showing error like this:-

    Forbidden

    You don’t have permission to access /phpmyadmin/ on this server.

  9. Roshan Bagdiya says:

    error
    #1045 – Access denied for user ‘root’@’localhost’ (using password: NO)

    while accesing phpmyadmin
    how to resolve it

  10. WPBeginner Staff says:

    Please make sure that the Wamp server icon in your taskbar turns Green before you click on phpMyAdmin. You can also try manually accessing phpMyAdmin by typing this URL in your browser’s address bar http://localhost/phpmyadmin/

  11. Diviya says:

    Followed your procedure step wise. Now when I try to setup database for WordPress, when I click on phpMyadmin I get error ‘HTTP Error 404. The requested resource is not found’

  12. Syed Balkhi says:

    Done – thanks for the suggestion.

  13. Carrie says:

    FYI, the “Skype” error also happens with a similar program called Team Viewer. A similar simple fix, going in to the program and changing the checkbox regarding ports 80 and 443. I agree with others, if nothing else you should put a link to the troubleshooting info in the article right after the WAMP installation. I got frustrated that I kept getting an error, and decided to look through the comments until I found a solution.

  14. Anand Upadhyay says:

    Suggested edit. Please replace

    C:wampwww

    with

    C:wampwww

  15. Aditya Pranav says:

    Done all thing , but when I click on phpMyadmin the an error page will open in browser and that is :-
    HTTP Error 404.0 – Not Found
    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

  16. Derick says:

    Howe about adding a tutorial that continues from this one on how to add multiple websites to be worked on offline like the above one.

  17. Vijay says:

    Thanks so much for this. It worked for me.

    My only complaint is that the skype error should have been right after the WAMP installation part. I spent a lot of time figuring out how to get the WAMP icon to go green instead of orange. Ultimately found out that IIS 8.5 was using port 80 and that I had to stop WWW publishing services from Services.msc and restart the Apache on WAMP to get it to work.

  18. M♥ηyαηє Ramołło™ says:

    Great tutorial

  19. Jim says:

    Great tutorial. Big thanks. Only you should post the info on Skype port before in the beginning, as I did everything by myself and changed the port number in wamp folder. Then here I found out that there was easier way doing it on Skype ;)

  20. lobsterhands says:

    Great tutorials. Thank you for being so clear and concise.

  21. Lis says:

    Fab article! I’m all installed and working. However, any additional pages I am creating over and above the home page don’t work. I am creating the page in WordPress, but when following the ‘View’ link, I get a 404. Any idea?

  22. pramod says:

    Downloaded everything. when i write on web http://localhost/mysite/ but display error

    The requested URL /mysite/ was not found on this server.

  23. Monica says:

    Very helpful thanks.

  24. St. Buzo of C.O.B. ® says:

    Bingo..!! this was so helpful.!! Phase one done i have installed..!!

  25. anbu says:

    dear sir,
    this blog is very usefull to me..as per your instruction i create a website locally. but when i try to open the same site from different machine in tha same lan i can’t.please guide me.
    i tried via this following method in another computer
    1.http://192.168.1.88/(sitename).
    2.http://localhost/(sitename)

    the site is not opening

  26. anbu says:

    dear sir,
    this blog is very usefull to me..as per your instruction i create a website locally. but when i try to open the same site from different machine in tha same lan i can’t.please guide me.
    i tried via this following method in another computer
    1.http://192.168.1.88/(sitename).
    2.http://localhost/(sitename)

    • Lyle Denman says:

      http://forum.wampserver.com/read.php?2,121118

      This should answer many of your questions. Know that you will also have to update your database’s options (from localhost/phpmyadmin/). wp_options > siteurl and wp_options > home should be changed from http://localhost/database_name to http://your_local_ip_address/database_name (for example http://192.168.0.11/coolsite/).

      Make sure you open c:/wamp/bin/apache/apache2.4.9/conf/httpd.conf

      In that file, after the line reading: # onlineoffline tag – don’t remove, add the following 2 lines:
      Require all granted
      Require ip 192.168.0 (or whatever the first 3 groupings of your local ipv4 address is)

      Then, in the same file, find the line reading: #Include conf/extra/httpd-vhosts.conf and remove the # from the beginning of that line.

      Then, open the file c:/wamp/bin/apache/apache2.4.9/conf/extra/httpd-vhosts.conf and comment out the code that is there (just to keep defaults around) and past the following:

      ServerName localhost
      DocumentRoot c:/wamp/www

      AllowOverride All

      Save those files, restart all WAMP services and enjoy your LAN development.

  27. Lina says:

    This post was VERY helpful!! Thank you very much!

  28. WPBeginner Staff says:

    First you need to uninstall wampserver completely from your computer. Then download a fresh copy and try to reinstall. If this does not work out, then we will recommend you to use XAMPP which is an alternate software with nearly the same software (Apache, php, mysql).

    • Jokerman says:

      I tried EasyPhP too but that didn’t work either. Have just installed Xampp and that appears to be working. Thanks very much for the advice.

  29. Jokerman says:

    I have downloaded and attempted an install. It didn’t work as I was missing a dll file. Have downloaded the necessary software from MS and this time the install appeared to have gone well…no error messages and the Wampserver icon has appeared on my desktop as requested. However when I click on the Wampserver icon it asks: Do you want to the following program from an unknown publisher to make changes to your computer? (Program name: wampmanager.exe) Clicking on Yes causes that window to close then nothing happens. Do you have any clues as to what to try next please? Thank you

  30. cmills says:

    The latest version of wamp uses PHP 5.5.12 which isn’t compatible with WordPress!

  31. WPBeginner Staff says:

    That’r probably because your site is served at 127.0.01 which is a local loop address while the other ip address is your lan address. They are two different things.

    To enable sharing you need to add this line to your httpd.conf file Listen 192.168.1.4:80 make sure your computer is using static ip and it is set to use the ip address you enter in apache configuration file.

    You will also need to make sure that WordPress saves your IP address as your sites URL not localhost. To achieve this you would need to install wordpress from 192.168.1.4/mysite instead of localhost/mysite

  32. Naresh says:

    Thank you very much.

  33. archetypechris says:

    Hello, and thank you for the amazing guide! I have a small
    problem. Everything worked find when I followed the guide and my site loads up
    fine, but when I try to connect to it from another computer in my house with
    address: 192.168.1.4/mysite, it says I don’t have permission to view the page.
    Does anyone know how to fix this? Thank
    you!

  34. WPBeginner Staff says:

    You can use the Duplicator plugin or BackupBuddy for site transfers.

  35. Anji says:

    It is my first time creating a website in WP and his post was easy and it worked like a charm! Thank you so much!

  36. WPBeginner Staff says:

    George,

    The WordPress you install on your local computer is only available on that computer.

    There are specialized software that allow you to install Wampserver on a USB stick which you can then carry with you to work.

    • George says:

      Thanks for the speedy reply,

      Today I installed Wamp on my work laptop and using phpadmin exported my sql database from my home computer and imported it to my work laptop.

      I tried mirroring the process above on my work laptop and named the database the same thing. I was able to get into my site on my work laptop but is seems my plugins and theme haven’t transferred. Am I missing a step? Must I transfer another folder?

      I was planning on working on a local server doing this transfer sequence between work and home and was wondering if it can even be done (I heard about url linking problems) A short check list or play by play of what I must do would be very helpful.

      Thank you,

      -George

  37. rustomQ says:

    excellent guide!!!!!! got everything up and running the first time!!! thank you oh so much!!!! :)

  38. George says:

    This Work wonderfully! I’ve been word pressing for a couple of days and have made some progress over the weekend.

    One Problem:

    How can I take what I have on my home computer and work on it on my work computer in the office? Can I upload this to wordpress and work on it from anywhere? (I am fine with having a http://www.website.wordpress.com url while I am developing) What are my options to working and showing my development work after following the process above.

    I am a complete newbie but willing to learn, a quick tutorial on that process and options would be greatly appreciated. Great work so far and thank you for all the resources you guys provide.

  39. Thomas says:

    *facepalm* There is a link just above to resolve the problem. Sorry about that! Thanks again for this great tutorial!

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.