[rt-users] links xref as if WebBaseURL had been set to null, CentOS 4.2, rt-3.4.5-1
Hasan Muhammad
hmuhammad722 at yahoo.com
Mon Jan 30 13:33:54 EST 2006
--then, after navigating to a private (local) ip and successfully logging on to...
http://rt.test-network.us
...all links xref as if WebBaseURL had been set to null, for example...
Preferences links to...
http://User/Prefs.html
...versus...
http://rt.test-network.us/User/Prefs.html
CentOS 4.2server
rt-3.4.5-1
===========================================================================================
--Setup on Centos 4.2 Server per...
http://wiki.bestpractical.com/index.cgi?RPMInstall
...using (see INSTALLATION PROCEDURE below)...
yum install perl-DBD-Pg rt rt-mail-dispatcher mysql-server lynx
--then after making local configuration changes (see FILE CHANGES and INSTALLATION PROCEUDURE
below)...
/usr/sbin/rt-setup-database --action init --dba root --dba-password contribs.org
...results in error message...
Possible unintended interpolation of @test in string at /etc/rt/RT_SiteConfig.pm line 34.
...and...
service httpd start
...results in error message...
Starting httpd: No root path(s) specified at /usr/bin/webmux.pl line 98
--then, after navigating to a private (local) ip and successfully logging on to...
http://rt.test-network.us
...all links xref as if WebBaseURL had been set to null, for example...
Preferences links to...
http://User/Prefs.html
...versus...
http://rt.test-network.us/User/Prefs.html
===========================================================================================
--INSTALLATION PROCEDURE
*** install from repository ***
0.-setup-from-rt-repo.sh
#!/bin/bash
yum update
wget -nc -nd -S \
http://campus.fct.unl.pt/paulomatos/rt/repository/3.4.x/rt-3.4.x.repo
/bin/mv --force rt-3.4.x.repo /etc/yum.repos.d/
yum install perl-DBD-Pg rt rt-mail-dispatcher mysql-server lynx
exit 0
1.-backup-files-before-editing.sh
#!/bin/bash
/bin/cp -p /etc/aliases{,.orig}
/bin/cp -p /etc/hosts{,.orig}
/bin/cp -p /etc/rt/RT_SiteConfig.pm{,.orig}
/bin/cp -p /etc/httpd/conf.d/rt.conf{,.orig}
/bin/cp -p /etc/httpd/conf/httpd.conf{,.orig}
/bin/cp -p /etc/sysconfig/httpd{,.orig}
/bin/cp -p /etc/mail/sendmail.mc{,.orig}
/bin/cp -p /etc/mail/virtusertable{,.orig}
/bin/cp -p /etc/mail/local-host-names{,.orig}
/bin/cp -p /var/rt/home/.procmailrc{,.orig}
exit 0
*** make file changes (make manual edits per FILE CHANGES listed below) ***
...then run...
*** incorporate file changes (run following scripts) ***
3.-setup-users-sendmail-etc.sh
#!/bin/bash
pushd /etc/mail
make
popd
service sendmail restart
adduser -u 0 -o -g 0 -d /root -s /bin/bash -c admin admin
echo contribs.org | passwd --stdin admin
passwd -S admin
ln -s /usr/bin/rt-mailgate /etc/smrsh
newaliases
exit 0
4.-setup-mysql-rt-database.sh
#!/bin/bash
service mysqld start
mysqladmin -u root password contribs.org
chkconfig mysqld on
chkconfig --list | grep mysqld
/usr/sbin/rt-setup-database --action init \
--dba root --dba-password contribs.org
# /usr/sbin/rt-setup-database --action init \
# --dba root --prompt-for-dba-password
exit 0
--FILE CHANGES: MADE AFTER BASE CENTOS 4.2 SERVER INSTALL...
--- /etc/hosts.orig 2006-01-20 15:26:15.000000000 -0500
+++ /etc/hosts 2006-01-20 00:23:45.000000000 -0500
+192.168.62.21 rt.test-network.us rt
+192.168.62.21 www.test-network.us www
--- /etc/aliases.orig 2006-01-20 15:17:05.000000000 -0500
+++ /etc/aliases 2006-01-20 15:15:07.000000000 -0500
+
+# specify a program to run when mail comes to address correspond
+correspond: "|/usr/bin/rt-mailgate --queue General --action correspond --url
http://rt.test-network.us/
--- /etc/sysconfig/httpd.orig 2006-01-05 13:34:38.000000000 -0500
+++ /etc/sysconfig/httpd 2006-01-19 11:31:49.000000000 -0500
-#OPTIONS=
+OPTIONS=-DPerlStatus
--- /etc/httpd/conf/httpd.conf.orig 2006-01-05 13:34:38.000000000 -0500
+++ /etc/httpd/conf/httpd.conf 2006-01-19 13:17:41.000000000 -0500
+ServerName www.test-network.us:80
--- /etc/mail/local-host-names.orig 2005-02-21 11:14:29.000000000 -0500
+++ /etc/mail/local-host-names 2006-01-20 14:38:25.000000000 -0500
+rt.test-network.us
+www.test-network.us
--- /var/rt/home/.procmailrc.orig 2004-05-10 14:52:51.000000000 -0400
+++ /var/rt/home/.procmailrc 2006-01-17 04:52:04.000000000 -0500
-MAILDOMAIN=rt.yourdomain.com
+MAILDOMAIN=rt.test-network.us
-RT_URL="http://rt.yourdomain.com/"
+RT_URL="http://rt.test-network.us/"
--- /etc/httpd/conf.d/rt.conf.orig 2006-01-12 23:04:31.000000000 -0500
+++ /etc/httpd/conf.d/rt.conf 2006-01-19 23:04:12.000000000 -0500
-<VirtualHost your.ip.address:80>
- ServerName your.rt.server.hostname
+<VirtualHost 192.168.62.21:80>
+ ServerName rt.test-network.us
-<VirtualHost your.ip.address:443>
- ServerName your.rt.server.hostname
+<VirtualHost 192.168.62.21:443>
+ ServerName rt.test-network.us
--- /etc/rt/RT_SiteConfig.pm.orig 2006-01-12 23:04:30.000000000 -0500
+++ /etc/rt/RT_SiteConfig.pm 2006-01-19 23:39:33.000000000 -0500
-Set( $rtname, 'example.com');
+Set($rtname, "network_us");
+Set($Organization , "rt.test-network.us");
+Set($Timezone, 'US/Eastern');
+Set($WebBaseURL, "http://rt.test-network.us");
+Set($WebPath, "/");
+Set($WebURL , $WebBaseURL . $WebPath . "/");
+
+Set($CorrespondAddress, 'correspond at rt.test-network.us');
+Set($CommentAddress, 'comment at rt.test-network.us');
+Set($SendmailPath, "/usr/sbin/sendmail");
+Set($SendmailArguments , "-oi -t");
+
+Set($LogToSyslog, '');
+Set($LogToFile, 'debug');
+Set($LogDir, '/var/log/rt');
+Set($LogToFileNamed , "rt.log");
+
+Set($OwnerEmail, "admin at test-network.us");
+Set($MyTicketsLength, 20);
+
+Set($DatabasePassword , 'contribs.org');
+
+Set($AmbiguousDayInPast , 0);
+
1;
--- /etc/mail/sendmail.mc.orig 2005-02-21 11:14:29.000000000 -0500
+++ /etc/mail/sendmail.mc 2006-01-17 04:27:10.000000000 -0500
-DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
+dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
--- /etc/mail/virtusertable.orig 2005-02-21 11:14:29.000000000 -0500
+++ /etc/mail/virtusertable 2006-01-17 04:56:41.000000000 -0500
+#
+# This will handle all aliases for all queues. Note that this implies
+# that all queue address are @rt.test-network.us
+#
+# Here put your exceptions. Next one made this domain RFC822 compliant.
+postmaster at rt.test-network.us postmaster
+
+# leave root as 'root'
+root at rt.test-network.us root
+
+# everything else goes to user 'rt'
+ at rt.test-network.us rt
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the rt-users
mailing list