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

MAMP, Y U ALWAYS ASK!?

Heyo, it's been getting really annoying lately that MAMP has been asking me enter my Admin Password when either 'Starting the Servers' or 'Stoping the Servers'.

I'm pretty sure I don't remember it doing this before I changed the port in a PHP Video lesson.

Now I did Google this and found some solutions through Terminal, but have absolutley no experiance with it besides the killall Dock command.

If anyone has any suggestions please let me know! Thanks!

7 Answers

Randy Hoyt
STAFF
Randy Hoyt
Treehouse Guest Teacher

You are right: admin credentials are only required to run MAMP on port 80. (Unfortunately, I don't know of any way around this.) Feel free to change it back to port 8888. It won't prompt you for credentials. If you decide to do that, you'll have to use the port number in the web address, like this:

http://localhost:8888/
Randy Hoyt
STAFF
Randy Hoyt
Treehouse Guest Teacher

Also, +1 for the title of this thread. :~)

@Randy Hoyt thanks for the reply man! What exactly is the difference from port 80 and port 8888 is it just aesthetic?

I'll decide what port to use once I know the benefits of each, but for now I'll just be annoyed with prompting me for credentials ;-)

Randy Hoyt
STAFF
Randy Hoyt
Treehouse Guest Teacher

You can read about ports on the Wikipedia article port (computer networking). Real traffic on a real website will run over port 80, with secure (SSL) traffic running over port 443. But it's pretty low-level networking stuff.

When you are developing locally, it really doesn't matter which port you use. No one will be accessing that website for real over the network; you'll just be looking at it on your computer.

I suppose the question for you is which of the following is more annoying:

  1. Adding :8888 to localhost when typing in the address
  2. Entering your password when you start and stop the server

I personally find #1 more annoying, but that's purely a personal preference. :~)

@Randy - Or you can hack the hell out of it, and edit the FreeBSD config files to turn that setting off.

I should note here for any future readers, if you don't know what something does (and more importantly how to fix it), don't do it.

Randy Hoyt
STAFF
Randy Hoyt
Treehouse Guest Teacher

Hey @Brandon,

I just started up MAMP and yelled out "Y U ALWAYS ASK!" (Luckily I'm alone, so no one looked at me funny.) I will be thinking of you again shortly, when I stop the server again, and probably for some time into the future.

:~D

@Randy haha! That's so awesome! You need to yell it while you're at the office!

\m/ We can't have you stop, so I made this, dude! \m/

http://cl.ly/image/2J2Z0y440F1u