Академический Документы
Профессиональный Документы
Культура Документы
4##
2. # Install Ruby
cd /opt/
wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
tar zxvf ruby-2.1.2.tar.gz
cd ruby-2.1.2
./configure
make
make install
3. #Check version
/usr/local/bin/ruby -v
6. #Install Rails with specific version. Remove [-v 3.2.18] if you need to install
latest version.
/usr/local/bin/gem install rails -v 3.2.18
7. #Install Passenger
/usr/local/bin/gem install passenger
10. #Install Passenger Module for Apache by following installation package below
/usr/local/bin/passenger-install-apache2-module
11. #After finishing above command it will provide you five line of code to add in
your Apache configuration file /etc/httpd/conf/httpd.conf. Sample below
LoadModule passenger_module /usr/local/lib/ruby/gems/2.1.0/gems/passenger-
4.0.45/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.45
PassengerDefaultRuby /usr/local/bin/ruby
</IfModule>
12. # Restart Apache
service httpd restart
#Reload Apache
service httpd reload