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

Changing folders in MAMP question?

Hey guys! I was wondering how to do you change the file to MAMP. You type in localhost to your browser to display the first folder, but what if you want to display another folder?

4 Answers

You could use a config path for each project where you specify the server root and the base url roots. This is explained in the PHP track. Once you do this you can put a folder within your httdocs directory for each project so that you can go to localhost/yourfolder.

Nvm, I figured it out. In case anyone else are having difficultly with this. First open up your MAMP. Go to preferences and then click Apache. Then select your document.

This allows for multiple projects in your server root.

I guess that's a better way to do it. Thanks man!