Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress Local WordPress Development Local WordPress Development Installing WordPress Locally

Chris Waters
Chris Waters
1,793 Points

I need a step by step of how to Install WordPress locally on a PC - this video does it for the MAC - confused.

.

Have you installed WAMP on your machine?

Chris Waters
Chris Waters
1,793 Points

Hi Lee, no I have installed XAMPP on my machine, as the PC video instructs

3 Answers

Kevin Korte
Kevin Korte
28,149 Points
  1. Download a copy of wordpress from wordpress.org
  2. Create folder in C:/xampp/htdocs
  3. Name folder for project, as example name folder to myproject
  4. Put copy of Wordpress download inside new folder
  5. Open XAMPP, start apache and mysql
  6. Go to localhost/phpmyadmin
  7. Create empty database, click on privileges tab, and create user and password (I do this for cleanliness)
  8. Open wp-config-sample.php file, and fill in the blanks where it says, giving config file things like database name, username, and password.
  9. Save-as this file so that it's just called wp-config.php
  10. Go to localhost/myproject/wp-admin and finish last two steps of installation.
  11. Done.

There are a few ways to do this, like WP will generate the config file for you, but I just tend to do everything manually. I think you can also use the root user for the database, but I like to create a new full access user for each database I build, just so I'm very verbose with what database access each installation of wordpress I have installed has access to.

Chris Waters
Chris Waters
1,793 Points

Hi Kevin

That is great - all sorted.

Thank you for helping out a newbie - much appreciated.

Kevin Korte
Kevin Korte
28,149 Points

Excellent, glad to hear it. You're welcome

djey
djey
221 Points

on #7, after i input all of the user and password info. it gives me error after i press go. This error below

Error SQL query: Edit Edit

SHOW PLUGINS SONAME LIKE '%_password_check%' MySQL said: Documentation

1018 - Can't read dir of 'C:\xampp\mysql\lib\plugin\' (errno: 2 "No such file or directory")

Add user account

Login Information

NEED HELP PLEASE AND THANK YOU!

Sorry, meant XAMPP. Have you downloaded a copy of WordPress and set up a site in your XAMPP application?

Chris Waters
Chris Waters
1,793 Points

I have downloaded a copy of WordPress and put it in the htdocs folder inside a folder called localwp.com (trying to follow the MAC video) - I am now stuck at what I have to do to set up the database (next step in MAC video).

update to comment: Just had answer from Kevin Korte and this covers my question - this was obviously where you were taking me, so thank you for your help with this - much appreciated from a newbie!

Jacob Schaefer
Jacob Schaefer
11,965 Points

I had the same question. This answered it perfectly, and I'm back on track. Thanks!