RT Request Tracker を CentOS 5 にインストールする

提供:maruko2 Note.
移動: 案内, 検索
RT にログイン後の画面

目次

RT インストールの前に

CentOS に付属の Perl モジュールを全てインストール。

# yum install perl-* 

gcc などの開発環境もインストールしておく

# yum install ccp gcc* autoconf* automake* libtool m4

GD や JPEG ライブラリなどもインストール

# yum install gd gd-devel libpng libpng-devel libjpeg libjpeg-devel freetype freetype-devel

RT のインストール

/opt/rt3 ディレクトリにインストールする。

$ su -
# wget http://download.bestpractical.com/pub/rt/release/rt-3.6.3.tar.gz
# tar xzf rt-3.6.3.tar.gz
# cd rt-3.6.3
# ./configure --prefix=/opt/rt3

make testdeps コマンドを実行し、RT が使用する Perl モジュールがインストール済みかどうかチェックする。
デフォルトでは、MySQL をデータベースとして使用するようになっている。

# make testdeps
/usr/bin/perl ./sbin/rt-test-dependencies --verbose --with-mysql
perl:
        >=5.8.3(5.008008)...found
users:
        rt group (apache)...found
        bin owner (root)...found
        libs owner (root)...found
        libs group (bin)...found
        web owner (apache)...found
        web group (apache)...found
CLI dependencies:
        Getopt::Long >=2.24...found
CORE dependencies:
        Digest::base...found
        Digest::MD5 >=2.27...found
        DBI >=1.37...found
        Test::Inline ...MISSING
        Class::ReturnValue 0.40...MISSING
        Date::Format ...MISSING
        以下省略

...MISSING 

 make testdeps make fixdeps 使
CAPN perl -MCPAN -e shell

 CPAN 使 Perl  

# perl -MCPAN -e 'install モジュール名'

Test::WWW::Mechanize  


Test::WWW::Mechanize CPANmake test make testdeps 1.04
1.041.06, 1.10, 1.12  make test 
# wget http://ftp.cpan.jp/authors/id/P/PE/PETDANCE/Test-WWW-Mechanize-1.04.tar.gz
# tar xzf Test-WWW-Mechanize-1.04.tar.gz
# cd Test-WWW-Mechanize-1.04
# perl Makefile.PL
# make
# make test
# make install

 RT 


RT make testdeps 
# cd /opt/rt-3.6.3
# make testdeps
...
Everything was found.

make install 
# make install
...
Congratulations. RT has been installed.


You must now configure RT by editing /opt/rt3/etc/RT_SiteConfig.pm.

(You will definitely need to set RT's database password in 
/opt/rt3/etc/RT_SiteConfig.pm before continuing. Not doing so could be 
very dangerous.  Note that you do not have to manually add a 
database user or set up a database for RT.  These actions will be 
taken care of in the next step.)

After that, you need to initialize RT's database by running
 'make initialize-database'

/opt/rt3/ RT

 RT RT_SiteConfig.pm  


/opt/rt3/etc/RT_Config.pm /opt/rt3/etc/RT_SiteConfig.pm 


# Base Configuration
Set($rtname, 'rt.example.com');
Set($Organization , "example.com");
Set($MinimumPasswordLength , "5");
Set($Timezone , 'US/Eastern');
 
# Database Configuration
Set($DatabaseType , 'mysql');
Set($DatabaseHost   , 'MySQLサーバアドレス');
Set($DatabasePort , '');
Set($DatabaseUser , 'データベースユーザ名');
Set($DatabasePassword , 'データベースユーザのパスワード');
Set($DatabaseName , 'データベース名');
Set($DatabaseRequireSSL , undef);
 
# Web interface configuration
Set($WebBaseURL , "http://rt.example.com:$WebPort");
 
1;

データベースの初期化


RT_SiteConfig.pm 
# make initialize-database

 FastCGI  Apache 2.2.x  


FastCGI 使

 FastCGI 
 mod_fastcgi apache 
 Fast.pm FCGI.pm  perl 


 FastCGI  

# wget http://www.fastcgi.com/dist/fcgi.tar.gz
# tar xzf fcgi-2.4.0.tar.gz
# cd fcgi-2.4.0
# ./configure
# make
# make install

mod_fastcgi Apache  Apache 2.2.x  


mod_fastcgi  Apache 2.2  Apache 2.2 

fastcgi-developers 

 [FASTCGI] Fastcgi module for Apache 2.2

http://www.fastcgi.com/archives/fastcgi-developers/2005-December/004055.html

 Apache 2.2.x  mod_fastcgi 

mod_fastcgi-apache22.patch

httpd-devel 
# yum install httpd-devel

 mod_fastcgi  

# wget http://www.fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz
# tar xzf mod_fastcgi-2.4.2.tar.gz
# cd mod_fastcgi-2.4.2
# wget http://www.maruko2.com/download/mod_fastcgi-apache22.patch
# patch -p1 < mod_fastcgi-apache22.patch
# cp Makefile.AP2 Makefile
# make top_dir=/usr/lib/httpd
# make top_dir=/usr/lib/httpd install

FastCGI  perl  

# perl -MCPAN -e 'install FCGI'
# perl -MCPAN -e 'install CGI::Fast'

Apache  httpd.conf  


RT Apache + mod_fastcgi  Apache 

FastCgiIpcDir, FastCgiServer <VirtualHost> <VirtualHost> 
LoadModule fastcgi_module modules/mod_fastcgi.so
FastCgiIpcDir /tmp
FastCgiServer /opt/rt3/bin/mason_handler.fcgi -idle-timeout 120
 
<VirtualHost *:80>
	ServerName rt.example.com
	DocumentRoot /opt/rt3/share/html
	Alias /NoAuth/images/ /opt/rt3/share/html/NoAuth/images/
	AddHandler fastcgi-script fcgi
	ScriptAlias / /opt/rt3/bin/mason_handler.fcgi/
</VirtualHost>

/tmp/dynamic のパーミッション変更


Apache 
FastCgiIpcDir /tmp: can't create dynamic directory "/tmp/dynamic": access for server (uid -1, gid -1) failed: write not allowed

/tmp/dynamic  777 
# chmod 777 /tmp/dynamic

  



ユーザネーム: root
パスワード: password

rt-login.jpg

Apache 関連のページ

LINEで送る このエントリーをはてなブックマークに追加

個人用ツール
名前空間
変種
表示
操作
案内
ツールボックス

注目のページ

このサイトのはてなブックマーク数