Resolved: Just installed and script isn't being executed... HTML::Mason problerm

I think I know why nobody answered me… they knew if they waited long
enough, I would figure it out on my own…

Here’s what I had to do to make everything work for me…

DocumentRoot /opt/rt2/WebRT/html ServerName rt.syl.dl.nec.com PerlModule Apache::DBI Alias /rt2 /opt/rt2/WebRT/html PerlRequire /opt/rt2/bin/webmux.pl SetHandler perl-script PerlHandler RT::Mason SetHandler perl-script PerlHandler RT::Mason SetHandler perl-script PerlHandler Apache::Status

It was the section under FilesMatch which made it start working…

Thanks anyway, i know you were trying… :slight_smile:

Mike

Mike Carroll wrote:

Sorry to keep dogging you all but another update…

I still see code if I look directly at my index.html yet if I look at
index.html? is does display the RT login page although it is for
example.com even though I have configured /opt/rt2/etc/config.pm with
my own information.

I also can not log in to this page, it always gives me the error…

Method Not Allowed

The requested method POST is not allowed for the URL /index.html.

Apache/1.3.27 Server at rt.syl.dl.nec.com Port 80

Hopefully someone can tell me where I have gone wrong…

Mike Carroll wrote:

So I wanted to assure that Mason was broken as I suspected… I
changed my Virtual host to the following:

<VirtualHost 143.101.64.178>
DocumentRoot /opt/rt2/WebRT/html
ServerName rt.syl.dl.nec.com
PerlModule Apache::DBI
Alias /rt2 /opt/rt2/WebRT/html
PerlRequire /opt/rt2/bin/webmux.pl

Options ExecCGI

PerlSetVar MasonArgsMethod CGI
<Location /rt2>
SetHandler perl-script
PerlHandler RT::Mason

<Location /perl-status>
SetHandler perl-script
PerlHandler Apache::Status

Now I can go to http://rt.syl.dl.nec.com/perl-status and I can view a
website and it actuall tests Mason’s functionality. Everything from
here seems to work, including Mason.

I wonder why it won’t execute my rt script??

Thanks again…

Mike

Mike Carroll wrote:

Doh! I guess I copied a bad entry to the list… I was trying quite
a few different configurations usually with identicle results…
Script code is displayed.

Here is the virtual host statement I currently have…

<VirtualHost 143.101.64.178>
DocumentRoot /opt/rt2/WebRT/html
ServerName rt.syl.dl.nec.com
PerlModule Apache::DBI
PerlRequire /opt/rt2/bin/webmux.pl

SetHandler perl-script
PerlHandler RT::Mason

One thing I forgot to mention earlier. I used cpan to download all
dependencies and it did install the newest version of HTML::Mason
1.09 With this version installed I received an error indicating that
a command in the script was no longer supported. I backed up to the
beginning of the installation process and installed the older 1.02
version of HTML Mason and recompiled mod_perl and apache and since
then I can’t seem to make HTML::Mason execute it’s code.

Thank you to those who have responded, I appreciate it…

Thanks,

Mike

Phil Homewood wrote:

Mike Carroll wrote:

<VirtualHost 143.101.64.178>
DocumentRoot /opt/rt2/WebRT/html
ServerName rt.syl.dl.nec.com
PerlModule Apache::DBI
Alias /rt2 /usr/local/rt2/WebRT/html
PerlRequire /opt/rt2/bin/webmux.pl
<Location /rt2>
SetHandler perl-script
PerlHandler RT::Mason

Where’s your RT installation? /opt/rt2 or /usr/local/rt2?
At least one of your paths above is bogus.

Mike Carroll
System Administrator
Permeo Technologies Inc.

(214) 262-4620
mcarroll@permeo.com

6535 North State Highway 161
Irving, TX 75039

DocumentRoot /opt/rt2/WebRT/html ServerName rt.syl.dl.nec.com PerlModule Apache::DBI Alias /rt2 /opt/rt2/WebRT/html

This is a little curious – you have /rt2 pointing to the same thing as
/. You shouldn’t need the Alias line.

PerlRequire /opt/rt2/bin/webmux.pl

<Location /rt2>
SetHandler perl-script
PerlHandler RT::Mason

<FilesMatch “*.html”>
SetHandler perl-script
PerlHandler RT::Mason

You shouldn’t both of these, unless you want .html files outside of /rt2
to be handled by RT.

Also, the FilesMatch will cause problems; you should only use the
Locatiion with HTML::Mason, because you cannot POST to files (as you
report in the other mail you sent).

<Location /perl-status>
SetHandler perl-script
PerlHandler Apache::Status

(darren)

Laziness is often mistaken for patience.