Mod_ruby apache install problems

"Nick Black" <[email protected]> Wed, 27 Sep 2006 18:20:46 +0100
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
------=_Part_34204_27617393.1159377646031
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello,

This is my first post to thet list, so hello everyone, my name is Nick.
Today is the first time I have ever tried to install and configure both
apache and mod_ruby/eruby, so my problem might be a bit silly.

I am trying to configure Apache with mod_ruby.  My system is as follows:

Apache/2.0.55 (Ubuntu)
PHP/5.1.2
mod_ruby/1.2.6
Ruby/1.8.4(2005-12-24) Server at localhost Port 80

after following instructions here:
http://www.modruby.net/en/index.rbx/mod_ruby/ml.html

my httpd.conf file looks like:

LoadModule ruby_module /usr/lib/apache2/modules/mod_ruby.so

## On Linux (FC3) this becomes
# LoadModule ruby_module /usr/lib/httpd/modules/mod_ruby.so

# ClearModuleList
# AddModule mod_ruby.c

<IfModule mod_ruby.c>
  RubyRequire apache/ruby-run

#   Execute files under /ruby as Ruby scripts
  <Location /ruby>
  SetHandler ruby-object
  RubyHandler Apache:: RubyRun.instance
  </Location>

#   Execute *.rbx files as Ruby scripts
  <Files *.rbx>
  SetHandler ruby-object
 RubyHandler Apache::RubyRun.instance
 </Files>
</IfModule>

#Eruby stuff:

<IfModule mod_ruby.c>
  RubyRequire apache/eruby-run

  # Handle files under /eruby as eRuby files
  <Location /eruby>
  SetHandler ruby-object
  RubyHandler Apache:: ERubyRun.instance
  </Location>

  # Handle *.rhtml files as eRuby files
  <Files *.rhtml>
  SetHandler ruby-object
  RubyHandler Apache::ERubyRun.instance
  </Files>
</IfModule>

<Directory /var/www/eruby>
    Options ExecCGI
</Directory>

When I try to start apache, I get

[Wed Sep 27 16:55:08 2006] [warn] module ruby_module is already loaded

PHP and HTML are running fine, but when I try to view an RHTML page, I my
browswer asks me if I want to download or save - so I guess the file is not
being parsed.

I think the prob might be with:

<Directory /var/www/eruby>
    Options ExecCGI
</Directory>

As that is not the address of an eruby folder.  Problem is, what should be
contained within /var/www/eruby?

I have the same problems when accessing via localhost or via the internal
network ip address.

Thanks in advance for the help.

Nick

------=_Part_34204_27617393.1159377646031--