View Full Version : how to start apache/mysql on system startup

Jun 10, 2009, 05:24 PM
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?

Jun 10, 2009, 06:30 PM
Check out this page. (http://diymacserver.com/installing-apache/starting-apache-at-boot-on-leopard/) Be sure to see the comments for another link as well. Not sure about the SSL part though. Also, so you know, there's a Web Design & Development (http://forums.macrumors.com/forumdisplay.php?f=58) forum here at Mac Rumors.