Documente Academic
Documente Profesional
Documente Cultură
complete procedure. Sources are included at the end of this article. (Last updated
Mar 12 2017). This assumes you already have the instance of Ubuntu Webserver
running on your server.
1. I’ve already gone through and figured out the package dependancies:
apt-get install build-essential mysql-server apache2 postfix mailutils
openssl libyaml libyaml-appconfig-perl openssl-dev libexpat1-dev
or
apt-get install make apache2 libapache2-mod-fcgid libssl-dev libyaml-perl
libgd-dev libgd-gd2-perl libgraphviz-perl
2. Download the latest version of RT from the author’s website, Best Practical.
gunzip and extract the tar file, cd into your home or any other created directory.
cd /home/mydirectory
wget https://download.bestpractical.com/pub/rt/release/rt.tar.gz
gunzip rt.tar.gz
tar -xvf rt.tar
4. We will be running the configure script with a number of default and explicit
options. Since we haven't defined it otherwise, our install path location will be
/opt/rt4.
5. The installation of RT requires we enter the Perl CPAN.pm shell before running
the RT dependency checker. Within the shell, we will set the configuration to
automate the majority of the module installs.
/usr/bin/perl -MCPAN -e shell
make testdeps
...
Congratulations. RT is now installed.
You must now configure RT by editing /opt/rt4/etc/RT_SiteConfig.pm.
Let's now run the following command to create the RT database and user. Enter the
MySQL root password when prompted.
sudo make initialize-database
https://rt-wiki.bestpractical.com/wiki/DebianLennyInstallGuide
$ sudo vi /etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and
port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header
to
# match this virtual host. For the default virtual host (this file)
this
# value is not decisive as it is used as a last resort host
regardless.
# However, you must set it for any further virtual host explicitly.
ServerName rt.corp.example.com:80
Redirect / https://rt.corp.example.com/
#ServerAdmin webmaster@localhost
#DocumentRoot /var/www
...
Debian: The default-ssl.conf file is named default-ssl, and also remove the .conf
extension for the rt.conf filename (e.g. rt.conf -> rt).
$ sudo cp /etc/apache2/sites-available/default-ssl.conf /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>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
...
Enable the ssl and fcgid modules. Note the fcgid module may already be enabled.
$ sudo a2enmod ssl fcgid
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Enabling module socache_shmcb.
Enabling module ssl.
See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and
create self-signed certificates.
Module fcgid already enabled
To activate the new configuration, you need to run:
service apache2 restart
RT_SiteConfig.pm file
Request Tracker is very customizable, but the following base configuration settings
should get you started.
$ sudo vi /opt/rt4/etc/RT_SiteConfig.pm
# You must restart your webserver after making changes to this file.
Set( $rtname, 'example.com');
Set( $Organization, 'corp.example.com');
Set( $Timezone, 'US/Pacific');
Set( $WebDomain, 'rt.corp.example.com');
Set( $WebPort, 443);
Set( $WebPath, '');
Restart Apache.
$ sudo service apache2 restart
* Restarting web server apache2 [
OK ]
Moment of truth
Links
1. http://binarynature.blogspot.ug/2013/10/install-request-tracker-4-on-ubu...
2. http://thomasmullaly.com/2014/11/28/request-tracker-4-dot-2-dot-9-instal...
3. http://howtoconfigure.blogspot.ug/2013/05/how-to-install-request-tracker...