Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > Suggestions > Topic : Start APACHE and MYSQL on mac os x boot without admin password



Normal Mode | Print  

 Start APACHE and MYSQL on mac os x boot without admin password (21 Replies, Read 1313148 times)
motorlatitude
Group: Member
Post Group: Newbie
Posts: 9
Status:
Okay, this annoyed me for quite a while, I could start AMPPS on boot but I would have to input my username and password each time, which as you can imagine is very tedious, also, I found the AMPPS window pointless and more of a hassle than useful, sure when I need it, but, most of the time I didn't need it, well I created a small work around, I'm not really sure where to post it but this seemed the right place :)

1. Launch the AppleScript-Editor (search in spotlight, if you don't know where it is)
2. Type in the following code:
Code

do shell script "sudo /Applications/AMPPS/apache/bin/httpd &" password "ADMIN PASSWORD" with administrator privileges

do shell script "/Applications/AMPPS/mysql/bin/mysqld > /dev/null 2>&1 &"

Replace the ADMIN PASSWORD with the systems admin password
3. Save it as a run-only application
4. Move the file where ever you want.
5. Right click on the application file, you have created, and click on "show package contents"
6. Go to the info.plist file and open this in Textedit (or any other editor)
7. Add these 2 lines of code after the first "<dict>" tag:
Code

<key>LSUIElement</key>
<true/>

8. Save & close
9. Go to System Prefrences>Users>login-items
10. Drag the application file into the list.
11. Open AMPPS and go to the menubar icon>configuration>AMPPS
12. Uncheck "Start on Session Startup." and "Start Apache and MySQL on application startup." (may already be unchecked)
13. Done

If you followed the steps, everything should work and the apache webserver and mysql will launch on startup without opening the AMPPS windows.

If you experience any problems let me know :)
IP: --   


Threads
 motorlatitude   Start APACHE and MYSQL on mac os x boot without admin password (21 Replies, Read 1313148 times)
    |--  prophetizer   fantastic, thanks so...   on May 19, 2013, 4:05 pm
    |--  Paul75   but after when...   on June 6, 2013, 9:48 am
    |--  tidus   but after when...   on June 6, 2013, 11:49 am
    |--  Paul75   but after when...   on June 6, 2013, 11:53 am
    |--  tidus   Hi, Apache and...   on June 6, 2013, 11:55 am
    |--  Paul75   Hi, Apache and...   on June 6, 2013, 12:04 pm
    |--  prophetizer   i don't understand...   on June 6, 2013, 1:03 pm
    |--  tidus   Hi, In next...   on June 7, 2013, 5:18 am
    |--  motorlatitude   Happy this helped...   on June 7, 2013, 9:36 am
    |--  Paul75   Happy this helped...   on June 7, 2013, 6:02 pm
    |--  tidus   Happy this helped...   on June 8, 2013, 5:27 am
    |--  Paul75   If I do...   on June 8, 2013, 6:53 am
    |--  Paul75   Hi, In next...   on June 17, 2013, 6:02 pm
    |--  tidus   Hi, Okay we...   on June 18, 2013, 12:25 pm
    |--  clau   Hi, I switched...   on January 6, 2014, 7:49 am
    |--  tidus   Hi, Yes. We...   on January 6, 2014, 7:56 am
    |--  jingato   Hi, Yes. We...   on January 3, 2016, 3:33 pm
    |--  davestewart   +1   on January 21, 2016, 11:15 am
    |--  davestewart   +1   on January 21, 2016, 11:15 am
    |--  davestewart   I actually used...   on January 21, 2016, 11:59 am
    |--  WebMystic   Hello AMPPS community....   on March 21, 2018, 9:12 pm

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
3 guests, 0 users.


All times are GMT. The time now is March 29, 2024, 6:25 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.020