Error in RT execution

Hi,

I have installed RT on my machine according to instruction specified in the manual. But when I execute the index.html, it is displaying the following screen in mozilla. could you please let me know what could be the problem?.

My system configuration is

P4, 1GB RAM, 40GB HDD, 1.8 GHz processor
Redhat 9.0, Apache2 with mod_perl, RT3.0, Postgresql 7.3.2

Thanks
Veera

%# 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 of that license should have %# been provided with this software, but in any event can be snarfed %# from www.gnu.org. %# %# This work is distributed in the hope that it will be useful, but %# WITHOUT ANY WARRANTY; without even the implied warranty of %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU %# General Public License for more details. %# %# Unless otherwise specified, all modifications, corrections or %# extensions to this work which alter its source code become the %# property of Best Practical Solutions, LLC when submitted for %# inclusion in the work. %# %# %# END LICENSE BLOCK <& /Elements/Header, Title=>loc(“RT at a glance”), Refresh => $session{‘home_refresh_interval’} &> <& /Elements/Tabs, current_toptab => ‘’, Title=>loc(“RT at a glance”) &>
<& /Elements/MyTickets &>
<& /Elements/MyRequests &> <& /Elements/Quicksearch &>
<& /Elements/Refresh, Name => ‘HomeRefreshInterval’, Default => $session {‘home_refresh_interval’} &>
<%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’}; }

Yeah, I hit this one too. I think that you have a problem
in your apache configuration.

I orginally installed RT3 to be on the root of webserver,
ie, http://demo/. I tried to move it to http://demo/rt and
started seeing wierd things including what you’re seeing.
I gave up and moved RT3 back to the root. I wanted a working
RT3 more…

On a guess, check the apache configuration for where the
location points, and check rt_siteconfig for where the root
points. It has to be blank for http://demo/ to work. Setting
the root to “/” will produce http://demo///.

Your mileage will vary.
MikeOn Wed, 21 May 2003, Veera_Dudala wrote:

Hi,

I have installed RT on my machine according to instruction specified in the manual. But when I execute the index.html, it is displaying the following screen in mozilla. could you please let me know what could be the problem?.

My system configuration is

P4, 1GB RAM, 40GB HDD, 1.8 GHz processor
Redhat 9.0, Apache2 with mod_perl, RT3.0, Postgresql 7.3.2

Thanks
Veera

%# 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 of that license should have %# been provided with this software, but in any event can be snarfed %# from www.gnu.org. %# %# This work is distributed in the hope that it will be useful, but %# WITHOUT ANY WARRANTY; without even the implied warranty of %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU %# General Public License for more details. %# %# Unless otherwise specified, all modifications, corrections or %# extensions to this work which alter its source code become the %# property of Best Practical Solutions, LLC when submitted for %# inclusion in the work. %# %# %# END LICENSE BLOCK <& /Elements/Header, Title=>loc(“RT at a glance”), Refresh => $session{‘home_refresh_interval’} &> <& /Elements/Tabs, current_toptab => ‘’, Title=>loc(“RT at a glance”) &>
<& /Elements/MyTickets &>
<& /Elements/MyRequests &> <& /Elements/Quicksearch &>
<& /Elements/Refresh, Name => ‘HomeRefreshInterval’, Default => $session {‘home_refresh_interval’} &>
<%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’}; }


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

rt-users List Archives http://lists.fsck.com/pipermail/rt-users/
rt-users Search Archives http://lists.fsck.com/search.html/
Mason home page http://www.masonhq.com/

Mason::HTML (or Mason::RT, I’m not exactly what the difference is)
is not processing this block of text.
You access a page. Apache knows (should know) to use Mason to process the page before sending it out to the client.

Search the list archives for problems with Apache2 / mod_perl2 (you didn’t say which mod_perl you were using).

I personally downgraded Apache to 1.3.27 and got modperl 1.27

Apache 1.3.27 http://www.apache.org/dist/httpd
mod_perl 1.27 http://perl.apache.org/dist

according to instructions here: http://perl.apache.org/docs/1.0/guide/getwet.html

This is your Mason code being spit out as text. You aren’t calling the Mason handler, which will format this into nice pretty HTML. You just don’t have the server configured properly yet.

That’s the reason for the VirtualHost section. Nothing about virtual, but it puts all the new stuff in one place and doesn’t mess up the server if you AREN’T using it ONLY for RT.

In my httpd.conf

Listen 192.168.0.1:80 # test page
Listen 192.168.0.1:8080 # RT page

#Port 80

<VirtualHost 192.168.0.1:8080>
DocumentRoot /opt/rt3/html/share
…regular stuff from the example

When you browse to the site you get port 80 and the default root, /usr/local/apache/htdocs or whatever.

Then I have a link in that index.html Request Tracker.

Don’t forget to edit RT_Siteconfig.pm and change the WebBaseURL value.
Set( $WebBaseURL , http://192.168.0.1:8080 );

You could probably swap the 80 and the 8080, that is, move the regular test page onto port 8080 and not use it, but I haven’t tried that.

Gregory L. Hering
(256) 722-6420
4807 Bradford Dr
Benchmark Electronics, Inc.
Hunvtsville, Al 35805-----Original Message-----
From: Veera_Dudala [mailto:Veera_Dudala@nipunaservices.com]
Sent: Wednesday, May 21, 2003 12:27 AM
To: rt-users@lists.fsck.com
Subject: [rt-users] error in RT execution

Hi,

I have installed RT on my machine according to instruction specified in the manual. But when I execute the index.html, it is displaying the following screen in mozilla. could you please let me know what could be the problem?.

My system configuration is

P4, 1GB RAM, 40GB HDD, 1.8 GHz processor
Redhat 9.0, Apache2 with mod_perl, RT3.0, Postgresql 7.3.2

Thanks
Veera

%# 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 of that license should have %# been provided with this software, but in any event can be snarfed %# from www.gnu.org. %# %# This work is distributed in the hope that it will be useful, but %# WITHOUT ANY WARRANTY; without even the implied warranty of %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU %# General Public License for more details. %# %# Unless otherwise specified, all modifications, corrections or %# extensions to this work which alter its source code become the %# property of Best Practical Solutions, LLC when submitted for %# inclusion in the work. %# %# %# END LICENSE BLOCK <& /Elements/Header, Title=>loc(“RT at a glance”), Refresh => $session{‘home_refresh_interval’} &> <& /Elements/Tabs, current_toptab => ‘’, Title=>loc(“RT at a glance”) &>
<& /Elements/MyTickets &>
<& /Elements/MyRequests &> <& /Elements/Quicksearch &>
<& /Elements/Refresh, Name => ‘HomeRefreshInterval’, Default => $session {‘home_refresh_interval’} &>
<%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’}; }
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

i got this problem before but i was able to figure it out.

my RT WebUI is at http://hostname/rt

instead of using VirtualHost as specified on the RT documentation, i created an Alias.
here’s my entry on httpd.conf:

Alias /rt “/opt/rt3/share/html”
<Location /rt>
AddDefaultCharset UTF-8
PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl
SetHandler perl-script
PerlHandler RT::Mason

hope this helps.

alv’n

Mike Stanczyk wrote:

Yeah, I hit this one too. I think that you have a problem
in your apache configuration.

I orginally installed RT3 to be on the root of webserver,
ie, http://demo/. I tried to move it to http://demo/rt and
started seeing wierd things including what you’re seeing.
I gave up and moved RT3 back to the root. I wanted a working
RT3 more…

On a guess, check the apache configuration for where the
location points, and check rt_siteconfig for where the root
points. It has to be blank for http://demo/ to work. Setting
the root to “/” will produce http://demo///.

Your mileage will vary.
Mike

Hi,

I have installed RT on my machine according to instruction specified in the manual. But when I execute the index.html, it is displaying the following screen in mozilla. could you please let me know what could be the problem?.

My system configuration is

P4, 1GB RAM, 40GB HDD, 1.8 GHz processor
Redhat 9.0, Apache2 with mod_perl, RT3.0, Postgresql 7.3.2

Thanks
Veera

%# 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 of that license should have %# been provided with this software, but in any event can be snarfed %# from www.gnu.org. %# %# This work is distributed in the hope that it will be useful, but %# WITHOUT ANY WARRANTY; without even the implied warranty of %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU %# General Public License for more details. %# %# Unless otherwise specified, all modifications, corrections or %# extensions to this work which alter its source code become the %# property of Best Practical Solutions, LLC when submitted for %# inclusion in the work. %# %# %# END LICENSE BLOCK <& /Elements/Header, Title=>loc(“RT at a glance”), Refresh => $session{‘home_refresh_interval’} &> <& /Elements/Tabs, curre
nt_toptab => ‘’, Title=>loc(“RT at a glance”) &>