freebsd:freebsd_9.0-releaseにredmine_2.3.0をインストール

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

次のリビジョン
前のリビジョン
freebsd:freebsd_9.0-releaseにredmine_2.3.0をインストール [2013-05-13 10:22]
Decomo 作成
freebsd:freebsd_9.0-releaseにredmine_2.3.0をインストール [2020-12-03 19:36] (現在)
Decomo Deleted by PageMove plugin
行 1: 行 1:
-====== FreeBSD 9.0-RELEASEにRedmine 2.3.1をインストール ======+====== FreeBSD 9.0RにRedmine 2.3.1をインストール ======
  
 ===== 必要なものを揃える ===== ===== 必要なものを揃える =====
行 5: 行 5:
 [[http://www.redmine.org/projects/redmine/wiki/RedmineInstall|Installing Redmine]]に、Redmineのインストールに必要な環境が書いてあるので準備する。 [[http://www.redmine.org/projects/redmine/wiki/RedmineInstall|Installing Redmine]]に、Redmineのインストールに必要な環境が書いてあるので準備する。
  
-今回用意した環境。+今回用意した環境。Ruby系はバージョンに煩いので要注意
  
-  * ruby 1.8.7 +  * Ruby 1.8.7
-  * Rails 3.2.13+
   * RubyGems 1.8.25   * RubyGems 1.8.25
 +    * Rails 3.2.13
 +    * Passenger 3.0.19
   * MySQL 5.6.11   * MySQL 5.6.11
   * Subversion 1.7.3   * Subversion 1.7.3
-  * ImageMagick 6.8.0.7+  * ImageMagick 6.8.0.7 (HDRI無効でビルドしたバイナリ)
  
 ==== MySQL ==== ==== MySQL ====
行 50: 行 51:
 </code> </code>
  
-=== bundler ===+** bundler **
 <code bash> <code bash>
 sudo gem install bundler sudo gem install bundler
 </code> </code>
  
-<note tip>mysqlとRailsはbundlerで自動インストールされるかも</note>+<note tip>後の工程でbundlerで必要なGemが自動インストールされるようなので、手動で他のGemを入れる必要はないかもしれない。</note>
  
-=== mysql ===+** Rails **
 <code bash> <code bash>
-sudo gem install mysql+sudo gem install rails -v 3.2.13
 </code> </code>
-ruby 1.9だmysql2になるっぽい。+少々時間がかかる。-Vオプションで詳細情報が見られるので、付けておく精神的良いかもしれない。
  
-=== Rails ===+** mysql **
 <code bash> <code bash>
-sudo gem install rails -v 3.2.13+sudo gem install mysql
 </code> </code>
-少々時間がかかる。-Vオプションで詳細情報が見られるので、付けておく精神的良いかもしれない。+Ruby 1.9だmysql2になるっぽい。
  
 ==== Subversion ==== ==== Subversion ====
行 73: 行 74:
  
 ==== ImageMagick ==== ==== ImageMagick ====
 +HDRIは無効にしないといけない(デフォルトは無効)。
 <code bash> <code bash>
 cd /usr/ports/graphics/ImageMagick cd /usr/ports/graphics/ImageMagick
行 114: 行 116:
 必要なgemをインストール 必要なgemをインストール
 <code bash> <code bash>
-sudo bundle install --without development test postgresql sqlite+sudo bundle install --without development test
 </code> </code>
  
行 133: 行 135:
 </code> </code>
  
 +パーミッション設定
 +<cli>
 +# mkdir tmp tmp/pdf public/pluin_assets
 +# chown -R www:www files log tmp public/pluin_assets
 +# chmod -R 755 files log tmp public/pluin_assets
 +</cli>
  
-<code bash> +===== 自動起動の設定 ===== 
-sudo pw groupadd -n redmine -g 20000 +PassengerでApacheから起動するようにする。
-sudo pw useradd -n redmine -u 20000 -g 20000 -d /usr/local/www/redmine/ -s /sbin/nologin -h - +
-</code>+
  
-sudo mkdir tmp tmp/pdf public/pluin_assets +**Passengerは3.0系列を使わないと上手く起動出来ないで、バージョン指必須**。どこも書いてなくて超ハマった
-sudo chown -R redmine:redmine files log tmp public/pluin_assets +
-sudo chmod -R 755 files log tmp public/pluin_assets +
- +
-====== 自動起動の定 ====== +
-PassengerでApacheから起動するようする+
  
-sudo gem install passenger+<cli> 
 +gem install passenger --version 3.0.19 
 +</cli>
  
-sudo passenger-install-apache2-module +Apache用のモジュールをインストール 
-Welcome to the Phusion Passenger Apache 2 module installer, v4.0.2.+<cli> 
 +passenger-install-apache2-module 
 +Welcome to the Phusion Passenger Apache 2 module installer, v3.0.19.
  
 This installer will guide you through the entire installation process. It This installer will guide you through the entire installation process. It
行 169: 行 174:
 Please edit your Apache configuration file, and add these lines: Please edit your Apache configuration file, and add these lines:
  
-   LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-4.0.2/libout/apache2/mod_passenger.so +   LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.19/ext/apache2/mod_passenger.so 
-   PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-4.0.2 +   PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.19 
-   PassengerDefaultRuby /usr/local/bin/ruby18+   PassengerRuby /usr/local/bin/ruby18
  
 After you restart Apache, you are ready to deploy any number of Ruby on Rails After you restart Apache, you are ready to deploy any number of Ruby on Rails
 applications on Apache, without any further Ruby on Rails-specific applications on Apache, without any further Ruby on Rails-specific
 configuration! configuration!
 +</cli>
 +ということなので、設定ファイルを作る。
 +<code apache|h /usr/local/etc/apache22/Includes/passenger.conf>
 +LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.19/ext/apache2/mod_passenger.so
  
-Press ENTER to continue.+<IfModule passenger_module>
  
 +PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.19
 +PassengerRuby /usr/local/bin/ruby18
 +
 +</IfModule>
 +</code>
 +
 +<code>
 Deploying a Ruby on Rails application: an example Deploying a Ruby on Rails application: an example
  
行 199: 行 215:
 optimization tips, troubleshooting and other useful information: optimization tips, troubleshooting and other useful information:
  
-  /usr/local/lib/ruby/gems/1.8/gems/passenger-4.0.2/doc/Users guide Apache.html+  /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.19/doc/Users guide Apache.html
  
 Enjoy Phusion Passenger, a product of Phusion (www.phusion.nl) :-) Enjoy Phusion Passenger, a product of Phusion (www.phusion.nl) :-)
行 205: 行 221:
  
 Phusion Passenger is a trademark of Hongli Lai & Ninh Bui. Phusion Passenger is a trademark of Hongli Lai & Ninh Bui.
 +</code>
 +
 +===== 感想 =====
 +
 +とにかく面倒だった…。
 +
 +特にRubyのバージョン地獄が厄介(Redmineに限った話じゃないけど)。往年のDLL地獄も真っ青のヘルっぷり。初心者殺しもいいとこで、Rubyの敷居を揚げてる一因だと思う。
 +
 +進んでRubyを使おうとは思わなくなったわ。
 +
 +===== 参考サイト =====
 +
 +  * [[http://www.redmine.org/projects/redmine/wiki/RedmineInstall|RedmineInstall - Redmine]]
 +  * [[http://blog.redmine.jp/articles/2_3/installation_centos/|Redmine 2.3をCentOS 6.4にインストールする手順 | Redmine.JP Blog]]
 +  * [[http://k-nightowl.net/?p=30|FreeBSD 9.0にRedmine 2.1.4をインストールする。 | k-nightowl.net]]
 +  * [[http://forums.freebsd.org/showthread.php?t=29662|FreeBSD 9.0 + Redmine + Ruby19 - The FreeBSD Forums]]
  
 +~~DISCUSSION~~
  
  • freebsd/freebsd_9.0-releaseにredmine_2.3.0をインストール.1368408152.txt.gz
  • 最終更新: 2013-05-13 10:22
  • by Decomo