Pre-requisites:
Your system should be able to send and receive email
You should have the universe repo enabled in /etc/apt/sources.list
Installing the packages;
sudo apt-get install request-tracker3.6 rt3.6-apache2 \
rt3.6-clients mysql-server apache2
The mysql-server installer will ask you to create a root password during the package configuration process. Don't forget to jot it down!
Configuring Request Tracker;
The RT configuration file located at /etc/request-tracker3.6/RT_SiteConfig.pm
vi /etc/request-tracker3.6/RT_SiteConfig.pm
Make the appropriate changes to the config file for email address, domain, database and timezone for your particular network.
Add the following two lines to the database section.
Set($DatabaseHost , ‘localhost’);
Set($DatabaseRTHost , ‘localhost’);
Here is a sample config;
Set($rtname, 'support.example.com');
Set($Organization, 'example');
Set($CorrespondAddress , 'support@example.com');
Set($CommentAddress , 'comments@example.com');
Set($Timezone , 'Australia/Melbourne'); # obviously choose what suits you
# THE DATABASE:
Set($DatabaseType, 'mysql'); # e.g. Pg or mysql
# These are the settings we used above when creating the RT database,
# you MUST set these to what you chose in the section above.
Set($DatabaseUser , 'rtadmin');
Set($DatabasePassword , 'password');
Set($DatabaseName , 'rtdb');
Set($DatabaseHost , 'localhost');
Set($DatabaseRTHost , 'localhost');
# THE WEBSERVER:
Set($WebPath , "/rt");
Set($WebBaseURL , "http://support");
1;
Configure the database
Log in to the db (you did write down the root password, right?)
mysql -u root -p
Create a database user
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX ON rtdb.* TO 'rtadmin'@'localhost' IDENTIFIED BY 'password';
Exit mysql
quit;
Configure the database;
sudo /usr/sbin/rt-setup-database-3.6 --action init --dba rtadmin --prompt-for-dba-password
This is what you should see;
Now creating a database for RT.
Creating mysql database rtdb.
Now populating database schema.
Creating database schema.
Done setting up database schema.
Now inserting database ACLs
Done setting up database ACLs.
Now inserting RT core system objects
Checking for existing system user...not found. This ap perlpears to be a new installation.
Creating system user...done.
Now inserting RT data
Creating Superuser ACL...done.
Creating groups...3.4.5.6.7.8.9.done.
Creating users...10.12.done.
Creating queues...1.2.done.
Creating ACL...2.3.done.
Creating ScripActions...1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.done.
Creating ScripConditions...1.2.3.4.5.6.7.8.9.10.done.
Creating templates...1.2.3.4.5.6.7.8.9.10.11.12.done.
Creating scrips...1.2.3.4.5.6.7.8.9.10.11.12.13.14.done.
Creating predefined searches...1.2.3.done.
Done setting up database content.
Enable the apache2 RewriteEngine
sudo ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/
Enable the apache perl module
sudo a2enmod perl
Reload apache
sudo /etc/init.d/apache2 force-reload
The Request Tracker login screen can be found at;
http://servername/rt
1 comment:
Hi Brett.
Thanks for your blog.
During the installation of RT have you changed the apache2.conf?
Can you write your apache configuration to publish the RT WebPath?
Thanks a lot.
Post a Comment