Problem: RT3/Apache2/Mod_Perl2 (Global $r object is not available.)

Hi,

I’m having trouble running rt-2.1.29 with Apache-2.0.44 and mod_perl-1.99_09-dev.
However when i start the Apache I get the following error…
Can anybody help me?

BEGIN
[Wed Mar 05 13:40:16 2003] [error] Global $r object is not available. Set:
PerlOptions +GlobalRequest
in httpd.conf at
/usr/local/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm
line 567.
Compilation failed in require at (eval 10) line 1.

[Wed Mar 05 13:40:16 2003] [error] Can't load Perl file:
/opt/rt-2.1.79/bin/webmux.pl for server rt.test.com:0,
exiting...

END

My Config Apache looks like this:

BEGIN
ServerAdmin httpd@rt.test.com
ServerName rt.test.com

DocumentRoot /opt/rt-2.1.79/share/html
AddDefaultCharset UTF-8

PerlModule Apache2
PerlModule Apache::compat
PerlModule Apache::DBI
PerlOptions +GlobalRequest
PerlRequire /opt/rt-2.1.79/bin/webmux.pl

Alias /rt /opt/rt-2.1.79/share/html
<Location /rt>
    SetHandler perl-script
    PerlHandler RT::Mason
</Location>

END

I’m using an Apache/2.0.44 mod_perl/1.99_09-dev Perl/v5.8.0 DAV/2.

APACHE-MPM: tested with worker and prefork MPM
MOD_PERL: build as DSO
OS: Solaris 8 02/02
RT Version: 2.1.79
Mysql 4.0.10

All Perlmodules are installed, RT_Siteconfig.pom changed, mod_perl with Mason works.
I did everything written in the README file.
Could somebody help me with this problem?

thanks a lot
alex

Hi,

I’m having trouble running rt-2.1.29 with Apache-2.0.44 and mod_perl-1.99_09-dev.
However when i start the Apache I get the following error…
Can anybody help me?

BEGIN
[Wed Mar 05 13:40:16 2003] [error] Global $r object is not available. Set:
PerlOptions +GlobalRequest
in httpd.conf at
/usr/local/perl-5.8.0/lib/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm
line 567.
Compilation failed in require at (eval 10) line 1.

[Wed Mar 05 13:40:16 2003] [error] Can’t load Perl file:
/opt/rt-2.1.79/bin/webmux.pl for server rt.test.com:0,
exiting…
END

My Config Apache looks like this:

BEGIN
ServerAdmin httpd@rt.test.com
ServerName rt.test.com

DocumentRoot /opt/rt-2.1.79/share/html
AddDefaultCharset UTF-8

PerlModule Apache2
PerlModule Apache::compat
PerlModule Apache::DBI
PerlOptions +GlobalRequest
PerlRequire /opt/rt-2.1.79/bin/webmux.pl

Alias /rt /opt/rt-2.1.79/share/html
<Location /rt>
    SetHandler perl-script
    PerlHandler RT::Mason
</Location>

END

Output from:

ls -l /opt/rt-2.1.79/bin/webmux.pl

please.

And then ls -ld for all the directories above it. And what user does
your web server run as?

-Robin

http://www.digitalkingdom.org/~rlpowell/ *** I’m a male Robin.
.i le pamoi velru’e zo’u crepu le plibu taxfu
.i le remoi velru’e zo’u mo .i le cimoi velru’e zo’u ba’e prali .uisai
http://www.lojban.org/ *** to sa’a cu’u lei pibyta’u cridrnoma toi