This has got to be simple, but

I installed an older version of RT on a friends Redhat 8 server because I
did not want to mess with two versions of perl. I used RT version 3-0-7,
with perl-5-8.0-55.

My index.html page displays as text rather than a normal html page. For
testing purposes I copied a standard html page to /opt/rt3/share/html, and
it displays properly.

What am I missing?

Raymond Norton
LCTN
admin@lctn.org

To Infinity and beyond!

–Buzz Lightyear

I installed an older version of RT on a friends Redhat 8 server because I
did not want to mess with two versions of perl. I used RT version 3-0-7,
with perl-5-8.0-55.

That was probably a mistake. perl 5.8.0 is horribly buggy and known to
cause occasional data loss/corruption. This is independent from the RT
version.

My index.html page displays as text rather than a normal html page. For
testing purposes I copied a standard html page to /opt/rt3/share/html, and
it displays properly.

are you seeing a text representation of html (as if your server used
the wrong content type) or are you seeing unexecuted mason code?

seph

are you seeing a text representation of html (as if your server used
the wrong content type) or are you seeing unexecuted mason code?

seph

I see a text representation of html

are you seeing a text representation of html (as if your server used
the wrong content type) or are you seeing unexecuted mason code?

seph

This is some of what is displayed in the browser:

<%init> if ( $ARGS{‘q’} ) { my $query = $ARGS{‘q’}; if ( $query =~
m/^\s*(\d+)\s*$/ ) {
$m->redirect(“$RT::WebPath/Ticket/Display.html?id=$1”); }
$session{‘tickets’} = RT::Tickets->new( $session{‘CurrentUser’} ); if (
$query =~ m/@/ ) { $session{‘tickets’}->LimitRequestor( VALUE => $query,
OPERATOR => ‘=’, ); $m->redirect(“$RT::WebPath/Search/Listing.html”); } # #
Any search on queue name or subject will be for new/open tickets # only. #
$session{‘tickets’}->LimitStatus( VALUE => $_, OPERATOR => ‘=’, ) for
qw(open new); my $queue = RT::Queue->new( $session{‘CurrentUser’} ); if (
$queue->Load($query) && $queue->Id ) { $session{‘tickets’}->LimitQueue(
VALUE => $queue->Id, OPERATOR => ‘=’, );
$m->redirect(“$RT::WebPath/Search/Listing.html”); }
$session{‘tickets’}->LimitSubject( VALUE => $query, OPERATOR => ‘LIKE’ );
$m->redirect(“$RT::WebPath/Search/Listing.html”); } if
($ARGS{‘HomeRefreshInterval’}) { $session{‘home_refresh_interval’} =
$ARGS{‘HomeRefreshInterval’}; }

you need to make sure you have mod_perl installed and enabled and you’ve
setup the Mason handler stuff for RT.–On Tuesday, August 03, 2004 14:41 -0500 Raymond Norton admin@lctn.org wrote:

are you seeing a text representation of html (as if your server used
the wrong content type) or are you seeing unexecuted mason code?

seph

This is some of what is displayed in the browser:

<%init> if ( $ARGS{‘q’} ) { my $query = $ARGS{‘q’}; if ( $query =~
m/^\s*(\d+)\s*$/ ) {
$m->redirect(“$RT::WebPath/Ticket/Display.html?id=$1”); }
$session{‘tickets’} = RT::Tickets->new( $session{‘CurrentUser’} ); if (
$query =~ m/@/ ) { $session{‘tickets’}->LimitRequestor( VALUE => $query,
OPERATOR => ‘=’, ); $m->redirect(“$RT::WebPath/Search/Listing.html”); } #

Any search on queue name or subject will be for new/open tickets

only. # $session{‘tickets’}->LimitStatus( VALUE => $_, OPERATOR => ‘=’, )
for qw(open new); my $queue = RT::Queue->new( $session{‘CurrentUser’} );
if ( $queue->Load($query) && $queue->Id ) {
$session{‘tickets’}->LimitQueue( VALUE => $queue->Id, OPERATOR => ‘=’, );
$m->redirect(“$RT::WebPath/Search/Listing.html”); }
$session{‘tickets’}->LimitSubject( VALUE => $query, OPERATOR => ‘LIKE’ );
$m->redirect(“$RT::WebPath/Search/Listing.html”); } if
($ARGS{‘HomeRefreshInterval’}) { $session{‘home_refresh_interval’} =
$ARGS{‘HomeRefreshInterval’}; }


The rt-users Archives

Be sure to check out the RT wiki at http://wiki.bestpractical.com

Undocumented Features quote of the moment…
“It’s not the one bullet with your name on it that you
have to worry about; it’s the twenty thousand-odd rounds
labeled `occupant.'”
–Murphy’s Laws of Combat

Your apache config is incorrect.

Raymond Norton wrote:

you need to make sure you have mod_perl installed and enabled and you’ve
setup the Mason handler stuff for RT.

I followed the docs, and do have mod_perl 2 (1.99). What part of the docs
should I be looking at that would help me figure this out?

This is what I have in httpd.conf:

<VirtualHost *:80>
ServerName rt.domain.name
DocumentRoot /opt/rt3/share/html
AddDefaultCharset UTF-8

this line applies to Apache2+mod_perl2 only

PerlModule Apache2 Apache::compat

PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl

SetHandler perl-script
PerlHandler RT::Mason

<%init> if ( $ARGS{‘q’} ) { my $query = $ARGS{‘q’}; if ( $query =~
m/^\s*(\d+)\s*$/ ) {
$m->redirect(“$RT::WebPath/Ticket/Display.html?id=$1”); }

That’s not html, not even a little. That’s unexecuted mason code. Your
apache config is probably wrong. What is it?

seph

<%init> if ( $ARGS{‘q’} ) { my $query = $ARGS{‘q’}; if ( $query =~
m/^\s*(\d+)\s*$/ ) {
$m->redirect(“$RT::WebPath/Ticket/Display.html?id=$1”); }

That’s not html, not even a little. That’s unexecuted mason code. Your
apache config is probably wrong. What is it?

seph

Do I need to include more of my config than this?

I followed the docs, and do have mod_perl 2 (1.99). What part of the docs
should I be looking at that would help me figure this out?

This is what I have in httpd.conf:

<VirtualHost *:80>
ServerName rt.domain.name
DocumentRoot /opt/rt3/share/html
AddDefaultCharset UTF-8

this line applies to Apache2+mod_perl2 only

PerlModule Apache2 Apache::compat

PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl

SetHandler perl-script
PerlHandler RT::Mason