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

3 Answers

Typically, Apache's at port 8888 for MAMP, not 80. and mySQL at 8889. You don't need to do any of what James described above.

typically yes, but having to put the port in all the time is a pita when you can just type localhost.

OS X comes with apache installed by default. This creates a port conflict with MAMP because only one application can use a given port at any given time. The solution is to go to

If you're using a version of OSX before Mavericks (I read maybe also before mountain lion but I can't confirm) Apple Icon -> System Preferences -> Sharing -> Web Sharing (uncheck)

If you're using Mavericks (or maybe mountain lion) then you'll have to disable it by opening up terminal and using the following command.

sudo defaults write /System/Library/LaunchDaemons/org.apache.httpd Disabled -bool true

make sure to restart your computer afterwards or run the command to stop the current apache process

sudo /usr/sbin/apachectl stop