If you get the following error while starting/restarting apache,
launchctl: CFURLWriteDataAndPropertiesToResource(/System/Library/LaunchDaemons/org.apache.httpd.plist) failed: -10
Make sure you are running the command with super user privilege
Example:
sudo /usr/sbin/apachectl start