Apache auf macOS
Apache on Mavericks
configuring the built-in Webserver
automatic server start after booting
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist
starting / stopping
sudo apachectl start / stop / restart
helpfully too:
sudo apachectl configtest
permissions
note: "In order for apache to access a directory, it must have access rights not only to that directory but to all directories above it. So you need to allow www-data read access to /media and /media/crash as well as /media/crash/Yari."