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 trialeliypark
4,241 PointsInstalling WordPress locally with XAMPP on PC.
I need information on how to set up WordPress locally using XAMPP. The course only uses MAMP to show.
Where can I find the MySQL section for XAMPP? How do I configure the location of my site folder so that it isn't inside of htdocs, but somewhere I want to put the folder in (such as desktop or any other drives I might have.)?
Thank you!
2 Answers
LaVaughn Haynes
12,397 Points"You can change Apaches httpd.conf by clicking (in xampp control panel) apache/conf/httpd.conf and adjust the entries for DocumentRoot and the corresponding Directory entry. Just Ctrl+F for "htdocs" and change the entries to your new path."
I use Bitnami ( https://bitnami.com/stack/wordpress ) so mine looks like this:
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/BitNami/wordpress-4.2.2-0/apache2/htdocs"
<Directory "C:/BitNami/wordpress-4.2.2-0/apache2/htdocs">
Andre Oosterman
12,861 PointsHi Eliypark,
To set up mySQL, after setting up XAMPP I just clicked:
For details, see:
Hope this helps,
Andre
eliypark
4,241 Pointseliypark
4,241 PointsThanks, Lavaughn Haynes
I got the folder adjusted. But I still don't know how to set up mySQL from XAMPP. Do you happen to know a link relating to it?
eliypark
4,241 Pointseliypark
4,241 PointsFeeling mighty stupid right now - I found it. Thank you so much~!!!
LaVaughn Haynes
12,397 PointsLaVaughn Haynes
12,397 PointsHey, we are all learning :)
I was installing it on my PC to check to see where it is on PC. I used XAMPP on a Mac before but I think the interface is different. I'm glad you found it though.