Apache on Mac OS X
Sep 21
This is probably well known to most folks but I thought I would document it anyway.
If you are used to working on a linux box you will not find the necessary files for Apache in places you expect.
The httpd.conf file is in: /etc/apache2
The conf files for virtual hosts etc are in /etc/apache2/extra (Note: The default httpd.conf file comments out the include for virtual hosts.)
The default location for the log files is /private/var/log/apache2. (Note: private will not show up in the Finder). I created a symlink to it on my desktop)
The default DocumentRoot is /Library/Webserver/Documents
There is no init.d directory. You can start/stop/restart apache from /usr/sbin/apachectl
Hopefully this will help you avoid a lot of find . |grepping I had to do.
#1 by Shannon Hicks on 9/22/09 - 1:12 AM
Go > Go to Folder
And type in the directory path, such as /var/log/apache2
Also, if you use Console.app (/Applications/Utilities/Console) /var/log is one of the default directories shown in that left browse column. Very handy for reading logs!
#2 by Don Vawter on 9/22/09 - 1:27 AM
#3 by Paul on 9/23/09 - 7:07 AM
#4 by Don Vawter on 9/23/09 - 7:34 AM
#5 by Paul on 5/17/10 - 1:07 PM
http://www.auto-spiele.net