Getting Apache to restart
ryandesign at macports.org
Sat Oct 25 18:06:02 PDT 2014
On Oct 25, 2014, at 3:30 PM, Dave Horsfall wrote:
> What is the secret to getting Apache to restart, again? Every single web
> reference I've seen says to use "apachectl restart" (which is how I do it
> on FreeBSD), but on Yosemite it remains firmly un-restarted.
On OS X, apache and other daemons are started and kept running by launchd. You can simply kill the process in question, in this case the master httpd process; launchd will then relaunch it.
As of MacPorts 2.4, you can instead use "sudo port reload apache2".
More information about the macports-users