[Rt-devel] Multi-instance patch

Stephen Joyce stephen at physics.unc.edu
Sun Dec 18 23:12:57 EST 2005


Oliver,

I replied directly to you; if you didn't get the reply, I've included it
again below.  Also cc'ing the list, as maybe someone else has some helpful
suggestions too.

-----
Date: Thu, 15 Dec 2005 01:07:36 -0500 (EST)
From: Stephen Joyce <stephen at physics.unc.edu>
To: Oliver Hookins <oliver.hookins at anchor.com.au>
Subject: Re: [Rt-devel] Multi-instance patch

Oliver,

I'm running both instances on the same virtual host, but I don't see any
reason it shouldn't work in differing hosts via redirection (but I do think
the lines below must not appear inside a <VirtualHost></VirtualHost> spec.

Your problem may be that RT_INSTANCE_PATH needs to point to a full
instance.  So, for me, when I set RT_INSTANCE_PATH=/var/rt3_purchasing the
config that gets used is /var/rt3_purchasing/etc/RT_SiteConfig.pm.  Notice
that RT fills in the "/etc/" part of the path automatically.
 $ ls /var/rt3_purchasing/
 etc  lib  local  var
 $ ls /var/rt3_purchasing/etc
 RT_Config.pm  RT_SiteConfig.pm

The other difference I see is the absence of a trailing / in my
RT_INSTANCE_PATH specifications; not sure if that's significant or not...

Here are the relevant lines of my httpd.conf (b/c I'm sure word-wrap will
screw them up, there are 8 lines total):

FastCgiServer /usr/rt3/rt3-3.4-compat/rt3/bin/mason_handler_purchasing.fcgi \
             -initial-env RT_INSTANCE_PATH=/var/rt3_purchasing
ScriptAlias  /purchasing \
             /usr/rt3/rt3-3.4-compat/rt3/bin/mason_handler_purchasing.fcgi
FastCgiServer /usr/rt3/rt3-3.4-compat/rt3/bin/mason_handler_panic.fcgi \
             -initial-env RT_INSTANCE_PATH=/var/rt3_panic
ScriptAlias  /panic \
             /usr/rt3/rt3-3.4-compat/rt3/bin/mason_handler_panic.fcgi

Other than those minor differences, it looks like your setup should work.
If not, are you sure the patch applied cleanly? Is anything being logged
(either in messages or in the apache logs) that looks suspicious (perl
errors, permission problems, etc)?

Best, Stephen
--
Stephen Joyce
Systems Administrator                                            P A N I C
Physics & Astronomy Department                         Physics & Astronomy
University of North Carolina at Chapel Hill         Network Infrastructure
voice: (919) 962-7214                                        and Computing
fax: (919) 962-0480                               http://www.panic.unc.edu

MacOS X: Because making Unix user friendly was easier than debugging Windows.

On Thu, 15 Dec 2005, Oliver Hookins wrote:

> Stephen Joyce wrote:
> > Oliver,
> >
> > I am successfully using the multi-instance patch on 3.4.2.  It's great!
> > What sort of trouble did you have applying the patch?
>
> No real trouble applying the patch (although I had to re-jig it as you
> did for it to work). I actually ended up applying it to the source
> packages from debian and rebuilding debs from it.
>
> The problems I'm having is actually during use. I have set up two users
> with databases, and the following in their home directories:
>
> ~user/etc/request-tracker3.4/RT_SiteConfig.pm
> ~user/usr/share/request-tracker3.4/libexec/mason_handler.fcgi (which is
> a link to the system mason_handler.fcgi file).
>
> Then I have virtual hosts in apache set up with different domain names
> etc, aliases to direct to the mason handler, and the following line:
>
> FastCgiServer
> /home/user/usr/share/request-tracker3.4/libexec/mason_handler.fcgi
> -initial-env RT_INSTANCE_PATH=/home/user/
>
> However it seems to be ignoring this environment variable. It accepts
> the default settings in RT.pm and thus tries to use a system-wide
> configuration (which doesn't exist). If I edit RT.pm and manually
> specify the location of the SITE_CONFIG_FILE as one of the user's
> RT_SiteConfig.pm files, it will work, but only for that user (regardless
> of which virtual host is served up.
>
> Any ideas?
>
> --
> Regards,
> Oliver Hookins
> Anchor Systems
>

-----

Best, Stephen
--
Stephen Joyce
Systems Administrator                                            P A N I C
Physics & Astronomy Department                         Physics & Astronomy
University of North Carolina at Chapel Hill         Network Infrastructure
voice: (919) 962-7214                                        and Computing
fax: (919) 962-0480                               http://www.panic.unc.edu

MacOS X: Because making Unix user friendly was easier than debugging Windows.


More information about the Rt-devel mailing list