おじさんエンジニアの日記

おじさんエンジニアがWeb関連の技術、ガンプラのことを書くブログ

Redmineをインストール(4) PassengerのインストールとApache設定

今回で最後です。

PassengerのインストールとApache設定

gem install passenger
export APXS2=/usr/local/apache2/bin/apxs
export PATH=/usr/local/apache2/bin:$PATH
passenger-install-apache2-module

Passengerの設定を追加

httpd.confに以下を追記
LoadModule passenger_module /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.9/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.9
PassengerRuby /usr/local/bin/ruby
vhostの設定
<VirtualHost *:80>
      ServerName redmine.localhost
      DocumentRoot /home/redmine/public   
      <Directory /home/redmine/public>
         AllowOverride all             
         Options -MultiViews            
      </Directory>
   </VirtualHost>

※ redmine.localhostはHOSTSファイルに設定しています、

これで見れました。