Saturday, August 25, 2007

Control Apache from System Preferences in OSX

Filed under Mac

Here’s a cool way to control Apache (other than the included version) on OSX. Apache will also auto start on boot using this method.

First, add this line to your httpd.conf file:

PidFile /private/var/run/

Now, open up Terminal and type the following:

cd /usr/sbin
mv apachectl apachectl_bak
ln -s /usr/local/apache2/bin/apachectl apachectl

Now you can go to System Preferences->Sharing and start or stop Personal Web Sharing. Enjoy!

No comments :