Redmine 2.3
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
~
~
''目次''
#contents
~
----
*環境の構築 [#a09bc292]
下記の通り順繰りやっていけばOK。~
+[[CentOS 6.3]] をインストール~
~
+[[OS時刻の同期設定>http://www.abetake.com/index.php?Cent...
~
+%%[[OpenSSL 1.0.1e]]%%~
そのまま使う。~
# rpm -q openssl
openssl-1.0.0-25.el6_3.1.i686
~
+[[OpenSSH 6.1p1(RPM)]]~
~
+[[PostgreSQL 9.2.4(RPM)]]~
~
インストール後に下記。
~
++''Redmine用ユーザーとDBの作成''
# su - postgres
$ createuser -S -D -R redmine
$ createdb redmine --owner=redmine --template=template0 ...
~
++''pg_hba.confの編集''
# "local" is for Unix domain socket connections only
local all all ...
# IPv4 local connections:
host all all 127.0.0.1/32 ...
# IPv6 local connections:
host all all ::1/128 ...
~
+[[Apache 2.2.24(RPM)]]~
~
+[[Subversion 1.7.9]]~
~
+[[Ruby 1.9.3]]~
~
+必要なものを yum でインストール
# yum install -y libxml2 libxml2-devel libxslt libxslt-d...
~
*Redmine のインストール [#j5db082e]
+ダウンロード~
# wget -P /usr/local/src http://rubyforge.org/frs/downlo...
~
+解凍~
# cd /usr/local/src
# tar zxvf redmine-2.3.0.tar.gz
~
+解凍したディレクトリを公開用ディレクトリに移動~
# mkdir /home/htdocs
# mv redmine-2.3.0 /home/htdocs
~
+シンボリックリンク作成~
以下のようにしておくとサブディレクトリとしてRedmineにアク...
# ln -s /home/htdocs/redmine-2.3.0 /home/htdocs/redmine
# ln -s /home/htdocs/redmine/public /var/www/htdocs/redm...
~
+database.ymlの作成~
# cd /home/htdocs/redmine-2.3.0/config
# vi database.yml
以下を記述する。
production:
adapter: postgresql
database: redmine
host: localhost
username: redmine
password: "redmine"
encoding: utf8
~
+configuration.ymlの作成~
# cd /home/htdocs/redmine-2.3.0/config
# cp configuration.yml.example configuration.yml
# vi configuration.yml
環境に合わせて設定する。~
(例)メール環境
# default configuration options for all environments
default:
# Outgoing emails configuration (see examples above)
email_delivery:
delivery_method: :smtp
smtp_settings:
address: smtp.hogehoge.com
port: 25
domain: hogehoge.com
authentication: :login
user_name: "redmine@hogehoge.com"
password: "redmine"
~
+PostgreSQL用のGemをインストール~
# gem install pg -- --with-pg-config=/usr/pgsql-9.2/bin...
Building native extensions. This could take a while...
Successfully installed pg-0.15.0
1 gem installed
Installing ri documentation for pg-0.15.0...
unable to convert "\xC5" to UTF-8 in conversion from ASC...
unable to convert "\xC5" to UTF-8 in conversion from ASC...
unable to convert "\xEF" to UTF-8 in conversion from ASC...
Installing RDoc documentation for pg-0.15.0...
unable to convert "\xC5" to UTF-8 in conversion from ASC...
unable to convert "\xC5" to UTF-8 in conversion from ASC...
unable to convert "\xEF" to UTF-8 in conversion from ASC...
~
+Redmineで使用するGemをインストール~
Redmineのインストールディレクトリで以下のコマンドを実行。
# bundle install
※Redmine 2.3より、bundlerは config/database.yml を参照し...
~
+初期設定とデータベースのテーブル作成~
セッションデータ改竄防止用鍵の生成とテーブル作成を行う。~
Redmineのインストールディレクトリで以下のコマンドを実行。
# bundle exec rake generate_secret_token
# RAILS_ENV=production bundle exec rake db:migrate
~
+Passengerのインストール~
# gem install passenger --no-rdoc --no-ri
~
+Apache用モジュールのインストール
# passenger-install-apache2-module
※途中で下記のように環境チェックが行われ、''not found''が...
''not found''があると先に進めない。
--------------------------------------------
Checking for required software...
* GNU C++ compiler... found at /usr/bin/g++
* Curl development headers with SSL support... found
* OpenSSL development headers... found
* Zlib development headers... found
* Ruby development headers... found
* OpenSSL support for Ruby... found
* RubyGems... found
* Rake... found at /usr/local/bin/rake
* rack... found
* Apache 2... found at /usr/sbin/httpd
* Apache 2 development headers... found at /usr/sbin/apxs
* Apache Portable Runtime (APR) development headers... ...
* Apache Portable Runtime Utility (APU) development hea...
--------------------------------------------
~
インストールが完了した際に表示されるPassenger用のApache設...
~
The Apache 2 module was successfully installed.
Please edit your Apache configuration file, and add thes...
LoadModule passenger_module /usr/local/lib/ruby/gems/...
PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/pas...
PassengerRuby /usr/local/bin/ruby
After you restart Apache, you are ready to deploy any nu...
applications on Apache, without any further Ruby on Rail...
configuration!
~
+Apacheの設定~
Passenger用の設定ファイルを作成する。
# cd /etc/httpd/conf/extra/
# vi httpd-passenger.conf
以下を記述。
(※以下の3行は直前に表示されていた設定)
LoadModule passenger_module /usr/local/lib/ruby/gems/1...
PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/pass...
PassengerRuby /usr/local/bin/ruby
RailsBaseURI /redmine
Passenger用の設定ファイルをインクルード。
# vi /etc/httpd/conf/httpd.conf
以下の記述を追記。
Include conf/extra/httpd-passenger.conf
~
+Apache再起動~
# /etc/rc.d/init.d/httpd restart
httpd を停止中: ...
httpd を起動中: ...
~
*設定、等 [#z1e50733]
+ ~
~
# chown -R apache:apache /home/htdocs/redmine/public/plu...
これをしないと[管理]-[情報]ページで『Plugin assetsディレ...
~
*プラグイン導入 [#c14022d5]
~
Redmineのプラグインのインストールに使用する''Git'',''merc...
→[[Gitのインストール>Git 1.7.7.4]]~
# yum install mercurial
~
プラグインのインストールはpluginsディレクトリにプラグイン...
~
# rake redmine:plugins:migrate RAILS_ENV=production
DBを使用しないプラグインでも上記コマンドによる影響はない...
~
**Redmine HTTP Basic Authentication [#w19effd6]
Basic認証でRedmineにログインできるようになる。~
インストールしてHttpdを再起動するとプラグインがデフォルト...
前以ってBasic認証ユーザーと同じ名前のRedmine管理者を登録...
(調べてないので詳細は不明だが、Redmine管理者をインストー...
-インストール
# cd /home/htdocs/redmine/plugins
# git clone http://github.com/pburgisser/redmine_http_ba...
# rake redmine:plugins:migrate RAILS_ENV=production
# /etc/rc.d/init.d/httpd restart
~
**Redmine Code Review plugin [#p85e85a5]
リポジトリ表示からコードレビューを追加できる。~
(参考:[[r-labs - Code Review>http://www.r-labs.org/proj...
-インストール
# cd /home/htdocs/redmine/plugins
# hg clone https://bitbucket.org/haru_iida/redmine_code_...
# rake redmine:plugins:migrate RAILS_ENV=production
# /etc/rc.d/init.d/httpd restart
~
**Redmine Glossary Plugin [#uaa69449]
~
%%%''※Redmine 2.3 では動作しない模様。''%%%
~
~
用語集プラグイン。~
(参考:[[r-labs - Glossary>http://www.r-labs.org/project...
-インストール
# cd /usr/local/src
# wget http://iij.dl.sourceforge.jp/rp-glossary/53770/rp...
# unzip rp-glossary-0.6.1.zip
# mv redmine_glossary /home/htdocs/redmine/plugins
# cd /home/htdocs/redmine/plugins
# rake redmine:plugins:migrate RAILS_ENV=production
# /etc/rc.d/init.d/httpd restart
終了行:
~
~
''目次''
#contents
~
----
*環境の構築 [#a09bc292]
下記の通り順繰りやっていけばOK。~
+[[CentOS 6.3]] をインストール~
~
+[[OS時刻の同期設定>http://www.abetake.com/index.php?Cent...
~
+%%[[OpenSSL 1.0.1e]]%%~
そのまま使う。~
# rpm -q openssl
openssl-1.0.0-25.el6_3.1.i686
~
+[[OpenSSH 6.1p1(RPM)]]~
~
+[[PostgreSQL 9.2.4(RPM)]]~
~
インストール後に下記。
~
++''Redmine用ユーザーとDBの作成''
# su - postgres
$ createuser -S -D -R redmine
$ createdb redmine --owner=redmine --template=template0 ...
~
++''pg_hba.confの編集''
# "local" is for Unix domain socket connections only
local all all ...
# IPv4 local connections:
host all all 127.0.0.1/32 ...
# IPv6 local connections:
host all all ::1/128 ...
~
+[[Apache 2.2.24(RPM)]]~
~
+[[Subversion 1.7.9]]~
~
+[[Ruby 1.9.3]]~
~
+必要なものを yum でインストール
# yum install -y libxml2 libxml2-devel libxslt libxslt-d...
~
*Redmine のインストール [#j5db082e]
+ダウンロード~
# wget -P /usr/local/src http://rubyforge.org/frs/downlo...
~
+解凍~
# cd /usr/local/src
# tar zxvf redmine-2.3.0.tar.gz
~
+解凍したディレクトリを公開用ディレクトリに移動~
# mkdir /home/htdocs
# mv redmine-2.3.0 /home/htdocs
~
+シンボリックリンク作成~
以下のようにしておくとサブディレクトリとしてRedmineにアク...
# ln -s /home/htdocs/redmine-2.3.0 /home/htdocs/redmine
# ln -s /home/htdocs/redmine/public /var/www/htdocs/redm...
~
+database.ymlの作成~
# cd /home/htdocs/redmine-2.3.0/config
# vi database.yml
以下を記述する。
production:
adapter: postgresql
database: redmine
host: localhost
username: redmine
password: "redmine"
encoding: utf8
~
+configuration.ymlの作成~
# cd /home/htdocs/redmine-2.3.0/config
# cp configuration.yml.example configuration.yml
# vi configuration.yml
環境に合わせて設定する。~
(例)メール環境
# default configuration options for all environments
default:
# Outgoing emails configuration (see examples above)
email_delivery:
delivery_method: :smtp
smtp_settings:
address: smtp.hogehoge.com
port: 25
domain: hogehoge.com
authentication: :login
user_name: "redmine@hogehoge.com"
password: "redmine"
~
+PostgreSQL用のGemをインストール~
# gem install pg -- --with-pg-config=/usr/pgsql-9.2/bin...
Building native extensions. This could take a while...
Successfully installed pg-0.15.0
1 gem installed
Installing ri documentation for pg-0.15.0...
unable to convert "\xC5" to UTF-8 in conversion from ASC...
unable to convert "\xC5" to UTF-8 in conversion from ASC...
unable to convert "\xEF" to UTF-8 in conversion from ASC...
Installing RDoc documentation for pg-0.15.0...
unable to convert "\xC5" to UTF-8 in conversion from ASC...
unable to convert "\xC5" to UTF-8 in conversion from ASC...
unable to convert "\xEF" to UTF-8 in conversion from ASC...
~
+Redmineで使用するGemをインストール~
Redmineのインストールディレクトリで以下のコマンドを実行。
# bundle install
※Redmine 2.3より、bundlerは config/database.yml を参照し...
~
+初期設定とデータベースのテーブル作成~
セッションデータ改竄防止用鍵の生成とテーブル作成を行う。~
Redmineのインストールディレクトリで以下のコマンドを実行。
# bundle exec rake generate_secret_token
# RAILS_ENV=production bundle exec rake db:migrate
~
+Passengerのインストール~
# gem install passenger --no-rdoc --no-ri
~
+Apache用モジュールのインストール
# passenger-install-apache2-module
※途中で下記のように環境チェックが行われ、''not found''が...
''not found''があると先に進めない。
--------------------------------------------
Checking for required software...
* GNU C++ compiler... found at /usr/bin/g++
* Curl development headers with SSL support... found
* OpenSSL development headers... found
* Zlib development headers... found
* Ruby development headers... found
* OpenSSL support for Ruby... found
* RubyGems... found
* Rake... found at /usr/local/bin/rake
* rack... found
* Apache 2... found at /usr/sbin/httpd
* Apache 2 development headers... found at /usr/sbin/apxs
* Apache Portable Runtime (APR) development headers... ...
* Apache Portable Runtime Utility (APU) development hea...
--------------------------------------------
~
インストールが完了した際に表示されるPassenger用のApache設...
~
The Apache 2 module was successfully installed.
Please edit your Apache configuration file, and add thes...
LoadModule passenger_module /usr/local/lib/ruby/gems/...
PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/pas...
PassengerRuby /usr/local/bin/ruby
After you restart Apache, you are ready to deploy any nu...
applications on Apache, without any further Ruby on Rail...
configuration!
~
+Apacheの設定~
Passenger用の設定ファイルを作成する。
# cd /etc/httpd/conf/extra/
# vi httpd-passenger.conf
以下を記述。
(※以下の3行は直前に表示されていた設定)
LoadModule passenger_module /usr/local/lib/ruby/gems/1...
PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/pass...
PassengerRuby /usr/local/bin/ruby
RailsBaseURI /redmine
Passenger用の設定ファイルをインクルード。
# vi /etc/httpd/conf/httpd.conf
以下の記述を追記。
Include conf/extra/httpd-passenger.conf
~
+Apache再起動~
# /etc/rc.d/init.d/httpd restart
httpd を停止中: ...
httpd を起動中: ...
~
*設定、等 [#z1e50733]
+ ~
~
# chown -R apache:apache /home/htdocs/redmine/public/plu...
これをしないと[管理]-[情報]ページで『Plugin assetsディレ...
~
*プラグイン導入 [#c14022d5]
~
Redmineのプラグインのインストールに使用する''Git'',''merc...
→[[Gitのインストール>Git 1.7.7.4]]~
# yum install mercurial
~
プラグインのインストールはpluginsディレクトリにプラグイン...
~
# rake redmine:plugins:migrate RAILS_ENV=production
DBを使用しないプラグインでも上記コマンドによる影響はない...
~
**Redmine HTTP Basic Authentication [#w19effd6]
Basic認証でRedmineにログインできるようになる。~
インストールしてHttpdを再起動するとプラグインがデフォルト...
前以ってBasic認証ユーザーと同じ名前のRedmine管理者を登録...
(調べてないので詳細は不明だが、Redmine管理者をインストー...
-インストール
# cd /home/htdocs/redmine/plugins
# git clone http://github.com/pburgisser/redmine_http_ba...
# rake redmine:plugins:migrate RAILS_ENV=production
# /etc/rc.d/init.d/httpd restart
~
**Redmine Code Review plugin [#p85e85a5]
リポジトリ表示からコードレビューを追加できる。~
(参考:[[r-labs - Code Review>http://www.r-labs.org/proj...
-インストール
# cd /home/htdocs/redmine/plugins
# hg clone https://bitbucket.org/haru_iida/redmine_code_...
# rake redmine:plugins:migrate RAILS_ENV=production
# /etc/rc.d/init.d/httpd restart
~
**Redmine Glossary Plugin [#uaa69449]
~
%%%''※Redmine 2.3 では動作しない模様。''%%%
~
~
用語集プラグイン。~
(参考:[[r-labs - Glossary>http://www.r-labs.org/project...
-インストール
# cd /usr/local/src
# wget http://iij.dl.sourceforge.jp/rp-glossary/53770/rp...
# unzip rp-glossary-0.6.1.zip
# mv redmine_glossary /home/htdocs/redmine/plugins
# cd /home/htdocs/redmine/plugins
# rake redmine:plugins:migrate RAILS_ENV=production
# /etc/rc.d/init.d/httpd restart
ページ名: