Ссылки:
1 2 3 |
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:
1 2 3 4 5 6 7 8 |
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
$ 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] <enter> 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 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
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 -------------------- <IfModule mod_ssl.c> <VirtualHost _default_:443> # 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/ <Location /> ## Apache version < 2.4 (e.g. Debian 7.2) #Order allow,deny #Allow from all ## Apache 2.4 Require all granted </Location> <Directory "/opt/rt4/sbin"> SSLOptions +StdEnvVars </Directory> # 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
1 2 3 |
Url: https://rt.corp.example.com Username: root Password: password |
Баг mod_fcgid
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
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 ------------------------------------------------ <IfModule mod_fcgid.c> FcgidConnectTimeout 20 # Request Tracker FcgidMaxRequestLen 1073741824 <IfModule mod_mime.c> AddHandler fcgid-script .fcgi </IfModule> </IfModule> ------------------------------------------------ 2. Перезагружаем Apache. service apache2 restart |
Настройка ufw
1 2 3 4 5 6 7 8 9 10 11 |
---- Вручную ------------ 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' |