How To Install WordPress Locally On Desktop

Written by Pavan Kumar on October 9, 2008

Advertisements

 

WordPress is the dominating blog software ruling the blogosphere. The fame of wordpress lies in the fact that it is free, comfortable, customizable and tons of plugins are available to make your blogging a wonderful tour.

We all use web softwares, but most of us don’t know how to install wordpress or any other web software as all installation part is usually carried by one click installers provided by the webhost in the control panel.

 

The intention of this article is to help those geeks who want to experiment different things on wordpress or any web softwares or even to tweak their favorite wordpress theme. It is really painful to do all these work on our live blog online. It would be better if we can tweak them offline on our system, this also makes the work very fast as there is no data transfer between the server and system.

 

For this you need to setup your computer as a web server. You need a webserver software like apache or IIS to run always in the background and you need to install php and mysql to run wordpress. Here is the easy possible solution I use:

 

1.    Download and install latest version of WAMP [windows] [LAMP for Linux, and MAMP for Mac OS].

Install Wamp server on windows desktop

2.    Download the latest version of wordpress.

3.    Extract the wordpress zip content and paste the same into www folder. The www folder can be found in the directory of WAMP. If you install WAMP on C:\Program Files\wamp, you have to copy the wordpress folder into C:\Program Files\wamp\www. There will be a folder called wordpress in latest.zip, but you need to copy the contents of wordpress folder to the folder you intend to make your wp installation. Eg: If you want your wordpress to be in location, http://loclahost/wp, you need to copy all content of wordpress folder into a folder C:\Program Files\wamp\www\wp.

4.    Run Wamp Server software from start menu.

5.    On your browser open http://localhost/.

6.    Under tools, open phpMyAdmin [short link: http://localhost/phpmyadmin/] and create a new database for your wordpress install.

Database creation using phpMyAdmin

7.    Open http://localhost/wp as in this example.

Create configuratoin file

8.    Click Create Configuration file>Lets Go.

Basic Instructions

9.    You will now be asked for configuration of your database connection.

  • Database Name: Enter the database name you created in step 6.
  • User Name: root
  • Password: BLANK – don’t enter the word BLANK, just leave blank space 😉
  • Database host: localhost
  • Table prefix: Keep it as it is – wp_

Configure wordpress to connect to database

10.    Configuration done. Run the Install.

Configuration done! Start Installing

11.    Enter your blog name and mail id. The other option provided there – listing in search engine has nothing to do in local installation. Click Install WordPress.

Basic Information about your blog - name and mail id

12.    Success. You are now provided with wordpress login details. These details are the most important ones as your first login should always be done with these credentials. It is recommended to change your password as you login for the first time.

Everything done! Note the random password generated
 

Note: This is the basic installation method and with this much of knowledge you can install almost any web softwares like phpbb, joomla, drupal, bbpress or any scripts. You just need to refer the documentation provided with them. In the same way you can manually install wordpress on your web host.

       

Subscribe to RSS Feed or Get updates on your inbox:

People who liked this also read:

42 Readers responded to this post

Really informative post. I think it might be helpful in building a good WordPress blog

@JK

Thank you, better you too think of switching to wordpress… We wordpress guys enjoy the most…

Thanks Pavan !

After installing how to change theme ? How to install plugins ?

@dollar

You just have to copy the theme or plugin folder into the wp-content\plugins or wp-content\themes folder and you can activate in plugins or design page in wp-admin after login.

Or alternately [easy] you can use one click plugin updater for the same purpose. Refer this about one click plugin updater:
http://www.techpavan.com/2008/08/23/one-click-plugin-updater-install-plugins-themes-one-click/

This is a really cool tutorial though I have never played with any on the scripts on my local machine. This will definitely come in handy.

@Amit

You can easily learn to use different scripts. If anything goes wrong, nothing is going to be lost here…

I use Easy Php for this

@Madhur Kapoor

I have never tried that. Let me try that too. Thanks for the info… I will google it and find out more… :-)

Drupal is the best CMS and much powerful than any.. But nevertheless wordpress do attract bloggers…

@arun

I have used Joomla, but never tried Drupal. Popularity of wp lies in that it is free and loads of plugins and themes are free. Even cms do well even for company websites…

thanks pavan for this post. i am looking for this type of stuff to setup wordpress locally so that i can test my wordpress theme.
Thanks again

Im using XAMPP for installing wordpress on my desktop..

@Ajay

You are most welcome. This should finally help you…

@Bryantara

Wow! I am getting to know more web server packages to run on a system. Thanks for tipping me about XAMPP. But WAMP supports python too. Anyway, for wordpress anyone among WAMP, XAMPP or easy php [as shared by madhur in above comment] is good.

I remember reading about this last year. It would be great to have a local install for testing purposes.

When ever i want to do some tweaks in my Blog, i first do it on my Wamp server.
this trick is great.

@Chetan

Same is the case here… I am currently working on a theme locally on my wamp-wordpress :-)

Welcome to my blog :-)

Please allow me to share this vidto tutorial on how to install WordPress Locally with your community.
http://www.youtube.com/watch?v=biQWyBcYSX4
Regards
Shane

i have seen in many bloggers site like amitbhawani n etc. they dont have their external link in their sites to be visible in the bottom bar when mouse hoovers over it. Instead it ll be displaying like

http://planetozh.com/blog/go.php?http://buysellads.com/

or

http://planetozh.com/blog/go.php?

but when you click it it lands to buysellads.com

how this is done??

any pluggin??

I have been using WAMP for 2 years now. It’s great to test things before going online. Saves some bandwidth.

Your WAMP and WordPress install directions are the best I’ve found. Thanks for such a clear, concise post.

nice guidelines for installing WordPress…bt wat abt other possible web server softwares..Is tat WAMP is the best ??

@Hareesh

Well I cannot say wamp is the best without experiencing other softwares. But in my experience, wamp consumes resources. No idea about others.

Bro de same way can i do to my website..Some thing like a write a post in my desktop..And once i connect online changes made should be reflected in my site ..Is it possible ..?

@Sham

AFAIK, such thing is not possible. But I would recommend you using clients for composing posts. You can try windows live writer which can make your job easy, you can compose offline and later update online. Try it…

Couple of days ago I installed WordPress on my laptop using Microsoft Web Installer. It was kids play. With few clicks, I was able to see a local WordPress installation on my PC. Check the installer at http://www.microsoft.com/web/

@Gopinath M

Wow, that’s a nice thing. I did not know about this, will give it a try soon. Welcome here :)

Hey buddy am a linux user but when I tried installing wordpress on pc..after doing all the installation the page http://localhost/ is not showing up in any browser
and before u suggest port:80 iis confliction so dont worry ,I tried everything even changed httpd.conf and hacked it to listen to port 8080 but nothing worked do u have any idea,am testing it on XP SP3,though I got wordpress rolling in linux very easily..but this #@$#!* windows is just drivin me crazy…hope to hear a +ive response from u otherwise u still need to learn a lot,plz dont mind take care.

@hujaku

I think the last statement is right, I still need to learn a lot 😉 This was the way which worked for me with no hazzles on my xp sp2 PC. I hope the other server softwares are compatible with sp3. Better you try xampp, microsoft web etc. I think experts at different forums would help you :)

A informação contida acima foi de grande valia muito obrigado, tive um pouco de dificuldade só para criar o banco de dado mais o restante foi de boa Obrigado mesmo.

Absolutely brilliant! Thank you so much!

WordPress Blogs are really powerful. It eases with its outstanding capabilities of indexing, searching, archiving and presenting relevant information. Installation is a bit complicated, but some bucks should not stop you, availing Web 2.0.

Hi,

Thanks for the tutorial!

I can see the page that asks me to key in my blog title and email but then the installation stalls at that point. I am not getting the “Success” page. When I go to localhost/wordpress/wp-admin, the page comes up fine but I dont know my login and password (which I assume is supposed to be wordpress generated ?) =(

Any idea on what I missed or how to fix this?

Thanks in advance!

@ Alicia,

Don’t bother about that, the default user name is admin.

And now, move on here: http://codex.wordpress.org/Resetting_Your_Password and scroll down to see how to reset password using phpmyadmin, reset the password and use :)

Thank you so much for the detail Although a little out of date with WordPress 2.8 I was finally ablt to install WordPress locally. This was after weeks of trying other instructions.

@ MikeY

Glad to know it helped you. With reference to wp 2.8, if one knows the basic installation steps to any script, rest all can be managed without much difficulty. Every cms provide their installation instructions which can be easily followed if one has little experience which you have it now :)

Thanks for the appreciation :)

Hi,

I looked at your instructions and others in putting wordpress on localhost and all went well. But I accidentally hit a right-click mouse setting that said “block all localhost images”. Now all the images for the entire wordpress admin pages and the web site itself are gone. How do I put the images back so I can see them?

If you can help, thank you.

Paul

cool post really informative man ..

very informative, question though after installing the word press blog locally how do you upload to internet?

@ Kevinb

You will need to move the entire files to the new server along with the database you backed up from your local / old blog. The wordpress documentation is detailed enough to explain you the steps: http://codex.wordpress.org/Moving_WordPress

nice information i have chosen right place. thanks for sharing

http://localhost/ is not opening. The wamp server remains in offline mode even after starting all its services any solutions for that??

7 Blog responses for this post
Leave Your Comments Below / Trackback

About The Author

    Pavan Kumar

    Pavan Kumar completed Engineering in Electronics and Communication in the year 2008. He is very enthusiastic and keen to work on different aspects of computer, internet and mobile related fields. The articles here reflect his creativity. This blog was started as a showcase of solutions for different problems and today it has got a good reputation in the blogosphere. Read More...

© 2015 - TechPavan.com. All rights reserved.

All content provided in this site are the property of TechPavan.com and is free for non-commercial usage. Read our Privacy Policy here.

Any kind content on this site cannot be reproduced in any form without permission of the author. We are not responsible for any loss or damage which may occur due to any of our content.

Site hosted on Bluehost powerful servers.