RT problems

Hi,
I have installed RT and my apache 1.3.20 is with mod_perl 1.26
statically linked.

When I login to RT as root and click on the “Configuration” or any other
links, I get to see some code.

Here’s what I get when I click “Configuration”
<& /Admin/Elements/Header, Title => ‘RT Administration’ &> <&
/Admin/Elements/Tabs &>

and when I try click on “preferences” this is what I get…

<& /Elements/Header, Title=>“Preferences” &> <& /Elements/Tabs &> <&
/Elements/ListActions, actions => @results &>
Top of Form 1
% unless ($RT::WebExternalAuth) { <& /Elements/TitleBoxStart, title =>
‘Change password’ &> New password: <<…OLE_Obj…>> Confirm:
<<…OLE_Obj…>> <& /Elements/TitleBoxEnd &>
% } <& /Elements/TitleBoxStart, title => ‘Signature’ &> <<…OLE_Obj…>>
<<…OLE_Obj…>>

<& /Elements/TitleBoxEnd &> <& /Elements/Submit &>
Bottom of Form 1
<%INIT> my @results; if ($NewPass1) { if ($NewPass1 ne $NewPass2) { push
(@results, “Passwords did not match.”); } else { my ($val,
$msg)=$session{‘CurrentUser’}->UserObj->SetPassword($NewPass1); push
(@results, "Password: ".$msg); } } if ($Signature || $SignatureMagic) {
$Signature =~ s/(\r\n|\r)/\n/g; if ($Signature ne
$session{‘CurrentUser’}->UserObj->Signature) { my ($val,
$msg)=$session{‘CurrentUser’}->UserObj->SetSignature($Signature); push
(@results, "Signature: ".$msg); } } #A hack to make sure that session gets
rewritten. $session{‘i’}++; <%ARGS> $Signature => undef $SignatureMagic =>
undef $NewPass1 => undef $NewPass2 => undef

Why do I get this when I followed the documentation as it is?
Could any of atleast give an idea as to what could be wrong?

Thanks in Advance,
-Prasad

V S R A, Prasad (Prasad) wrote:

Hi,
I have installed RT and my apache 1.3.20 is with mod_perl 1.26
statically linked.

When I login to RT as root and click on the “Configuration” or any other
links, I get to see some code.

Here’s what I get when I click “Configuration”

[snip]


Why do I get this when I followed the documentation as it is?
Could any of atleast give an idea as to what could be wrong?

Thanks in Advance,
-Prasad

This looks as if either You haven’t configured Your webserver correctly, or
You haven’t installed Mason correctly.

H.

Harald WagenerAn der Alster 4220099 Hamburg*http://www.fcb-wilkens.com

At 14:30 25.04.2002 +0530, V S R A, Prasad (Prasad) wrote:

Hi,
I have installed RT and my apache 1.3.20 is with mod_perl 1.26
statically linked.

When I login to RT as root and click on the “Configuration” or any other
links, I get to see some code.

Here’s what I get when I click “Configuration”

<& /Admin/Elements/Header, Title => ‘RT Administration’ &> <&
/Admin/Elements/Tabs &>

and when I try click on “preferences” this is what I get…


<& /Elements/Header, Title=>“Preferences” &> <& /Elements/Tabs &> <&
/Elements/ListActions, actions => @results &>
Top of Form 1
% unless ($RT::WebExternalAuth) { <& /Elements/TitleBoxStart, title =>
‘Change password’ &> New password: <<…OLE_Obj…>> Confirm:
<<…OLE_Obj…>> <& /Elements/TitleBoxEnd &>
% } <& /Elements/TitleBoxStart, title => ‘Signature’ &> <<…OLE_Obj…>>
<<…OLE_Obj…>>

<& /Elements/TitleBoxEnd &> <& /Elements/Submit &>
Bottom of Form 1
<%INIT> my @results; if ($NewPass1) { if ($NewPass1 ne $NewPass2) { push
(@results, “Passwords did not match.”); } else { my ($val,
$msg)=$session{‘CurrentUser’}->UserObj->SetPassword($NewPass1); push
(@results, "Password: ".$msg); } } if ($Signature || $SignatureMagic) {
$Signature =~ s/(\r\n|\r)/\n/g; if ($Signature ne
$session{‘CurrentUser’}->UserObj->Signature) { my ($val,
$msg)=$session{‘CurrentUser’}->UserObj->SetSignature($Signature); push
(@results, "Signature: ".$msg); } } #A hack to make sure that session gets
rewritten. $session{‘i’}++; <%ARGS> $Signature => undef $SignatureMagic =>
undef $NewPass1 => undef $NewPass2 => undef

Why do I get this when I followed the documentation as it is?
Could any of atleast give an idea as to what could be wrong?

Thanks in Advance,
-Prasad

Did you really did all settings correct ? [and stop/start apache new]

Maybe $WebPath:
If you set up RT this way, you must also change $WebPath in config.pm

http://fsck.com/rtfm/article.html?id=2#100

Christian

This looks as if either You haven’t configured Your webserver correctly, or
You haven’t installed Mason correctly.

Here’s my httpd.conf and mason.conf…
Both Apache and HTML::Mason 1.02 had no problems while configuring. I
deliberately commented out Apache::DBI as it gives error" Can’t locate
object method “connect” via package “Apache::DBI::connect” at
/usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/DBI.pm line 416."

Include /usr/local/apache/conf/mason.conf
<VirtualHost 135.254.251.3>
ServerName exceed1.iprc.lucent.com
###PerlModule Apache::DBI
PerlFreshRestart On
Alias /rt2/ /usr/local/rt2/WebRT/html/
PerlRequire /opt/rt2/bin/webmux.pl
<Location /rt2>
SetHandler perl-script
PerlHandler RT::Mason

and here’s my mason.conf

PerlSetVar MasonCompRoot "/opt/rt2/WebRT/html"
PerlSetVar MasonDataDir "/opt/rt2/WebRT/data"
PerlModule HTML::Mason::ApacheHandler

<Directory “/opt/rt2/WebRT/html”>
<FilesMatch “(.html)$”>
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler


thanks
-Prasad

V S R A, Prasad (Prasad) wrote:

Both Apache and HTML::Mason 1.02 had no problems while configuring. I
deliberately commented out Apache::DBI as it gives error" Can’t locate
object method “connect” via package “Apache::DBI::connect” at
/usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/DBI.pm line 416."

Well. If you don’t install the required packages, it’s not
going to work very well at all, is it?

> ServerName exceed1.iprc.lucent.com > ###PerlModule Apache::DBI ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I don’t have that commented out. I don’t have a mason.conf, either. These
values are set in RT’s config.pm already and need not be specified again in
the httpd.conf.

Try the following in Yout httpd.conf (works for me):

DocumentRoot /opt/rt2/WebRT/html ServerName rt.fcb-wilkens.com ErrorLog logs/error_log_rt CustomLog logs/access_log_rt combined PerlModule Apache::DBI PerlFreshRestart On PerlRequire /opt/rt2/bin/webmux.pl SetHandler perl-script PerlHandler RT::Mason

Thanks a lot! It worked with Apache::DBI commented.

regards
-Prasad