环境:RHEL5+MySql+rt
下载软件包:
rt-3.6.6.tar.gz
安装:
1.[root@YarisChina ~]#tar zxvf rt-3.6.6.tar.gz
2.[root@YarisChina ~]#cd rt-3.6.6
3.[root@YarisChina rt-3.6.6]#./configure
4.[root@YarisChina ~]#make testdeps
5.[root@YarisChina rt-3.6.6]# make testdeps
/usr/bin/perl ./sbin/rt-test-dependencies --verbose --with-mysql
perl:
>=5.8.3(5.008008)...found
users:
rt group (root)...found
bin owner (root)...found
libs owner (root)...found
libs group (bin)...found
web owner (root)...found
web group (root)...found
CLI dependencies:
Term::ReadKey...found
Getopt::Long >=2.24...found
HTTP::Request::Common...found
Term::ReadLine...found
Text::ParseWords...found
LWP...found
CORE dependencies:
Scalar::Util...found
HTML::Scrubber >=0.08...found
Class::ReturnValue >=0.40...found
Text::Quoted >=2.02...found
File::Spec >=0.8...found
Calendar::Simple...found
DBIx::SearchBuilder >=1.50...found
Date::Format...found
CSS::Squish >=0.06...found
Text::Autoformat...found
Mail::Mailer >=1.57...found
Regexp::Common...found
Module::Versions::Report >=1.03...found
MIME::Entity >=5.108...found
HTML::Entities...found
Digest::MD5 >=2.27...found
Cache::Simple::TimedExpiry...found
DBI >=1.37...found
Locale::Maketext::Lexicon >=0.32...found
Digest::base...found
Locale::Maketext::Fuzzy...found
Time::HiRes...found
Net::SMTP...found
Text::Wrapper...found
Time::ParseDate...found
File::Temp...found
Log::Dispatch >=2.0...found
Locale::Maketext >=1.06...found
UNIVERSAL::require...found
Tree::Simple >=1.04...found
Text::Template...found
MAILGATE dependencies:
Pod::Usage...found
HTML::TreeBuilder...found
Getopt::Long...found
HTML::FormatText...found
LWP::UserAgent...found
MASON dependencies:
CGI::Cookie >=1.20...found
Text::WikiFormat >=0.76...found
XML::RSS >=1.05...found
Storable >=2.08...found
CSS::Squish >=0.06...found
HTML::Mason >=1.23...found
Apache::Session >=1.53...found
Digest::MD5 >=2.27...found
GD::Text...found
GD...found
Errno...found
GD::Graph...found
MYSQL dependencies:
DBD::mysql >=2.1018...found
Everything was found.
如果列出了缺少的dependencies,先安装dependencies,
6.[root@YarisChina rt-3.6.6]# make fixdeps
检查是否Everything was found.
7.[root@YarisChina ~]#make install
dependencies都安装完,状态是Everything was found.后执行
8.修改/opt/rt3/etc/RT_SiteConfig.pm,设置数据库和web参数
Set($DatabaseHost,'localhost');
Set($DatabaseRTHost,'localhost');
Set($DatabaseUser,'root');
Set($DatabasePassword,'admin');
Set($WebBaseURL,"");
Set($WebPath,"/rt");
Set($rtname,'YarisChina');
1;
9.初始化数据库。
[root@YarisChina ~]#make initialize-database
10.设置Web Interface
编辑httpd.conf,添加以下内容:
Alias /rt "/opt/rt3/share/html"
PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl
AllowOverride All
Options ExecCGI FollowSymLinks
Order allow,deny
Allow from all
RewriteEngine on
RedirectMatch permanent (.*)/$ $1/index.html
AddDefaultCharset UTF-8
SetHandler perl-script
PerlHandler RT::Mason
11.配置sendmail
[root@YarisChina ~]#ln -s /opt/rt3/bin/rt-mailgate /etc/smrsh/rt-mailgate
Edit /etc/aliases and add lines:
rt: "|/etc/smrsh/rt-mailgate --queue general --action correspond --url "
rt-comment: "|/etc/smrsh/rt-mailgate --queue general --action comment --url "
Edit /etc/mail/sendmail.mc and change the line:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
to read:
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
Add the following lines to your sendmail.mc file, filling in your ISP's mail server (optional):
define(`SMART_HOST',`your.isp.net')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
Rebuild your sendmail.cf:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
Add rt server alias to /etc/mail/local-host-names:
YarisChina
Restart sendmail:
[root@YarisChina ~]#service sendmail restart
12.测试:
[root@YarisChina ~]#
用户名:root
密码:password
阅读(1596) | 评论(0) | 转发(0) |