Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
installing mod_ruby with apache2 (just get plain old text)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
chovy
Guru
Guru


Joined: 03 Dec 2004
Posts: 453

PostPosted: Sat Jan 24, 2009 2:32 am    Post subject: installing mod_ruby with apache2 (just get plain old text) Reply with quote

I ran "$ emerge mod_ruby"

What else do I have to do? I created /test/ruby/hello.rb but I just get the source, not rendering.
_________________
Woof, Woof! Add "[solved]" to the title! Woof, Woof!
Back to top
View user's profile Send private message
Stolz
Moderator
Moderator


Joined: 19 Oct 2003
Posts: 3028
Location: Hong Kong

PostPosted: Thu Feb 12, 2009 7:25 pm    Post subject: Reply with quote

I have no idea about Ruby but usually, when you install a mod_* interpreter in Apache you have to configure it to use the new interpreter in your (virtual)host config file. I.E, for mod_python

Code:
    <Location />
        SetHandler mod_python
        PythonInterpreter main_interpreter
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnvParentDir /var/www/trac.foobar.com/projects
        PythonOption TracUriRoot /
    </Location>


Also, you probably need to enable Rubby in the APACHE2_OPTS option in /etc/conf.d/apache2

Check Ruby documentation to know how to configure your server.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum