Apache

by Chad Whitacre last modified Dec 30, 2008 03:04 PM
It makes sense to work with Apple's installation of Apache.

While I decided against a packaged install for Plone, I did in fact choose to integrate with the Apache instance that is bundled with OS X. I made this decision based on five considerations:

1. Unlike Plone, Apache is integrated with the operating system to begin with; I judged working with it to be less risky/costly than working against it, especially on my first time out on OS X.

2. The differences between a standard Apache install and OS X's are fairly well documented in the conf files and on the web.

3. There was very little I wanted to do that could not be done from the GUI.

4. The Apache GUI gives the client a chance to get their hands on their website in a tangible fashion. It is part of the Server Admin utility.[5]

5. I mean, c'mon, candy is yummy.

The one thing I couldn't do from Server Admin was RewriteRules. You can configure Alias and Redirect directives from there, but to implement RewriteRules (which are what I am used to) you have to edit the conf files by hand. Apache keeps a separate conf file for each virtual host that you configure through the GUI. This means that you don't have to touch httpd.conf, so your customizations are pretty well-isolated.

This is the point at which I decided to tap the Apple Consultant Network. I had researched enough to feel fairly comfortable that Server Admin was not going to overwrite my manual changes, but I didn't find anything directly applicable on the web, and I wanted a little more assurance for such a weak link in the chain.

I found a "local company":http://expertmacintoshconsulting.com/ on "consultants.apple.com":http://consultants.apple.com/ and ended up hearing back from *both* principals within 5 minutes of calling their Help Desk, after hours even! I made a local business connection, and they answered my question for free! (They have an "under 15 minutes" policy.) In fact, for the next job I would seriously consider simply outsourcing sysadmin to these guys. Not sure how well this represents the rest of the Network, but these Mac guys do tend to be zealots, no?

One other note here: Server Admin complains if a website does not have a DocumentRoot (which it calls a "Web folder"). For this reason I created a dummy directory at '/usr/local/zope/htdocs/'. I put a README in there explaining its purpose, and left it at that.

Another slight advantage to using the bundled Apache install was that it is preconfigured to start automatically on boot-up. However, I had to "manually configure Zope to do the same":autostart.

<hr>

Notes

[5] You can find this program at Applications > Server > Server Admin