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.

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,109 Points

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