Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

forestj

macrumors newbie
Original poster
Jun 10, 2009
1
0
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.