MacOSX(Leopard)にPassenger(1.0.5)入れる
successfully installed but not boot @MacOSX(Leopard) + Apache2(MacPort) - Phusion Passenger Discussions | Google グループ
にPhusionの方から返信があって、それは既知のトラブルで20分前に解決版の1.0.5をリリースしたよ!って言われた。
なんだそりゃー!!でも明確にこれを直したとコメントもらえたのは嬉しい。早速入れてみたい。
修正内容はこれみたい(1.0.5でのcommitがこれしかなかった)
Issue 52 - phusion-passenger - Google Code
Passenger (mod_rails) 1.0.5 released « Phusion Corporate Blog
※結局この修正の元となった問題による起動失敗ではなく、単なる私の設定ミスでした。
ともかく動きました!やったね!!
Passengerのアップデート(1.0.4→1.0.5)
$ sudo gem update passenger Password: Updating installed gems... Updating metadata for 14 gems from http://gems.rubyforge.org .............. complete Attempting remote update of passenger Building native extensions. This could take a while... Successfully installed passenger-1.0.5 1 gem installed Installing ri documentation for passenger-1.0.5... Installing RDoc documentation for passenger-1.0.5... Gems updated: passenger
インストールスクリプト起動。相変わらず/ext/boost/srcのlibboost_thread.aの作成でなんか出てる。
$ sudo passenger-install-apache2-module ...(略)...
Apacheの設定変更
mod_rails用のhttpd.cofの設定をpassenger1.0.4用から1.0.5用に変更する。
$ sudo vi /opt/local/apache2/conf/extra/httpd-rails.conf ...(LoadModuleとRailsSpawnServerのパスを変更する)... $ cat /opt/local/apache2/conf/extra/httpd-rails.conf LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/passenger-1.0.5/ext/apache2/mod_passenger.so RailsSpawnServer /Library/Ruby/Gems/1.8/gems/passenger-1.0.5/bin/passenger-spawn-server RailsRuby /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby <VirtualHost *:80> ServerName WWW.EXAMPLE.COM DocumentRoot $RAILS_ROOT/public RailsEnv development </VirtualHost> $
Apacheの再起動
$ sudo /opt/local/apache2/bin/apachectl restart Password: $