Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress Local WordPress Development Local WordPress Development Installing a Local Web Server on a PC

Richard Cole
Richard Cole
1,635 Points

I have downloaded XAMPP and created a new file index.php in the ht.docs folder

I have also deleted all the other files in the ht.docs folder as suggested in the video and followed the rest of the instructions. However when i go into browser (chrome) go to localhost i can see my new test site but when i go to click on it shows parent director and i have to click on index.php file which gets to the end result of the video but in the video clicking on the test site it went straight to the test page. What i have i done wrong?

Hi Richard,

I found a similar question asked on a stackexchange forum. It sounds like the server isn't directly recognizing your index.php file. Did you "Start" both Apache and MySQL when you downloaded/configured XAMPP?

Richard Cole
Richard Cole
1,635 Points

Yes i started Apache and MySQL when i downloaded it.

Richard Cole
Richard Cole
1,635 Points

I also placed the index.php doc in the localwp.com site.

Parker Brown
Parker Brown
24,308 Points

I'm having issues with an additional screen as well. I'm using Windows 8.1. I get the exact same initial screen of Localhost with Index of/ at the top of the page followed by testsite.com listed as the only folder. However when I click the folder I get a second screen with Index of/testsite.com atop the page listing a Parent Directory underneath below which is a lone file called index.php.txt. Upon clicking this php.txt? file I can access my saved index.php file. Is this a really big deal? Or can I just resume work having the extra click thru screen???

1 Answer

I just tested things on my laptop (an HP that uses Windows 7), and got the same result as Zac. When I type "localhost" in the browser, my "testsite.com" folder appears in the directory, and when I click on that folder, the browser shows the word "Test". But you're saying when you click on the folder you get the index.php file appearing, and then when you click on that, it takes you to "Test" on the browser? I use a Mac to do all of my Treehouse work, so I'm not too familiar with Windows, but perhaps something went wrong or was missed when you created the file and folder and/or installed XAMPP? Just a suggestion, but maybe you could redo the whole thing and double-check it follows exactly what Zac is doing/has typed. Hopefully someone else with more knowledge will chime in