Keith Watanabe * NET 2.0

HTML::Mason & Apache::Request
By: Keith Watanabe
Published On: 8-30-2004

Had a problem involving getting HTML::Mason to work with Mod_perl. The issue was that despite having mod_perl installed, you need another library that really isn't talked about much. That library is libapreq. I'm a little surprised that the mod_perl guys haven't integrated this into the regular mod_perl distribution, but I guess it's just an extension at this point. But this library is a C/XS library that has Apache::Request and Apache::Cookie interfacing to the actual Apache C libraries. In turn, this makes the routines for accessing apache requests and cookies faster. HTML::Mason allows the user to either choose the normal CGI.pm module or Apache::Request.pm for handling these types of routines. With Apache::Request.pm, there is less memory usage and faster access. Hence, I chose this path. However, the basic libapreq install off of CPAN is a little buggy. Instead, you need to utilize the cvs repository to get the version with the corrected makefiles, etc.: cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login CVS password: anonymous cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co httpd-apreq as I am using mod_perl version 1, i'm going with this version. after grabbing it, just run perl Makefile.pl & make & make install. The good thing is that it should test properly so you probably want to run make test on top of that.

Tags: apache perl
AddThis Social Bookmark Button Sphere: Related Content

Trackbacks: (Trackback URL)

No Comments Posted Yet

June [July] August
Sun Mon Tue Wed Thu Fri Sat
29 30 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31 1 2