I am trying to get Ruby running on Apache. I may or may not have a
problem. What do you think?
I have a test site called ruby-test set up with a vhost. When I go to
rails-test/ I see the “Welcome Aboard” page. But when I click the
“About your application’s environment” link the script doesnt get
interpreted … I just see it as text. I havent gone any further than
this, as I have been trying to get that script to run.
<VirtualHost *:80>
DocumentRoot “/var/www/webroot/rails-test/public”
ServerName rails-test
<Directory “/var/www/webroot/rails-test/public”>
Options ExecCGI FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
Is the problem that the .rb file that the link points to is in a
directory that doesnt have +ExecCGI set? What must I do to fix this?
Am quite stuck.
I guess one solution is to get mod_ruby working right? But I cant
figure out how to check if it is working already, or find a set of
instructions how to install it.
Is the problem that the .rb file that the link points to is in a
directory that doesnt have +ExecCGI set? What must I do to fix this?
Am quite stuck.
I guess one solution is to get mod_ruby working right? But I cant
figure out how to check if it is working already, or find a set of
instructions how to install it.
I am trying to get Ruby running on Apache. I may or may not have a
problem. What do you think?
I have a test site called ruby-test set up with a vhost. When I go to
rails-test/ I see the “Welcome Aboard” page. But when I click the
“About your application’s environment” link the script doesnt get
interpreted … I just see it as text. I havent gone any further than
this, as I have been trying to get that script to run.
You also may have to tell apache that files ending in .rb are to be
handled via cgi. Otherwise, it really is just text.
AddHandler cgi-script .rb
Check the archives for threads on Ruby + CGI
–
James B.
“The greatest obstacle to discovery is not ignorance, but the illusion
of knowledge.”
D. Boorstin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.