On Mon, 5 Jun 2006, Chris Dawson wrote:
> 
> [12:46:43] [Wed May 31 12:46:43 2006] [error] [client 192.168.1.2]
> Can't locate object method "new" via package "Apache2::Request" at
> /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 908.\n

My experience is with Debian (and in my experience, the Apache2 
stuff in testing-etch worked better than stable-sarge).  You may 
have to `apt-get install libapreq2 libapache2-request-perl`, 
then `a2enmod apreq`, and also put:
    
    PerlModule CGI
    PerlOptions +GlobalRequest

in your config.  Last I checked, Mason isn't ready for dealing 
with the real Apache2 request stuff without help from CGI, just 
the hackish vendor stuff you get with RedHate (mod_perl 1.99 
something pretending to be mod_perl 2).  There's something about 
this in the Mason HQ docs somewhere -- search for Apache2. You 
may also have to install libcgi-perl if there's a version that 
comes with your core -- check the CGI.pm source for the section 
where it decides whether it's using mod_perl 1 or 2 to see if it 
makes sense.  (This is a problem in RedHate RHELL4 when you 
inevitibly compile Apache2 from source to get it to work.)

> But, this could just be my stupidity. Does anyone wish to share their
> apache2.conf file if they have it working?
> 
> My configuration is basically this:
> 
> PerlModule HTML::Mason::ApacheHandler
> 
> <FilesMatch "html$">
> SetHandler perl-script
> PerlHandler HTML::Mason::ApacheHandler
> PerlSetVar MasonCompRoot "/opt/wiab/modcast/sites/"
> PerlSetVar MasonDataDir "/opt/wiab/tmp/mason/nonssl"
> </FilesMatch>



_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to