Run Default Apache in Mac (OS X)
Configuration to user folder
1. open /etc/apache2/httpd.conf. (run : sudo vi /etc/apache2/httpd.conf)
2. change DocumentRoot "/Library/WebServer/Documents" into DocumentRoot "{User Folder}" (DocumentRoot "/Users/myaccount/mysite")
3. change <Directory "/Library/WebServer/Documents"> into <Directory "{User Folder}"> (<Directory "/Users/myaccount/mysite">)
4. save httpd.conf and quit vi.
Apache Start Commands
sudo apachectl start
sudo apachectl stop
sudo apachectl restart
1. open /etc/apache2/httpd.conf. (run : sudo vi /etc/apache2/httpd.conf)
2. change DocumentRoot "/Library/WebServer/Documents" into DocumentRoot "{User Folder}" (DocumentRoot "/Users/myaccount/mysite")
3. change <Directory "/Library/WebServer/Documents"> into <Directory "{User Folder}"> (
4. save httpd.conf and quit vi.
Apache Start Commands
sudo apachectl start
sudo apachectl stop
sudo apachectl restart