記述日 2010/10/29
Mantis ver.1.2.3
1. yumでインストール
yum install php php-cli
yum install postgresql
yum install php-mbstring php-pgsql
2. Postgresqlの設定
/var/lib/pgsql/data/postgresql.confの以下を変更
listen_addresses = 'localhost' → '*'
/var/lib/pgsql/data/pg_hba.conf
とりあえずデータベースに繋ぐ設定を変更(セキュリティ気にしてません)
local all all trust
host all all 0.0.0.0/0 trust
3. Mantisインストール
Mantisのtarを解凍する。
/var/www/htmlの下に、mantisとして配置する。
Apacheで公開する。
cp -R mantis /var/www/html
chmod 755 -R /var/www/html/mantis
4. Mantis初期設定
service httpd restart
http://10.83.186.80/mantis/admin/install.php
上記のページに必要事項を入れてインストールする。
5. Mantis接続情報の変更
/var/www/html/mantis/config_inc.phpを新規作成
以下の内容を入れる。
内容は適宜変更してください。
<?php
$g_hostname = 'IPAddresss!!!';
$g_db_type = 'pgsql';
$g_database_name = 'Mantis';
$g_db_username = 'postgres';
$g_db_password = 'postgres';
$g_default_language = 'japanese';
$g_smtp_host = 'localhost';
?>
6. Mantis日本語化
vi /var/www/html/mantis/config_inc.php
$g_default_language = 'japanese';を追加する。
7. Mantisタイムゾーン設定
/etc/php.ini
タイムゾーンの項目を変更
date.timezone="Asia/Tokyo"
service httpd restart
8. Mantisログイン
IPアドレスは適宜変更してください。
ログイン画面は
http://IPAddresss!!!/mantis/
もしくは
http://IPAddresss!!!/mantis/login.php
ユーザは、administrator
パスワードは、rootです。
9. セキュリティ
/var/www/html/mantis/adminフォルダを消す。
administratorユーザのパスワードを変更する。
[1回]