Installation of RT 3.4.x on CentOS 4.2
- RT is an enterprise-grade ticketing system which enables a group of people to intelligently and efficiently manage tasks, issues, and requests submitted by a community of users.
1. Start with a fresh CentOS 4.x server install.
2. Install software.
cd /etc/yum.repos.d
wget http://campus.fct.unl.pt/paulomatos/rt/repository/3.4.x/rt-3.4.x.repo
cd /tmp
yum -y update
yum -y install httpd-devel mod_ssl mysql mysqlclient10 mysql-server mysql-devel sendmail-cf perl-DBD-Pg
3. Configure and start services.
chkconfig httpd on
service httpd restart
chkconfig mysqld on
service mysqld start
mysqladmin -u root password newpass
4. Install RT.
WARNING: RT overwrites some packages from the base distribution, especially mod_perl
If your base repositories are protected via the protect base plugin, you need to also "protect" the RT repository, so it can overwrite packages from the base distribution. Furthermore it protects RT packages being overwritten by other repositories, especially perl-DBX-packages.
yum -y install rt rt-mail-dispatcher
cp /etc/rt/RT_Config.pm /etc/rt/RT_SiteConfig.pm
5. Configure RT.
vi /etc/rt/RT_SiteConfig.pm
vi /etc/httpd/conf.d/rt.conf
(You will definitely need to set RT's database password before continuing. Not doing so could be very dangerous)
6. Initialize RT's database.
/usr/sbin/rt-setup-database --action init --dba root --prompt-for-dba-password
- *** If something goes wrong you can always drop everything, by executing
/usr/sbin/rt-setup-database --action drop --dba root --prompt-for-dba-password
7. Configure RT's .procmailrc file.
vi /var/rt/home/.procmailrc
8. Setup the mail dispatcher.
cp /usr/bin/rt-mailgate /etc/smrsh/rt-mailgate
vi /etc/aliases Add lines:
rt: "|/etc/smrsh/rt-mailgate --queue general --action correspond --url http://your.host.name/"
rt-comment: "|/etc/smrsh/rt-mailgate --queue general --action comment --url http://your.host.name/"
Example of adding a queue with a space:
#rt-dev: "|/etc/smrsh/rt-mailgate --queue 'Dev Group' --action correspond --url http://your.host.name/"
#rt-dev-comment: "|/etc/smrsh/rt-mailgate --queue 'Dev Group' --action comment --url http://your.host.name/"
9. Configure Sendmail
vi /etc/mail/sendmail.mc
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')
- rebuild your sendmail.cf:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
- Add your hostname:
vi /etc/mail/local-host-names
Add line: rt.example.com
- Restart Sendmail:
service sendmail restart
10. Login to RT
login to 'http://your.host.name/'
default user = root default pass = password
set up users
grant user rights
create queues
Helpful post-install information can be found at: http://wiki.bestpractical.com/index.cgi?ItsFinallyInstalledNowWhat