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



Threaded Mode | Print  

 Start APACHE and MYSQL on mac os x boot without admin password (1 Replies, Read 1621 times)
motorlatitude
Group: Member
Post Group: Newbie
Posts: 8
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: --   

Start APACHE and MYSQL on mac os x boot without admin password
prophetizer
Group: Member
Post Group: Newbie
Posts: 1
Status:
fantastic, thanks so much!
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 21, 2013, 1:23 pm.

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