Ссылки:
https://rt-wiki.bestpractical.com/wiki/InstallationGuides https://rt-wiki.bestpractical.com/wiki/DebianSqueezeInstallGuide https://binarynature.blogspot.com/2013/10/install-request-tracker-4-on-ubuntu-server.html
Установка пакетов на ubuntu:
sudo ufw disable sudo apt-get update && sudo apt-get dist-upgrade sudo apt-get install ntp sudo apt-get install make apache2 libapache2-mod-fcgid libssl-dev libyaml-perl libgd-dev libgd-gd2-perl libgraphviz-perl sudo apt-get install mysql-server mysql-client libmysqlclient-dev sudo mysql_secure_installation sudo adduser --system --group rt sudo usermod -aG rt www-data
Установка RT
$ cd $ wget http://download.bestpractical.com/pub/rt/release/rt.tar.gz $ tar xf rt.tar.gz -C /tmp $ cd /tmp/rt-* ./configure --with-web-user=www-data --with-web-group=www-data --enable-graphviz --enable-gd cpan sites for you? (This means connecting to the Internet) [yes]cpan[1]> o conf prerequisites_policy follow cpan[2]> o conf build_requires_install_policy yes cpan[3]> o conf commit cpan[4]> q make testdeps make fixdeps make testdeps cpan install -f GnuPG::Interface make testdeps make install make initialize-database
Настройка веб сервера:
1. Закоментировать строчки sudo vi /etc/apache2/sites-available/000-default.conf ---------------------- #ServerAdmin webmaster@localhost #DocumentRoot /var/www --------------------- 2. Скопируем конфиг cp /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-available/rt.conf 3. Настраиваем vi /etc/apache2/sites-available/rt.conf --------------------# Request Tracker ServerName rt.corp.example.com:443 AddDefaultCharset UTF-8 DocumentRoot /opt/rt4/share/html Alias /NoAuth/images/ /opt/rt4/share/html/NoAuth/images/ ScriptAlias / /opt/rt4/sbin/rt-server.fcgi/ ## Apache version < 2.4 (e.g. Debian 7.2) #Order allow,deny #Allow from all ## Apache 2.4 Require all granted SSLOptions +StdEnvVars # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the loglevel for particular # modules, e.g. #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined ... -------------------- 4. Включаем мод fcgid, проверяем конфиг, пере запускаем apache a2enmod ssl fcgid apachectl configtest service apache2 restart 5. Редактируем файл vi /opt/rt4/etc/RT_SiteConfig.pm -------------------------------- Set( $rtname, 'example.com'); Set( $Organization, 'corp.example.com'); Set( $Timezone, 'US/Pacific'); Set( $WebDomain, 'rt.corp.example.com'); Set( $WebPort, 443); Set( $WebPath, ''); -------------------------------- 6. Пере запускаем apache service apache2 restart
Вход, пароль по умолчанию, default password
Url: https://rt.corp.example.com Username: root Password: password
Баг mod_fcgid
WARNING: Before mod_fcgid 2.3.6, the maximum request size was 1GB. Starting in 2.3.6, this is now 128Kb. This is unlikely to be large enough for any RT install that handles attachments. 1. Редактируем: vi /etc/apache2/mods-available/fcgid.conf ------------------------------------------------FcgidConnectTimeout 20 # Request Tracker FcgidMaxRequestLen 1073741824 ------------------------------------------------ 2. Перезагружаем Apache. service apache2 restartAddHandler fcgid-script .fcgi
Настройка ufw
---- Вручную ------------ sudo ufw enable sudo ufw allow 22/tcp sudo ufw allow 80/tcp sudo ufw allow 443/tcp sudo ufw status numbered ------ Авто ------------ sudo ufw enable sudo ufw status verbose sudo iptables -S | grep -i '\-j.accept'