Home > Archive >  2007 >  July >  21


Exploring Apache on Mac

Saturday, July 21, 2007 by Dave Winer.

A picture named cycle.gifIn the background I'm learning how to configure Apache on Mac OS X. There are lots of little stumbling blocks that involve penetrating the user interface and getting down to the Unix running underneath. There's a tiny sliver of Apache showing through the GUI but not enough to do anything interesting. Permalink to this paragraph

The first thing I had to figure out, after learning where the document root is (still not totally clear on that but I got it working) is where the httpd.conf file is. I found it at: Permalink to this paragraph

Macintosh HD:private:etc:httpd:httpd.conf Permalink to this paragraph

You can't normally get to this location in the Finder, but there is a way, in the Terminal window, to tell the Finder to display hidden files and folders, and then you can navigate there. A tutorial at MacWorld explains how. Permalink to this paragraph

Even better, you can open the folder from within the OPML Editor using the file.openfolder verb. There's probably a way to do it in AppleScript as well. Permalink to this paragraph

So I opened the httpd.conf file and started reading it, and it seems like a standard Apache install with an added nicety: at the end it includes all files ending with .conf in the users sub-folder. So you can modify the install without having to modify the shipping conf file, which means you can get an upgrade from Apple without losing your changes. Good.  Permalink to this paragraph

So I started writing a file that would map virtual hosts to store in my personal conf file, but when it came time to save, no luck. On further investigation I find that I don't own the files, even the one named after me! They belong to the system. Permalink to this paragraph

So now I'm scratching my head trying to figure out how I log on with permission to edit files created by the system. There must be a way, right?  Permalink to this paragraph

Suggestions are welcome of course. ;-> Permalink to this paragraph

PS: This is what I needed. Thanks!! Permalink to this paragraph



© Copyright 1994-2007 Dave Winer Mailto icon.

Last update: 7/21/2007; 2:14:26 PM Pacific. "It's even worse than it appears."

Click here to view blogs commenting on  RSS 2.0 feed.