Monday, January 25, 2010

Mason on XAMPP

I have seen some questions online on how to integrate Mason with the XAMPP package

It took a while to figure things out but finally I found out the missing pieces from several online sources notably the modperlbook...

As you know, the XAMPP package comes with a very basic Perl packages installed....

so to add Mason into the XAMPP Perl installation follow this

1) I have both installed ActiveState Perl & Cygwin Perl installed on my Win XP machine

most of the time Cygwin CPAN upgrade packages is not working well with me so I have to resort to using the ActiveState Perl


so from the MS DOS prompt fire up ActiveState perl and from the Modperl book
you need to update the PERLINC environment var:




2) fire up the ActiveState Perl package manager PPM




3) add trouchelle Perl repositories http://trouchelle.com/perl/ppmrepview.pl

4) then add the Mason package

5) modify the XAMPP Perl configuration file as follow:




6) the above configuration indicates that I want Mason to work
on any html files served from the masontest directory under htdocs

so without further ado...fire upi XAMPP and start watching out for those perky
errors in the logs



7) once you get rid of any errors..then navigate to the masontest URL and see
Mason in action











2 comments:

  1. Fantastic friend. Can you please help us with the same on Ubuntu Linux ? Appreciate your help!

    ReplyDelete
  2. Unable to get rid of "Can't locate HTML/Mason/ApacheHandler.pm in @INC (@INC contains: C:/xampp/perl/lib C:/xampp/perl/site/lib . C:/xampp/apache) at (eval 2) line 3.\n". Can you help ?

    ReplyDelete

Followers