Multiple IMP(2.3) installs with one code directory?

Kevin M. Myer kevin_myer@iu13.k12.pa.us
Mon, 15 Oct 2001 12:43:07 -0400 (EDT)


Hello,

I have read the archives and hashed several ideas around in my head and 
haven't been able to come up with a solution that I like.  Basically, I 
want to have one install of IMP and host multiple domains on that install.  
As I'm doing it now, for each domain I host, I have to install a copy of 
Horde and IMP, which doesn't scale and is a pain to keep up to date.

What I would like to do is either be able to symlink all the original PHP 
code for each directory and allow for different config directories for 
each virtual host or (and this is a longer shot) have IMP/Horde support 
virtual hosts by extending the config array to actually include the 
hostname being connected to, something like:

conf[$HTTP_HOST]['some_array']['some_member']=value

I might be brain dead with the first approach but I can't seem to figure 
out how to symlink things so that the config directory is ignored in 
horde, horde/imp, and horde/turba (or better yet, if there is an easier 
way to do this).

For example, horde lives in /usr/local/horde.  The config directories have 
been removed.

cd /var/www/virtual/webmail-domain1;
ln -s /usr/local/horde horde
mkdir config.horde config.imp config.turba
cd horde
ln -s ../config.horde config
cd imp
ln -s ../../config.imp config
cd ../turba
ln -s ../../config.turba config

This is where the brain-deadness comes in.  The symlinks end up being
relative to /usr/local/horde, not /var/www/virtual/webmail-domain1 so
config.horde, config.imp, and config.turba are never seen, which is to be
expected since I'm really working in /usr/local/horde when I create the
symlinks.  But isn't there someway to force symlinks to be created
relative to the current working directory?  I can't for the life of me
figure out how to make this work properly with symlinks without having
multiple horde directories and then there's no use in using symlinks.  So
- any ideas?

Thanks,
Kevin

-- 
Kevin M. Myer
Systems Administrator
Lancaster-Lebanon Intermediate Unit 13
(717)-560-6140