Procedure to Install WordPress Locally on Windows 7, Vista and XP
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.
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.
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.
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.
Similar Articles
- How to Enable Tethering on iPhone 3GS and 3G Running iPhone OS 3.1.2
- Scan Your WordPress Blog for Malicious Code using WordPress Exploit Scanner
- WordPress 2.8 Released With Improvements to Themes, Widgets and Speed
- Download and Install Portable-VirtualBox to Run Guest OS from Your USB Drive
- What is ADB (Android Debug Bridge) and How To Setup ADB on Windows [USB Driver v3]
- Download WordPress for Android 1.0 App from Android Market
- Find Freeware Applications To Open Files With Unknown Extensions
- Procedure to Jailbreak iPhone 3GS With 3.1 OS Using PwnageTool 3.1.3 for Mac
- Get Mac OS X Widget Functionality on iPhone With iDashboard
- Download WordPress 2 App for iPhone and iPod Touch for Free












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.
Thanks for the tutorial. Saved me a lot of time!
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?
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.
Stunning blogpost, did not thought reading it was going to be so awesome when I looked at your title with link.
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…
Thanks for the tutorial. I was searching for the same. Its a wonderful tutorial and steps are explained in a simple and easy way. Thanks again!
Apache will not start locally with skype. turn off skype, start apache, turn on skype.
I was able to install wordpress over Windows 7 (since I have IIS, I’ve installed Apache on port 9090).
I was able to install wordpress and create posts. However, when I try to view the post, I cannot see anything.
Any ideas?
Can you tell what error are you getting exactly?
WOW! A tutorial with excellent screen shots that actually worked. I’m new to WordPress, new to MySQL, Php, everything. Very well explained.
So now that I’m about to start playing with a WordPress site on my own local PC, my next question will be how to upload it to my domain host. (I’m not there yet but I will be eventually)
Thanks so much for getting me this far.
Dear Sirs,
I have followed the above step by step and I have got stuck at step 4 where it says “modify the wp-config-sample.php file with database name”. I don’t know how to modify that file and therefore I can’t progress to step 5 and the conclusion of installing a wordpress blog on my local windows 7 laptop. Is it possible to more clearly explain the steps for “modifying the wp-config-sample.php file with database name”?
Thanks,
Mark
Just open that particular file with notepad and edit the database name and password.
What exactly do I put in for “password” in the file wp-config-sample.php? Do I put in 6 stars (as it your screenshot above) or do i put in a word of my choice? I was getting serious problems after final part of step 5. I need help.
you need to put in the password of your database.
what is the password of the database after I have created it? How do I find out because in setting up the database one is not asked to set a password.
I have uninstalled and re-installed xampp and I am at the stage of creating the database using the address http://localhost/phpmyadmin/. at the foot of this page I see the following message: “Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole by setting a password for user ‘.root’.”
What address or where do I go in localhost in order to follow the above instructions shown at the foot of http://localhost/phpmyadmin/? I think this will solve the problems at steps 4 & 5 that I am experiencing.
When I first set up the database I am not asked to set a password. Therefore, how do I know what the password is in order to input it into the text of the file in notepad?
Hi,
Thanks for the answer above but I need assistance with step 5. Can you email me using my email address so that I can send you back screenshots of what is appearing my my screen after i click “http://localhost/wordpress/wp-admin/install.php” above?
Thanks,
Mark
Hi,
Any chance of getting answers to the questions I have put above following on from the reply saying “you need to put in the password of your database.”
thanks,
Mark
hey could you please use the contact form to ask your queries. I’ll send in the solution for you… Thanks..
I have completed the contact form and clicked submit.
Step three tells me to ‘create a new database’ but doesn’t walk me through the process, I don’t know what to do here. Any help anyone?
God, sounds familiar to my problems. I had to get an email directly to my inbox with a reply. I can send it onto you if you post up your email onsite. This posting to be honest with you is not very good.
Thanks for this, I have been looking around for a solution. This is perfect!
Excellent tutorial, this is a great ressource, thanks for writing this article!
[...] Procedure to install wordpress locally on Windows 7 Vista XP Installing WordPress locally under Windows XP August 31st, 2010 in Uncategorized [...]