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: 564
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