service mysqld start
service httpd start
Make sure the httpd & mysqld service start at boot
chkconfig httpd on
chkconfig mysqld on
RT Installation
tar –zxvf rt-3.6.6-bundle.tar.
Set repository -set repository if you are using rhel 5
vi /etc/yum/repos.d/localrt.repo
[rhel51-rt3] name=RT 3.6.6 for Red Hat Enterprise Linux 5.1 baseurl=file:///path/to/your/extracted/files enabled=1 gpgcheck=0
Install rt3 and all dependencies with yum
yum install rt3
RT Post Setup
Now that rt is installed you may want to customize your setup. Inorder to do that you will need to know where your files are located. This package changes the file locations from the fedora6 version of rt,and differs greatly from the BP default
Customize /etc/rt3/RT_SiteConfig.pm
You may find a need to change the site configuration of rt from time to time. For example to point rt to a remote database, configure external authentication, or set other configurable options. Below are several options that I like to set, but keep in mind these may differ greatly from a standard configuration.
Set($WebExternalAuth , '1');
Set($WebFallbackToInternalAuth , '1');
Set($OldestTransactionsFirst, 0);
Set($MyTicketsLength, 25);
Set($MyRequestsLength, 25);
Set($WebBaseURL , "http://rt.blogspot.com");
Set($WebPath , ""); Set($WebImagesURL , $WebPath . "/NoAuth/images");
Set($rtname, 'blogspot.com');
Set($DatabaseHost , 'db.blgspot.com');
Set($DatabaseRTHost , 'localhost');
Set($DatabaseUser, 'dbuser');
Set($DatabasePassword , 'dbpassword');
Set($DevelMode, '0');
Set($ShowTransactionImages, 0);
Set($SuppressInlineTextFiles, true);
Initialize the RT database
rt-setup-databse --action init
Configure sendmail
Symlink rt-mailgate to /etc/smrsh, and create aliases to use RT:
ln -s /opt/rt3/bin/rt-mailgate /etc/smrsh/rt-mailgate
Edit /etc/aliases and add lines:
rt: "|/etc/smrsh/rt-mailgate --queue general --action correspond --url http://blogspot.com/"
rt-comment: “|/etc/smrsh/rt-mailgate –queue general –action comment –url http://blogspot.com/”
Edit /etc/mail/sendmail.mc and change the line:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
to read:
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA’)
Edit /etc/dovecot.conf and change the line:
protocols = imap,imaps,pop3,pop3s
Rebuild your sendmail.cf:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
Add rt server alias to /etc/mail/local-host-names:
rt.blogspot.com
Restart sendmail:
service sendmail restart
Test your new RT instance
Login to your new RT instance and test things out:
Default URL : http://blogspot.com/rt3/
Default User: root
Default password-password
great article. I would love to follow you on twitter.
ReplyDeleteonline-linux.blogspot.com; You saved my day again.
ReplyDeletehow to use RT ticketing system?
ReplyDeleteplz explain how to use it.
thanxxxx