Re: HTML::Mason scripts coming up as plain text on apache server
- From: Mirco Wahab <peace.is.our.profession@xxxxxx>
- Date: Mon, 23 Oct 2006 09:29:27 +0200
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
.
- Follow-Ups:
- Re: HTML::Mason scripts coming up as plain text on apache server
- From: Adam Lawson
- Re: HTML::Mason scripts coming up as plain text on apache server
- References:
- HTML::Mason scripts coming up as plain text on apache server
- From: Adam Lawson
- HTML::Mason scripts coming up as plain text on apache server
- Prev by Date: Re: Switch module misbehavior
- Next by Date: Re: Parsing and regex
- Previous by thread: HTML::Mason scripts coming up as plain text on apache server
- Next by thread: Re: HTML::Mason scripts coming up as plain text on apache server
- Index(es):
Relevant Pages
|