I have an issue where Apache will not start on a restart. I have tried commands like
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist
to allow Apache to start, but it hangs up and I am unable to reach the site. I get the message
(48)address already in use ah00072 Unable to open logs.
which tells me that port 80 is in use. When I look at the active processes listening to port 80 I find that it is apache (httpd) is the only process running on 80. So I run
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
to remove apache from the 'automatically' launching at startup, and I am able to run
apachectl start without an issue.
The mac is running 10.12.5 Sierra.