Skip to content

Instantly share code, notes, and snippets.

@khamanaka
Created August 29, 2010 10:34
Show Gist options
  • Save khamanaka/556191 to your computer and use it in GitHub Desktop.
Save khamanaka/556191 to your computer and use it in GitHub Desktop.
install ruby
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-latest )
rvm install 1.8.7
rvm use 1.8.7 --default
yum install gcc-c++
gem install passenger
cd /usr/local/rvm/gems/ruby-1.8.7-p302/gems/passenger-2.2.15/bin
./passenger-install-apache2-module --apxs2-path=/usr/local/apache2.2.16/bin/apxs --apr-config-path=/usr/local/apache2.2.16/bin/apr-1-config
LoadModule passenger_module /usr/local/rvm/gems/ruby-1.8.7-p302/gems/passenger-2.2.15/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.8.7-p302/gems/passenger-2.2.15
PassengerRuby /usr/local/rvm/rubies/ruby-1.8.7-p302/bin/ruby
Suppose you have a Rails application in /somewhere. Add a virtual host to your
Apache configuration file and set its DocumentRoot to /somewhere/public:
<VirtualHost *:80>
ServerName www.yourhost.com
DocumentRoot /somewhere/public # <-- be sure to point to 'public'!
<Directory /somewhere/public>
AllowOverride all # <-- relax Apache security settings
Options -MultiViews # <-- MultiViews must be turned off
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment