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”:http://lighttpd.net/ (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”:http://fastcgi.coremail.cn/ under apache2, since mod_fastcgi is “basically dead”:http://fastcgi.com/archives/fastcgi-developers/2007-June/004717.html.

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:

bc..
ServerName mail.example.com
DirectoryIndex index.php
DocumentRoot /usr/share/horde3

SetHandler fcgid-script
FCGIWrapper /usr/lib/cgi-bin/php5 .php

p. 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!

Published by

Michael Alan Dorman

Yogi, brigand, programmer, thief, musician, Republican, cook. I leave it to you figure out which ones are accurate.