Confused with Apache 2.x and RT3

I finally satisfied all dependencies and have the Apache running. My setting on my Red hat 9 box is Apache 2.x with Fastcgi and I’m wondering if I need mod_perl1 or 2 installed? Secondly, I do not believe the draft manual I have downloaded from BestPractical applies to my scenario. What should I change or add to get it to work? Below is the example Best Practical gave.

Configuring Apache

  1. First, you’ll need to add a few lines to your httpd.conf telling it to use RT’s web interface. If you have mod_perl
    (you should, the Perl scripts will go quite a bit faster around with it), you can do something like this:

    ServerName your.rt.server.hostname
    DocumentRoot /opt/rt3/share/html
    AddDefaultCharset UTF-8

this line applies to Apache2+mod_perl2 only

PerlModule Apache2 Apache::compat
PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl

SetHandler perl-script
PerlHandler RT::Mason

Note: If you are running Apache 2, the recommended configuration directive is:
RedirectMatch permanent (.*)/$ http://myaddress.com$1/index.html
in your VirtualHost section

Jonathan Chen

JChen@paymentone.com wrote:

I finally satisfied all dependencies and have the Apache running.
My setting on my Red hat 9 box is Apache 2.x with Fastcgi and I’m
wondering if I need mod_perl1 or 2 installed?

Neither. If you’re using fastcgi, you don’t need mod_perl.
mod_perl1 doesn’t work with apache2, and mod_perl2 is still
in pre-release stage and not supported for RT.

Secondly, I do not
believe the draft manual I have downloaded from BestPractical applies to
my scenario. What should I change or add to get it to work? Below is
the example Best Practical gave.

Try this:

<VirtualHost *>
DocumentRoot /opt/rt3/share/html
ServerName rt.example.com
Alias /NoAuth/images/ /opt/rt3/share/html/NoAuth/images/

ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/

Phil Homewood, Systems Janitor, http://www.SnapGear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances

This one time, at band camp, JChen@paymentone.com wrote:

I finally satisfied all dependencies and have the Apache running. My setting on my Red hat 9 box is Apache 2.x with Fastcgi and I’m wondering if I need mod_perl1 or 2 installed? Secondly, I do not believe the draft manual I have downloaded from BestPractical applies to my scenario. What should I change or add to get it to work? Below is the example Best Practical gave.

If you’ve used my mod_fastcgi spec file (as I think you have) then you don’t
need mod_perl at all. FastCGI runs RT outside of the webserver, whereas
mod_perl runs RT inside the webserver. They’re just different ways of
connecting RT and Apache together.

I should put a copy of my RT virtualhost entry along with that spec file so
you can see how I’ve configured them; I’ll try to do that first thing
tomorrow.

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

This one time, at band camp, Jamie Wilkinson wrote:

I should put a copy of my RT virtualhost entry along with that spec file so
you can see how I’ve configured them; I’ll try to do that first thing
tomorrow.

See http://anchor.net.au/~jaq/rt/ for the apache virtualhost entry that goes
with my RT installation.

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