How to Make Apache Start httpd Automatically on Boot in Mac OS X

MacOSX Soft! Nessun Commento »

Set Apache to Start Automatically on Boot in Mac OS X

From the Terminal, enter the following command:

sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist

on Boot in Mac OS X

To stop Apache from starting itself automatically upon system start, you simply need to remove the agent from launchd as with any other daemon, like so:

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

Determine if Apache is Loaded or Unloaded in launchd

If you’re not sure whether you have set Apache to load automatically or not, you can query launchd for apache like so:

launchctl list|grep apache

Don’t see apache.httpd returned? Then the daemon is not loaded, and it will not automatically start. Apache can still be used and started manually, but it won’t start itself with a reboot or boot, pretty simple.

Home | Graffiti e Disegni | Educazione | Chi siamo | Blog | Progetti | Contatti
RSS Feed Comments RSS Accedi