Apache/passenger/ree doesn't interpret .rb files

Posted by Sergey on Stack Overflow See other posts from Stack Overflow or by Sergey
Published on 2010-05-31T21:58:51Z Indexed on 2010/05/31 22:03 UTC
Read the original article Hit count: 558

I'm trying to get apache + passenger + ree to work. I think I did everything (except for setting up rails env - for now I wanna run just pure ruby) described here: http://rvm.beginrescueend.com/integration/passenger/ But when I try to go to localhost/test.rb it doesn't interpret that file and just download it.

I don't know where should I look for mistakes, so here are a few files I think could be relevant:

/var/log/apache2/error.log (these 2 lines are repeating)

[Mon May 31 23:12:47 2010] [notice] Graceful restart requested, doing restart
[Mon May 31 23:12:48 2010] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.2 with Suhosin-Patch Phusion_Passenger/2.2.11 configured -- resuming normal operations

/etc/apache2/httpd.conf

LoadModule passenger_module /home/sergey/.rvm/gems/ree-1.8.7-2010.01/gems/passenger-2.2.11/ext/apache2/mod_passenger.so
PassengerRoot /home/sergey/.rvm/gems/ree-1.8.7-2010.01/gems/passenger-2.2.11
PassengerRuby /home/sergey/.rvm/bin/passenger_ruby

/var/www/test.rb

puts "test"

© Stack Overflow or respective owner

Apache/passenger/ree doesn't interpret .rb files

Posted by Sergey on Server Fault See other posts from Server Fault or by Sergey
Published on 2010-05-31T22:30:48Z Indexed on 2010/05/31 22:34 UTC
Read the original article Hit count: 558

Filed under:
|
|

I'm trying to get apache + passenger + ree to work. I think I did everything (except for setting up rails env - for now I wanna run just pure ruby) described here: http://rvm.beginrescueend.com/integration/passenger/ But when I try to go to localhost/test.rb it doesn't interpret that file and just download it.

I don't know where should I look for mistakes, so here are a few files I think could be relevant:

/var/log/apache2/error.log (these 2 lines are repeating)

[Mon May 31 23:12:47 2010] [notice] Graceful restart requested, doing restart
[Mon May 31 23:12:48 2010] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.2 with Suhosin-Patch Phusion_Passenger/2.2.11 configured -- resuming normal operations

/etc/apache2/httpd.conf

LoadModule passenger_module /home/sergey/.rvm/gems/ree-1.8.7-2010.01/gems/passenger-2.2.11/ext/apache2/mod_passenger.so
PassengerRoot /home/sergey/.rvm/gems/ree-1.8.7-2010.01/gems/passenger-2.2.11
PassengerRuby /home/sergey/.rvm/bin/passenger_ruby

/var/www/test.rb

puts "test"

© Server Fault or respective owner

Related posts about apache

Related posts about phusion-passenger