[rt-users] RT 3.0.9, Apache2, and FastCGI problem...
Michael Herz
mherz at RigakuMSC.com
Fri Mar 26 11:57:56 EST 2004
I have tried to use the below configuration and when I try to restart httpd
I get an error :
Starting httpd: [Fri Mar 26 11:01:24 2004] [error] Bareword "REDIRECT" not
allowed while "strict subs" in use at
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 188.!BEGIN
not safe after errors--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line
197.!Compilation failed in require at /opt/rt3/bin/webmux.pl line 57.!BEGIN
failed--compilation aborted at /opt/rt3/bin/webmux.pl line 63.!Compilation
failed in require at (eval 2) line 1.!
I've seen this error mentioned in the RT archives but no one ever responded
with how to fix this. Anyone have any ideas at this time about the "Bareword
REDIRECT" error? Thanks in advance!
-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Steve Wampler
Sent: Thursday, March 25, 2004 10:38 AM
To: afasano at networksolutions.com
Cc: rt-users at lists.bestpractical.com; 'Steve Wampler'
Subject: Re: [rt-users] RT 3.0.9, Apache2, and FastCGI problem...
On Wed, Mar 24, 2004 at 06:58:58PM -0500, AJ wrote:
>
> About the url issues.. did you make sure that the following is in the
> httpd.conf:
>
> DirectoryIndex index.html
>
> And the mod perl alias reads:
> PerlModule Apache::DBI
> PerlRequire <rthome>/bin/webmux.pl
> Alias /rt <rthome>/share/html
> <Location /rt>
> SetHandler perl-script
> PerlHandler RT::Mason
> </Location>
Thanks, I've got it working with mod_perl2 now, I think - though not quite
with the above. Instead, I've got:
-------------------------------------------------------------------
<VirtualHost XXX.XXX.XXX:443>
...
DocumentRoot /var/www/https
....
# (sbw 2004/03/25): Added support for RT problem tracker
PerlModule Apache2 Apache::compat
PerlModule Apache::DBI
AddDefaultCharset UTF-8
Alias /rt /opt/rt3/share/html
PerlRequire /opt/rt3/bin/webmux.pl
Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images/
<Location /rt>
AddHandler perl-script .html
PerlHandler RT::Mason
#RedirectMatch permanent (.*)/$
https://weaver.tuc.noao.edu%1/index.html
Options All
</Location>
...
</VirtualHost>
--------------------------------------------------------------------
The trick from what I had started with long ago (based on the older RH9
system that was working with 3.0.7...) is the commenting out of the
RedirectMatch line and the use of AddHandler instead of SetHandler.
I have no clue why these changes are needed on this machine and not the
older one, mind you, except to note that this newer install of RT resulted
in newer versions of many perl modules to be installed than are in use on
the older machine.
Thanks to everyone for their advice!!
-Steve
> -----Original Message-----
> Subject: [rt-users] RT 3.0.9, Apache2, and FastCGI problem...
>
> I've got a problem with fastcgi that has shown up from time-to-time in
> the mailing lists. Unfortunately, I can't find any responses to the
> those postings!
>
> Background: I'm trying to get RT 3.0.9 running under RedHat 9 with
> Apache2. I've given up on mod_perl2 - while I got close (I think), I
> was stumped when URLs ending in directories wouldn't pick up the
> "index.html" file automatically; e.g.
>
> https://MY_RT_MACHINE/rt
>
> couldn't find a page to display, but
>
> https://MY_RT_MACHINE/rt/index.html
>
> worked fine (until it tries to follow any similar link). Since this
> worked with RT 3.0.7 and RH 9 on another machine, but not this one, it
> confused me enough to give fastcgi a try...
> [As an aside, I actually tried to fix the problem with mod_perl2 by
> hard coding (/opt/rt3/local is a dangerous thing...) index.html onto
> all the URL's that referenced directories - this allowed me to
> nagivate through the screens, but I kept encountering other bizarre
> errors that seemed unrelated, but must somehow be related] ...
--
--
Steve Wampler {sbw at tapestry.tucson.az.us}
The gods that smiled upon your birth are laughing now. -- fortune cookie
_______________________________________________
rt-users mailing list
rt-users at lists.bestpractical.com
http://lists.bestpractical.com/mailman/listinfo/rt-users
Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
More information about the rt-users
mailing list