how to start apache/mysql on system startup

Discussion in 'Mac Programming' started by forestj, Jun 10, 2009.

  1. forestj macrumors newbie

    Jun 10, 2009
    I've been trying to get my server to start up automatically when I turn on my computer, but I haven't had any success yet. I know there are probably preference panes that are supposed to do this but none that I tried so far worked.

    I have compiled both apache and mysql and installed them myself. So far I have been starting them with the terminal when I need to, like this:

    sudo /usr/local/apache2/bin/apachectl -k start
    *it asks for the admin password and I give it*
    *it asks for the SSL key passphrase and I give it*
    sudo /usr/local/mysql/bin/mysqld_safe

    And then I'm done.

    How can I automate this?

    I'd like to write an applescript that does it, but I don't know how to make the applescript give the passphrase for SSL. Any ideas?
  2. angelwatt Moderator emeritus


    Aug 16, 2005

Share This Page