Procedure to Install Wordpress Locally on Windows 7, Vista and XP

Written By Samrat P on 27 September 2009

I had a plan of designing a Wordpress Theme from very long time. Rather than using a live domain and your regular Webhosting, it is always a good idea to install Wordpress on a local machine and try out things from there. It is not a big deal to install Wordpress locally on your Windows 7 or Vista or XP machine.

Procedure to Install WordPress Locally

Step 1 : First thing you would need is Apache, MySQL and PHP. Instead of installing all the messy stuff you can just install XAMPP. XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use. Install XAMPP from here – http://www.apachefriends.org/en/xampp-windows.html#646.

Step 2 : Open the xampplite folder and double click setup_xampp.bat. Just follow the steps and install other components. Now double click on xampp-control.exe and start the Apache and MySQL services.

procedure-to-install-wordpress-locally-on-windows-7-vista-and-xp

Step 3 : So now You have got Apache and MySQL installed. Now we have to create a new database to use with our Wordpress Blog. Head over to http://localhost/xampp and select your language. Now on the left side you can see a tools section. Just click on the phpMyAdmin link and create a new database from the phpMyAdmin page.

procedure-to-install-wordpress-on-local-computer

Step 4 : Now we have to install Wordpress. Go to http://wordpress.org/download/ and download the latest stable version to your local computer. Extract the files and modify the wp-config-sample.php file with database name(techhaildb in my case), MySQL username(root in my case) and password (****** in my case). Rename the wp-config-sample.php file to wp-config.php.

procedure-to-install-wordpress-locally-on-windows-7

Step 5 : Now open the Xammplite folder and then copy the whole Wordpress folder to htdocs folder. Now head over to http://localhost/wordpress/wp-admin/install.php and complete the Wordpress Installation.

If ou have followed all the steps correctly you will have a Wordpress blog installed on your local machine.

Blog Widget by LinkWithin

6 Responses to “Procedure to Install Wordpress Locally on Windows 7, Vista and XP”

  1. Toni Zova says:

    Cheers for the tut mate, was wondering how id get WP running on my newly installed Win7 version…i had it setup to run on xp like 3 years ago but when I tried to do the same thing as I did back then, i failed miserably :) So yeah, cheers.

  2. iKRAM aDI says:

    Thanks for the tutorial. Saved me a lot of time!

  3. Hamed says:

    Hi tank for tutorial
    but I can’t run this program properly
    After starting XAMPP I clicked on apache start and nothing happened!
    same for mysql
    also installing service does not work anymore
    I’m using windows 7 Ultimate build 7600
    I had do exactly what you said.
    what is wrong?

    • Samrat P says:

      Im also running it on Windows 7 and it worked without any trouble. Are you running any other web services on those ports?? If not try un-installing them and retry again.. It should work without any trouble.

  4. GuerClelf says:

    Stunning blogpost, did not thought reading it was going to be so awesome when I looked at your title with link.

  5. Hans says:

    Hey, that was an awesome tutorial – I was trying another and it totally lost me…yours was extremely precise and thorough. Thanks – it’s running and now I can get into it…

Leave your response!