The Request Tracker package in the AUR has been built with Apache, MySQL, and mod_perl in mind. This section will help create a new RT server based on these specs. RT also supports other database types, web servers, and Perl engines that are not explained here (please consult the RT documentation).
Install RT Package
Build and install the RT package from the AUR here. There are 70 packages from the AUR that need to be built for RT alongside the official packages. If your server is x86_64, get a convenient XZ file that contains all of them in a Pacman-installable format here.
Add this line to your LoadModule section in /etc/httpd/conf/httpd.conf:
LoadModule perl_module modules/mod_perl.so
Then, add this to the bottom of httpd.conf also:
AddDefaultCharset UTF-8 DocumentRoot "/opt/rt4/share/html" <Location /rt> Order allow,deny Allow from all SetHandler modperl PerlResponseHandler Plack::Handler::Apache2 PerlSetVar psgi_app /opt/rt4/sbin/rt-server </Location> <Perl> use Plack::Handler::Apache2; Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server"); </Perl>
Of course, you will want to restart httpd after you make these changes.
Creating a MySQL database
A MySQL server needs to be installed and running. Create a database for RT by running the following:
$ /opt/rt4/sbin/rt-setup-database --action init --prompt-for-dba-password
Edit /opt/rt4/etc/RT_SiteConfig.pm when making any changes to Request Tracker. RT_Config.pm is a static configuration file that is bound to change. However, it does contain all the legal settings in the file, so you may want to glance over it to get an idea of what's available and how the syntax is structured.
At the very least, you will want to change your database password by adding a line similar to this in RT_SiteConfig.pm: