Error Running Mutiple Instances

RT Users,

I’m trying to run two RT instances on one box. Everything installed
find and apache starts with no errors. I am able to access the second
virtual host but when you access the first virtual host you get “Page
cannot be displayed” and the following error in /var/log/messages:

Jun 6 10:33:06 pierce RT: [Mason] Cannot resolve file to component:
/var/opt/rtlive/share/html/index.html (is file outside component root?)
at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/ApacheHandler.pm line 847.
(/var/opt/rtdev/lib/RT.pm:277)

I’m found some info running multiple instances with FastCGI but not
modperl 2.0.

My config is :

Fedora Core 2
Perl 5.8.3
Modperl 2.0
Apache 2.0.49

Thanks in advance,

Kevin

/etc/httpd/conf/httpd.conf

ServerName yyy.server.com DocumentRoot /var/opt/rtlive/share/html AddDefaultCharset UTF-8 RedirectMatch permanent (.*)/$ http://yyy.server.com$1/index.html

this line applies to Apache2+mod_perl2 only

PerlModule Apache2 Apache::compat

PerlModule Apache::DBI
PerlRequire /var/opt/rtlive/bin/webmux.pl

SetHandler perl-script PerlHandler RT::Mason ServerName zzz.server.com DocumentRoot /var/opt/rtdev/share/html AddDefaultCharset UTF-8 RedirectMatch permanent (.*)/$ http://zzz.server.com$1/index.html

this line applies to Apache2+mod_perl2 only

PerlModule Apache2 Apache::compat

PerlModule Apache::DBI
PerlRequire /var/opt/rtdev/bin/webmux.pl

SetHandler perl-script PerlHandler RT::Mason

At Monday 6/6/2005 04:53 PM, Kevin Sonney wrote:

I’m trying to run two RT instances on one box.
Modperl 2.0
Apache 2.0.49

Kevin,

I think with modperl you need to be running two separate instances of Apache.

Steve

Stephen Turner wrote:

At Monday 6/6/2005 04:53 PM, Kevin Sonney wrote:

I’m trying to run two RT instances on one box.
Modperl 2.0
Apache 2.0.49

Kevin,

I think with modperl you need to be running two separate instances of
Apache.
With MP2 - no, you need separate perl interpreters for your virtual
hosts. You should add some Perl* option to server config(see
http://perl.apache.org) that say modperl use standalone perl interpreter
for virtual host. You should add this option before “PerlRequire
…webmux.pl”(this to be sure that all webmuxes run in own perl env).

Stephen Turner wrote:

At Monday 6/6/2005 04:53 PM, Kevin Sonney wrote:

I’m trying to run two RT instances on one box.
Modperl 2.0
Apache 2.0.49

I think with modperl you need to be running two separate instances of
Apache.

With MP2 - no, you need separate perl interpreters for your virtual
hosts. You should add some Perl* option to server config(see
http://perl.apache.org) that say modperl use standalone perl interpreter
for virtual host. You should add this option before “PerlRequire
…webmux.pl”(this to be sure that all webmuxes run in own perl env).

Any chance you could post a sample apache config segment to the wiki on
that, Ruslan?

Cheers,
– jra
Jay R. Ashworth jra@baylink.com
Designer Baylink RFC 2100
Ashworth & Associates The Things I Think '87 e24
St Petersburg FL USA http://baylink.pitas.com +1 727 647 1274

  If you can read this... thank a system administrator.  Or two.  --me

Stephen Turner wrote:

At Monday 6/6/2005 04:53 PM, Kevin Sonney wrote:

I’m trying to run two RT instances on one box.
Modperl 2.0
Apache 2.0.49

I think with modperl you need to be running two separate instances
of Apache.

With MP2 - no, you need separate perl interpreters for your virtual
hosts. You should add some Perl* option to server config(see
http://perl.apache.org) that say modperl use standalone perl
interpreter for virtual host. You should add this option before
“PerlRequire …webmux.pl”(this to be sure that all webmuxes run in
own perl env).

Any chance you could post a sample apache config segment to the wiki on
that, Ruslan?

Fixed.

Add the following line before PerlRequire.

PerlModule Apache::DBI
PerlOptions +Parent
PerlRequire /var/opt/rtlive/bin/webmux.pl

Thanks,

Kevin