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

Problems with xampp reading wordpress folder

I'm working on the How to Build a WordPress Theme tutorial. I'm using the same files structure that is used in the videos. I'm on a PC and I have Xampp installed a the top of my C:. Inside the htdocs folder, I have my project folder, and then the project files. I have my wordpress files inside of a folder called 'wordpress'. The problem is that the server will not read these files from within that folder. It will only read them if I place them at the top of the project folder itself. This isn't a major issue, but it does make it a little harder to organize the project with all those loose files. I was wondering if anyone had an idea what was causing this? Thanks.

1 Answer

Natalia C.
Natalia C.
2,027 Points

I haven't seen the video, I'm not following this course, so please excuse if I'm saying something different from what you are learning. But your website's folder/files shouldn't be in your htdocs folder.

Actually, Natalia,htdocs is the directory that the web server software (Apache) looks to for files to serve on the domain. Anything to be viewed in the browser, including sub-domains, has to be inside htdocs.

Thank you, though, for taking the time to reply. I appreciate it.

Natalia C.
Natalia C.
2,027 Points

htdocs is the folder where xampp has its own files. Your websites' files aren't to be saved in that folder. Take a look at these screenshots:

  1. htdocs folder: http://screencast.com/t/8v1CCai7QQqg

  2. one of my websites w/ a wp install (located in another drive, in a folder "websites"): http://screencast.com/t/G3UPM4UH