CentOS6.x apache2.2 でのRedmine3.2アップグレード手順

# cd /usr/local/src
# wget https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.10.tar.gz
# tar zxvf ruby-2.2.10.tar.gz
# cd ruby-2.2.10
# ./configure --disable-install-doc
# make
# make install
# gem install bundler --no-rdoc --no-ri
# cd /var/lib/redmine
# svn switch https://svn.redmine.org/redmine/branches/3.2-stable
# bundle update
# bundle install --without development test --path vendor/bundle
# bundle exec rake generate_secret_token
# RAILS_ENV=production bundle exec rake db:migrate
# bundle exec rake redmine:plugins:migrate RAILS_ENV=production
# gem install passenger --no-rdoc --no-ri
# passenger-install-apache2-module --auto --languages ruby
# passenger-install-apache2-module --snippet
LoadModule passenger_module /usr/local/lib/ruby/gems/2.2.0/gems/passenger-5.2.3/buildout/apache2/mod_passenger.so

PassengerRoot /usr/local/lib/ruby/gems/2.2.0/gems/passenger-5.2.3
PassengerDefaultRuby /usr/local/bin/ruby

# cd /etc/httpd/conf.d
# cp -a passenger.conf passenger.conf.bak
# vi passenger.conf
LoadModule passenger_module /usr/local/lib/ruby/gems/2.2.0/gems/passenger-5.2.3/buildout/apache2/mod_passenger.so

PassengerRoot /usr/local/lib/ruby/gems/2.2.0/gems/passenger-5.2.3
PassengerDefaultRuby /usr/local/bin/ruby

Header always unset "X-Powered-By"
Header always unset "X-Runtime"
PassengerMaxPoolSize 20
PassengerMaxInstancesPerApp 4
PassengerPoolIdleTime 864000
PassengerHighPerformance on
PassengerStatThrottleRate 10
PassengerSpawnMethod smart
PassengerFriendlyErrorPages off
RackBaseURI /redmine
# chown -R apache:apache /var/lib/redmine
# cd /var/lib/redmine
# bundle exec rake tmp:cache:clear tmp:sessions:clear RAILS_ENV=production
# /etc/init.d/httpd configtest
Syntax OK
# /etc/init.d/httpd start

参考:http://blog.redmine.jp/articles/3_2/install/centos/

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です