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.

A Final Word

We appreciate you stopping by and checking out the post. For more from the Arbenting team, make sure you Subscribe for free to the blog.

33 Responses to “How to set up WordPress on Your Hard Drive”

  1. 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. [...] KB wrote an interesting post today onHere’s a quick excerptOpen your web browser and go to http://localhost; Select your language; Go to phpMyAdmin; 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 … [...]

  3. [...] Şurdaki sitede, herhangi bir host üzerine değil de kendi bilgisayarımız üzerine nasıl wordpress kurabiliriz diye güzel bir anlatım var.. İngilizce olmasına rağmen anlatımı çok açık, kendimce basamakları sizlere açıklayacağım ve takıldığınız bir yer varsa sizlere yardımcı olmaya çalışacağım. [...]

  4. @Matt – Thanks so much! I was nervous since it was my first tutorial.

  5. 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!

  6. @ 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.

  7. @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.

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

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

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

  11. 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.

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

  13. Thanks… This is what I was looking for…

  14. [...] XAMPP WordPress Kurulumu [...]

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

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

  17. [...] XAMPP WordPress Kurulumu [...]

  18. have u forgot something?

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

  19. Thank you! Thank you! Thank you!

  20. verry nice gook

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

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

  23. [...] How To Set Up WordPress on a Hard Drive [...]

  24. 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> =-.

  25. 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.

  26. 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 =-.

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

  28. Thank you very much
    ~~~~~~~~~~~~~~~~~~~~~~
    .-= blackberry´s last blog ..iPhone VS Blackberry =-.

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

    hahahahahahahaha

  30. 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 :)

  31. nice work thanks, finally i got this working local, great tutorial

  32. I hope someone out there is still reading this thread. I have a question – does the install have to be on the local C: drive? Could it be an external hard drive instead?

    thanks
    Erin

  33. shit… all things will work. but if i call the “http://localhost/YOURDBNAME/wp-admin/install.php” site, i get this errors:

    >> Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\wordpress\wp-settings.php on line 472

    Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\wordpress\wp-settings.php on line 487

    Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\wordpress\wp-settings.php on line 494

    Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\wordpress\wp-settings.php on line 530 <<

    i´ve checked all in the wp-config.php and can´t find the fault. any hints here?
    whats about this?

Leave a Reply

About the Blog

The Arbenting Design Blog was created by Angie Bowen & Rob Bowen to give back to the design community with freebies, how-tos and helpful advice. All of the freebies offered here are available for both commercial & personal use, no attribution required.

Contact Us