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 © 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>
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
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
SetHandler perl-script
PerlHandler RT::Mason
<Location /REST/1.0/NoAuth/>
SetHandler php-script
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
The rt-users Archives
Be sure to check out the RT wiki at http://wiki.bestpractical.com
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?
SOn 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
SetHandler perl-script
PerlHandler RT::Mason
<Location /REST/1.0/NoAuth/>
SetHandler php-script
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
The rt-users Archives
Be sure to check out the RT wiki at http://wiki.bestpractical.com
Did you rebuild mod_perl?
Yep.
Current versions as reported from the apache logs are:
[Mon Nov 22 12:19:49 2004] [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
(I reinstalled the entire webserver+friends from scratch over the
weekend).
Realised I hadn’t installed the perl-glue for libapreq2, but that’s been
done now.
Still seeing unprocessed mason template code whenever I try to load RT.
mod_perl is does seem to be working (deliberately adding use statements
for non-existant modules causes perl errors in the apache logs).
I’m starting to get very very stumped.
S> 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
SetHandler perl-script
PerlHandler RT::Mason
<Location /REST/1.0/NoAuth/>
SetHandler php-script
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
The rt-users Archives
Be sure to check out the RT wiki at http://wiki.bestpractical.com
I tracked this problem down to a content-type problem. For some reason the
.html is being set to application/x-httpd-php, although I can’t for the
left of me find where this would be in the my apache config.
For the time being I’ve commented out the following line webmux.pl
return -1 if defined( $r->content_type ) && $r->content_type !~
m!(^text/|\bxml\b)!io;
and added:
$RT::Logger->warning($r->content_type) if defined( $r->content_type ) &&
$r->content_type !~ m!(^text/|\bxml\b)!io;
so I can see the content types.
Can anyone see any problems with this modification? I know I really ought
to fix the apache conf, but it’s proving to a real pain to find the
problem in that.
SOn Mon, 22 Nov 2004, Sam Stickland wrote:
On Sat, 20 Nov 2004, Todd Chapman wrote:
Did you rebuild mod_perl?
Yep.
Current versions as reported from the apache logs are:
[Mon Nov 22 12:19:49 2004] [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
(I reinstalled the entire webserver+friends from scratch over the weekend).
Realised I hadn’t installed the perl-glue for libapreq2, but that’s been done
now.
Still seeing unprocessed mason template code whenever I try to load RT.
mod_perl is does seem to be working (deliberately adding use statements for
non-existant modules causes perl errors in the apache logs).
I’m starting to get very very stumped.
S
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
SetHandler perl-script
PerlHandler RT::Mason
<Location /REST/1.0/NoAuth/>
SetHandler php-script
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
The rt-users Archives
Be sure to check out the RT wiki at http://wiki.bestpractical.com
The rt-users Archives
Be sure to check out the RT wiki at http://wiki.bestpractical.com