[rt-users] starting httpd error: Can't locate Apache/Constants.pmin @INC

Iomar Vargas ivargas at commoca.com
Thu Apr 29 20:07:41 EDT 2004



Max:

I did what you told me, to insert the line:
	require Apache::compat if $CGI::MOD_PERL == 2;

Now I try to start the server and it fails with the error:

[error] Global $r object is not available. Set:
	PerlOptions +GlobalRequest
in httpd.conf at /usr/lib/perl5/site_perl/5.8.3/HTML/Mason/ApacheHandler.pm
line 579.

I try setting "PerlOptions +GlobalRequest" in httpd.conf, but still with the
same error. :-(

- Iomar

------------------------------------
Commoca, Inc.
Iomar Vargas
Software Engineer
ivargas at commoca.com
Calle Méndez Vigo #68 Este
Suite 3
Mayagüez, PR 00680
tel: 787-834-0011
fax: 787-834-0020
mobile: 787-379-0968
------------------------------------
-----Original Message-----
From: Max Bowsher [mailto:maxb at ukf.net] 
Sent: Thursday, April 29, 2004 5:58 PM
To: Iomar Vargas; rt-users at lists.bestpractical.com
Subject: Re: [rt-users] starting httpd error: Can't locate
Apache/Constants.pmin @INC 

Iomar Vargas wrote:
> Hi:
>
> I have Apache version 2.0.48, perl 5.8.3, mod_perl.i386 0:1.99_12-2
>
> I installed RT following the README, and the Draft Manual of RT. It
compiles
> and install, and I test the dependencies, and seems everything ok.
>
> But when I started the apache gives an error, and it doesn't start:
>
> [error] Can't locate Apache/Constants.pm in @INC


Try this:

diff -ru rt-orig/bin/webmux.pl bin/webmux.pl
--- rt-orig/bin/webmux.pl       2004-03-17 19:17:31.000000000 +0000
+++ bin/webmux.pl       2004-03-17 19:18:15.000000000 +0000
@@ -55,6 +55,7 @@
        };
     }
     if ($CGI::MOD_PERL) {
+       require Apache::compat if $CGI::MOD_PERL == 2;
        require HTML::Mason::ApacheHandler;
     }
     else {


Max.




More information about the rt-users mailing list