Mac OS X Linux Stuff

Locations and commands on the Mac OS X vs any other Linux/Unix system are different.  Below are some of the locations and commands I ran across in setting up my macbook as a webserver.

apache2 is located in


Along with the httpd.conf:


By default apache2 logs are located at:


By default files in the root directory are at:


To restart apache:

sudo /usr/sbin/apachectl restart


sudo apachectl -k restart

To Enable PHP, in httpd.conf remove the ‘#’ from this line:

#LoadModule php5_module        libexec/apache2/
Tagged with: , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *