How to set up Wordpress on Your Hard Drive

xampp/WordpressI've found that having wordpress installed on my hard drive makes things like building layouts, testing changes to my blog, testing plugins, etc so much quicker and easier (not to mention getting to avoid those awkward moments after the initial upload, when you realize you forgot a stray punctuation mark).

We'll be setting up wordpress on our hard drive using XAMPP. Once installed this will also allow you to test php layouts without having to upload them. I'm using Windows so that's what this tutorial will cover. It shouldn't be too different to repeat the process on other OSs (Robert set it up on Mac OSX by following this tutorial). This tutorial and the previous statement is based under the assumption that the user has a basic idea of installing applications in their operating system of choice.

  1. Download XAMPP
  2. Extract it to your hard drive's root directory
  3. Go to the xampplite folder
  4. Run setup_xampp.bat
  5. Run xampp-control.exe
  6. start Apache & MySQL
  7. Open your web browser and go to http://localhost
  8. Select your language
  9. Go to phpMyAdmin
  10. Create a new database with any name you want (I'll just be using wordpress) with utf8_unicode_ci collation (it's the very last option in the drop down menu)
  11. Download the latest version of Wordpress
  12. Extract to C:xampplite/htdocs and rename the extracted folder to your database's name
  13. Open wp-confg-sample.php in your text editor and change the following information
  14. Change putyourdbnamehere to the name of your database/folder
  15. Change usernamehere to root
  16. Completely delete yourpasswordhere, just leave the ''
  17. Save the file as wp-config.php
  18. In your browser go to http://localhost/YOURDBNAME/wp-admin/install.php
  19. Enter your blog's name and your email address and press the install button
  20. You'll be given your login name and password, write them down
  21. Now just login and you'll be in the wordpress dashboard. From here everything is just like your online wordpress setup.

That's it! Now just go have fun, and if you have any questions, I'm sure you know someone to ask who can help you. Just kidding, feel free to leave it in a comment. Pretty sure someone will get back to you.

Share this Article:

  • RSS
  • Facebook
  • del.icio.us
  • StumbleUpon
  • Design Bump
  • Design Moo
  • The Web Blend
  • Design Float
  • ZaBox
  • Twitter
  • DZone
  • Digg

More From Arbenting:

30 Comments & Reactions

  1. September 10, 2008 at 5:31 am | Permalink

    Nice tutorial. A buddy of mine just turned me onto xampp not too long ago. Good work!

    Matts last blog post..WordPress welcome back script

  2. Livi's Gravatar Livi
    September 19, 2008 at 8:39 pm | Permalink

    I had a bit of an issue installing getting this to work.

    Everything worked, except I wasn’t able to publish any articles. I could write new posts, but I was unable to publish them. Additinally, I wasn’t be able to edit them after creating them either. After some searching on the web, I found this link:

    http://www.apachefriends.org/f/viewtopic.php?t=29577&sid=8455d392b6a4c21a9d3e96141cbf914a

    Apparently the integer count was rediculously high, and causing a problem.

    This particular post solved my problem:

    “Another work-around: before you install, edit wp-admin/include/schema.php and replace all instances of bigint(20) with int(11).”

    I deleted the mySQL database I had previously built using the Wordpress install, and then edited the schema.php file. When I reinstalled wordpress with the new schema.php file, it worked perfectly.

    Thanks for the tutorial. It helped.
    Cheers!

  3. September 21, 2008 at 9:28 am | Permalink

    @ Livi, sorry that it was acting up on you. We did three installs, two on windows, and one on a mac to test it out, and didn’t have any of the problems you listed above. So thanks for the heads-up and way to resolve the issue.

    Glad it could help.

  4. September 24, 2008 at 11:29 am | Permalink

    @Livi

    You saved me so much headache with that tip, thank you! I’m new all this (modifying wordpress themes and anything server side), and for the life of me I couldn’t figure out what I was doing wrong.

  5. September 24, 2008 at 11:30 am | Permalink

    Oh, and much thanks for the original tutorial as well!

  6. October 19, 2008 at 6:46 pm | Permalink

    Now this some great info!!! Thanks a lot!

  7. November 2, 2008 at 7:16 am | Permalink

    Thanks for the info.I will give it a try.

  8. November 14, 2008 at 3:19 pm | Permalink

    I was testing plugins and themes online and it was a slow process.

    I never thought that I can install Wordpress on my Hard Drive.

    Thanks.

  9. Deepti Jain's Gravatar Deepti Jain
    January 6, 2009 at 11:25 pm | Permalink

    It’s Nice. I am a newcomer to blog so it really helped me out.

  10. January 6, 2009 at 11:34 pm | Permalink

    Thanks… This is what I was looking for…

  11. May 6, 2009 at 10:39 am | Permalink

    Thanks, finally i got this working local, great tutorial !

  12. May 15, 2009 at 6:22 pm | Permalink

    Now this some great info!!! Thanks a lot!

  13. adityareddi's Gravatar adityareddi
    June 10, 2009 at 7:52 pm | Permalink

    have u forgot something?

    Extract to C:xampplite\htdocs and rename the extracted folder to your database’s name

  14. Marcello's Gravatar Marcello
    June 16, 2009 at 6:25 am | Permalink

    Thank you! Thank you! Thank you!

  15. June 16, 2009 at 8:25 am | Permalink

    verry nice gook

  16. June 17, 2009 at 7:02 pm | Permalink

    Now this some great info!!! Thanks a lot!

  17. June 23, 2009 at 9:48 am | Permalink

    Nice tutorial. A buddy of mine just turned me onto xampp not too long ago. Good work!

  18. November 17, 2009 at 10:50 am | Permalink

    Thanks for the help. now i can edit my blog offline and i love your themes!:)
    <span class=“commentluv”>The Ska´s last blog ..Increase Your Blog Traffic</span> My ComLuv Profile

  19. December 10, 2009 at 2:39 pm | Permalink

    You saved me so much headache with that tip, thank you! I’m new all this (modifying wordpress themes and anything server side), and for the life of me I couldn’t figure out what I was doing wrong.

  20. December 26, 2009 at 7:10 pm | Permalink

    Wow. I didn’t even know it was possible to have Wordpress on your hard drive, but this will be very helpful. Especially, since when I try to tweak my CSS, I sometimes end up with errors on my page while I try to fix them. This isn’t good if Google happens to come by while this error is occurring!

    Now I don’t have to worry about this problem.

    Thanks.
    Darvin @ Inexpensive Gifts for Men´s last blog ..Romantic Christmas Gifts for Men My ComLuv Profile

  21. January 6, 2010 at 8:46 am | Permalink

    Nice Tutorial, thanks. Now I can edit & modify it offline, try out different themes at my leisure.

  22. February 7, 2010 at 4:23 am | Permalink

    Thank you very much
    ~~~~~~~~~~~~~~~~~~~~~~
    blackberry´s last blog ..iPhone VS Blackberry My ComLuv Profile

  23. February 20, 2010 at 11:08 pm | Permalink

    Nice tutorial. A buddy of mine just turned me onto xampp not too long ago. Good work!

    hahahahahahahaha

  24. February 26, 2010 at 6:20 am | Permalink

    Thanks for this very simple and easy-to-follow tutorial! I was just what I needed in my quest to learn wordpress these next couple of weeks :)

Trackbacks/Pingbacks

  1. Google Chrome News » Blog Archive » How to set up Wordpress on Your Hard Drive
  2. “Yerel Disk”inize WordPress kurun | oseninsorunun.com
  3. Tema Tasarımcıları İçin Kaynaklar | iLGinciX TEAM
  4. Bilişim Mahallesi! » Blog Archive » Wordpress Tema Tasarımcıları İçin Kaynaklar
  5. Resources Every WordPress Theme Developer Should Know About! | Arbenting Freebies

Leave a Reply

Get Free Updates

Subscribe via RSS

Subscribe via Email

Community News

Submit News