Revision [694]
This is an old revision of ApacheOnMavericks made by WojciechLisiewicz on 2014-08-20 00:14:54.
Apache on Mavericks
configuring the built-in Webserver
automatic server start after booting
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist
(see http://clickontyler.com/support/a/38/how-start-apache-automatically/)
(see http://clickontyler.com/support/a/38/how-start-apache-automatically/)
starting / stopping
sudo apachectl start / stop / restart
helpfully too:
sudo apachectl configtest
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."
source: http://serverfault.com/questions/566083/you-dont-have-permission-to-access-on-this-server-changing-default-www-to-n
source: http://serverfault.com/questions/566083/you-dont-have-permission-to-access-on-this-server-changing-default-www-to-n