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 Getting Started with PHP Install PHP on Mac OS X

Lawrence McBride
Lawrence McBride
39 Points

htdocs folder on MAMP

I installed MAMP just fine, and Sublime Text just fine, and changed the port to 80, and added the test.php file to htdocs but when I go to the localhost root folder I get the "Index of/" but there is no file to click on. Could someone tell me what I'm doing wrong?

Thanks,

Larry

Jeffery Watkins
Jeffery Watkins
17,326 Points

In MAMP, Settings, Web Server, what is your document root set to?

Jeff

Lawrence McBride
Lawrence McBride
39 Points

I thought the video said it defaulted to the htdocs folder, but it went someplace completely different. It is not corrected and working.

Thanks!

1 Answer

Kevin Korte
Kevin Korte
28,149 Points

By default it's going to look for index.php. Try localhost/test.php