Created
November 30, 2012 12:58
-
-
Save igorescobar/4175595 to your computer and use it in GitHub Desktop.
Ruby 1.9.3 + Passenger + RubyGems
This file contains hidden or 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
sudo su - && yum update -y | |
yum groupinstall "Development Tools" | |
yum install wget -y | |
yum install openssl-devel.i686 openssl.i686 | |
cd /root && wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz | |
tar xvzf ruby-1.9.3-p194.tar.gz && cd ruby-1.9.3-p194 | |
./configure --disable-install-doc --with-opt-dir=/usr/lib/openssl | |
make && make install | |
cd /root/ && wget http://rubyforge.org/frs/download.php/76073/rubygems-1.8.24.tgz | |
tar xvzf rubygems-1.8.24.tgz && cd rubygems-1.8.24 && ruby setup.rb | |
gem install rake && gem install passenger | |
passenger-install-apache2-module | |
echo "LoadModule passenger_module /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.17/ext/apache2/mod_passenger.so | |
PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.17 | |
PassengerRuby /usr/local/bin/ruby | |
PassengerLogLevel 3 | |
PassengerMaxPoolSize 10" > /etc/httpd/conf.d/ruby_passenger.conf | |
# configuration of virtual host | |
<VirtualHost *:80> | |
ServerName www.yourhost.com | |
# !!! Be sure to point DocumentRoot to 'public'! | |
DocumentRoot /somewhere/public | |
<Directory /somewhere/public> | |
AllowOverride all | |
Options -MultiViews | |
</Directory> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment