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

Marilyn Wagner
Marilyn Wagner
6,666 Points

why port 80 instead of 8080

in explaining installation, instructor said to change one preference: change port 8080 to 80. Why? Instructor never said why. Thanks for your help!!!

2 Answers

James Barnett
James Barnett
39,199 Points

Because you can then go to http://localhost instead of http://localhost:8080 to view your website you are making with PHP


As to why MAMP comes that way

> MAMP does not utilize the standard ports in its factory setting. That way, the MAMP servers can run additional to standard web and MySQL servers already installed on your Mac OS X.

source: http://documentation.mamp.info/en/mamp/preferences/ports

Brett Kim
Brett Kim
11,576 Points

cool! thanks, i wanted to know that also