osx - Mac - Allow user to run MAMP
2014-07
Whenever I start or quit MAMP, Mac OS asks me for the root password. Thats annoying. How can I prevent that? I use only 1 account on my OS. I want MAMP to be controlled without asking for the password.
Try to use a port for Apache higher than 1024.
Ports below that need root privileges.
There is a fix that was created by web developer Damian Gaweda that may be of use for you. He made a 'MAMP-No-Password App' (currently version 1.1) you can read about it and download it here. It makes use of an AppleScript 'AppDelegate.scpt' and enables you to run the startup scripts for Apache and Mysql using OSX's keychain. Check it out, it's a neat little hack!
I want to run MAMP Pro as root (or admin) under Mac OS X. MAMP starts up an Apache server on port 80 and because it's a low port, it I have to type my password in every time I start it up or shut it down.
Edit the sudoers file and add an entry:
sudo visudo
joshk ALL=NOPASSWD: /path/to/apache2
Do you need Apache on port 80?
If this is the only part that requires administrative permissions, it might be easiest (and safer) to just configure another port.