Request Tracker 3.8 安装到Ubuntu server 9.10 的步骤

诸葛雅达
2023-12-01
[size=x-small]HowTo Install Request-Tracker 3.8 on ubuntu 9.10 and MySQL[/size]

This Howto will explain how to install request-tracker on a clean Ubuntu 9.10 Server install. It is tested on Ubuntu 9.10 and might work with slight modifications on other versions or Debian based distributions.

It also installs the additional services required for Request-Tracker:

* Mysql - Database to Store the RT information.
* Postfix - Email Server (for sending emails)
* Apache2 - Web Server

Logon as a user with the right to use the sudo command.

Make sure you have the latest software

sudo apt-get update
sudo apt-get upgrade

[b]Install MySql with perl interface[/b]

sudo apt-get install mysql-server libdbd-mysql-perl

Answer Y

Type password for root in mysql

Repeat password for root in mysql
[b]Install the Web server with specific files for request-tracker3.8[/b]

sudo apt-get install rt3.8-apache2 rt3.8-db-mysql

Answer Y

*In install request-tracker3.8(I found Ubuntu server 9.10's packet don't include rt3.8-db-mysql),if don't install it,create the mysql Database will create sqlite3's database,don't create mysql's.)*

[b]Install mail server (SMTP Server)[/b]

sudo apt-get install postfix

Choose "Internet Site" in the install dialogue.

Write the name of the local server
[b]Install Request Tracker 3.8 server and client[/b]

sudo apt-get install request-tracker3.8 rt3.8-clients

Answer Y

Write rt.domainname

Answer "Yes" to Handle RT_SiteConfig.pm permissions?

Answer “Yes” to Configure database for request-tracker3.8 with dbconfig-common?

* RT default install DIR is /usr/share/request-tracker3.8/html *

[b]Configure Request Tracker 3.8[/b]
Make backup of configuration file.

sudo cp /etc/request-tracker3.8/RT_SiteConfig.pm /etc/request-tracker3.8/RT_SiteConfig.pm.orig

[b]Edit Request Tracker configuration file.[/b]

sudo vim /etc/request-tracker3.8/RT_SiteConfig.pm


#---your file should look something like this ----------------
# vim /etc/request-tracker3.8/RT_SiteConfig.pm
#TIMEZONE – takes the timezone from linux installation.
my $zone = "UTC";
$zone='/bin/cat /etc/timezone'
if -f "/etc/timezone";
chomp $zone;
Set($Timezone, $zone);
# THE BASICS:
Set($rtname, 'RT3.example.com');
Set($Organization, 'example.com');
Set($CorrespondAddress , 'rt@example.com');
Set($CommentAddress , 'rt-comment@example.com');
# THE WEBSERVER:
Set($WebPath , "/rt");
Set($WebBaseURL , "http://RT3.example.com");
# THE DATABASE:
Set($DatabaseType, 'mysql');
Set($DatabaseHost, 'localhost');
Set($DatabasePort, '');
Set($DatabaseUser , 'rtuser');
Set($DatabasePassword , 'wibble');
Set($DatabaseName, 'rtdb');
#--------------------------------------------------------------------------------

[b]Create database[/b]

sudo /usr/sbin/rt-setup-database --action init --dba root --prompt-for-dba-password

This should be the result:

Working with:

Type: mysql

Host: localhost

Name: rtdb

User: rtuser

DBA: root

Now creating a mysql database rtdb for RT.

Done.

Now populating database schema.

Done.

Now inserting database ACLs

Granting access to rtuser@'localhost' on rtdb.

Done.

Now inserting RT core system objects

Done.

Now inserting data

Done inserting data

Done.
[b]Add rt perl module to apache[/b]
[b]Backup apache configuration file[/b]

sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/default.orig

[b]Edit the configuration file[/b]

sudo vi /etc/apache2/sites-available/default

Add the following line to the VirtualHost section of Apache from which you wish to serve RT

Paste at the end of the file just before the closing virtualhost tag

Include /etc/request-tracker3.8/apache2-modperl2.conf
RedirectMatch ^/$ /rt


*In the step,you need add VirtualHost config code in the 'default' file.
*The VirtualHost like the /var/www/,but in </VirtualHost> front add up two line.

[b]Add the module[/b]

sudo a2enmod rewrite

[b]Restart webserver[/b]

sudo /etc/init.d/apache2 restart

[b]Start using Request Tracker[/b]

Now you are ready to logon to Request Tracker on 'http://yourdomain.com/rt' using

User: root

Password: password

And you are on your way, have fun :-).

*这份文档是经过本人验证的安装过程,重复多日,反复十几遍的过程。
*Request tracker 是一个开源的,基于Perl开发的请求跟踪系统,自由度及可定制性特别高,非常适合服务机构或部门使用来做为业务与客户关系管理的业务平台。详细介绍见互联网。
 类似资料: