[rt-devel] RT problem with Mason Component root

Shaun Hedges shaun at lexicom.ab.ca
Thu Sep 27 13:32:18 EDT 2001


Thx for the replies everyone.

The problem turned out to be incorrect permissions, the webrt group wasn't
group owner of some of the files.

Cya


-----Original Message-----
From: John Fisher [mailto:jfisher at deas.harvard.edu]
Sent: Thursday, September 27, 2001 9:47 AM
To: Shaun Hedges
Cc: rt-devel at lists.fsck.com
Subject: Re: [rt-devel] RT problem with Mason Component root


Shaun,

What is the url/file that you are trying to access when you get the error?
RT 2 no longer needs a cgi-bin directory (if you are using mod_perl). You
just point your browser to the site root: http://yourcompany.com/ and this
reads from the document root /opt/webrt2/WebRT/html dir with mason taking
care of the login stuff via the autohandler. The "rt" file
/opt/webrt2/bin/rt is only for command-line usage - I think.

The reason Mason is complaining is that you gave it
$MasonComponentRoot = "/opt/webrt2/WebRT/html" as the root and are going
outside of it (to the /opt/webrt2/bin dir).

jon


On Wed, 26 Sep 2001, Shaun Hedges wrote:

> Hi,
>
> I'm having the following error reported to apache error log:
>
> [Thu Sep 27 04:42:53 2001] [warn] [Mason] Cannot resolve file to
component:
> /opt/webrt2/bin/rt (is file outside component root?)
>
> Below is my apache configuration and config.pm mason variables, does
anyone
> know why it's reporting this error?
> Thx so much in advance for the help! :)
>
> - Shaun
> Here is my apache configuration:
>
> <VirtualHost *>
>     ServerAdmin webmaster at server.com
>     DocumentRoot /opt/webrt2/WebRT/html
>     ServerName tickettool.server.com
>     ErrorLog logs/tickettool.server-error_log
>     CustomLog logs/tickettool.server-access_log combined
>     ScriptAlias /cgi-bin        /opt/webrt2/bin
>     PerlModule Apache::DBI
>     PerlFreshRestart On
>     PerlRequire /opt/webrt2/bin/webmux.pl
>     <Location />
>     SetHandler perl-script
>     PerlHandler RT::Mason
>     </Location>
>
> </VirtualHost>
>
>
> Config.pm mason config variables:
>
> $MasonComponentRoot = "/opt/webrt2/WebRT/html";
>
> # $MasonLocalComponentRoot is where your rt instance keeps its site-local
> # mason html files.
> # (this should be autoconfigured during 'make install' or 'make upgrade')
>
> $MasonLocalComponentRoot = "/opt/webrt2/local/WebRT/html";
>
> # $MasonDataDir Where mason keeps its datafiles
> # (this should be autoconfigured during 'make install' or 'make upgrade')
>
> $MasonDataDir = "/opt/webrt2/WebRT/data";
>
> # RT needs to put session data (for preserving state between connections
> # via the web interface)
> $MasonSessionDir = "/opt/webrt2/WebRT/sessiondata";
>
>





More information about the Rt-devel mailing list