How to setup Horde applications (IMP, Turba, et. al.) under apache and mod_fcgid

This is one of those times when I hope whatever pathetic amount of google-juice I have can aid others.

Googling around, I have found many oblique references to running horde/imp/turba/etc. using fastcgi, but very few specifics, and what specifics I found are mostly about using lighttpd (which is a fine server, but we’re not using it yet), and those for apache seemed wrong, or at least way over-complicated.

For maximum applicability in today’s world, I’m going to do this using mod_fcgid under apache2, since mod_fastcgi is basically dead.

I’m also not including the security bits (denying access to config and lib directories and so forth) because they’re mostly boilerplate and you can get them from the Horde documentation anyway.

So, without further ado, here’s what you do:

<virtualhost *>
  ServerName mail.example.com
  DirectoryIndex index.php
  DocumentRoot /usr/share/horde3
  <files "*.php">
    SetHandler fcgid-script
    FCGIWrapper /usr/lib/cgi-bin/php5 .php
  </files>
</virtualhost>

Easy, huh? I’ve seen all sorts of baroque suggestions involving setting Action directives and AddHandler stuff and all sorts of things, but this simple invocation works just fine.

Share and Enjoy!

Well the reviews aren’t making me want to run out and see it…

as they all seem a little tepid…but maybe the the appearance of Stardust on the big screen will get me to finally go out and buy the original comic.

And who knows, maybe I’ll just go see it for the helluvit.

But what got me to write this entry (the first in far too long) is that I ran across a review in the Austin Chronicle that made me laugh with the first line:

“Fairies wear boots,” recalled a sage and seasoned wise man whose name eludes me at the moment, “I tell you no lies.”

The man whose name alludes him would, of course, be Ozzy Osbourne, since the line comes from the (eponymously named?) song “Jack The Stripper/Fairies Wear Boots” off of Paranoid