1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

how to start apache/mysql on system startup

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

  1. macrumors newbie

    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. Moderator emeritus



Share This Page