More material largely for my own reference.
To turn on Apache on Mac OS X, enable "Personal Web Sharing" in the "Sharing" group of the System Preferences. The configuration is in /etc/httpd/httpd.conf as expected. DocumentRoot is set to /Library/WebServer/Documents and UserDir is set to ~/Sites (I guess ~/public_html is too obscure...).
Use sudo to edit system files from the Terminal. Stop and start Personal Web Sharing each time you make a change.
To enable PHP, follow the instructions in AppleCare Document 106485. The AddType lines weren't there when I looked, but just add them around the SSI stuff or whatever.
Looks like Apple decided to put per-user directory configuration in /etc/httpd/users which confused me at first when I was trying to enable CGI for my directory (just add "ExecCGI" to your Options line).
Best of all, it's Apache. It works how it's supposed to. It's not some god-awful IIS or other obscure web server.
Posted by tim at November 28, 2002 06:30 PM