Re: HTML::Mason scripts coming up as plain text on apache server
- From: Adam Lawson <tidusx2@xxxxxxxxx>
- Date: Mon, 23 Oct 2006 14:31:17 -0400
Adam Lawson wrote:
Mirco Wahab wrote:I am sorry I had the port set to 8080 not 80 in the httpd.conf, server runs now, however now that iam up and running i tried adding:
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
Thanx for your reply Mirco,
Ok I followed the link you provided and followed their steps to install the mod_perl apache server
panic% perl Makefile.PL APACHE_SRC=../apache_1.3.xx/src \
DO_HTTPD=1 USE_APACI=1 EVERYTHING=1
panic% make && make test
panic# make install
panic# cd ../apache_1.3.xx
panic# make install
using mod_perl-1.29 and apache_1.3.37
appearently everything went fine, fired up the server with /usr/local/apache/bin/apachectl start using 127.0.0.1 is my server address but now i get the error unable to connect in the browser
how do i begin to figure out whats going wrong?
thank u
Adam
PerlModule HTML::Mason::ApacheHandler
<Location />
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
</Location>
to my httpd.conf in order to process mason scripts on the server, now i get an internal server error message when trying to access any pages.
is something wrong with my perl or perl modules? how to I troubleshoot this?
Adam
.
- 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
- Re: HTML::Mason scripts coming up as plain text on apache server
- From: Mirco Wahab
- Re: 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: HTML::Mason scripts coming up as plain text on apache server
- Next by Date: Re: HTML::Mason scripts coming up as plain text on apache server
- Previous by thread: Re: 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
|