Results 1 to 6 of 6
  1. #1
    start xampp at boot

    Member Since
    Jun 12, 2008
    Posts
    14
    start xampp at boot
    Hi,

    I am running xampp for Mac on my dev machine. I like it a lot because of its easy setup but I have a problem- I can't get xampp to start at boot, which is bad because I use my mac as a demo server to show my web design to my clients. My Mac is set to reboot automatically after a power failure, unlike to web server comes with OS X, xampp won't restart without my intervention.

    I wrote a shell script to start xampp, but it requires sudo which requires the root password. then I use AppleScript to start the shell script like this:

    do shell script "sudo ./Desktop/xamppBash"

    Once I run the AppleScript, the Terminal comes up, waiting for a password, here is where I get stuck. Does anyone know how I can use AppleScript to enter the password? or better yet, can someone also tell me a easier way to start xampp at boot? It's driving me CRAZY

    Thanks in advance.

    BTW, My Mac is a G4 mini

  2. #2
    start xampp at boot
    harryb2448's Avatar
    Member Since
    Nov 28, 2007
    Location
    Nambucca Heads Australia
    Posts
    20,066
    Specs:
    iMac i5 2.7GHz, 16GB memory, OS 10.10.5
    You do not give OS but if using Leopard, or Tiger, have you tried going to User>Log In Items and see if you can select it there.

  3. #3
    start xampp at boot

    Member Since
    Jun 12, 2008
    Posts
    14
    Quote Originally Posted by harryb2448 View Post
    You do not give OS but if using Leopard, or Tiger, have you tried going to User>Log In Items and see if you can select it there.
    My bad. It's Tiger 10.4.11. Hum, I don't think there is User>Log In Items.

  4. #4
    start xampp at boot

    Member Since
    Jun 12, 2008
    Posts
    14
    Since I got no help, here I answered my own question. In case someone else has the same question, here it is.

    It's so simple and obvious. Open Script editor, type in this line:

    do shell script "sudo /Applications/xampp/xamppfiles/mampp start" password "YOUR ADMIN PWD" with administrator privileges

    Save it as an application. Go to System Preferences->Account->Login items, add this app to the list. Voila, once you reboot, Your xampp is served.

    It works on both my Mac Tiger 10.4.11 and Leopard 10.5.3.

  5. #5
    start xampp at boot

    Member Since
    Mar 24, 2009
    Posts
    1
    Thanks for this - exactly what I was looking for.

    But I wish there was a way to not have my admin password saved on my machine like that. Any ideas?

  6. #6
    start xampp at boot

    Member Since
    May 06, 2009
    Posts
    1
    use lingon
    There are actually two problems with the previous recommendations. 1) they require you store and update your admin password in cleartext form on the machine
    2) They require you to log in.

    If you want to set up custom scripts that run when your computer boots, I would recommend an application called Lingon. I use it on Leopard 10.5.6, but presumably it works on Tiger as well.

    Open Lingon, Click the new plus sign -> New User Daemon, call it whatever you want under "What" put:

    /Applications/xampp/xamppfiles/xampp start

    (no need to use sudo, it will already run with god powers). Now enable it and restart your machine. If you look in your process tree, you should see xampp running as root.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can't set up XAMPP virtual host on Mac
    By behnampmdg3 in forum OS X - Operating System
    Replies: 0
    Last Post: 11-07-2013, 04:48 PM
  2. PHP mail(); won't work on XAMPP
    By r.mistry6 in forum Web Design and Hosting
    Replies: 2
    Last Post: 07-13-2009, 07:06 PM
  3. Issues With Xampp!!!
    By catthepirate in forum OS X - Apps and Games
    Replies: 0
    Last Post: 01-29-2009, 01:42 AM
  4. XAMPP for Mac (PHP)... Need HELP!
    By 9homie in forum OS X - Apps and Games
    Replies: 1
    Last Post: 06-12-2008, 08:21 AM
  5. xampp for mac?
    By Jiggy in forum OS X - Apps and Games
    Replies: 1
    Last Post: 05-25-2008, 05:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •