How To Install WordPress Locally Using WAMP

WordPress is a fun blogging software, and if you are one of those who like to try new things on your WordPress blog, it’s always a good idea to get a local installation of WordPress on your system. You can use it to try new WordPress plugin, making changes in your theme and many more task. Infact, if you have seen WordPress videos on my Youtube channel, you would notice all the videos are created on local WordPress installation.

Install WordPress Locally Using WAMP

We have been talking about self hosted WordPress a lot, though many BlogSpot users still feel WordPress as alien platform because they are not familiar with it. To get familiar with WordPress, you can start by creating a free account on or you can install WordPress on your computer to test it on Local environment. Benefits of installing WordPress locally:

  • Familiar with WordPress
  • Familiar with database
  • Make changes locally and then make changes on your online blog
  • Local test platform.

To start with local WordPress installation, you need to download a software name WAMP. And also download Latest release of WordPress.

How to install WordPress on WAMP:

Using WAMP to install WordPress on localhost needs little bit of technical knowledge, you can also look into instant WordPress, which is a stand alone software for using WordPress on your desktop.

So, lets get started with our tutorial:

1 Install WAMP

In the PHPmail option while installing WAMP, leave it as it is

2. Now extract the Create a folder under C:\wamp\www name it as WordPress copy all the files and folders under WordPress folder in C:\wamp\www

3. Start WAMP and start all the services by left clicking on it in the task bar.

4. Open http://localhost/

5. Click on Phpmyadmin and create a database for your WordPress install.

6. Open http://localhost/wordpress and click on create a configuration file.

Now Enter the details as mentioned.

  • Database name : Database name you have created (wordpress)
  • Username : root
  • Password : Leave it blank
  • database host : Keep it default (Localhost)
  • Database prefix : Keep it default (wp_)

Click on Submit. On next screen click on Run setup

On the next screen add Blog title and Email. Search visibility will not matter here as we are working on Local environment.

On the next page , copy the password and save it. Click on login and login with the password in the screen and user name as admin.

Viola! You have just created a local WordPress test environment using WAMP. You can also use XAMPP to install WordPress locally, but I prefer WAMP over XAMPP. If you are setting up a test server for your team, you can grab unlimited web hosting like Bluehost  and install more blogs in sub-domain or sub-directory and use it for testing.  For personal use, you should use WAMP or instant WordPress to get WordPress blog on your local Windows computer.

If you are stuck anywhere or find issue with installing WordPress using WAMP, do let me know via comments. You can also refer to our WordPress guide for more such tutorials. If you find this guide useful, do share it on Facebook and Twitter.

Subscribe on Youtube

Article By
Harsh Agrawal is a blog scientist and a passionate blogger. He is blogging since 2008 & writes about Blogging, SEO, Make money online & tech. His blog, ShoutMeLoud receives 1 million Pageviews/month and have over 700K subscribers.


COMMENTs ( 53 )

  1. meena says

    Object not found!

    The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

    finally i gave get this type of error
    If you think this is a server error, please contact the webmaster.

    Error 404

    Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.14

  2. Nittyananda says

    After installing wampserver when I am going to keep the localhost in online by pressing put online it is giving an massage like this “couldn’t excute menu item (internal error)[Exception] could not perform service action.The service not been started” How I can solve the problem.

  3. says

    Very good explanation , but still i have a problem ! ! ! ! … The problem is … i had Xammp on my system and without uninstalling it , i installed WAMP … So i check wamp the i uninstalled Xammp and tried to use wamp , but not working and it was always on orange colour icon on system tray … i did all these things that you said and still , not working ! don’t know what is the problem … can you tell me what should i do !?! 

  4. says

    Hi Harsh, I did all accordingly. Everything was right but when I imported the database into phpMyadmin all it shows is a simple white screen. Before the database, it was showing sample post etc. but problem rose after the database export. Can you suggest something?

  5. lodewijk says

    Hi thanks for such a well written tutorial, it is technical but you explained it so well, it was not that difficult, thank you so much. Its my first time I’m using WP. So, please forgive my stupid question, I have installed WP successfully and was in by the dashboard, but now when I exited my browser I have no idea how to get back there, I don’t see a WordPress icon.

    Thanks you.

      • Simone George says

        I was also stuck on step 6 because somehow the wp-admin folder was not extracted from the zip file. I was getting the error: Not Found The requested URL /mysite/wp-admin/setup-config.php was not found on this server. I am not sure if this is what you are experiencing. For step 2 I simply copied the zip file to the www folder, right clicked and selected extract here. I then renamed the top level folder from “wordpress” to “mysite”, though this is not necessary. The screen to create the config file then loaded without error. Hope this helps.

  6. Vikash Shandilya says

    I tried your post to install wordpress and successfully installed on wamp.

  7. Scott H. says

    I have to give you props man. This is the easiest and most simple install to do. I used to do a lot of my testing just using a sub domain but this makes things a lot more clean and does not hog my hosting servers. Plus, there is no rush to get a project done. I can work on it in more detail.

    Total install took less than 4 minutes.

  8. Gautam Doddamani says

    i use xampp and i think it is a powerful tool…i have reproduced my live site exactly as it is on my local xampp..i usually use it test 3rd party plugins and to make some ui changes often!

  9. Mike Thornley says

    I have WAMP & a locally hosted blog. I can view my blog in WAMP, through localhost but I cannot update the theme and until I deleted my .htacess file, I couldn’t see images either. This has led to me needing to upload the blog live, which as you can imagine isn’t idea, eespecially when I have a copy on my hard drive.

    Please help and thanks in advance.

  10. Ranjitava Biswas says

    I tried to install WordPress on Locally on WAMP but received the error message “Error establishing a database connection”.
    My default web browser is Mozilla Firefox.
    Please advice.

  11. Godfrey Onen says

    Thank you soooo much! my friend, i have tried to install wordpress using wamp but invain for two weeks man!
    Most advice could not work but you know the secret. To leave out the password blank and username: root.
    Now i shoutyouloud, Yeeee!
    That was it.

  12. John says

    I was trying to follow someone else’s install tutorial for the last few hours and no success. Tried yours and all went fast and smooth.
    From extreme frustration to bliss in about 5 minutes.
    Many thanks.

  13. David says

    I’m short of words. But you’re the BOMB!!! You just saved me many years of confusion trying to install WordPress locally. All these while, someone would help me with the installation. But now, I’ve done it myself for the first time, after about three years. In fact, you’re the man! I feel like I’m flying over the moon! Thumbs up for the expert! CCChhHeeEEEEErrrrRRRRRRRsssssS!!!!!!!!!!!!!!

  14. David Knowles says

    Thanks for the nice and easy tutorial, work perfect first time, like all good tutorials and do not leave having to guest any of the stages, again like a good tutorials.


  15. anwar says

    Thanks Harsh , am already using LAMP on my ubuntu system , now just istalled wordpress using WAMP in my windows

  16. Dheeraj Bansal says

    Thanks Mr. Harsh .I find this article very helpful.
    Finally after so many efforts I got WordPress Installed on my PC.

  17. sd says

    great tutorial. i was able to get everything installed with ease.

    how do i get WP to recognize the new Pages I created on the localhost. i’ve published the new Pages via the Pages dashboard, but when I reload the site in a separate browser tab i get an error that the link is broken. Am I missing something?

  18. Edhitok says

    Its very clear and simple explanation. I have tried and now installed the wordpress on my computer offline. Thank you for your guide.

  19. jenii says

    Hmm and i am still having issues with this. Is it possible for you to hit me up on mail. I already wrote you on twitter.

  20. Rik Williams says

    Many thanks for a clear and informative Tutorial. As a recent newbie of 3 months and playing with WordPress I realised I had to do a local install to really test before going live with a launch.

    I thought this was going to be a nightmare – not at all. thanks again and as a small compensation I bought a ebook through one of your links. Rik

  21. Designer Mozi says

    Before seeing this article it was looking big trouble to install wordpress, but thank god it’s working now! :-) Really well written post!

  22. MrsMoody says

    I also use Wampserver to install it locally, very useful eespecially when you want to try plug in or create your own template. Thanks for this post!

  23. Rhys says

    Great post! I’ve wondered about this, as I do a lot of coding on the move & travelling. Bookmarked & will be implemented :)

  24. Vedran says

    The problem I have is that I can´t save changes in header.php while working with wordpress localy in wamp. Why is that? Please help me

  25. Phaoloo says

    It’s extremely useful and faster to handle the code before uploading. If you want some hacks for theMy SQL, installing Navicat or MySQL Query Browser may ease the work.

  26. jan geronimo says

    Great howto on installing WP locally. The nice and big screenshots help a lot, making the step by step process very easy to follow. Well done. :)

  27. Annand says

    I have setup wamp and I was able to setup a new install of wordpress using wamp. How can I run my online blog (all files + database) on my localhost so I can work on it then upload new changes. I tried importing the database, but I can’t get the contents to load.

    Thanks for your help.

    • Phung Van Tu says

      You can fix by go into Setting in Dashboard, then change WordPress Address and Site URL with your local IP.

  28. vikrant says

    hi thanx for ur great tips but i hve one prob i have done everything right according to ur steps but wen i login from it showing my old blog and old themes and post its nt showing my orginal blog which i hve created using localhost/wordpress all the changes i hve made its nt showing on and and when i login from localhost/wordpress it doesnt show me my website address it shows link like this localhost/wordpress only so pls tel wat shuld i do?

  29. Chethan says

    I haven’t Tested This!
    I used xampplite for local Installation of wordpress..
    and everything was working fine.. but once i installed ISI server in My Comp.. the default localhost(port number 80) was occupied by Microsoft.. so it used to redirect to diff path…
    after searching for help, i got an answer that we are required to configure the port number other than 80 in config file….

    does the same applies to wamp?

  30. Renjith says

    I’ve tried installing wordpress using Xampp, but the problem is that .htaccess don’t seem to work ther… [not only for wordpress, i had this problem for all scripts using htaccess.]
    due to this, custom perma links never works in xampp…
    does htaccess work for WAMP?

  31. Aman says

    Really very useful info harsh… will help a lot in initially experimenting on the local machine and then hitting over the net.

  32. Vinay Prashar says

    woot that was so well explained, going to try this tonight. I was always looking for something like this to test theme modifications offline.

  33. Avi Singh says

    As I am learning WordPress and I have accounts in many free hosting websites like 000webhosting and x10hosting but they are full of errors and some of them disabled my account without any reason.
    I really need this type of Local hosting.
    Thanks harsh

  34. Ruchi says

    I am currently using Xampp to create a simulated environment , I will surely give this is a try, looks like a purely user driven without manual intervention which is required in XAmpp.
    Problem I faced with Xampp is that i was not able to run it as windows service, i hope this can run in background as the windows service.
    Thanks for sharing such a nice post.

  35. dr. rajesh moganti says

    I one among those people who still feel wordpress as alien platform because I am very afraid of paying penalty in search traffic and other parameters. But i decided to change my blog from blogger to wordpress after seeing this awesome post, please help me in changing to new platforn :)

  36. Tejaswini says

    It is really great to have a local installation of WordPress, for some new experiments. Whenever I have to do some changes on Internet Techies, I usually do it on my local copy and then load the entire changes to production.
    This step by step guide is very useful for new serious bloggers, you making out a good collection.

    • taranfx says

      I have adopted same methodology for years now. WAMP on my local to play around with customizations. Saves a lot of effort.

    • Zahir says

      I am not able to install word press , please guide me,I followed your guidelines but i have a doubt on below given method.
      2. Now extract the Create a folder under C:\wamp\www name it as WordPress copy all the files and folders under WordPress folder in C:\wamp\www

      I am not able to copy the .zip extracted files and paste in wordpress folder.

      Kindly help me step by step to install wordpress , i am using windows 7 ultimate.