Tag: CentOS6/Apache
# yum install httpd # chkconfig httpd on
# yum install http-devel curl-devel
$ gem install passenger $ rvmsudo passenger-install-apache2-module
LoadModule passenger_module /home/tanaka/.rvm/gems/ruby-1.9.3-p194@test/gems/passenger-3.0.12/ext/apache2/mod_passenger.so PassengerRoot /home/tanaka/.rvm/gems/ruby-1.9.3-p194@test/gems/passenger-3.0.12 PassengerRuby /home/tanaka/.rvm/wrappers/ruby-1.9.3-p194@test/ruby
DocumentRoot "/var/www/rails/sample/public"
$ gem install passenger $ passenger-install-apache2-module
LoadModule passenger_module /home/sora/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/passenger-4.0.5/libout/apache2/mod_passenger.so PassengerRoot /home/sora/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/passenger-4.0.5 PassengerDefaultRuby /home/sora/.rbenv/versions/1.9.3-p429/bin/ruby
<VirtualHost *:80> ServerName www.yourhost.com # !!! Be sure to point DocumentRoot to 'public'! DocumentRoot /somewhere/public <Directory /somewhere/public> # This relaxes Apache security settings. AllowOverride all # MultiViews must be turned off. Options -MultiViews </Directory> </VirtualHost>