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



Adam Lawson wrote:
Mirco Wahab wrote:

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
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:

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
.



Relevant Pages

  • Re: simple Perl CGI scripts help
    ... It will only work on command line (Will show nothing on ... IE or Firefox browser) ... server configuration issue. ... I am using this showme.cgi scripts to run the remote scripts check.sh ...
    (comp.lang.perl.misc)
  • Re: PHP scripts under windows without webserver
    ... browser allows you to do something like this. ... you to run scripts without a server. ... html documents used for this will not work if uploaded to the web ...
    (comp.lang.php)
  • Re: HTML::Mason scripts coming up as plain text on apache server
    ... scripts to work....but the scripts come up as plain text in the browser ... SetHandler perl-script ... Ok I followed the link you provided and followed their steps to install the mod_perl apache server ... 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 ...
    (comp.lang.perl.misc)
  • Re: Retrieving documents certificate in JS
    ... especially not for unprivileged scripts. ... actually running Adobe Flex app that interacts with database server over ... I guess we could restrict users to specific flavors of browser (like ...
    (comp.lang.javascript)
  • remote SYSTEM compromise in WASD OpenVMS http server
    ... WASD VMS Hypertext Services is a popular http server for OpenVMS ... - getting the sources of all cgi scripts ...
    (Bugtraq)