#!/Bashblog.net

Install Request Tracker on Debian 10

Categories: [Applications]
Tags: [request tracker]

Request Tracker is an excellent free and open source support desk. Written in Perl and has excellent API along with huge modules collection. Only there is one problem: it is PITA to install it. There is no clean instructions on how to do that. Hence, there is one now.

Installation on Debian 10.5

At the time there is stable version of RT5, get newest version here: https://bestpractical.com/download-page.

  1. Install required packages (note: minimum MariaDB 10.2!):

apt install build-essential apache2 libapache2-mod-fcgid mariadb-server mariadb-client libssl-dev libexpat1-dev libgnupg-interface-perl zlib1g-dev

  1. Install CPAN packages:
cpan install LWP::Protocol::https
cpan install IO::Socket::SSL
cpan install Net::SSLeay
cpan install HTML::Entities
  1. Download and compile RT:
wget https://download.bestpractical.com/pub/rt/release/rt-5.0.1.tar.gz
tar xzvf rt-*.tar.gz && cd rt-*
./configure --with-web-user=www-data --with-web-group=www-data
make testdeps
make fixdeps # Press ENTER when needed. This wil take time... Go grab a coffee
make install

Right after installation you can test it with built-in webserver: /opt/rt5/sbin/rt-server --port 8080. CTRL+C to terminate it.

Setting up Apache Web Server

  1. Edit RT's local configuration file /opt/rt5/etc/RT_SiteConfig.pm

Set($WebPath, "/");

If you want to run RT from subdir, than set it to:

Set($WebPath, "/something");

  1. Create Apache vhost file:

    <VirtualHost *:80>
            ServerName yourdomain.tld
            ServerAdmin [email protected]
    
            DocumentRoot /opt/rt5/share/html
    
            ErrorLog ${APACHE_LOG_DIR}/error.log
            CustomLog ${APACHE_LOG_DIR}/access.log combined
    
            AddDefaultCharset UTF-8
    
            ScriptAlias /rt /opt/rt5/sbin/rt-server.fcgi/
    
            <Location /rt>
                    Require all granted
                    Options +ExecCGI
                    AddHandler fcgid-script fcgi
            </Location>
    </VirtualHost>

Replace "yourdomain.tld" with your own.

  1. Enable new vhost:

a2ensite yourdomain.tld && systemctl restart apache2

Now your RT is accesible via http://yourdomain.tld.

Aftermatch

Your are not done yet. Please read RT README here https://docs.bestpractical.com/rt/5.0.1/index.html and be sure to setup:

« Previous Next »