RT3, Apache2, mod_perl2 success stories?

I’m trying to get RequestTracker v3.0.2, Apache v2.0.45, and mod_perl
v1.99_09 to work together. Previous posts to the mailing list have had
similar problems, but no resolution. I know this combo isn’t
recommended, but it should work, right? Here is my config:

PerlRequire /usr/local/www/resources/RequestTracker/bin/webmux.pl
Alias /tracker /usr/local/www/resources/RequestTracker/share/html
<Location /tracker>
AddDefaultCharset UTF-8
SetHandler perl-script
PerlHandler +RT::Mason
PerlOptions +GlobalRequest

…this makes Apache fail to start. Here’s the error:

[Tue May 13 21:45:31 2003] [error] Global $r object is not available. Set:
PerlOptions +GlobalRequest
in httpd.conf at
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 569.
Compilation failed in require at (eval 221) line 1.

[Tue May 13 21:45:31 2003] [error] Can’t load Perl file:
/usr/local/www/resources/RequestTracker/bin/webmux.pl for server
www.critd.com:0, exiting…

…any ideas? Is anybody running these versions successfully? Any
suggestions? Thanks!

–Aaron

This one time, at band camp, Aaron Paetznick wrote:

I’m trying to get RequestTracker v3.0.2, Apache v2.0.45, and mod_perl
v1.99_09 to work together. Previous posts to the mailing list have had
similar problems, but no resolution. I know this combo isn’t
recommended, but it should work, right? Here is my config:

I’m running 3.0.1 with Apache 2.0.40 and mod_perl 1.99 from Red Hat 8.0. I
posted the httpd config fragment to the list a while back and some urls to
the mail archive – sometime around March or April this year.

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

This worked (thanks!), but now I’m getting a new error:

[Fri May 16 14:09:43 2003] [warning]: [Mason] Cannot resolve file to
component: /usr/local/www/resources/RequestTracker/share/html/index.html
(is file outside component root?) at
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 838.
(/usr/local/www/resources/RequestTracker-3.0.2/lib/RT.pm:226)

I verified that lib/RT.pm has $MasonComponentRoot defined correctly to
’/usr/local/www/resources/RequestTracker-3.0.2/share/html’. I’m trying
to Alias RT into my site from outside my DocumentRoot. Here is my config:

PerlModule Apache2 Apache::compat
PerlModule Apache::DBI
PerlRequire /usr/local/www/resources/RequestTracker/bin/webmux.pl
Alias /tracker /usr/local/www/resources/RequestTracker/share/html
<Location /tracker>
AddDefaultCharset UTF-8
SetHandler perl-script
PerlHandler RT::Mason

…any ideas on this new error? Thanks!

–Aaron

Brook Schofield wrote: