Skip to content

Instantly share code, notes, and snippets.

@jirikolarik
Last active December 23, 2015 13:19
Show Gist options
  • Save jirikolarik/6641740 to your computer and use it in GitHub Desktop.
Save jirikolarik/6641740 to your computer and use it in GitHub Desktop.
Update Passenger
# Update passenger
gem update passenger
# Show available passengers
gem list passenger
# Uninstall old passengers
gem uninstall passenger -v 4.0.18
# Install new Apache module
rvmsudo passenger-install-apache2-module
# Update config
sudo nano /etc/apache2/mods-available/passenger.conf
# With
PassengerRoot /usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.18
PassengerDefaultRuby /usr/local/rvm/wrappers/ruby-2.0.0-p247/ruby
# And load
sudo nano /etc/apache2/mods-available/passenger.load
# with
LoadModule passenger_module /usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.18/buildout/apache2/mod_passenger.so
# Restart Apache
/etc/init.d/apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment