Ubuntu 14.04 Request Tracker RT 4.0.22 RT for Incident Response RTIR 3.0.4
export http_proxy="http://10.x.x.x:3128"
export https_proxy="http://10.x.x.x.x:3128"
# apt-get install mysql-server mysql-client libmysqlclient-dev
# apt-get install make apache2 libapache2-mod-fcgid libssl-dev libyaml-perl libgd-dev libgd-gd2-perl libgraphviz-perl
# apt-get install libwww-perl libcss-squish-perl libmodule-versions-report-perl libcatalyst-plugin-log-dispatch-perl libregexp-common-perl libuniversal-require-perl libtext-wrapper-perl libtext-password-pronounceable-perl libtime-modules-perl liblist-moreutils-perl libscalar-util-numeric-perl libdatetime-locale-perl libtext-template-perl libhtml-scrubber-perl libcache-simple-timedexpiry-perl liblocale-maketext-lexicon-perl libdigest-whirlpool-perl libregexp-common-net-cidr-perl libtext-quoted-perl libmime-tools-perl libdevel-globaldestruction-perl liblocale-maketext-lexicon-perl libregexp-common-net-cidr-perl libdbix-searchbuilder-perl libdevel-stacktrace-perl libhtml-rewriteattributes-perl libgnupg-interface-perl libperlio-eol-perl libdata-ical-perl libtext-wikiformat-perl libhtml-mason-perl libapache-session-browseable-perl libcgi-psgi-perl libhtml-mason-psgihandler-perl libcgi-emulate-psgi-perl libconvert-color-perl liblocale-maketext-fuzzy-perl libhtml-quoted-perl libdatetime-perl libnet-cidr-perl libregexp-ipv6-perl libregexp-common-email-address-perl libipc-run3-perl libxml-rss-perl libconfig-json-perl starlet libgd-text-perl libgd-graph-perl
cd /usr/src/;
wget https://download.bestpractical.com/pub/rt/release/rt.tar.gz ;
wget https://download.bestpractical.com/pub//rt/release/rtir.tar.gz ;
adduser --system --group rt;
usermod -aG rt www-data;
tar xzvf rt.tar.gz;
cd /usr/src/rt-*
./configure --with-web-user=www-data --with-web-group=www-data --enable-graphviz --enable-gd
/usr/bin/perl ./sbin/rt-test-dependencies --verbose --with-mysql --with-fastcgi --install # install required perl modules
make testdeps # This should show all dependencies as found.
make install # populates to /opt/rt4/
make initialize-database # setup DB user and tables
/opt/rt4/sbin/rt-server --port 8080 # Default login for http://10.1.1.155:8080 is root/password
cat /etc/apache2/sites-available/rt.conf
<VirtualHost *:8081>
ServerAdmin webmaster@localhost
ServerName 10.1.1.155:8081
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 />
Require all granted
</Location>
LogLevel info
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
a2enmod fcgid
a2ensite rt
# vim /opt/rt4/etc/RT_SiteConfig.pm
...
Set( $rtname, '10.1.1.155');
Set($WebDomain, '10.1.1.155');
Set($WebPort, 8081);
...
chown www-data:www-data -R /opt/rt4/var/mason_data # file perms need correcting (bug)
service apache2 reload
cd /usr/src
tar xzvf RT-IR-3.0.4.tar.gz
cd /usr/src/RT-IR-3.0.4
apt-get install libhook-lexwrap-perl libnet-whois-ripe-perl
perl Makefile.PL # this will show only - Parse::BooleanLogic ...missing.
make # connects to CPAN and downloads
perl Makefile.PL # verify that all deps are found.
make install # this populates /opt/rt4/local/plugins/RT-IR/
make initdb
Activate the RTIR extension in the /opt/rt4/etc/RT_SiteConfig.pm file:
...
Set(@Plugins, 'RT::IR');
...
Restart the Perl CGI
service apache2 restart