BugTrackingSystem mantisを構築する
BTSで最近はsubversionと統合できるtracが人気です。
しかしながら、かつて会社で使用していたBTS、mantisの構築方法を埋もれさせておくのももったいないので記事にしておきます。
1.mysqlパッケージのインストール
http://dev.mysql.com/downloads/mysql/4.1.html
から、以下のパッケージをダウンロードしてインストール
- MySQL-client-standard-4.1.21-0.rhel3.i386.rpm
- MySQL-devel-standard-4.1.21-0.rhel3.i386.rpm
- MySQL-server-standard-4.1.21-0.rhel3.i386.rpm
- MySQL-shared-compat-4.1.21-1.rhel3.i386.rpm
- MySQL-shared-standard-4.1.21-0.rhel3.i386.rpm
- MySQL-standard-debuginfo-4.1.21-0.rhel3.i386.rpm
- MySQL-test-standard-4.1.21-0.rhel3.i386.rpm
2.phpのインストール
phpをダウンロード、解凍を行い、以下の手順でコンパイルします。
$./configure --with-mysql=/usr --with-apxs2=/usr/sbin/apxs --enable-track-vars --enable-mbstring --enable-mbregex --enable-zend-multibyte --with-gd=/usr/local --with-freetype-dir=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib-dir=/usr/local --enable-gd-native-ttf --enable-gd-jis-conf --enable-gd-jis-conv $make $make install
3.httpd.confの設定
以下の項目を追加します。
DirectoryIndex index.html index.php LoadModule php4_module /usr/lib/httpd/module/libphp4.so AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
4.mantisのインストール
mantisをダウンロードし、以下の手順で実行します。
$tar xzvf mantis-1.0.6.tar.gz $mv mantis-1.0.6.tar.gz (ドキュメントルート:以下/var/www/html)/mantis $cd /var/www/html/mantis
5.mantisの基本設定。
以下の手順を実行します。
- mysqlでデータベースを作成。
- httpd及びmysqlデーモンを起動
- http://localhost/mantis/admin/install.php にアクセス
以下、http://www.alles.or.jp/~sogabe/mantis/manual/1.3.html を参照。
- sendmailデーモンの起動。