[rt-users] RT not processing mason templates

Sam Stickland sam_ml at spacething.org
Mon Nov 22 06:43:22 EST 2004


Yep, although that seems like the most obvious thing to be causing these 
problems.

I realised I'd inadvertantly installed Apache2 into /usr/local rather than 
/usr/local/apache2 (which contained an old version). I cleaned that up the 
old version and then reinstalled Apache2, mod_perl and PHP. Current 
versions are:

perl: 5.8.5
Apache: 2.0.52
rt: 3.0.12
mod_perl: 1.99.16

When it's started up the line in the apache logs is:

[notice] Apache/2.0.52 (Unix) mod_perl/1.99_16 Perl/v5.8.5 mod_ssl/2.0.52 
OpenSSL/0.9.7a PHP/4.3.9 mod_fastcgi/2.4.2 configured -- resuming normal 
operations

But still when I try to access the RT pages I just get raw template code 
back. mod_perl does appear to be working, since if I deliberately break 
the webmux.pl script then I get perl errors in the apache logs when it 
tries to start.

I'm seriously stumped now. Has anyone got any suggestions?

S

On Sat, 20 Nov 2004, Todd Chapman wrote:

> Did you rebuild mod_perl?
>
> On Sat, Nov 20, 2004 at 11:45:00AM +0000, Sam Stickland wrote:
>> Hi,
>>
>> After a round of upgrading caused by going from perl 5.8.0 to 5.8.5, RT no
>> longer seems to want to execute the Mason code.
>>
>> For example, going to the default URL gives:
>>
>>  %# BEGIN LICENSE BLOCK %# %# Copyright (c) 1996-2003 Jesse Vincent %# %#
>> (Except where explictly superceded by other copyright notices) %# %# This
>> work is made available to you under the terms of Version 2 of %# the GNU
>> General Public License. A copy
>>
>> etc.
>>
>> I've checked over all the obvious stuff. mod_perl is installed, along with
>> all the perl deps.
>>
>> httpd configuration is:
>>
>>    PerlSetVar MasonArgsMethod CGI
>>    PerlModule Apache2 Apache::compat
>>    RewriteEngine On
>>    RewriteRule ^(.*)/$ $1/index.html
>>
>>    PerlModule Apache::DBI
>>    PerlRequire /usr/local/rt3/bin/webmux.pl
>>
>>    <Location />
>>       SetHandler perl-script
>>       PerlHandler RT::Mason
>>    </Location>
>>
>>    <Location /REST/1.0/NoAuth/>
>>       SetHandler php-script
>>    </Location>
>> </VirtualHost>
>>
>> There aren't any errors in any of the logs (httpd or rt.log).
>>
>> This is with:
>>
>> This is perl, v5.8.5 built for i386-linux-thread-multi
>> Server version: Apache/2.0.47
>>
>> Anyone got any suggestions where to start hunting?
>>
>> Sam
>> _______________________________________________
>> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>>
>> Be sure to check out the RT wiki at http://wiki.bestpractical.com
>



More information about the rt-users mailing list