Newbie Apache Install
Tony VanScoy <[email protected]> Mon, 24 Oct 2005 11:27:45 -0400
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
trying to get mod_ruby to work with my apache 2.0 install. Here's my config...
<IfModule mod_ruby.c>
# for Apache::RubyRun
RubyRequire apache/ruby-run
# exec files under /ruby as ruby scripts.
<Location /ruby>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Location>
# Give ruby CGI capability
<Directory /home/<myuser>/<mydomain>/http/ruby>
Options +ExecCGI
</Directory>
# exec *.rbx as ruby scripts.
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
</IfModule>
The above config gives me the following errors for <mydomain>/ruby/test.rbx
[error] mod_ruby: error in ruby
[error] mod_ruby: (eval): (eval): uninitialized constant
Apache::RubyRun (NameError)
[error] mod_ruby: from (eval):0:in `value'
I've seen threads about these errors, but none that have helped me so far.