How To Install WordPress Blog Locally On Your PC

Jeffry Thurana 02-01-2009

install wordpress locallyYou blog, I blog, everybody blogs and one of the names that stands out in the blog world is WordPress. During the past several years, it has become the main choice for blogs all around the world – including the one that you are reading right now.


The main reasons: it’s very good and very free – not to mention very expandable in functions and very flexible in looks if you use the self hosted WordPress.

Given those facts, it surprises me that lots of people are still afraid of the (self hosted) WordPress. “Wordpress is for geeks,” they say, “It’s too difficult for me.”

Well, you can’t love what you don’t know. So, the first step is to get familiar with it and what better way to know more about WordPress than to install WordPress locally on your own computer? Be it a Windows, Mac or Linux PC. Plus, this is also the best way to check out plugins and themes before using them in the real live online blogging world (and start building your own WordPress themes and plugins – should you choose to go that far).

Here’s how you do it :

Step 1: Building The Local “Web Server”

In order to install WordPress locally, you need to have a SQL database and a PHP environment in your computer. Before you ask with fear what creatures they are, let me clarify that these days you can easily summon them just by downloading and installing one of these:


I use a Mac so the steps below are explained using MAMP. But the steps are valid under any OS and so slight differences are to be expected.

Step 2: Creating The Database

Open your AMP app and the server will automatically be on.

install wordpress on windows

The web interface will show up in your browser. Choose “phpMyAdmin” tab.


install wordpress on mamp

Find “Create New Database” box, put a name there, then click “Create”

Step 3: Getting WordPress

Download the latest build of WordPress (at the time of writing is version 2.7)

Extract the zip file into the htdocs folder inside the AMP folder. It will automatically create a “wordpress” folder there.



Step 4: Configuring The WordPress Database

Go inside the WordPress folder, then find and open file wp-config-sample.php using any text editor.


– Find these lines:
–> ‘DB_NAME’ and change “˜putyourdbnamehere’ with “˜the database name from step 2′
–> ‘DB_USER’ and change ‘usernamehere’ with “˜root’
–> ‘DB_PASSWORD’ and change ‘yourpasswordhere’ with “˜root’


How To Install WordPress Blog Locally On Your PC 05 database setting

Save the file as wp-config.php

How To Install WordPress Blog Locally On Your PC 06 save as

Step 5: Installing WordPress

Open this address in your browser: http://localhost:8888/wordpress/wp-admin/install.php

You’ll be asked to put in a blog name and an email address. Click “˜Install WordPress’ after filling in those boxes.

insall local wordpress

WordPress will generate a username (admin) and a random password for you. Please keep the password safe until you have the chance to change it later. Click ‘Log In’ to continue.

How To Install WordPress Blog Locally On Your PC 08 user and pass

Fill in the username and password and click ‘Log In’ one more time.

How To Install WordPress Blog Locally On Your PC 09 log in

Step 6: Changing The Password

Congratulations, you’ve just built your own local WordPress blog to experiment with. But there’s still one more crucial step to take: changing the randomly generated password to something you can remember easily.

Go to menu Users –> Authors & Users –> Admin –> Edit

Find the two password fields down at the bottom of the page, fill in the empty boxes with your preferred password.

Click “˜Update Profile’.

How To Install WordPress Blog Locally On Your PC 10 changing password

That’s it! Why not start experimenting with your WordPress blog and see how you like it. If you have any problems, leave a comment and we’ll see if we can help.

Related topics: Blogging, Web Server, Webmaster Tools, Wordpress.

Affiliate Disclosure: By buying the products we recommend, you help keep the site alive. Read more.

Whatsapp Pinterest

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Anonymous
    September 22, 2015 at 4:27 am

    I was having a similar issue connecting to localhost
    When I put in http://localhost:8888/wordpress/wp-admin/install.php it gave me an error saying 'error establishing a database connection'.

    I had to change the input to http://localhost/wordpress/wp-admin/install.php and and leave the DB_PASSWORD blank, instead of having it be 'root'.

    Is it ok that I did that, and would that cause any issues in the future or with security?

  2. isay
    April 30, 2015 at 2:28 pm

    Thanks .. It's nice

  3. Mike Thornley
    January 23, 2010 at 10:25 am

    Thank you Jeffry for the advice, appears servers don't make it a 5 min install after all. I had to set up a DB on my server but as of yet, stiull struggling. Working on it.

  4. Jeffry Thurana
    January 19, 2010 at 2:03 pm

    Hi Mike,

    Since every machine is unique, I could only guess about the solution. But you may try to:
    - use "localhost/" instead of "localhost:8888/"
    - check the folder name, is it "wordpress"? If not, change it into "wordpress" or change the address according to the folder name --> "http://localhost:8888/folder_name/wp-admin/install.php" (sans quote)
    - consult the local server's (XAMPP, MAMP, etc.) documentation on where the local address is. Each might have a slightly different address.

    Basically, you want to open the "install.php" file inside "wp-admin" folder. You just have to find out where it is.

    I hope this answer would help.

  5. Mike Thornley
    January 19, 2010 at 11:19 am

    I am having the same issues, reaching a broken link which i click for: http://localhost:8888/wordpress/wp-admin/install.php

    I have followed the steps carefully, yet get the same error message echoed by the group. Please help 'us'

  6. used computers
    December 21, 2009 at 11:32 am

    it’s very good and very free not to mention very expandable in functions and very flexible in looks if you use the self hosted WordPress.

  7. NirmaL
    December 13, 2009 at 7:34 am

    Hi there , I am still getting the error described by the guys above. What wrong am I doing while installing ?? Please help.

  8. Ardin
    December 4, 2009 at 1:36 pm

    I am getting an error

  9. cheap computers
    November 25, 2009 at 2:16 pm

    it’s very good and very free – not to mention very expandable in functions and very flexible in looks if you use the self hosted WordPress.

  10. natottadvew
    November 18, 2009 at 1:46 pm

    I'm Looking to buy Entertainment Centers or Wall Units For a new apartment complex I've invested in.
    Can you peoplegive me a good recommendation of where is the top place to buy these? I live in New York and I heard that the big thing about these Entertainment Centers is the cost of shipping and installation.


  11. chris
    October 4, 2009 at 2:39 pm

    Very helpful to beginners like me.. I was able to create my blog on my local machine first before uploading to my server.. c

  12. Javs
    September 24, 2009 at 10:19 am

    Hi reply please I have got error when accessing the http://localhost:80/wordpress/wp-admin/install.php. What might be the reason?

  13. peluang usaha
    September 7, 2009 at 11:46 am

    The tutorial is very clear, thanks for making it.

  14. Kuruvi
    June 25, 2009 at 4:26 am

    Thanks for sharing. Really informative...
    Keep posting new information's..

  15. JoeBoy
    May 26, 2009 at 3:21 pm

    Didnt have the foggyest, this has helped me progress thankyou

  16. John
    February 27, 2009 at 11:06 pm

    the :8888 in the address is referring to a specific port, port 8888. Just delete that part so the address only reads localhost/wordpress/wp-admin/install.php and it should work

    • Jignesh Adhyaru
      September 24, 2009 at 4:29 am

      Have installed the wmap and also unzipped wordpress to htdocs folder, but it is not going to the page link specified. The problem is as it is.... what can be the problem?

  17. Jonathan
    January 8, 2009 at 10:13 pm

    Failed to Connect

    Firefox can't establish a connection to the server at localhost:8888.

    Though the site seems valid, the browser was unable to establish a connection.

    * Could the site be temporarily unavailable? Try again later.
    * Are you unable to browse other sites? Check the computer's network connection.
    * Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.


    This is the error message I am getting, after installing and trying out both XAMPP and WAMP individually.

    Can anyone help me understand what is wrong with my ports? No matter what I do, it doesn't seem to work. I have a relatively modern dual-core, decent Acer wifi connection is working fine; internet works fine. I am no computer expert, but I have certainly done nothing to interfere with ports. I checked with both Windows Firewall active AND disabled, and neither is any more productive than the other. I followed each step to the letter, then opened http://localhost:8888/wordpress/wp-admin/install.php in both Firefox and Internet Explorer, and neither functions; IE gives me a similar message as the one above.

    Apache and MySql are both active and open on what seem to be working ports, according to XAMPP.

    Can anyone tell me what I am doing wrong, or simply what is wrong with my PC maybe, to begin with?

    Please help if you are familiar with these symptoms only, and thank you in advance!

    • J
      February 9, 2009 at 11:49 pm


      I am getting the same error as Jonathan above. (so I won't repeat it)
      I'm running WAMPSERVER2 on a PC.

      Any help would be greatly appreciated!

  18. Claw
    January 4, 2009 at 9:31 am

    Nice tutorial! But all of links are bad copied (all of this includes this tutorial link)

    Regards! :)

  19. SteveAnon
    January 3, 2009 at 7:14 am

    Easy peasy WP setup (and loads of other apps) try Bitnami no need to set up a wamp (available for Linux, Windows, and Mac OS X) - apart from a couple of downloads its all built in.

    home page =
    BitNami Application Stacks =

  20. Chris
    January 2, 2009 at 11:07 pm

    It's still scary, but I learned heaps. Thanks!

  21. Prateek
    January 2, 2009 at 7:46 pm

    Can I post this article to my blog with a link to your blog?

  22. Versatileninja
    January 2, 2009 at 2:09 pm

    Great tutorial for the uneducated.

  23. Shawn Jooste
    January 2, 2009 at 1:01 pm

    I'm not sure why you'd go to all that hassle. You can get hosting for a few bucks, and with Cpanel and Plesk you can install WP with a few clicks of a button.

    • abtmc
      January 26, 2009 at 7:16 pm

      ever had your host server crash? Reinstall the databases?

      I've always wanted to host my own anyways.

  24. Ferdinando
    January 2, 2009 at 11:31 am

    Very good article. Congratulations!

    Only a little thing: you must correct the link for Lamp ;)

    Happy 2009! :)

  25. nexusgx
    January 2, 2009 at 10:15 am

    for people who are squeamish about setting up a webserver, is a great alternative.