Pull to refresh

Установка RequestTracker на Ubuntu

Доброго времени суток, уважаемый хабраюзер.
Хотел бы поделиться заметкой по установке тикет системы на Linux сервер управляемый ОС Ubuntu. Перейдём от слов к делу:
apt-get install build-essential
apt-get install mysql-server
apt-get install apache2
apt-get install libapache2-mod-perl2
apt-get install lynx
apt-get install ncftp
apt-get install libgd2-xpm-dev
apt-get install graphviz
/usr/bin/perl -MCPAN -e shell
install Bundle::CPAN
install Bundle::CPAN
install GraphViz

Переходим в каталог с только скачанной свежей системы RT, конфигурируем, тестируем и устанавливаем.

cd /tmp/rt
./configure --with-db-type=mysql --enable-graphviz --enable-gd --with-web-handler=modperl2
make testdeps
make fixdeps
make install

Настройка Request Tracker (RT_SiteConfig.pm)

Set($rtname, 'rt.test.example.ru');
Set($Organization , 'test.example.ru');
Set($WebBaseURL, 'http://rt.test.example.ru/rt');
Set($WebPath, '/rt');
Set($WebURL, 'http://rt.test.example.ru/rt/');
Set($Timezone, 'Europe/Moscow');
Set($CorrespondAddress, 'rt@rt.test.example.ru');
Set($CommentAddress, 'rt-comment@rt.test.example.ru');
Set($RTAddressRegexp, '^rt\@rt.test.example.ru$');
Set($EmailOutputEncoding , 'utf-8');
Set($CanonicalizeRedirectURLs, 'true');
Set($ChartFont, '/opt/rt3/bin/arial.ttf');
$DatabasePassword = 'supermysql';

make initialize-database

Настройка Apache (Виртуальные хосты)


   Alias /rt/ /opt/rt3/share/html/
   <Directory /opt/rt3/share/html/>
       Order allow,deny
       Allow from all
   </Directory>

	PerlRequire /opt/rt3/bin/webmux.pl

   <Location /rt/>
       AddDefaultCharset UTF-8
       SetHandler perl-script
       PerlHandler RT::Mason
   </Location>

Настройки PostFix (Алиасы)


rt:	"|/opt/rt3/bin/rt-mailgate --queue general --action correspond --url http://rt.test.example.ru/rt"
rt-comment:	"|/opt/rt3/bin/rt-mailgate --queue general --action comment --url http://rt.test.example.ru/rt"

Настройки PostFix (Часть главного конфига)


myhostname = rt.test.example.ru
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname localhost.$mydomain localhost $mydomain
relayhost = smtp.relay.example.ru
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +

На этом всё. Базовая настройка завершена.
Tags:
Hubs:
You can’t comment this publication because its author is not yet a full member of the community. You will be able to contact the author only after he or she has been invited by someone in the community. Until then, author’s username will be hidden by an alias.