Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Change current user to avalon then install RVM and ruby 2.1.5.7

Code Block
su - avalon
curl -L https://get.rvm.io | bash -s stable --ruby=2.1.57

Source the RVM shell (as avalon user) or close the terminal and open it back up.

Code Block
source /home/avalon/.rvm/scripts/rvm

...

Code Block
$ passenger-config --root
/home/avalon/.rvm/gems/ruby-2.1.57/gems/passenger-4.0.56

Install Passenger apache module requirements (as root)

...

Code Block
LoadModule passenger_module /home/avalon/.rvm/gems/ruby-2.1.57/gems/passenger-4.0.56/buildout/apache2/mod_passenger.so
<IfModule passenger_module>
  PassengerRoot /home/avalon/.rvm/gems/ruby-2.1.57/gems/passenger-4.0.56
  PassengerDefaultRuby /home/avalon/.rvm/wrappers/ruby-2.1.57/ruby
  PassengerMaxPoolSize 30
  PassengerPoolIdleTime 300
  PassengerMaxInstancesPerApp 0
  PassengerMinInstances 3
  PassengerSpawnMethod smart-lv2
</IfModule>

...

Code Block
/etc/init.d/httpd restart
su - avalon
which passenger-status
#> ~/.rvm/gems/ruby-2.1.57/bin/passenger-status

Avalon

...