Skip to main content

WordPress On Windows – A Step By Step Install Guide

Following steps are based on my personal experience of installing WordPress and other required software on Windows Vista Enterprise. But based on the documentation I referred and reference in this post, these steps will work on Windows XP, Windows 2003 Server, Windows Vista and Windows 2008 server. 

These steps are so easy that anyone can follow whether regardless of any past experience with Apache, PHP, MySQL or WordPress. I am a .NET developer and never used Apache, PHP, MySQL before. So if I can do it then anyone can :).

I use XAMPP for my installation. XAMPP  provide an easy and one step installation of Apache, MySQL which are needed by WordPress.  There are two type of packages that you can download. XAMPP and XAMPP Lite. XAMPP comes with an installer while for XAMPP Lite you will have to run some batch files to install and run/stop services. I chose to install XAMPP (installer version).


Step 1: Download XAMPP from The current version of XAMPP 1.7.1 includes:

  • Apache HTTPD 2.2.11 + Openssl 0.9.8i
  • MySQL 5.1.33
  • PHP 5.2.9
  • phpMyAdmin
  • XAMPP CLI Bundle 1.3
  • FileZilla FTP Server 0.9.31
  • Mercury Mail Transport System 4.62

  Step 2: Install the XAMPP: Double click at xampp-win32-1.7.1-installer.exe to start the installation process.






Click on Install to install the XAMPP.

Step 3: stop IIS and all IIS services: Start command prompt and run following command to stop IIS and all IIS services. (further reading: more options to run apache & IIS side by side are listed in the further reading section below).

C:>net stop http /y


Step 4: Start Apache & MySql: Go to Start->All Programs->Apache Friends and click at XAMPP Control Panel.



Click on Start button to start Apache & MySql


To test open a new browser (like IE or Firefox) and type http://localhost.


Step 5: Create empty database and user account in MySql. To do this open http://localhost and click on phpMyAdmin (left side bar). This will show the admin screen to manage MySql database and other things. 


Click on Privilege option in top menu and then click at “Add New User” link.


Enter a new User name, Select host as Local and enter a password for the user. Then under Database for User select “Create database with same name and grant all privileges”.Click on Go button to create the user.


Click on Go button to create the user and a new database. On complete it will show following screen.


Scroll down and go to the section where it says “Change Login Information / Copy User”. Select Any Host in the Host dropdown and keep the default option “keep the old one” in the “Create a new user with the same privileges and”. Then click at Go button.


You can go to Databases option in top menu and verify the database created and privileges are correct.



Step 6: Add a host file entry: Open the host file in a text editor like notepad. The host file is located at C:\Windows\System32\drivers\etc\hosts. Add following line in the last.

Note: You can use something else in place of It could be anything like or

This is necessary step as you will get a warning message is you try to install WordPress MU using localhost. This also provide you a better looking URL for your local blogs.


Step 7: Download & Extract WordPress MU: Download WordPress MU from (see more download options below).

Unzip the download file into a temporary folder. It'll create a wordpress-mu-xxx folder where xx is version-number. Change the folder name to blogs or something else that meaningful to you.

Copy this blogs folder in the web folder which is htdocs folder. If you have selected default option during XAMPP install then you will find it at C:\Program Files\xampp\htdocs.

Step 8: Install WordPress MU: Open a new browser (like IE or Firefox) and type Remember is the DNS we created in step 6 and blogs is a folder we copied in step 7.

image Page 1

image Page 2



Step 9: Installation is Done and you can click on Log In link to log in to your local WordPress site. You can also import your live blog to your local WordPress blog so you can browse them localy without internet connectivity and have a backup too.

Ability to browse locally was the primary reason I did this project so I can have a local copy of my blog on my machine.

I hope this will help everyone. Following are some reference links that may help you as well. Please let me know if these steps works for you or if you face any issue. I would try my best to help you with any issues.

References, Notes and Further Reading:

  • WordPress Download Options: There are two download available for WordPress. WordPress and WordPress MU. I chose to install WordPress MU in which MU stand for multi users. WordPress MU allow creating multiple blogs in one installation with one database. 

    You can learn more about WordPress MU at You can also download single user (normal) WordPress from

  • In the instructions above I suggested to stop IIS & all IIS services. This will allow you to use IIS as well as Apache on same machine BUT not at the same time (side by side). 

    But if you want to run IIS and apache side by side then please follow the steps listed in following forum comment section.

    Can I run Apache and IIS on the same PC? - Scroll down and look for Agrikk reply “A long overdue update to my own quetion”.

    1- Extract the httpcfg.exe utility from the support tools area on the Win2003 CD.
    2 - stop all IIS services: net stop http /y
    3 - have IIS listen only on the IP address I'd designated for IIS: httpcfg set iplisten -i
    4 - make sure: httpcfg query iplisten (the ip's listed are the only ip addresses that IIS will be listening on and no other)
    5- restart IIS Services: net start w3svc

    Voila! Apache is listening on its default ports on and IIS is listening on its default ports on


  1. WordPress is the world's most popular blogging platform, and it is used by millions of people worldwide - some of them use it to promote their products and services, while others use it just to keep in touch with their loved ones. Either way, WordPress is easy to operate, feature-rich and it comes with a myriad of useful plugins that can enhance the user experience. See more wordpress two factor authentication

  2. Your writing has impressed me. It’s simple, clear and precise. I will definitely recommend you to my friends and family. Regards and good luck

    freelance wordpress developer

  3. I admire your unique way of writing especially the style of using the idioms and phrases which is mind-blowing.

    search engine optimization service india

  4. The resource that you mentioned here is something that I have been looking from quite a time. And finally it ended with such a nice blog post.

    freelance wordpress developer


Post a Comment

Popular posts from this blog

SharePoint WebPart Error - Unable to add selected web part (s) – MOSS 2007

ISSUE: Recently I faced this issue that when I try to deploy my WebPart.  Unable to add selected web part(s). WebPartName: Cannon unregister UpdatePanel with ID ‘ctl00RTMPanel’ since it was not registerd with the ScripManager. This might occure if the UpdatePanel was removed from the control tree and later added again, which is not supported. Parameter name: updatePanel.   I faced this issue twice and both the time the issue was not what display here. This could be sure to any error in the WebPart. Following are list resolution from multiple instances.   RESOLUTION: 1. Check the WebPartName.webpart file. Check whether you have a proper PublicKeyToken value. When I face the issue the value was PublicKeyToken=$PublicKeyToken$. If you have used WSP builder then in the Visual Studio you will find this file at \WebPartsProject\12\TEMPLATE\FEATURES\WebPartName\WebPartName.webpart. Sometime when you create a new WebPart using WSP builder then you do not get

TIME – 25 Best Blogs of 2009

Every year Time makes a list of best blogs in the world. They chose 25 blogs from millions of blogs in the world, spanning politics, housekeeping, astronomy and everything in between. Below if a direct link to the TIME website for the list. I also copied it to easy comparison of last year best with this year best blogs.   25 Best Blogs of 2009     25 Best Blogs 2008   25 Best Blogs of 2009 Talking Points Memo The Huffington Post Lifehacker Metafilter The Daily Dish by Andrew Sullivan Freakonomics BoingBoing Got2BeGreen Zen Habits The Conscience of a Liberal: Paul Krugman Crooks and Liars Generación Y Mashable Slashfood Official Google Blog synthesis bleat /Film Seth Godin's Blog Deadspin: Spor

Microsoft 2007 - Microsoft Technology That Defines a New Decade

Last year Microsoft came with VS.NET 2005, SQL Server 2005 etc. VS.NET 2005 was a major change over VS.NET 2003 in terms of feature, web controls and the way you program. Same is true for SQL Server 2005 you can now use C# or VB.NET to create store procedures and store procedures could be a .NET class. So no more missing of Oracle package in SQL Server. Be prepared for much more then this as Microsoft is now changing everything. Year 2007 Microsoft will bring a new Operating System named Vista (formerly code-named "Longhorn") First Look... that have completly new file system named WinFs and 1000s of new features. Vista will also come with WinFX which is set of next-generation managed APIs provided by Microsoft. Microsoft have created a new section in their MSDN website [ View ... ] so that people can start preparing for the next generation i.e. 2007. Here you can get information on Windows Presentation Foundation WPF (formerly code named "Avalon") provides the fo