PHP Build a Simple PHP Application Getting Started with PHP Install PHP on Mac OS X

Taylor Culver
Taylor Culver
Python Web Development Techdegree Student 13,121 Points

Changed Port to 80 after installing MAMP, however the apache server doesn't start.

Unable to install MAMP appropriately

3 Answers

James Gill
MOD
James Gill
Treehouse Moderator 34,922 Points

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.

James Andrews
James Andrews
7,166 Points

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

James Andrews
James Andrews
7,166 Points

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