Installing WordPress on local Windows using Xampp

WordPress is the most popular web publishing platform for blogs. is simple, beautiful and very powerful. WordPress is simple because you don’t have to be a technical person in order to setup it up, in a few minutes you can have a blog up and running without touching any code. it is beautiful because it has hundreds of templates you can choose from, and it is powerful because you can publish your thoughts to the world with just a click on a button.

Most of web hosting providers offer WordPress pre-installed, you only need to create a database and run a script and enter the name, password, etc of the blog, and WordPress will be installed automatically.

WordPress needs PHP version 4.3 or greater and   MySQL version 4.0 or greater and a web server like Apache, IIS, or Litespeed. installing these applications manually is a long task, and probably you won’t be able to do it yourself if you don’t have technical skills, because each of these applications require configurations and modifications to some of the core files that only a person well acquainted with the files would know what the heck is up to.

Luckily for us, there are simple setup applications like Xampp –Xampp is a package that bundles PHP, MYSQL and APache Web Server all in one, and configure them for you, so you only need to download it and install it.

Go to the Apache Friends and download Xampp for windows from here download it and follow their method of installation using the installer from here once Xampp has be installed, you should be able to open Xampp control panel from the short-cut it creates on the desktop:

Xampp Control panel

Make sure Apache and MySQL is running, then open your browser, IE, or Firefox, and type http://localhost   and hit ENTER. the Xampp interface should come up:

Xampp for Windows

Once on the Interface, click on PHPAdmin, that will bring you to MYSQL admin panel:

PHPadmin panel

Click on Databases, and create a new database on the following screen:

Database creation

Name your database accordingly, I will name it wordpress-test for the sake of this tutorial. click on Create button, and you should get a confirmation that the database has been created.

database has been created.

Click on Server-localhost to go back to PHPAdmin panel, then click on Privileges:

PHPadmin privilages

On the following screen click on Add a new user.  Enter Username using “Text Field: host should be Local type your password, and then confirm it, and click on Check All under global privileges and then click on GO right at the bottom:

Creating new user

You should get a confirmation that the new user has been created. You are done with the database part!

Now download WordPress from and save it on Xampp htdocs root folder:

Htdocs Xammp

Once you have copy WordPress files to Xampp htdocs root folder, open Internet Explorer, or Firefox, and type the exact path URL to where you copy the WordPress files:

Installing wordpress-confg

Remember the htdocs folder is the root directory of your web server, that is equivalent of locahost and then the name of the wordpress folder, which in your case probably would be Localhost/wordpress, WordPress will ask you to create a new configuration file.

Click on Create a configuration file. Next, the welcome to WordPress wizard will come up: click on Let’s go

Wordpress installation wizard

On the following screen, type the database name, username, and password. these are the same credentials we created at the beginning:

wordpress setup.

Click on Submit. If everything is all right, you should get a message telling you are all set to go:

Run the Install

Click on Run the install. Next, you will be asked to enter the name of the blog, and e-mail address.

After entering the name of your blog, and e-mail address, you should get your username and password to login to your blog admin panel.

Copy those credentials to a notepad page, and click on Log in. From there on, your wordpress test site should be up and running.

Use the URL http://localhost/wordpress/wp-admin to login to your blog admin panel.

That was easy, wasn’t it?

  1. muguman says:

    I really appreciate folks like you helping us newbies out here struggling to jump through the hurdles of getting a site up and running. It is a great asset to have my WP site on my PC instead of up on a server. No better way to tweak it before going public. Thank you for the excellent article. You pull me out of the darkness and into the light. Now if only I had a mentor to walk me through getting a fully functional blog built. Know one?

  2. Pete says:

    Thanks for an excellent helpful article. Just one question. Can I administer more than one WordPress blog site from this installation? For me it is so important to be able to work locally first, before going online with a blog for a client.

    If it is possible, could you point me in the right direction please. Thanks


  3. fiona says:

    thx for the tutorial. it really helps me. and i've successfully installed the wp in my computer. now this can ease my job on modifying wp theme :)

  4. Darryl says:

    Been all over to try and install WordPress with XAMPP and your tutorial was magic. Thanks a lot.

  5. Scott says:

    You guys rock. Thanks for taking the time to write this up. Very helpful.

  6. berlin says:

    Thank you! You make our life easier than ever. :)

  7. sdavenport says:

    I have referred back to this post several times to help me set up a WP blog on my PC and for some friends. You have saved me from utter humiliation many times. THANKS.

  8. seanoor says:

    thanks alot but when i try to access the site not from the local host i just can access the first page the home page without css and imgs

  9. Angelica says:

    Thank you so much. That was easier than another site I spent 2 hours trying to figure out why I couldn't get past a certain step in the local WordPress install. As it turns out, it was missing all your steps with the exception of the first one.

  10. G33kyF3m says:

    I was able to write one on this topic. You beat me to it. I am not sure if I could have explained in a better way than this :p Good job guys!

  11. Rajesh Kanuri says:

    Thank You. Nice tutorial.. even though it is a bit outdated helped a lot..

  12. Etienne says:

    This was a perfect tutorial. I managed to install everything in 10 minutes. Or at least it felt like 10 minutes ;-)

    Thanks a lot!

  13. Alvin says:

    I've just installed WP 2.9.1 locally with XAMPP Windows 1.7.3 in my personal computer running Windows Vista. Thanks!

  14. Sauhar says:

    Thanks a lot for creating this page. It helped me install WordPress locally for testing! Thanks!

  15. nass says:

    thanx a lot! very simply explained. WordPress is working fine on my local PC.

  16. MrsMoody says:

    Thanks for this useful info, i would prefer wampserver though :D good job!

  17. Vinnie says:

    Really useful article…

  18. yoto says:

    Actually I've installed WordPress on a local computer from another tutorial which told me to edit the wp-config file manually with a text editor. It's working, though.

    Recently my notebook had trouble so I must reinstall the OS and reinstall WordPress again. I found this tutorial very simple and helpful. Thank you very much!

  19. ryan says:

    Awesome tutorial! This makes creating themes way easier. Believe it or not, I was just uploading to the server every change. :( lol No problem now though!

  20. Jaye says:

    Thanks for the awesome instructions, it worked perfectly.

  21. jithin says:

    This was absolutely useful. Thanks for this kind of explanation.

  22. dave says:

    Nice, easy one to follow. Thanks.

    I just got my A+, so I think I will stick around if you don't mind.

  23. Mr.D says:

    Awesome!! Great Job.

    Nice A++ Blog.

    Thanks for your sharing.

  24. suntosh says:

    Thank you so much.

  25. kamalakkannan says:

    Thanks. I installed WordPress. It's very useful.

  26. arun says:

    Great Work!!!

    Thanks a lot.

  27. PartapGusain says:

    Really, really helpful. Great work.

    Thank You.

  28. mariusht says:


    That helped me a lot.


  29. Manmeet singh says:

    Hey, man. Everything's done.

    But what's my blog's address? Localhost/wordpress?

  30. Steve says:

    Your ARE the Man!!

  31. LynCat says:

    Worked like a charm!

  32. vamban says:

    Nice way to explain. Thanks.

  33. Selvam says:

    Thanks a lot for your useful wordpress installation information.

  34. shameer says:

    very nice tutorial…thanks

  35. bizz says:



    This was the easiest to understand tutorial. And I looked at a lot.

    I wound up having a small error during the install process yet I somehow managed to get it working!

    again, THANKS!!

  36. Styling Designs says:

    Yes that worked, but how do I restore a live site to localhost?

  37. Marios says:

    Very easy, thnx a lot!!

  38. Aditya says:

    thanks a lot… amazin step by step instructions :-)

  39. Nick says:

    I’m stuck at the part where I type the path of the wordpress files in my browser to configure wordpress. I’m just getting a list of files in that folder, it’s not running a page or anything.

  40. Seema says:

    Thanks for the tutorial. it really helps me.

  41. mohammadreza says:

    thank you so much . yes it is easy , but only using your directions!

  42. naylrebmik says:

    oohh thanks a lot for this tutorial! you made this all too easy for a beginner like i am! awesome!

Leave a Reply