Re: Mason, step one
Tom,
On Thu, Jan 09, 2003 at 09:22:58PM -0500, Tom Allison wrote:
> OK, I thought I would try Mason tonight.
>
> I loaded this into httpd.conf and restarted OK:
> -----
> PerlModule HTML::Mason::ApacheHandler
>
> <Location />
> SetHandler perl-script
> PerlHandler HTML::Mason::ApacheHandler
> </Location>
> -----
>
> I added:
>
> <% 2+2 %>
>
Do you have mod_perl installed?
Using this configuration-snipplet
<IfModule mod_perl.c>
PerlModule HTML::Mason::ApacheHandler
<Location /mason>
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
PerlAddVar MasonCompRoot "main => /var/www/mason"
PerlSetVar MasonDataDir /var/mason/data
</Location>
</IfModule>
and after creating these directorys I get the obvious '4' as the result of calling
http://localhost/mason/index.html which has the following code:
<HTML> <HEAD> <TITLE>Status </TITLE> </HEAD> <BODY> <CENTER> <% 2+2 %> </CENTER> </FONT>
</BODY> </HTML>
Regards,
Klaus
Reply to: