[rt-devel] RT problem with Mason Component root
John Fisher
jfisher at deas.harvard.edu
Thu Sep 27 12:47:29 EDT 2001
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