Re: HTML::Mason scripts coming up as plain text on apache server



Thus spoke Adam Lawson (on 2006-10-23 07:46):

I've been trying different routes in order to get HTML::Mason scripts to
work....but the scripts come up as plain text in the browser

I have mod_perl and HTML::Mason loaded and Apache httpd-2.2.3
here is my what is added in my httpd.conf
LoadModule perl_module /usr/local/apache2/modules/mod_perl.so

PerlModule HTML::Mason::ApacheHandler
<Location /usr/local/apache2/htdocs/mason>
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
</Location>

1) are you sure, you installed mod_perl2 (two!) - otherwise
you have to enable 1.0 compatibility use Apache::compat ();
2) what extension did you use for Mason (top-) files (.htm?)
3) what did you tell apache2 about this extension (DirectoryIndex?)

What receipt did you follow this one?
http://modperlbook.org/html/index.html

Regards

Mirco
.