Request Tracker



Yüklə 215,29 Kb.
səhifə3/9
tarix14.10.2017
ölçüsü215,29 Kb.
#5024
1   2   3   4   5   6   7   8   9

3.9 Download RT


Download and configure RT

wget http://download.bestpractical.com/pub/rt/release/rt.tar.gz

gunzip rt.tar.gz

tar -xvf rt.tar

cd rt-3.6.5/



NOTE: following RT related and perl related steps are to be done in rt-3.6.5 directory

3.10Installing RT bundle


./configure --with-web-user=apache --with-web-group=apache --with-fastcgi --with-mysql

Enter in cpan prompt as:

cpan

On cpan prompt install following packages and then finally RT bundle

cpan> install MIME::Base64

cpan> install IO::File

cpan> install MIME::Entity

cpan> install Log::Dispatch

cpan> install Crypt::SSLeay

cpan> install Bundle::RT

cpan> quit


NOTE: while downloading these packages it will ask few questions which has default answer yes or no shown in brackets as [yes] or [no]. Just hit enter on these questions It may happen that CPAN will show few missing dependencies and may terminate the process in that case we need to get the list of missing dependencies and install them one by one manually. This can be done as:

On Linux prompt give command:



perl sbin/rt-test-dependencies --with-mysql --with-fastcgi --install

This will list missing dependencies as:

Text::Quoted 2.02 ...MISSING

DBIx::SearchBuilder 1.48 ...MISSING

Date::Format ...MISSING

Text::Autoformat ...MISSING

CGI::Fast ...MISSING

FCGI ...MISSING

HTML::FormatText ...MISSING

XML::RSS 1.05 ...MISSING



To fix them enter cpan prompt by typing 'cpan' command on linux prompt and then

Install them one by one. E.g.



$> cpan

cpan> install Text::Quoted

cpan> install DBIx::SearchBuilder


Once this is done from Linux prompt give following command to ensure that all MISSING dependencies are fixed

perl sbin/rt-test-dependencies --with-mysql --with-fastcgi --install

It should display a list of dependencies and status as: 'Everything was found'

3.11Modifying RT config files


Edit RT config file RT_SiteConfig.pm and replace existing line with following lines:

cd /opt/rt3/etc/

vi RT_SiteConfig.pm



Add following options in the file as:

Set($rtname, 'rt3.itaas.local');

Set($Organization , "itaas.com");

Set($DatabasePassword , 'rt3_pass');

Set($OwnerEmail , 'pushkar@itaas.com');

Set($WebBaseURL , "http://localhost:80");

Set($WebPath , "");

Set($LoopsToRTOwner , 0);

Set($ParseNewMessageForTicketCcs , 1);

Set($RTAddressRegexp , '^rt\@rt3.itaas.local$');

Set($OldestTransactionsFirst, '0');

Set($UseFriendlyFromLine , 0);

1;


Create and initialize RT database in mysql as:

make initialize-database

It asks for password. Give the password given above when called 'mysqladmin'. In this case it was set as: rootpassword

3.12Configuring Apache


Now edit and configure apache configure file as:

cd /etc/httpd/conf

vi httpd.conf



At the end add following lines:

NameVirtualHost *:80

ServerAdmin root

ServerName localhost

DocumentRoot /opt/rt3/share/html/

AddDefaultCharset UTF-8

# Adding the following for RT (the ticket tracker)

AddHandler fastcgi-script .fcgi

Options FollowSymLinks ExecCGI

AllowOverride None

# Pass through requests to for noauth

Alias /NoAuth/images /opt/rt3/share/html/NoAuth/images

ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/




3.13Configuring mails


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 at end of the file:

rt: "|/etc/smrsh/rt-mailgate --queue general --action correspond --url http://rt3.itaas.local/"

rt-comment: "|/etc/smrsh/rt-mailgate --queue general --action comment --url http://rt3.itaas.local/"

rt: "|/etc/smrsh/rt-mailgate --queue ecs_support --action correspond --url http://rt3.itaas.local/"

rt-comment: "|/etc/smrsh/rt-mailgate --queue ecs_support --action comment --url http://rt3.itaas.local/"

rt: "|/etc/smrsh/rt-mailgate --queue vod_support --action correspond --url http://rt3.itaas.local/"

rt-comment: "|/etc/smrsh/rt-mailgate --queue vod_support --action comment --url http://rt3.itaas.local/"



Configure Sendmail

edit /etc/mail/sendmail.mc

Find line:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

Change it to have 'dnl' at start to read as:

dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

Rebuild your sendmail.cf:

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

add rt server alias to /etc/mail/local-host-names:

Add line:



rt.itaas.com

Add mail server name in hosts file as:

vi /etc/hosts

Add line at the end

127.0.0.1 rt3.itaas.local

192.168.20.70 itaas.com



Now add mail server in resolv.conf as:

vi /etc/mail/resolv.conf

add line at the 'start' of the list as:

nameserver 192.168.20.70


Restart sendmail and network services

service sendmail restart

service network restart



Yüklə 215,29 Kb.

Dostları ilə paylaş:
1   2   3   4   5   6   7   8   9




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə