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

Julius Michael
Julius Michael
8,967 Points

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

Chris Dziewa
Chris Dziewa
17,781 Points

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.

Julius Michael
Julius Michael
8,967 Points

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.

Chris Dziewa
Chris Dziewa
17,781 Points

This allows for multiple projects in your server root.

Julius Michael
Julius Michael
8,967 Points

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