[rt-users] [Mason] Cannot resolve file to component ?
Emre Bastuz
ebastuz at netcologne.de
Mon Dec 23 03:03:38 EST 2002
Hi Phil,
Phil Homewood wrote:
>>[warn] [Mason] Cannot resolve file to component:
>>/usr/local/rt2/bin/mason_handler.fcgi (is file outside component root?)
>> PerlRequire /usr/local/rt2/bin/webmux.pl
>
> Delete this line. It's for mod_perl only, not for FastCGI.
I´ve tried that. When this particular line is removed and
Apache restarted, I get a different error in the logs:
[error] Undefined subroutine &RT::Mason::handler called
In the browser it says "Internal Server Error".
That´s why I thought the line should be kept in httpd.conf.
After playing around with a couple of settings I found out
what I had done wrong.
The line 'SetHandler perl-script' also has to be removed
in order to make the fastcgi version work.
For others to follow this thread, a complete Vhost config for
usage of rt2 with fastcgi might look like this:
<VirtualHost 192.168.0.1:80>
AddHandler fastcgi-script fcgi
DocumentRoot /usr/local/rt2/WebRT/html
ServerName rt2-test.somehost.de
FastCgiServer /usr/local/rt2/bin/mason_handler.fcgi
Alias /NoAuth/images/ /usr/local/rt2/WebRT/html/NoAuth/images/
ScriptAlias / /usr/local/rt2/bin/mason_handler.fcgi/
PerlModule Apache::DBI
<Location />
PerlHandler RT::Mason
</Location>
</VirtualHost>
Maybe this needs some clarification in the FAQ/docs.
Thanks for your help.
Emre
More information about the rt-users
mailing list