[Rt-devel] Re: Multi-instance patch

Oliver Hookins oliver.hookins at anchor.com.au
Thu Jan 5 22:11:22 EST 2006


Bob Goldstein wrote:
>>And my RT.pm for each instance has
>>$VERSION = '3.4.2';
>>$CORE_CONFIG_FILE = "/var/rt3_panic/etc/RT_Config.pm";
>>$SITE_CONFIG_FILE = "/var/rt3_panic/etc/RT_SiteConfig.pm";
>>
>>
>>
>>$BasePath = '/var/rt3';
>>
>>
>>So the default RT path is /var/rt3, and /var/rt3_panic is one of my
>>instances.
> 
> 
> 
> 
>    That already seems different than what I have.  I have only
>    one version of RT.pm, not one per instance.  That's the whole
>    point of RT_INSTANCE_PATH, for RT.pm to essentially
>    reconfigure itself, on the fly, per instance invoked.
> 
>    So in my case, I have:
> 
> $SITE_CONFIG_FILE = "/usr/local/rt/3.4.2/etc/RT_SiteConfig.pm";
> $BasePath = '/usr/local/rt/3.4.2';
> 
> Because I did a normal install into /usr/local/rt/3.4.2/
> 
> Then later, this loop will munge the value of $SITE_CONFIG_FILE:
>     if ($RT_INSTANCE_PATH) {
>         foreach my $vref (@variables) {
>             $$vref =~ s/^\Q$BasePath\E/$RT_INSTANCE_PATH/;
>         }
>     }
> 
> so that by the time it is used, $SITE_CONFIG_FILE
> will have the value "/some/instance/etc/RT_SiteConfig.pm";
> 
> (assuming that $RT_INSTANCE_PATH = '/some/instance' )
> 
> Anyway, I installed like this:
> 
> ./configure --prefix=/usr/local/rt/3.4.2 \
>             --with-db-type=mysql \
>             --with-web-user=nobody \
>             --with-web-group=rt \
>             --with-logfiledir=/var/log/rt
> 
> 
> to keep the installation in one single directory tree, governed
> by 'prefix'.  If that helps :-)
> 
>    bobg

Thanks Bob, changing the $SITE_CONFIG_FILE to include $BasePath has 
fixed the problem.

-- 
Regards,
Oliver Hookins
Anchor Systems


More information about the Rt-devel mailing list