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 trialChris Waters
1,793 PointsI need a step by step of how to Install WordPress locally on a PC - this video does it for the MAC - confused.
.
Chris Waters
1,793 PointsHi Lee, no I have installed XAMPP on my machine, as the PC video instructs
3 Answers
Kevin Korte
28,149 Points- Download a copy of wordpress from wordpress.org
- Create folder in C:/xampp/htdocs
- Name folder for project, as example name folder to myproject
- Put copy of Wordpress download inside new folder
- Open XAMPP, start apache and mysql
- Go to localhost/phpmyadmin
- Create empty database, click on privileges tab, and create user and password (I do this for cleanliness)
- Open wp-config-sample.php file, and fill in the blanks where it says, giving config file things like database name, username, and password.
- Save-as this file so that it's just called wp-config.php
- Go to localhost/myproject/wp-admin and finish last two steps of installation.
- 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
1,793 PointsHi Kevin
That is great - all sorted.
Thank you for helping out a newbie - much appreciated.
Kevin Korte
28,149 PointsExcellent, glad to hear it. You're welcome
djey
221 Pointson #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!
Lee Chavers
22,506 PointsSorry, meant XAMPP. Have you downloaded a copy of WordPress and set up a site in your XAMPP application?
Chris Waters
1,793 PointsI 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
11,965 PointsI had the same question. This answered it perfectly, and I'm back on track. Thanks!
Lee Chavers
22,506 PointsLee Chavers
22,506 PointsHave you installed WAMP on your machine?