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 Setup Your Local Development Environment

Test works when the index.php file is located inside the MAMP folder, but not when source is moved to Documents/Sites

I attempted to follow the instructions in the video, and Test shows up in the browser when the document root is in the MAMP folder. However, after creating a Sites folder and saving a index.php file with 'Test Documents' in it, nothing shows up in the browser. I have set the document root to Documents/Sites/testsite just as in the video, but nothing comes up. Why could that be?

And "Test Documents" shows up in the browser when I switch the port numbers back to the MAMP standard (8888), but not when using 80 and 3306 like the video instructs. I find this behaviour a bit odd