gate-toroku-system 実験サーバへの redmine のインストール

システム構成

参考文献

準備: データベースのインストールと設定

データベースとして SQLite と PostgreSQL のどちらかを選択することになっている. ここでは参考文献に沿って PostgreSQ を選択することにする.

# apt-get update
# apt-get install postgresql

PostgreSQL の設定を行う.

# cat <<EOD >> /etc/postgresql/8.3/main/pg_hba.conf
host    redmine     redmine     127.0.0.1/32          password
EOD
# /etc/init.d/postgresql-8.3 restart
# su postgres
$ createuser -P  redmine
Enter password for new role: (パスワードを入力します)
Enter it again: (パスワードを入力します)
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) n
CREATE ROLE
$ createdb -E EUC_JP redmine -U redmine -W -h localhost

準備: ライブラリのインストール

# apt-get install libdbd-pg-ruby libdbi-ruby rubygems1.8 rails rake

redmine のインストール

# cd /usr/src
# mkdir redmine
# cd redmine
# wget http://rubyforge.org/frs/download.php/69449/redmine-0.9.3.tar.gz