Hi all,
I’m trying to setup two installations of RT.
So far, I successfully set one up from FreeBSD port into /usr/local/rt2.
To setup another installation, I tried the following:
- install from the tarball (rt-2-0-15.tar.gz), configuring the
Makefile to use another DB and path.
- copy FreeBSD patched version, changed the makefile and try to rebuild
- copy FreeBSD’s directory directly with the permissions.
The three approaches failed. In each case, I get a 404 on
/index.html. Still, the file is there. The Apache virtual host
settings are exactly the same except for the two paths (DocumentRoot
and PerlRequire). Apache can access the file because I get a 404 on
/index.html even if I try to access /; if I move the file and I
enable Indexes, I can see the content of the directory; I can also
access other subdirectories.
I read the FAQ about 404 but I don’t use aliases.
I made a diff on both config.pm files and everything seems correct.
Everywhere I had /usr/local/rt2, I now have /home/paul/rt2. The other
difference is the user (but I tried to install the second instance
with exactly the same rights/owners) and the database stuff. There
is no Apache specific settings for /usr/local or for /home/paul.
I can access the main installation if I set the paths to be the ones
of the main installation (/usr/local/rt2/ etc.). In fact, I can
access the main installation even if I set the DocumentRoot only.
Any idea?
Paul
NPDS: http://newton.kallisys.net:8080/
Apache: http://www.kallisys.com/
There was a thread on this early last year. See:
http://lists.fsck.com/pipermail/rt-users/2002-February and look for the
Two Domains, One RT thread.
It seems the cleanest approach, that I’m using, is to use FastCGI instead of
mod_perl (or maybe even SpeedyCGI).
I use two installs of RT3 under /usr/local/rt-dpc and /usr/local/rt-dlese.
That’s easier than sym-linking because the options to the ./configure script
will set variables deep inside RT.
My httpd.conf file looks like this (relevant section), and only requires one Apache.
ServerName rt.dpc.example.edu
DocumentRoot /usr/local/rt3-dpc/share/html
AddDefaultCharset UTF-8
FastCgiServer /usr/local/rt3-dpc/bin/mason_handler.fcgi
Alias /NoAuth/images/ /usr/local/rt3-dpc/share/html/NoAuth/images/
ScriptAlias / /usr/local/rt3-dpc/bin/mason_handler.fcgi/
AddHandler fastcgi-script fcgi
ServerName rt.example.org
DocumentRoot /usr/local/rt3-dlese/share/html
AddDefaultCharset UTF-8
FastCgiServer /usr/local/rt3-dlese/bin/mason_handler.fcgi
Alias /NoAuth/images/ /usr/local/rt3-dlese/share/html/NoAuth/images/
ScriptAlias / /usr/local/rt3-dlese/bin/mason_handler.fcgi/
AddHandler fastcgi-script fcgi
Message: 1
Date: Sun, 27 Apr 2003 00:08:53 +0200
To: rt-users@lists.fsck.com
From: Paul Guyot pguyot@kallisys.net
Subject: [rt-users] Two installations (404 on /index.html)
Hi all,
I’m trying to setup two installations of RT.
So far, I successfully set one up from FreeBSD port into /usr/local/rt2.
To setup another installation, I tried the following:
- install from the tarball (rt-2-0-15.tar.gz), configuring the
Makefile to use another DB and path.
- copy FreeBSD patched version, changed the makefile and try to rebuild
- copy FreeBSD’s directory directly with the permissions.
Peter Burkholder, System Administrator
Digital Library for Earth System Education (DLESE – http://www.dlese.org)
peterb@ucar.edu
DLESE Program Center (DPC) ~~~ ~~ ~~~~ __o
UCAR/DPC, P.O. Box 3000 Ph) 303-497-2663 ~~~ ~~~~ ~~ `<,
Boulder, CO 80307-3000 Fx) 303-497-8336 ~~~~ ~~~ ~~~~ ()/ ()