Redmineのインストール
プロジェクト管理ツールのRedmineです。
仕事でインストールする機会があったので_φ( ̄ー ̄ )メモメモ
○必要なソフトウェアのインストール
インストールするRedmineに対応したruby, railsをインストールする
http://redmine.jp/guide/RedmineInstall/
・ruby
$ tar xvjf ruby-1.8.7-p249.tar.bz2
$ cd ruby-1.8.7-p249
$ ./configure && make
$ su
# make install
– zlib, opensslを有効にする
$ cd ruby-1.8.7-p249/ext/zlib
$ ruby extconf.rb
$ make
$ su
# make install
# yum install openssl-devel
$ cd ruby-1.8.7-p249/ext/openssl
$ ruby extconf.rb
$ make
$ su
# make install
・rubygems
$ tar xvzf rubygems-1.3.7.tgz
$ cd rubygems-1.3.7
# ruby setup.rb
・gemモジュールのインストール
# gem install -v=2.2.2 rails
# gem install -v=1.0.1 rack
# PATH=/usr/local/pgsql/bin:$PATH
# export PATH
# gem install pg
# gem install passenger
○Postgresの設定
・ユーザ追加
$ createuser -P ebredmine
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
$ psql -U ebredmine template1
Welcome to psql 8.2.13, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
template1=> \du
List of roles
Role name | Superuser | Create role | Create DB | Connections | Member of
———–+———–+————-+———–+————-+———–
ebredmine | no | no | yes | no limit |
postgres | yes | yes | yes | no limit |
(2 rows)
・DB作成
$ createdb -U postgres -E utf8 -O ebredmine ebredmine
○Redmineの設定
# rake config/initializers/session_store.rb
# rake db:migrate RAILS_ENV=production
# rake load_default_data RAILS_ENV=production
Postgresのライブラリが見えない時
LD_LIBRARY_PATH=/usr/local/pgsql/lib
export LD_LIBRARY_PATH
○Apacheの設定
passenger-install-apache2-module
言われたとおりにロードモジュールとディレクトリ設定を追加