Two RT3 instances on one box

How would one set up two instances of RT3 on one RedHat 7.3 box with mod_perl compiled into Apache? The first instance is alive and well, but my company is starting up a second customer base that will require different configuration…

I picture two separate virutal domains on Apache, one for each interface. The configure file would point to non-default file locations and to a separate MySQL database. Once the second instance is installed, the configuration file in RTx/etc would use different database names, RT users, URLs, etc. More aliases for the new instance would go into the aliases file.

What are the gotchas? Any pointers would be appreciated.

Joe McCarty

This one time, at band camp, Joseph McCarty wrote:

How would one set up two instances of RT3 on one RedHat 7.3 box with mod_perl compiled into Apache? The first instance is alive and well, but my company is starting up a second customer base that will require different configuration…

I picture two separate virutal domains on Apache, one for each interface. The configure file would point to non-default file locations and to a separate MySQL database. Once the second instance is installed, the configuration file in RTx/etc would use different database names, RT users, URLs, etc. More aliases for the new instance would go into the aliases file.

What are the gotchas? Any pointers would be appreciated.

You can’t do it with mod_perl because of the way mod_perl loads the entire
instance and thus you need at least one of them running from fastcgi or
speedycgi.

jaq@spacepants.org http://spacepants.org/jaq.gpg

“JW” == Jamie Wilkinson jaq@spacepants.org writes:

JW> You can’t do it with mod_perl because of the way mod_perl loads the entire
JW> instance and thus you need at least one of them running from fastcgi or
JW> speedycgi.

sure you can. you just can’t have them both bind to the same IP/port
combination. If you have multiple IP addresses, just have each
instance of apache bind to just one of them. If you have one IP, then
you can have them each bind to a different port number, and have a
front-end listen on port 80 doing name-based virtual hosts and pass
the connections off via mod_proxy to the proper back end via the port
number.

How would one set up two instances of RT3 on one RedHat 7.3 box with
mod_perl compiled into Apache? The first instance is alive and
well, but my company is starting up a second customer base that will
require different configuration…

I picture two separate virutal domains on Apache, one for each
interface. The configure file would point to non-default file
locations and to a separate MySQL database. Once the second
instance is installed, the configuration file in RTx/etc would use
different database names, RT users, URLs, etc. More aliases for the
new instance would go into the aliases file.

What are the gotchas? Any pointers would be appreciated.

You can’t do it with mod_perl because of the way mod_perl loads the entire
instance and thus you need at least one of them running from fastcgi or
speedycgi.

You can also run seperate apaches (on different ports) if you need
everything to appear to be on ports 80 and 443, you can have one
apache proxy to the other, or have a thrid that proxies to those 2.

seph

Instead of having a VirtualHost (and corresponding DNS entry to point to
that host), can we configure Apache with some alternative ways of getting
there.

For example, I have:

Alias /rt /usr/local/rt3

<Location /rt>
SetHandler perl-script
PerlHandler RT::Mason

But that’s obviously not enough - if you try to use anything of RT from
that page, it will just attempt to redirect per the suggested VirtualHost
entry which points DocumentRoot to /usr/local/rt3/html.

Thanks.

This one time, at band camp, Vivek Khera wrote:

“JW” == Jamie Wilkinson jaq@spacepants.org writes:

JW> You can’t do it with mod_perl because of the way mod_perl loads the entire
JW> instance and thus you need at least one of them running from fastcgi or
JW> speedycgi.

sure you can. you just can’t have them both bind to the same IP/port
combination. If you have multiple IP addresses, just have each
instance of apache bind to just one of them. If you have one IP, then
you can have them each bind to a different port number, and have a
front-end listen on port 80 doing name-based virtual hosts and pass
the connections off via mod_proxy to the proper back end via the port
number.

Yeah, so you need two apaches, you can’t do it in a single apache instance.

jaq@spacepants.org http://spacepants.org/jaq.gpg

In addition to tht you need 1 more line right after Alias

PerlRequire /usr/local/rt3/bin/webmux.pl

Thanks,
Parimala.

Forrest Aldrich forrie@forrie.com
Sent by: rt-users-admin@lists.fsck.com
06/10/2003 11:20 PMTo: rt-users@lists.fsck.com
cc:
Subject: [rt-users] Apache configuration for /rt

Instead of having a VirtualHost (and corresponding DNS entry to point to
that host), can we configure Apache with some alternative ways of getting
there.

For example, I have:

Alias /rt /usr/local/rt3

<Location /rt>
SetHandler perl-script
PerlHandler RT::Mason

But that’s obviously not enough - if you try to use anything of RT from
that page, it will just attempt to redirect per the suggested VirtualHost
entry which points DocumentRoot to /usr/local/rt3/html.

Thanks.

rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

I think more is required for this.

If I go to a menu option, like Configuration, it will try to go to:

http://mydomain.com/Admin/

Which brings up a 404 Error.

I have this in the httpd.conf file, to test with:

Alias /rt /usr/local/rt3

<Location /rt>
SetHandler perl-script
PerlHandler RT::Mason PerlRequire
/usr/loacl/rt3/bin/webmux.pl

But the above error is due to what appears to be an assumption of the
DocumentRoot path… perhaps I missed something in RT_SiteConfig.pm?

Thanks,
Forrest

At 09:10 AM 6/11/2003, ParimalaRamdas@oaktech.com wrote:

I think you are missing /share/html at the end of your Alias line.
Also theres doc for this at http://www.fsck.com/rtfm/article.html?id=2.
check ‘Configure the web interface sub-section’

Thanks,
Parimala.