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

PHP Build a Simple PHP Application Creating the Menu and Footer Starting the Project

Ivan Burda
Ivan Burda
10,897 Points

Localhost - page not available

Hi! I hope somebody can help me. I have installed PHP using XAMPP and put the project files (Mike's T-Shirts) to the htdocs folder. Now when I type "localhost" to Chrome, the website will not open - the browser says the page is unavailable. This means the index.html file will not open. Do you know ho to make it work so that I can learn PHP? Thank you.

3 Answers

Are you sure xampp is running the required Apache services? You can check by opening the xampp control panel, and see the status of apache/mysql.

Jorge Alcala
Jorge Alcala
4,500 Points

I want to share this solution for those that have the problem I got: I have this errors: Access is denied. : file permissions deny server access: Access is denied. : file permissions deny server access: [localhost]

I was having a similar sort of problem, which I've just solved, and so I thought I have to share the solution.

I noticed that all my file-names in Explorer were written in Green. After a bit of digging around, it turns out they were encrypted, so I turned encryption off on them and everything's good now!

In order to disable decryption, select your files, right-click and go to properties, and under "General" go to "Advanced" and remove the thing that says "Encrypt File Contents". The file-names will then turn back to black, and everything was fine, YHAHOOOO!!

Hope this helps!

Ivan Burda
Ivan Burda
10,897 Points

Hi! Thank you for helping me out. Really, Apache/MySQL wasnt running. I had installed XAMPP and thought it would be on everytime I launch the PC. Obviously that wasnt the case. Thank you once again and enjoy your day!