Last active
December 23, 2015 13:19
-
-
Save jirikolarik/6641406 to your computer and use it in GitHub Desktop.
Install RVM + Passenger + Apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install RVM | |
\curl -L https://get.rvm.io | bash -s stable | |
source /etc/profile.d/rvm.sh | |
# Install Ruby | |
rvm install 2.0.0 | |
# Install passenger | |
gem install passenger | |
# Install Apache module | |
rvmsudo passenger-install-apache2-module | |
# Setup Passenger | |
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