Enter the Account Name and Password you use to login into your computer and click Add. Open Keychain Access.app in the /Applications/Utilities folder:Īdding a new keychain item in Keychain AccessĮnter the Keychain Item Name. We’ll see two alternative methods later, but first we need to create a new item in our keychain. Prior to Mac OS X Lion it could be found in /System/Library/ScriptingAdditions/. Unfortunately, as of Mac OS X Lion the Keychain Scripting.app is no longer included. To overcome this security issue a new item can be added to the users keychain and made available to the AppleScript using Keychain Scripting. Saving this AppleScript as an Application and adding it to the Login Items will work but it has one major problem the PASSWORD and USERNAME are stored in plain text.ĭo shell script "/Applications/MAMP/bin/startApache.sh &" password PASSWORD user name USERNAME with administrator privilegesĭo shell script "/Applications/MAMP/bin/startMysql.sh"ĪppleScript to start MAMP’s Apache and MySQL servers with user name and password stored in plain text Not ever having had any success using a launch daemon with MAMP the only alternative appeared to be AppleScript. However, I prefer using the standard ports for Apache: 80 and MySQL: 3306 and doing so requires I enter a password when MAMP starts as port 80 is a privileged or well-known port. Well, they will be if using the default MAMP ports for Apache: 8888 and MySQL: 8889. As I’ve not found a solution to this, the script should no longer be used. Consequently, MAMP is unable to stop any httpd processes started by the script. The script is unable to use this helper tool. : Recent versions of MAMP use a helper tool to start/stop Apache (httpd) if bound to a privileged port below 1024.
0 Comments
Leave a Reply. |