Nov 13

Tagged in: Comments:Add

Installing WordPress Locally

This is the first chapter of the Complete WordPress Theme Guide series. In this chapter, you will learn how to install WordPress on a local computer. By doing so, it will save you time from updating and previewing files (so, you don’t have to frequently upload files on every change). You can also use the local version to test new plugins, themes, and upgrades. This tutorial is intended for beginners who want to learn how to run WordPress locally.

Quick Summary

If you have some technical background, you can skip the detailed steps in this tutorial. Here are the simplified steps on how to install WordPress on a local computer:

  1. Install a local server (Mac: MAMP, PC:XAMPP or WAMP).

  2. Create a new database.

  3. Download WordPress from wordpress.org and extract the files to a new folder under the htdocs folder.

  4. Rename the wp-config-sample.php file to wp-config.php and update the database details according to your local server.

  5. Run wp-admin/install.php and follow the instructions to install WordPress.

  6. Done!

Let’s Begin…

Before you start, let’s look at the requirements to run WordPress:

  • PHP 4.3+
  • MySQL 4+ Database Server

1. Install a Local Server

local servers

In order to run any PHP/database application on a local computer, you need a local host (ie. Apache + MySQL). For Mac, use MAMP. For PC, use XAMPP or WAMP.

I’m using Mac here, so I’m going to install MAMP. Go to mamp.info, download and install MAMP.

2. Create a New Database

After you’ve installed MAMP, run it and it should take you to the start page. Now click on phpMyAdmin. In the phpMyAdmin page, create a new database (eg. wordpress).

phpMyAdmin

3. Download WordPress

Go to wordpress.org and download the latest build of WordPress. Go to the htdocs folder (where you installed the MAMP), extract the wordpress.zip to a new folder (eg. mysite).

Extract Wordpress Zip

4. Update wp-config.php File

In the folder, rename the wp-config-sample.php to wp-config.php. Open wp-config.php and update the database details (db_name, user, password, host) according to your local server.

Update wp-config.php

5. Run install.php

With your browser, go to http://localhost:8888/mysite/wp-admin/install.php and follow the instructions to install WordPress.

Install WordPress

What’s Next…

In the next chapter, I’m going to show you how to create a custom WordPress theme in designer way (no PHP skill is required).

Delicious Stumbleupon Digg

Complete WordPress Theme Guide Building Custom WordPress Theme

Comments

There are 196 comments (+Add)

  • 1 mee http://www.wasabi.li

    Wow, that’s Cool.
    I didn’t thought of that. But they idea is brilliant. Now I can’t change the theme without worrying about the live status …
    Great ThanX

  • 2 Winmac http://www.mobilephonevibes.com

    Great! A tutorial with Mac and MAMP installed on it! I’m fated to found this place. Hahaha. Thanks man. Waiting for your next chapter.

  • 3 Josh

    Alright Nick. That took 5 minutes. On to the next step..lets go!!! Hurry up! :)

  • 4 DKumar M. http://www.instantshift.com

    Nice Idea!!
    Quite impressive and easy to setup.

    Thanks

  • 5 Aris

    I just wanted to say that YOU RULE!!!

  • 6 Sam http://www.strictlyphp.com/blog/

    Nicely written tutorial!
    In case someone is trying this on Windows, WAMP (http://www.wampserver.com/en/index.php) is a nice alternative to XAMPP. I personally like it better since it has straightforward menu’s.

  • 7 Sothy http://www.pixelstoprose.com

    Just a note, the latest beta of Wordpress is pretty cool, I have it running and haven’t run into show stopping problems. But you’re probably correct to reference a stable release :) Good tutorial.

  • 8 David Hellmann http://www.davidhellmann.com

    interesting! the next step is good to sea how make a designer a wordpress theme.

  • 9 rafal http://www.14th.pl

    Good joob!!! I wait to the next chapters!

  • 10 Kym http://kymle.com/

    I’ve done this in the past, but I don’t do it any longer. For some reason, the local server programs I install are always prone to bugs, breaking down, etc.

    Nevertheless, installing WordPress locally is beneficial as you can test your themes beforehand and keep a working copy of your website, replete with its posts.

  • 11 Anton Shevchuk http://anton.shevchuk.name

    Alternative of XAMPP is Denwer (now only russian)

  • 12 Danh ba web 2.0 http://www.danhbaweb20.com/

    The post is very useful for newbie. Anyway, thanks a lot !
    Keep up the good work

  • 13 Ana Paula Meyer http://www.pixana.net

    Nice tutorial! Another alternative is EasyPHP (PHP - Apache - MySQL - PhpMyAdmin for Windows) in english or french. Very easy to install and an administration page with all your local web projects.

  • 14 ffranz http://www.ffranz.com

    I can install two Wordpress on a single database, for instance for a preview? If so, can I how do?

  • 15 Brtk

    anyone else having trouble running the XAMPP ? I’m getting libsql.dll errors running mad all over my screen when I start the admin tool….

  • 16 Søren Hugger Møller http://spiri.dk

    I agree with Sam. WAMP is very nice. I haven’t tried XAMPP, but I would really recommend WAMP.

  • 17 abdulaziz

    THANK YOU MAN !!!

  • 18 Permana Jayanta http://www.permanaj.com

    clear explanation. I Hope the next chapter will be published as so on as possible. I really wait for that ..

  • 19 Petolo

    Your tutorial on the subject will definitely tilt the scales in favour of WP.
    I have been trying to decide between many CMSs for simple sites and what you have achieve with your site gives me the confidence that it can be themed away from the existing templates out there.
    I am a designer so if the amount of PHP is kept to a minimum even better :)
    Regards,
    Petolo

  • 20 anestesya http://tadeuluis.wordpress.com

    great Guide!
    very good, was expecting a practical guide so

  • 21 Luis Neng http://www.spirituc.com/en

    I do an extra step when I install WP locally, I like to configure the virtual host in Apache with a fully qualified domain name and then edit my host file to point that domain to localhost.
    The advantage of this setup is to save you the step of replacing all your non-qualified domain names in your code and in the database before migrating your website to a production server.

  • 22 louisa http://weedworks.com.au

    Thanks, have always wanted to know to do stuff locally.

  • 23 Steve Ambielli http://www.steveambielli.com

    Fantastic tutorial. Now I can run a local server!

  • 24 Todd Smith http://www.toddsmithphotography.com

    quick and easy, thank you!

  • 25 Corey Dutson http://www.wallofscribbles.com

    Gahhh where were you 2 weeks ago? I figured this out on my own and it took HOURS. All the tutorials I tried to use were years old.

    In any case thank you for posting this.

  • 26 TheFrosty http://thefrosty.com

    Sweet!!

  • 27 Efraim S http://www.f-ram.net

    I hope you won’t forget the hold ups of transfering your local database to a your online one.
    The many many many hold ups.

    Especially if you use security plugins. (Quick Pro Tip on that: Don’t install the Security Plugins on your local and just have them running on your live)

    Love your site my fellow Torontonian. If only I had friends like YOU in this city eh? lol

  • 28 Mike Brisk http://www.briskpro.com

    So sweet, and easy. Thanks for posting this article.

  • 29 weblizzer http://www.aldrinponce.com

    great tutorials for the beginners, i can’t wait to see the next series…

  • 30 greg owen

    excellent stuff! just what i needed. & so easy! thanks a million.
    roll on chapter 2!
    cheers

  • 31 Brian Okken http://variedthoughts.com

    I’ll second Sam’s comment.
    I’ve used both XAMPP and WAMP (WampServer).
    For uses such as this, I think WAMP is easier to use.

    Thanks for the series.
    I’m looking forward to the following articles.
    Regards,
    Brian

  • 32 ansel http://mediahacker.org

    Thanks for this post! Looking forward to the next installment.

  • 33 george http://georgebutler.com

    Finally, someone will do this right. I read the “small potato” tutorials to learn wordpress. I wish you would have been available back then. You’re much easier to follow.

  • 34 Eliot

    I use MAMP on my Mac, but I think there’s a better alternative to XAMPP for Windows. It is called USB Web Server. There’s no installation required so you can just drop it anywere you want, even on a USB-stick! Check it out.

  • 35 Michael http://www.holidatips.com.au

    This is one of the most useful articles I have read on any blog anywhere - thanks!

  • 36 Dainis Graveris http://www.1stwebdesigner.com

    Finally, installing is too easy.. I think :) Cann’t wait to other parts..:)

  • 37 printers brisbane http://www.twosocks.com.au

    Hey great simple instructions. Thanks a heap!

  • 38 daniel

    looking forward your next post :)

  • 39 Jon Williams http://jonwilliamsdesign.com

    Any chance for a textpattern article?

  • 40 Adam

    Great stuff. Never used MAMP before.

  • 41 Chris Barnett

    Thanks for a great post. Really came at a critical time. Looking forward to some more frequent entries. Amazed at how progressive your features on the blog are getting. Great stuff, keep up the great work..

    Cheers

  • 42 davide http://www.digitalgare.com

    very usefull, but nothing special. you have gained 5 days simply posting the summary eheheh

  • 43 Wardell http://blog.wardelldesign.com/

    I’ve been working with XAMPP for a few years now but the MAPP knowledge will be useful if I ever need to setup a testing server on a Mac.

  • 44 James http://digg.com/health/Free_Acai_Berry_Review

    Nice one, should be useful to me at some point! Bookmarked.

  • 45 John http://www.smple.com

    Am I the only idiot who found XAMPP impossible to install? I don’t really need a solution, I’ll just get someone more technologically inclined to handle that part. Any “here, here’s” would make me feel better though.

  • 46 mark http://marksayers.com

    Mamp rocks!

    I use this process myself and definitely could not have written it better.

    Great job as usual.

  • 47 carrie Drazin

    Extremely helpful!
    Thank you.

  • 48 gummisig http://gummisig.wordpress.com

    Love this Nick, you are a true guru. This is particulrly helpfull since I´m starting work on a new site with wordpress as the backend.

  • 49 Helen

    Great stuff. Looking forwards to reading the complete tutorial. (Especially as I am struggling with my own at the moment)

  • 50 Christopher Ueda http://www.twitter.com/ckueda

    very cool. I’ve been updating my site and then checking it live. This is so much easier. Thanks! Definitely looking forward to the rest of the tutorial.

  • 51 David Hage http://davidhage.com

    Thanks very much for the tutorial! Looking forward to the remaining two. Your clear instructions are great, I’ve been meaning to give WordPress a try for a while now.

  • 52 Alvaris Falcon http://www.falconhive.com

    A simple yet useful and excellent tutorial, your article always make me feel impressed!

  • 53 Danne

    Looking forward to part 2!!

  • 54 teddY http://www.teddy-o-ted.com

    Hey Nick, thank you so much for the tutorial. I’ve been wanting to install WP locally so that testing WP won’t be eating my all the bandwidth of my hosting plan. I’ve tried combing through online tutorials but some of them are horribly overcomplicated and makes it sound very cumbersome to get WP installed.

    Thank God your tutorial came at the right time! Now I can test WP2.7 beta locally without messing with the online and active version of my WP ;)

    However, I’d prefer to use WAMP because it uses phpmyadmin. Very handy and simple. Oh, and I can’t wait for the next part to be released!

  • 55 Ariyo http://www.ariyoshahry.net

    Thanks Nick, can’t wait for the actual meat.

  • 56 abdulaziz

    WE ARE WATING YOU :)

  • 57 sol http://solmaldonado.blogspot.com

    buenisimooooooooooooo!!

  • 58 Tim

    Curious - on this tutorial, you show your wp-config file and at the localhost part - you have ‘localhost:8889′ — why is it 8889 instead of 8888 ? (which is what MAMP sets it up as). I admit, I’m new to this, so maybe there’s a perfectly good explanation for this, I just thought I’d ask. Does it make a difference?

  • 59 Chris O'Donnell http://chrisodonnell.name/

    @Tim

    I’ve got it set up and working with localhost:8888, I’m not sure if that’s just a typo or if there’s a better explanation, but I wouldn’t worry about it… :-)

  • 60 Dan http://minute44.com

    Yes, yes, yes! Super-handy mate.

    This will save me a lot of time methinks.

  • 61 Mads http://madebymads.com

    The reson that it’s set to 8889 it that it’s MySQL port and the 8888 is the apache port!

  • 62 Allen http://allenchan.com.cn

    That’s very cool tutorial! Love it

  • 63 paskal http://paskal.my

    hello :)
    hurm i’ve done this since Xampp 1.5. very easy to me. i use it to test my wordpress theme offline, since it won’t eat away my server bandwith.
    very nice and detailed tutorial indeed. keep it up!

  • 64 Surfer http://surfer.extra.hu

    Good guide.
    I’m waiting for the next chapters.

  • 65 Jorge I. Zaruma

    this was a very helpful tutorial for me. Thank You!….waiting for the next tut:)

  • 66 Simon http://www.pixelghetto.com

    It might also be worth covering how you switch on mod_rewrite in apache as its turned off by default. Once its switched on then you can test various perma link structures locally.

    As that was the one problem I had when running Wordpress locally. =)

  • 67 insicdesigns http://blog.insicdesigns.com

    very cool tutorial. very usefull to beginners in wordpress.

  • 68 Amilcar Tavares http://www.amilcartavares.com

    That’s cool. But the hard part is to pass it your server on the internet.

  • 69 Luis Neng http://www.spirituc.com/en

    @Amilcar
    I wrote an article that might save you some time :)
    You should be able to migrate your blog to a production server without any hassles if you use my solution. Installing WordPress Locally and Migrating to a Production Server Hassle-Free

  • 70 ophy http://www.nelshael.com

    I have XP64bit and don’t work :(

  • 71 Bastian http://misterbastian.com

    If XAMPP doesn’t work for you (it sadly didn;t work for me either), try another one (first uninstall the other server!) : wamp server and usb webserver (dutch site, but english software available) worked fine for me.

    Greetz,
    Bastian

  • 72 giles

    i’m really struggling with step 5!!

    when i go to http://localhost:8889/mysite/wp-admin/install.php in my browser, firefox tries to open the file with dreamweaver?!?

    what am i doing wrong?

  • 73 Mitchel http://www.miitch.com

    You should try usbwebserver 7 you unpack it, and it works.
    I always have wordpress running in less then 5 minutes.
    Also mod_rewrite is on bij default.

  • 74 Magnus http://www.srface.com

    @giles
    I had some trouble with this too, until I realized I had extracted the wordpress zip-folder into a new directory inside ‘mysite’. When I moved the wordpress-files out of ‘wordpress-folder’ into ‘mysite’ it worked just fine.

  • 75 dev(Www.iHaCK.ASIA) http://www.ihack.asia

    really useful tutorial,save many time to edit theme and perview the result

  • 76 Saman http://scroll.blogfa.com

    Thanks..

  • 77 bweb http://www.nyczaj.eu

    Thanks man.

  • 78 Matthew Hodder http://matthodder.com

    I’ve had WAMPP set up for a while (for testing php) and never even thought of installing wordpress locally to test changes to my (few) wordpress sites. Nice post!

  • 79 paluh http://www.deprowebs.com

    sweet, thanks a lot

  • 80 Arian http://www.nationaleconomy.net

    It does not find where I installed wordpress.
    http://localhost:8888/mysite/wp-admin/install.php

    I get the message below and it’s not caused by a firewall or anything like that.

    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.

  • 81 ocube http://ocube.co.uk/

    Hey giles

    Not sure if its the same problem I faced but try placing your site in (the whole shebang) in applications/mamp/htdocs/

    workked for me. I use a G5 at work and could only get it to work that way. Funny thing is I use an intel Imac at home and it didnt have that problem. let me if that helps.

    ocube

  • 82 luke http://www.esty.mobi

    Giles, make sure that you changed the wp-config-sample file and make sure that you only have a (1) parent folder under htdocs structure should be like this:
    mamp>htdocs>mytestsite>then all the extracted WP files

  • 83 SC

    with WP 2.6.x “Update wp-config.php File” as a option, the install guide will do it.

  • 84 rik

    Hi thx for the great tutorial. Anybody got any ideas how to acces the site from a PC in my LAN to check how IE works with my freshly created theme?

  • 85 Rodrigo http://fotologando.blogspot.com/

    humm não é muito dificil estou tentando seguir as dicas acima veremos se consigo

  • 86 WP Cult http://wpcult.com

    Working on rebuilding my web store locally right now! Thanks!

  • 87 PcSaudavel.com http://www.pcsaudavel.com

    Very goo Website.

    Thank you

    Roberto

  • 88 Julynell http://www.julynell.com

    This was a great help! Thanks so much. I love your site, keep up the good work :)

  • 89 aris http://organizedkuhnfyoozhuhn.wordpress.com

    I already have a wordpress blog. how do i log into that? It seems that its creating a new site. im lost please help.

  • 90 fahad

    hey,
    im trying to install wordpress locally but im having some problems. When i get part 5 where it says :

    With your browser, go to http://localhost:8888/mysite/wp-admin/install.php and follow the instructions to install WordPress.

    i get an error message. Can you tell me where im going wrong?
    Thank you

  • 91 aris http://organizedkuhnfyoozhuhn.wordpress.com

    Fahad make sure that the contents from the wordpress folder are directly in the mysite folder. applications/mamp/htdocs/mysite/(the contents from inside the wordpress folder). if you place the the whole wordpress folder inside it wont work. Hope that helps.

  • 92 fahad

    Thanks Aris:) it works now.
    Does anyone know where i can download a plugin which allow users to rate a product and review my posts or products?
    by the way this site is great!
    thank you for you help guys

  • 93 grek

    Hey,
    I use Windows and istalled WAMPServer. The problem I have is with step 3: where actually should I unzip the Wordpress content? The only ‘htdocs’ folder I have is inside ‘apache’ folder (wamp\bin\apache\Apache2.2.10\htdocs\).

    Please help me.

  • 94 joyce

    Hi,
    Thank you for the tutorial, it is great!
    I have successfully set up WordPress on localhost, however I don’t know how to login to the admin panal of WordPress. I am a newbie, please pardon me if this sounds like a silly question. Thanks in advance!

  • 95 alysync http://m4more.com

    I am totally in the dark…so grateful this site exists!

    The “newbie” tutorial for installing WordPress locally was too complicated for me…but since the blog is already up…(hosted with Hostazar…I managed to get THAT accomplished)…my dilemma now is “Themes”…I desperately need help in uploading/installing themes.

    I am very ashamed because I AM a (graphic) designer…but not technical enough for Web design…my expertise is marketing/branding/imaging and PR…I’ve taken a hiatus from all that to engage in Internet marketing…so my inability to make my sites look fabulous is embarrassing to say the least. Please help!

    I just discovered this blog and I’m reading all the other posts here now…in the meantime, additional hand holding is highly appreciated.

    Thanks ahead of time.

    AlysynC

  • 96 Rikin http://rikinontheweb.wordpress.com

    I’m a complete noob and didn’t know to turn web sharing on in order for MAMP to work properly. Hope this helps anyone else as incompetent as I am! Thanks for this post so much…

  • 97 someone that got frustrated

    for those trying to install wordpress and use xampp (mac or PC) when editing the code DO NOT put in a password. above says root for username and root for password. dont put in a password. you might have to remove whatevers there first. you can keep your localhost as just localhost as well.

  • 98 Desirae http://www.nightlightinteractive.com

    I’m stuck on Step 5. I tried that URL: http://localhost:8888/mysite/wp-admin/install.php and I get a “Failed to connect” error. I don’t know where I went wrong. I’m using WAMP server. I opened the HTML file in the wordpress htdocs folder and clicked the 5 minute install link which takes me to a page saying I already have wordpress installed. I never saw the install.php page. There were 2 blank text fields. There, I tried to name it and put my email address associated with the server. I don’t know what’s happening.

    Also, What does the number 8888 and 8889 mean after “localhost:”? How do I know if I used the right number or if I need one at all?

  • 99 steve

    MAMP saves me soooo much time. Amazed it’s free.

  • 100 Outlet http://outletyvcr.cz/

    Super list. Thank you very much :)

  • 101 Okeif_Obd http://www.okeifbydesign.com

    For anyone using WAMP (and possibly XAMPP, have not tested) who has any issues related to Step 3-5, here is your solution:

    With WAMP installed (or XAMPP) your Step 3, 4 and 5 will look different then, our gracious host has suggested, with a MAMP install.

    Step 3.) Go to wamp / www, in whatever directory or location that wamp was installed. Extract latest (or any version) of wordpress-X.X.zip to a folder (mysite) with only the content of the wordpress folder dumped directly into (mysite). New file structure will be wamp / www / mysite / etc..

    Step4.)Unless you’ve changed the db username, password or host name then the db_name is whatever you created in Step 2, the username is root, enter nothing between the ‘..’, and host is localhost.

    Step5.)With your browser go to http://localhost/mysite/wp-admin-install.php.

    Hope that helps!
    Thanks again, Nick!

    PS. If you’re having a problem getting your WAMP or XAMPP server online, that’s a whole ‘nother issue, but check to make sure you’re not using IIS; infact disable IIS if possible.

  • 102 Redd Seider

    Okeif,
    Having endless problems with the install and have tried both Nicks and your directions. Using XAMPP. No luck on either front, as constant “The requested URL was not found on this server” errors.
    Have tried all combos:

    http://localhost/xampp/www/wordpress/wp-admin-install.php.
    http://localhost/wordpress/wp-admin-install.php.
    http://localhost:8889/wordpress/wp-admin-install.php. (get “IE cannot display this webpage” error on this one. wp-config localhost changed)
    http://localhost:8888/wordpress/wp-admin-install.php. (get “IE cannot display this webpage” error on this one. wp-config localhost changed)

    Some questions about your post:
    1. In “Step 3″, you say ” Go to wamp / www”… This directory does not exist. Do you have to create it?

    2. In “Step 4″, you say “…… the username is root, enter nothing between the ‘..’, and host……” What is the “enter nothing between the ‘…’ referring to? The password?

    3. In “Step 5″, you say “With your browser go to http://localhost/mysite/wp-admin-install.php

    Should this be:http://localhost/wamp/www/mysite/wp-admin-install.php?

    Thanks so much for your assistance!

  • 103 Tom http://www.tkenny.co.uk

    I’ve finally got a local WordPress install setup on my Mac thanks to your tutorial. Great for testing new versions and making changes to existing sites without editing live content. Thanks.

  • 104 probablepossible http://probablepossible.com

    Wow, what a difference this makes!

  • 105 asramnath

    Excellent. works well. Thankyou! :)

  • 106 Emily La Porte http://none

    Hello,
    I am pretty new to all of this, but eager to learn how to set up my own blog. What is the advantage of installing WordPress locally?

  • 107 steve b

    I’d like to thank Okeif who posted the life-saving tips (comment 101) that are needed to get the install working on a PC. Moved the whole thing from super-frustrating to super-satisfying. Whew…

  • 108 Georgina

    Brilliant, thank you!

    What a great idea for working on your design without constant ftping.

  • 109 infopathologist

    Really useful, thanks. In fact, I substituted IIS for Apache on Windows XP, because that’s my usual development environment. All works a treat with PHP and mySQL.

  • 110 2Clicks http://todopor2clicks.com.ar

    AWESOME! Thank you! This will be VERY VERY usseful from now on. thanks a lot.

  • 111 pankaj

    Wow, thank you!

  • 112 nathan

    IS this lesson inteded for a Paid Wordpress account? or this can also apply to a free Wordpress Acount.. ?????

  • 113 Daisy http://krullturnbull.com

    Hi, i keep getting 404 Not found for http://localhost:8888/mysite/wp-admin/install.php

  • 114 Tomas Lonnberg http://www.tomaslonnberg.com

    Hi, Brilliant site, brilliant post!!!
    I had mega problems getting the XAMPP Server working locally [Windows XP], so I decided to try the WAMP. It works a treat.
    This is how I did it - and it has been commented here before so this really is following on the instructions of other users on this post, [Okeif and otheres], anyways… This is for Windows XP,
    Download and Instal WAMP,
    then
    1) create a folder, say ‘mysite’ to your c:\wamp/www/ folder. 2) download WP and unzip it to c:wamp/www /mysite, alternatively just unzip it to your desk top and then copy all of the wp files to c:wamp/www/mysite Make sure you do not a)copy the ‘wordpress’ file in there, just the content and b)don’t copy the wp file content into http://www. It needs to go to c:wamp/www/mysite !
    3) go to phpmyadmin, which can be found on the little icon at the right bottom of the desktop. Create a data base for e.g mysitelocal or what ever.. Just make a note of it.
    4)Go to your wp-config-sample file and rename it to wp-config , also set your DB_name as ‘mysitelocal’ or whatever else you chose, DB_user as ‘root DB_password as ” or if you have set a password then use it, and finally DB_host as ‘localhost’ - then save it!
    5) next type in http://localhost/mysite or alternatively just write http://localhost and then choose from ‘Your Projects’ the mysite folder and you should be on your way. I hope this helps..
    Again Brilliant resource site!! Thanks for all of your help past, present and future.

  • 115 Andrew http://www.trainermade.com

    JUST AS A HEADS UP!!! Sometimes the password is not root at all for a local host! In my case it was supposed to be left blank. Caused me hours of issues! Silly me.

  • 116 Danilo http://www.kmagma.it

    Sorry,
    do you think is possible keep both IIS on local (window 2003 server) and apache…
    In this way I can test my sites that working in ASP and my sites that working in php…
    Thank you very much

    #danilo

  • 117 Philomena

    Thanks! Fantastic site! And thanks Tomas L. who saved me from giving up with your tips for the Windows installation. It works on Vista too. Yeh!

  • 118 Prakash

    Thanks for sharing it, Its so easy !!
    Thanks again

  • 119 Mark

    There is also a good article on how to install wordpress at http://www.madanrevoor.com/?p=9
    Do check it out.

  • 120 Ruchi Parikh http://choosyinfo.com

    Thanks Alot .. it helped me in setting it up locally, only problem is of simulating .htacess file in the windows xp machine, it would be great help if that could be provided.

  • 121 Ashley

    When I go to /wp-admin/install.php, all I get is a blank page. For some reason it’s not prompting me to install. Can anyone help me fix this issue please?

  • 122 jlee http://cemilebora.com

    Thank you very much for this helpful tutorial.

  • 123 K-Nine http://www.skylinedesign.co.ke

    Ashley, are you by any chance running on a 64 bit Operating system? I am, and I just discovered recently that XAMPP still hasn’t released a 64-bit version… but there are workarounds… if you are interested (an running on 64-bit)

  • 124 kkerney

    Great tutorial! For those of you on a mac and still struggling with MAMP here is another great video tutorial on setting MAMP up on your mac http://www.freemacblog.com/mac-server-series-install-wordpress-on-your-mac-using-mamp/

  • 125 PAUL

    HI - can someone help please

    I Get to the very last page and it reads

    The requested URL /mysite/wp-admin/install.php was not found on this server.

    Apache/2.0.59 (Unix) PHP/5.2.6 DAV/2 Server at localhost Port 8888

    Ive tried this 3 times with no joy, can anyone recommend what i might be doing wrong?

    Thanks

    PAUL

  • 126 Andyrw80

    Hey, Great tutorial.
    This is for Paul and anyone else having probs installing Wordpress, I think there is a typo where it says “http://localhost:8888/mysite/wp-admin/install.php” I think it should be 8889. Worked for me! Hope it helps.

  • 127 Andyrw80

    Oooopppps, not a typo, scratch my previous comment. I just forgot to put my Wordpress dos in the htdocs folder within MAMP. Now it’s working.

  • 128 Enzo

    Hello everybody,

    I thought I had done everything right, but I was wrong. For some odd reason when I click the instal file dreamweaver launches and no install takes place.
    Following the instructions on the tutorial this is what I did:
    1 Created datebase
    2 Downloaded wp files, placed them inside a folder named mysite, and subsequently I placed the mysite folder inside the htdocs of mamp.
    3) I removed “sample” to rename the wp-config.php
    4) I launched dreamweaver and I entered the info inside wp-config.php file (database name, user, password)
    5) I went to http://localhost:8889/mysite/wp-admin/install.php and downloaded the instal to my desktop.
    6) I click the instal file. Dreamweaver launches showing the istal file, and no instal takes place.
    I’m stuck here. I don’t know what to do. What did I do wrong? Can somebody help, please?

    Thank you in advance.

    For some odd reason, after I download from “http://localhost:8889/mysite/wp-admin/install.php”

  • 129 MyClubTees http://www.MyClubTees.com

    Wonderful! My dilema: Running IIS and Apache on the same PC. I didn’t want to disable IIS. After a bit of struggling I managed to install WAMPServer on my PC. Now I have both servers IIS and Apache running on the same machine. I just changed “Listen 80″ to “Listen 777″ and “ServerName localhost:80″ to “ServerName localhost:777″ on httpd.conf - After the change I had to “Restart All Services”. From now on when I want to access Apache server I just have to change the URL to http://localhost:777/YourSite - Great article! Thx!

  • 130 Hansraj

    Im trying to install the wordpress on a rails application.
    + Can wordpress be installed on rails application?

  • 131 Steavedtugtap http://70studio.ru/

    nice, really nice!

  • 132 Keith D http://www.wmwebdesign.co.uk/

    I’ve just bought a copy of “Wordpress theme design”, cost me nearly £25.00.
    Pity I didn’t find this article first!!

    Question - for windows vista, which is best XAMPP or WAMP?

    Thanks for the articles.

    Keith D

  • 133 Bonny Stohlquist

    I am using wamp for a pc. I am having trouble with installing wordpress when I type in http://localhost/mysite/wp-admin/install.php I get this error message:

    URL /mysite/wp-admin/install.php was not found on this server.

    I can get to localhost/mysite and I can see the wordpress folder but cannot access it. I get the error message above.

    I put my SQL hostname as “localhost could this be my problem.

    If anyone can help me I would appreciate you emailing me at bonny@amigo.net.

    Thanks

  • 134 Katy

    First of all, thanks for yet another great tutorial. I love this site!

    I’m running on Windows Vista. I personally couldn’t get XAMPP to work at all, but after some trial and error here’s what worked for me:

    1. Download WAMP (http://www.wampserver.com/en/)
    2. Follow the tutorial at the following site to get the server and wordpress up and running — http://wordpressgarage.com/good-blogging-practice/how-to-set-up-wordpress-on-a-wampserver/

    Hope this helps.

  • 135 akteruzzaman http://computerclinic-banglamedia.blogspot.com

    computerclinic-banglamedia.blogspot.com

  • 136 iconz113

    Since leopard comes with PHP and apache preinstalled I just wanted to install mysql instead of installing mamp, also because I can use the mac as a webserver If i chose and from what i understand this would be impossible to do with mamp, it can only be used for testing locally and could not be viewed by anyone else. I understand the security issues but I would like the ability to do so. My question is how can I install wordpress using the apache php and mysql installed on the computer and not through mamp?

  • 137 ghan http://www.g-han.co.uk

    I followed the tut.through each step, but developed a problem when trying to run ‘install’. I copied “http://localhost:8888/mysite/wp-admin/install.php” into my browser, but it comes up an blank white page,nothing happened.
    when I change the address to “http://localhost:8889/mysite/wp-admin/install.php”,it asked me to save the install file. I did, but when open it,Adobe GoLive launched with these random codes “4???
    5.0.41?)???@uQsmJjU?,¢??????????????Nc,L{J=1{=\7???ÿBad handshake”….I’m stuck….
    I did put wordpress docs in the right folder(htdocs).
    Please help me,thanks.

  • 138 Celtu http://celtu.com

    Hi,

    All I could express after seeing your wordpress blog’s design and beauty was this ” Oh my God, I have never seen such a beautiful design and blog”.

    Well Anyway I do know Photoshop and Fireworks but I do not know how these flowers are made and even if these are made in these two or something else, I wish I could create design or flowers like this page has. Wow what is it did you develop yourself I write and preview is showing up of text I am typewriting that’s very new for me.

    Any hint will be appreciated.

    Oh yeah actually so far I only add entries for short tutorials or hints in my blog for technical programming or gadget or software related.

    Thank you for reading my comments.

  • 139 amarie

    hi… i’m confused. i bought a host plan and installed my wordpress on it. does this mean installing it on my computer is much more better?

  • 140 lella

    Could someone give me some advice?

    So I downloaded wordpress and installed in sucessfully on localserver –does this mean that the blog is only visible from my computer? I don’t have a web host. can I make one myself? if that is possible I’d like to try and figure it out. thanks!

  • 141 James P http://www.funkandsoul.f2s.com

    Following along with the Wordpress tutorial here I’m running xampp 1.7.1 on vista sp1 but since I tried to start mysql with it I just get the 1067 error code every time I try to launch phpMyAddmin with it. Thing is I used to be able to run phpmyadmin just fine in previous releases but not anymore.

    I’ve Googled the error on a few sites now and I’m not getting any solution yet. Please help as I ‘m banging my head against the wall here!

  • 142 James P

    Solved my problem by switching to my home PC setup :grin: works a charm.

  • 143 Lish

    Hi, My wordpress installation stalls at the last stage after I key in my blog title and email. I am not getting the “Success” page with the generated login and password. Which step am I missing?

    Please help! Thanks in advance!

  • 144 saç ekimi http://sac.ekimi.net

    Thank you very clear

  • 145 jez stevens

    hi love the tutorial so far - very clear, but when I try to run the wp-install php file I get some gobbldygook and “bad handshake” can you help please.

    I’m running os x10.4.11 with the latest version of wordpress and mamp.

  • 146 cennetevi http://www.cennetevi.gen.tr

    these are awesome!
    thanks for putting in the effort to get this list together http://www.cennet.gen.tr

  • 147 Kathy

    Great Info! Had to tweak a few things for Windows Xammp, but very easy process. I love your site. Its one of the most beautiful I have come across and it is full of useful info for an aspiring designer. Thank you for all your work.

  • 148 subcorpus http://www.subcorpus.net/blog/

    helpful article …
    was looking for something like this …
    thanks for sharing …
    am gonna try local wordpress intallation now …

  • 149 nathan

    Mac people, can’t get to the install bit?

    You need to move the wordpress folder (that you unstuffed) into the htdocs folder found in the MAMP directory (should be installed in your applications folder).

    Than go to the localhost URL described in step 5.

  • 150 Aoobi http://fashionow.net

    Great Info! Had to tweak a few things for Windows Xammp, but very easy process. I love your site.

  • 151 harga emas http://harga-emas.com/

    I like this post and the lesson, thanks for making it.

    Great..

  • 152 Keya Lea http://synergyindesign.com

    Hey Jez, I got the same thing, but when go you to install, take out the /mysite and it will take you to the install page - assuming all other things have been done.

    Thank you to the writer of this post! It walked me through and got me up and running.

  • 153 bagsin http://handbagsurf.com

    Thank you very clear steps

  • 154 serhan http://www.goynukoren.com

    thank you very much ..

  • 155 DGS http://www.daysgrowshort.com

    nice and clear - thank you!

  • 156 Learning WP

    In case anyone (Mac users) is having problems with all graphics and pics showing up I figured out why. Another popular tutorial said that you can install wp in any folder on your computer inside a htdocs and I did under my username. But I looked for weeks why the themes and WP icons wouldn’t show up. After reading here I read that wp needs to be installed into the “htdocs” folder inside of MAMP, inside of the apps folder. I also changed my Preferences inside of MAMP to “Reset MAMP ports” and it changed the Apache Port to 80 and they MySQL Port to 3306 and in my browser I put in “http://localhost/wordpress” and everything works perfect. I am new at this so don’t know if it’s the right way but it works to work locally.
    I love the design of this site! Thanks for all the great info here.

  • 157 Cyrus

    Great , Installing WordPress Locally
    Great article. CSS saved web design
    Cyrus
    Visit http://www.psdtoxhtmlcoder.com

  • 158 Chetan

    Hi, Thanks! this is very helpful article.

  • 159 Stuart

    Thanks for the article and I’ve managed to install MAMP with no problems, along with getting a WP install up and running.

    However, I cannot get my local install to see any new themes I copy into teh theme directory - any ideas?

  • 160 Jave http://ctrl1337.blogspot.com

    Hi ^^
    The information is pretty clear, but i think im doing something wrong and i need help to solve it. When i go to the link you mention to install.php i get this error that says the page was unable to reach… im pretty sure i did something wrong on my wp-config.php doc and actually i dont know the actual account and password for MySql, so please someone contact me and help me i need this thing up o.o I know im missunderstanding some information but i need you to guide me on this ^^

    Tnx for all the tutorials and information ^^

  • 161 Himanshu http://www.blogtechnika.com

    Thanks for this detailed tutorial. It clears all my doubts, bookmarked this post.

  • 162 Mike http://www.comastore.com

    Thank you to the writer of this post!

  • 163 Filip Jakobsen http://www.filipsdesign.dk/

    This is brilliant! THANK YOU SO MUCH for making this tutorial :-) :-) :-)

  • 164 rarmbeabs http://www.clickshappen.com/postafreepressrelease/pressrelease.cfm?ID=63580

    Outstanding Article , I thought it was tremendous

    I look ahead to more great postings like this one. Do you have a RSS I can subscribe to for updates?

  • 165 amanda http://qq2009.j4r.net

    your site so beautiful !

  • 166 Abrar http://swine-flue-virus.blogspot.com

    Excellent tutorial. Thank you very much

  • 167 ethiodelight http://www.ethiodelight.com

    it’s very good post

  • 168 509 Media http://www.509media.com

    Nice write up. Saved me a little time explaining it to someone. I use WAMP on my pc for working on Wordpress pages. I have had no issue with it. I recommend it as well.

  • 169 Paul Wozney http://hrsbstaff.ednet.ns.ca/pwozney

    Hi there,
    I used your instructions to set up a local beta site for the school I worked for last year, and it worked flawlessly. I moved to a new school this year, and wanted to start fresh. I deleted the old site, created a new database in myphpAdmin for the new site, and now I can’t get it to work at all. I keep getting the same error message about already having installed wordpress despite having deleted the old database in phpmyadmin.

    Any ideas? I have a screenshot of the error message if that would help. Any assistance would be brilliant. Thanks!

  • 170 Jeff http://www.bestwebsitesdesigner.com

    Check these video…it explains how to install wordpress on local computer..
    Please place these video in your blog so it will help your visitors

    http://www.youtube.com/watch?v=wnd3u0bWJv8

    Thanks

  • 171 vincentdresses http://www.hibridal.com

    喜欢你们的设计与技术,常来看看

  • 172 SE7E Design http://www.se7endesign.com

    Excellent Tutorial! Spent hours trying to figure this out but once I found this tutorial I had WordPress running locally in half a minute!

  • 173 Victoria cooke http://sweetnfree.wordpress.com/

    thank you so much @ Tomas Lonnberg because i couldnt get mine to even give me the page to bring up wordpress until i read your guide. and i went through 13pages of comments and guide trying until i came to yours ^-^ thanks again=)<3

  • 174 Alvin Tan http://www.undeniableprofits.com

    I’ve just installed WP 2.9.1 locally with XAMPP Windows 1.7.3 in my Vista PC.
    How To Install WordPress Locally With XAMPP

  • 175 Peter

    Thank you for the clear guide. I had been battling for a week to get Wordpress installed - you gave me that one bit of information I was missing from other instructions and I got it done in half an hour.

  • 176 LouienatoR

    Nice tutorial mr…. but my problem is that, i’m stuck in 5. Run install.php “Warning: require_once(../wp-load.php)” i need help really badly…. thank you…..

  • 177 Emily

    I’m stuck on step 5, please help!

    I’m using a mac and MAMP. I’ve tried every way of trying to get that setup page and have had no success. What am I doing wrong?

  • 178 number8

    hi,

    Thanks for this but i have a problem with steps 4 & 5.
    I inserted the ‘database name’ no problem. (very impressive i know).
    - where do i find the username and password to insert in step 4?
    - when you say ‘localhost:8889′? what do you mean?
    Sorry if this is all newbie questions but im genuinely stuck.
    :(

    and assuming i fill in the info in step 4 correctly, then running /install.php should work?

    thanks in advance
    n8

  • 179 Kyle King http://www.highergroundstudio.com

    You might want to add the Microsoft Web Platform Installer as a possible way to install wordpress locally. It is a really easy install for windows users (about 10 minutes).
    http://www.microsoft.com/web/gallery/wordpress.aspx

  • 180 Kyle King http://www.highergroundstudio.com

    I would be willing to do a guest post for web designer wall detailing how to use the Microsoft Web Platform. Contact me if you are interested at kyle{at}highergroundstudio{dot}com

  • 181 Jodi Henderson

    This was a fantastic help! Thanks very much!

  • 182 Web Design http://exmmedia.com

    Great info !! THANKS!!!!

  • 183 San Diego Mobile Notary http://www.melissasmobilenotary.com

    Great tutorial. I was always looking for ways to install Wordpress and work with a theme locally. There are many steps, but all are laid out very well. Thanks for taking the time to help everyone.

    Kurt
    San Diego Mobile Notary

  • 184 Graham Armfield http://www.coolfields.co.uk

    Thanks for the clear instructions and easy to follow layout. This article was very informative.

  • 185 Gray

    Brilliant tutorial and have used it before. I updated my MAMP Pro, and now it won’t work!!! So annoying… it cant connect and I keep getting this msg-

    Not Found

    The requested URL /mysite/wp-admin/install.php was not found on this server.

    Please help, I need to get this sorted. I’ve done everything that is required so really dont know whats going on! Thanks

  • 186 Alex http://www.ajdf.co.uk

    Things are slightly different for WAMP: Here’s what I did:
    1. Install WAMP into c:/. When done, run WAMP then click on WAMP icon in icon tray> select ’start all services’ from menu.
    2. Go to your browser address bar: http://localhost… (if you see nothing, try closing ‘SKYPE!!!!’), click on phpmyadmin link at bottom (this just takes you to localhost/phpmyadmin)…
    3.You now ‘create new database’, give name ‘wordpress’… leave all other dropdown boxes.
    4.When it has created that, go to tab towards top right called ‘Privilages’… click ‘add new user’, enter a username and password twice, ignore everything else and click GO on bottom right to save this user.
    5. Now you can continue from STEP 3 in Nick (webdesignerwall’s)
    tutorial, but note your folder will not be called ‘htdocs’ it is call ‘www’ found at c:/wamp/www/’folder-name-you-created-for-your-local-wordpress’…

  • 187 arvee marie http://www.flutterhappy.com

    i used xampp and it was great. i used it before making my site go live. ♥

  • 188 Conny http://www.swisswebwork.com

    Never ever came to my mind LOL to do it localy tzzz, now i can work even when im without net
    10 thumbs up

  • 189 Irwin Ramón

    Thanks so much. Steps were nicely presented and easy to understand to a beginner like me. I am trying to create an e-commerce site and even though I read that drupal is the best way to go. I will try to do it with wordpress because I read is possible. I saw a template that I really liked that was supposed to be used with drupal, but I was not able to handle it. I was able to install drupal on a local server, but I was not able to do anything with the template that I chose. I know drupal is a more powerful CMS, but for someone like me it doesn’t add to anything if I can’t understand how it works. I hope that Wordpress is as easy as I read. Again, thank you for the tutorial it was clear and useful enough for beginners like me.

  • 190 Eki

    When I go to
    http://localhost:8888/mysite/wp-admin/install.php
    I get
    Not Found

    The requested URL /mysite/wp-admin/install.php was not found on this server.

    Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2 Server at localhost Port 8888

    Any ideas what I am doing wrong. Much appreciate a response

  • 191 Akash http://www.tatvaa.com

    Brother, you’re awesome! I mean knowing something is one and actually taking out time to help others is a mere demonstration of passion. Thanks a ton!

  • 192 Chandra or Ibukerte http://timikaunique.blogspot.com

    @ ALEX..thanks you give me a solution since I am using wamp server. The wordpress already installed on my PC. Hug from Timika, Papua, Indonesia.

  • 193 Janneke

    I’m a total noob at this (a) So when I try to install wordpress, it says Error: PHP is not running. I downloaded everything above, I even downloaded php seperately and after that I downloaded the WIX to manually install php, that totally didn’t work :( I do have another program called eclipse. I can open the php files and edit them, but I can’t view them. When I try that there comes a black window and it disappears, seconds after… Can someone help me??

  • 194 Abida Sultana

    Thanks .

  • 195 arif wachyudin http://pondokbaca.com

    nice posting!

    thanx a lot bro…

  • 196 Adam

    Thanks so much for this guide. I was a bit daunted about all of this and you have really helped. I don’t usually show my gratitude on posts like this, but i felt i needed to on this one…

Post Your Comments

(required)

(required)

Comment Guidelines

  • Please keep comments related to topic. And be nice, don't spam!
  • Basic HTML tags are allowed:
    <a href> <abbr> <acronym> <blockquote> <code> <em> <strike> <strong>
  • Note: un-related or spam comments will be deleted.

Live Comment Preview

Back to top