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

Ryan Hellerud
Ryan Hellerud
3,635 Points

How to change the start page to load my project folder on web server start up?

I would like to be able to load my specified project folder instead of using the htdocs defaulf folder, what settings do I need to change to do this, because I have been trying but haven't been able to get it working for some reason, plz help!

2 Answers

Ryan Hellerud
Ryan Hellerud
3,635 Points

I got it i just had to go to 'localhost' to acccess it thanks.

Shawn Flanigan
PLUS
Shawn Flanigan
Courses Plus Student 15,815 Points

Ryan,

If you open MAMP and click "Preferences", then "Apache", you should see a "Document Root" field. Click "Select..." to find the folder you'd like to use and then click "OK". MAMP should automatically restart your servers and use the selected folder.

Hope that helps!

Ryan Hellerud
Ryan Hellerud
3,635 Points

i tried that but it didnt work. I think i also need to change the preference for 'open at start up'. Do i need to change that to index.php or a directory?