Image 01

Archive for the ‘in english’ Category

How to install Mason on Apache 2 on Windows.

Monday, March 15th, 2004

I installed Mason on my local machine, to create small database frontend application with MySQL.

Mason is actually very impressive. It not only allows embedding perl scripts into html pages, but also use the concept of components in clever way, in overall, it is very efficient and neat. Another way to embed Perl is to use EmbPerl.

To install Mason on Windows, you can do it using mod_perl, or as a cgi mimicking mod_perl. You can find here some help to install mod_perl on Apache 2 on windows.
As I use it on my local machine, I don’t really need to have mod_perl loaded all the time. So I used the CGIHandler trick to use Mason like if it was running under mod_perl.

There are some distributions of Apache, perl, mod_perl and PHP packaged for Windows. One is IndigoPerl, another can be found at DeveloperSide.NET.

An article about Mason in Linux Journal, by Reuven M. Lerner : http://www.linuxjournal.com/article.php?sid=4002
Another introduction article at builder.com : http://builder.com.com/5100-6371-1044618-2.html