RT 3.0.6 installation issues

Hi Folks,

I’m trying to install RT 3.0.6 on a Redhat Linux 9 box. RT is configured
with Fastcgi 2.4.0 and mysql 4.0.16.
I’m using apache 2.0.48 and perl 5.8.1. The test shows that all
dependencies has been satisfied. I added the following Virtual host to my
httpd.conf.

<VirtualHost >
ServerAdmin mma@securify.com
DocumentRoot /opt/rt3/share/html
ServerName rt3-dev.securify.com
RedirectMatch permanent(.
)/$ http://10.6.10.78/index.html
AddDefaultCharset UTF-8
Alias /NoAuth/images/ /opt/rt3/share/html/NoAuth/images/

AddHandler fastcgi-script fcgi
FastCgiIpcDir /tmp/rt-fcgi
FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 3600
ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/

I believe I did everything correctly but when I go to the site. I am
getting this.

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 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’}; }

When I do a make install I noticed that some of the files that it was
looking to copy did not exist. Has anyone else run into a similar
problem??? Any help, suggestions or advice would be appreciated.

Thx,

  • Michael

----Snip from make install output—
cp -rp ./html/* //opt/rt3/share/html
cp -rp ./local/html/* //opt/rt3/local/html
cp: cannot stat ./local/html/*': No such file or directory make: [local-install] Error 1 (ignored) cp -rp ./local/po/* //opt/rt3/local/po cp: cannot stat ./local/po/': No such file or directory
make: [local-install] Error 1 (ignored)
cp -rp ./local/etc/
//opt/rt3/local/etc
cp: cannot stat `./local/etc/*': No such file or directory
make: [local-install] Error 1 (ignored)
----Snip---------------------------------

Complete make install output below…

[root@rt3-dev rt-3-0-6]# make install
mkdir -p //opt/rt3/etc
cp etc/RT_Config.pm //opt/rt3/etc/RT_Config.pm
[ -f //opt/rt3/etc/RT_SiteConfig.pm ] || cp etc/RT_SiteConfig.pm
//opt/rt3/etc/RT_SiteConfig.pm
chgrp rt //opt/rt3/etc/RT_Config.pm
chown root //opt/rt3/etc/RT_Config.pm
chgrp rt //opt/rt3/etc/RT_SiteConfig.pm
chown root //opt/rt3/etc/RT_SiteConfig.pm
Installed configuration. about to install rt in /opt/rt3
mkdir -p //opt/rt3/var/log
mkdir -p //opt/rt3/var/mason_data
mkdir -p //opt/rt3/var/mason_data/cache
mkdir -p //opt/rt3/var/mason_data/etc
mkdir -p //opt/rt3/var/mason_data/obj
mkdir -p //opt/rt3/var/session_data
mkdir -p //opt/rt3/share/html
mkdir -p //opt/rt3/local/html
mkdir -p //opt/rt3/local/etc
mkdir -p //opt/rt3/local/po
[ -d //opt/rt3/lib ] || mkdir //opt/rt3/lib
cp -rp lib/* //opt/rt3/lib
mkdir -p //opt/rt3/etc
cp -rp
etc/acl.*
etc/initialdata
etc/schema.*
//opt/rt3/etc
mkdir -p //opt/rt3/bin
chmod +x bin/rt-mailgate
bin/rt-crontool
cp -rp
bin/rt-mailgate
bin/mason_handler.fcgi
bin/mason_handler.scgi
bin/mason_handler.svc
bin/rt
bin/webmux.pl
bin/rt-crontool
//opt/rt3/bin
mkdir -p //opt/rt3/sbin
chmod +x sbin/rt-setup-database
sbin/rt-test-dependencies
cp -rp
sbin/rt-setup-database
sbin/rt-test-dependencies
//opt/rt3/sbin
[ -d //opt/rt3/share/html ] || mkdir //opt/rt3/share/html
cp -rp ./html/* //opt/rt3/share/html
cp -rp ./local/html/* //opt/rt3/local/html
cp: cannot stat ./local/html/*': No such file or directory make: [local-install] Error 1 (ignored) cp -rp ./local/po/* //opt/rt3/local/po cp: cannot stat ./local/po/': No such file or directory
make: [local-install] Error 1 (ignored)
cp -rp ./local/etc/
//opt/rt3/local/etc
cp: cannot stat `./local/etc/*': No such file or directory
make: [local-install] Error 1 (ignored)

RT 3.0.0 - RT 3.0.2 would accidentally create a file instead of a dir

[ -f //opt/rt3/share/doc ] && rm //opt/rt3/share/doc
make: [doc-install] Error 1 (ignored)
[ -d //opt/rt3/share/doc ] || mkdir //opt/rt3/share/doc
cp -rp ./README //opt/rt3/share/doc

Make the libraries readable

chmod 0755 //opt/rt3
chown -R root //opt/rt3/lib
chgrp -R bin //opt/rt3/lib
chmod -R u+rwX,go-w,go+rX //opt/rt3/lib
chmod 0755 //opt/rt3/bin
chmod 0755 //opt/rt3/bin
chmod 0755 //opt/rt3/etc
chmod 0500 //opt/rt3/etc/*
#TODO: the config file should probably be able to have its

owner set seperately from the binaries.

chown -R root //opt/rt3/etc
chgrp -R rt //opt/rt3/etc
chmod 0550 //opt/rt3/etc/RT_Config.pm
chmod 0550 //opt/rt3/etc/RT_SiteConfig.pm

Make the interfaces executable and setgid rt

chown root //opt/rt3/bin/webmux.pl //opt/rt3/bin/rt-mailgate
//opt/rt3/bin/rt //opt/rt3/bin/rt-crontool //opt/rt3/bin/mason_handler.fcgi
//opt/rt3/bin/mason_handler.svc
chgrp rt //opt/rt3/bin/webmux.pl //opt/rt3/bin/rt-mailgate //opt/rt3/bin/rt
//opt/rt3/bin/rt-crontool //opt/rt3/bin/mason_handler.fcgi
//opt/rt3/bin/mason_handler.svc
chmod 0755 //opt/rt3/bin/webmux.pl //opt/rt3/bin/rt-mailgate
//opt/rt3/bin/rt //opt/rt3/bin/rt-crontool //opt/rt3/bin/mason_handler.fcgi
//opt/rt3/bin/mason_handler.svc
chmod g+s //opt/rt3/bin/mason_handler.fcgi //opt/rt3/bin/mason_handler.svc

Make the web ui readable by all.

chmod -R u+rwX,go-w,go+rX //opt/rt3/share/html
//opt/rt3/local/html
//opt/rt3/local/po
chown -R root //opt/rt3/share/html
//opt/rt3/local/html
chgrp -R bin //opt/rt3/share/html
//opt/rt3/local/html

Make the web ui’s data dir writable

chmod 0770 //opt/rt3/var/mason_data
//opt/rt3/var/session_data
chown -R apache //opt/rt3/var/mason_data
//opt/rt3/var/session_data
chgrp -R apache //opt/rt3/var/mason_data
//opt/rt3/var/session_data
Congratulations. RT has been installed.

You must now configure RT by editing /opt/rt3/etc/RT_SiteConfig.pm.

(You will definitely need to set RT’s database password before continuing.
Not doing so could be very dangerous)

After that, you need to initialize RT’s database by running
‘make initialize-database’
[root@rt3-dev rt-3-0-6]# ls -la ./local/etc/*
ls: ./local/etc/: No such file or directory
[root@rt3-dev rt-3-0-6]# ls -R ./local/

ls: ./local/*: No such file or directory
[root@rt3-dev rt-3-0-6]# cd ./local
-bash: cd: ./local: No such file or directory

Ma, Michael wrote:

RedirectMatch permanent(.*)/$ http://10.6.10.78/index.html

That looks bogus.

<IfModule mod_fastcgi.c>
    AddHandler fastcgi-script fcgi
    FastCgiIpcDir /tmp/rt-fcgi
    FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 3600
    ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/
</IfModule>

I believe I did everything correctly but when I go to the site. I am
getting this.

BEGIN LICENSE BLOCK %# %# Copyright (c) 1996-2003 Jesse Vincent %# %#

I’m guessing mod_fastcgi.c isn’t loaded. If you comment out the
and lines, and do an apachectl configtest,
it should complain. If that’s the case, make sure mod_fastcgi is
loaded.

When I do a make install I noticed that some of the files that it was
looking to copy did not exist. Has anyone else run into a similar
problem??? Any help, suggestions or advice would be appreciated.

“local” files should not exist in the distro. That’s expected behaviour.

cp: cannot stat ./local/html/*': No such file or directory cp: cannot stat ./local/po/': No such file or directory
cp: cannot stat `./local/etc/
': No such file or directory

Phil Homewood, Systems Janitor, http://www.SnapGear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances