Search Suggest

How to Install Request Tracker 4 in CentOS 5 / 6 | RHEL 5 / 6 [Part1/2]

Request Tracker is know as to RT, is a ticket-tracking system written in Perl and web based interface and RT is open source (FOSS) and distributed under the GNU General Public License.

RT is written in Perl Language and runs on the Apache and lighttd web server, is used mod_perl(Most used) or FastCGI and RT support Mysql, PostgreSQL, Oracle or SQLite databases, Also Provide the plug-ins into RT interface, which is written in Perl.



INDEX
1. Installtion & Configuration of Request Tracker [Part-1/2]
2. Post Configuration of Request Tracker [Part-2/2]

Blog Index
1. OS in preparation for RT
2. Install the extra repositories.
3. Installing the necessary package which will be use for Request Tracker.
4. Preparing PERL updates via CPAN.
5. Preparing Web and Database Services
6. Installing phpMyAdmin which manage Database.
7. Installing Request Tracker
8. Creating RT.conf file which will be used by Web Service httpd
9. Testing Request Tracker 4.x


*** Please write any Suggestion/Comment & Query in below box. ***

1. OS in preparation for RT
1.1 Enable System ETH0 to ONBOOT=yes :
# vi /etc/sysconfig/network-scripts/ifcfg-eth0

1.2 Disable firewall and SElinux :
# service iptables stop
# chkconfig iptables off
set SELINUX=disabled
# vi /etc/selinux/config
Restart system to make SELINUX changes take effect.

check SELINUX status
# sestatus

check if SSH Client is enabled
# service sshd status

If SSH Daemon is not running
# chkconfig sshd –- add
# chkconfig sshd on

2. Install the extra repositories.
Centos 5.x
# wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
# sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
Centos 6.x
# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
If disable repositories then open /etc/yum.repos.d/*.repo files and change enable=0 to 1.
# yum clean all
# yum update

3. Installing the necessary package which will be use for Request Tracker.
# yum install  rpm* nmap expect vsftpd net-snmp* ntp* subversion subversion-devel 
mysql mysql-server mysql-devel screen perl-Crypt- PasswdMD5 graphviz php-xml
php-cli php-mhash php-ldap php-devel php-pdo php-imap php-readline
php-ncurses php-soap php-snmp php-common php-mcrypt php-odbc php-mbstring
php-gd php-bcmath php php-xmlrpc php-pear php-mysql php-dba mod_perl-devel
mod_auth_mysql mod_perl mod_authz_ldap gd gd-devel gd-progs gcc*
-- exclude=gcc-java* -- exclude=gcc4-java phpmyadmin mod_fcgid perl-GD
perl-GnuPG-Interface perl-GraphViz perl-YAML
Restart System

4. Preparing PERL updates via CPAN.
4.1 Now install perl & cpan packages:
# yum install perl*
# yum install cpan

4.2 Start CPAN shell:
# perl -MCPAN -e shell

4.3 Set cpan to auto-follow dependencies by entering this in the cpan shell:
cpan[1]> o conf prerequisites_policy follow
cpan[1]> o conf commit
cpan[1]> install Bundle::CPAN

4.4 Reload CPAN and Index:
cpan[1]> reload cpan
cpan[1]> reload index

5. Preparing Web and Database Services
5.1 Edit httpd.conf to make the following changes:
# vi /etc/httpd/config/httpd.conf
- comment out
# LoadModule suexec_module modules/mod_suexec.so
- set ServerName to the IP address of the machine
ServerName 192.168.0. << **your server ip here**
- remove index.html.var from DirectoryIndex so it reads
DirectoryIndex index.html
- comment out
# AddHandler type-map var
# AddType text/html .shtml
# AddOutputFilter INCLUDES .shtml

5.2 Enanble http daemon and mysql:
# chkconfig httpd on
# chkconfig mysqld on
# service httpd start
# service mysqld start

5.3 Test daemon and web server:
#service httpd status
#service mysqld status

5.4 Test Web server(Apache)
http://Server IP Addr
You should be able to see Apache 2 Test Page powered by CentOS.


6. Installing phpMyAdmin which manage Database
6.1 we already installed phpMyAdmin from previous steps:
# yum list installed phpmyadmin

6.2 Now lets improve the security of your MySQL installation:
# /usr/bin/mysql_secure_installation

6.3 Configure phpMyAdmin.conf file
# vi /etc/httpd/conf.d/phpMyAdmin.conf


SSLRequireSSL
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
Allow from 192.168.0 << *** your server IP address here ***



6.4 Restart http service:
# service httpd restart

6.5 Test phpMyAdmin
http://Dervice IP Addr/phpMyAdmin/
Use the root password


6.6 If you wish to reset MySQL root password then follow :
# mysqladmin -u root password NEW_PASSWORD_HERE
# service mysqld restart

7. Installing Request Tracker
7.1 Download RT from http://bestpractical.com/rt/download_file.html

7.2 untar RT packages:
# tar zxvf rt-4.0.5.tar.gz 

7.3. Change extracted folder permission for root account:
# chown -R root.root rt-4.0.5 

7.4. Change directory to rt-4.0.5

7.5. Create new group and user named rt and join that new user account in rt group:
# groupadd rt
# useradd -g rt rt

7.6. configuring RT 4.0.5:
#./configure –-with-db-type=mysql –-with-db-host=localhost –-with-web-user=apache
-–with-web-group=apache –-with-rt-group=rt –-prefix=/usr/local/rt
–-enable-graphviz –-enable-gd –-enable-gpg

7.7 Run Fix Dependents script until all dependents are satisfied
# make fixdeps
if any issues when installing some dependencies perform
#cpan
cpan[1]>force install "dependency name"

7.8 Run Test Dependents script until all dependents are satisfied
# make testdeps

7.9 Install RT
# make install

8. Creating RT.conf file which will be used by Web Service httpd
8.1.Create rt.conf
#vi /etc/httpd/conf.d/rt.conf
AddDefaultCharset UTF-8
Alias /rt/NoAuth/images /usr/local/rt/share/html/NoAuth/images/
ScriptAlias /rt /usr/local/rt/sbin/rt-server.fcgi/

DocumentRoot “/usr/local/rt/share/html”
<location /rt>
Order allow,deny
Allow from all
Options +ExecCGI
AddHandler fcgid-script fcgi
<
/Location>

8.2 Modify RT_SiteConfig.pm
# vi /usr/local/rt/etc/RT_SiteConfig.pm
Set($WebPort, 443);
Set($WebPath, “/rt”);

8.3 Append users mode for rt account to group apache
# usermod -a -G rt apache

8.4 Restart web service
# service httpd restart

8.5 Initialize Database
# make initialize-database

9. Testing Request Tracker 4.0.5
http://Server ip address/rt/
Default Credentials
Username : root
Password : password ( change it asap )


Enjoy :)

Post Configuration of Request Tracker Part-2

Post Configuration of Request Tracker Part-2

*** Please write any Suggestion/Comment & Query in below box. ***

Đăng nhận xét