[rt-devel] RT.pm with multiple instances and FastCGI

Dan Shearer dan at shearer.org
Tue Nov 25 02:31:51 EST 2003


I am trying to get NameVirtualHosts going with multiple instances of
RT3.07. I took the advice in the archives of this list and am using
FastCGI.

I have created two of everything, leaving the default installation and
adding another domain alongside:

	/etc/request-tracker3
	/etc/request-tracker3-mydomain

	/usr/share/request-tracker3
	/usr/share/request-tracker3-mydomain

I successfully populated the database by running rt-setup-database
having first switched the /etc directories. The source to
rt-setup-database talks about specifying the directory on the
commandline but it doesn't work. That should have given me a clue about
what was going to happen :-)

I cannot get the second instance to be recognised. So I temporarily
remove /etc/request-tracker3 and sure enough, Apache chokes. The error
is:

Can't locate /etc/request-tracker3/RT_Config.pm in @INC (@INC contains: /usr/local/share/request-tracker3/lib /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.8.0 /usr/local/share/perl/5.8.0 /usr/lib/perl5 /usr/lib/perl/5.8.0 /usr/share/perl/5.8.0 /usr/local/lib/site_perl .) 
at /usr/share/perl5/RT.pm line 108.

What? Hardcoded? Yep, because in /usr/share/perl5/RT.pm I find:

$BasePath = '/usr/share/request-tracker3';
$EtcPath = '/etc/request-tracker3';
$VarPath = '/var/cache/request-tracker3';
$LocalPath = '/usr/local/share/request-tracker3';
$LocalEtcPath = '/usr/local/share/request-tracker3/etc';
$LocalLexiconPath = '/usr/local/share/request-tracker3/po';

So I copied RT.pm to RT-mydomain.pm and edited the webmux for mydomain to say
"Use RT-mydomain;". For testing I renamed RT.pm. But it seems to still be
included somewhere.

Apache says:

Can't locate RT.pm in @INC (@INC contains: /usr/local/share/request-tracker3/lib /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.8.0 /usr/local/share/perl/5.8.0 /usr/lib/perl5 /usr/lib/perl/5.8.0 /usr/share/perl/5.8.0 /usr/local/lib/site_perl .) at /usr/share/request-tracker3-daemonlinux/libexec/webmux.pl line 50.

This will be coming from webmux (from the fcgi handler in /etc/request-tracker3-mydomain).

Any ideas?

-- 
Dan Shearer
dan at shearer.org



More information about the Rt-devel mailing list