Require fails with my new setup
"Dominik Werder" <[email protected]> Tue, 28 Dec 2004 10:44:17 +0100
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Hello!
I've installed apache and modruby again but now I'm not able to require
ruby files from different directories than the default ones.
I've added /my/dir to $: from within my script and also with the
RubyAddPath directive:
LoadModule ruby_module modules/mod_ruby.so
<IfModule mod_ruby.c>
# for Apache::RubyRun
RubyAddPath /home/dwerder/dev/rb/web
RubyRequire apache/ruby-run
# exec *.rbx as ruby scripts.
<Files *.rb>
Options +ExecCGI
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
</IfModule>
The directory is not world writeable and files are readable by everyone.
ruby says it can't find the file:
/usr/local/apache2/htdocs/test.rb:4:in `require': No such file to load --
http (LoadError)
thanks for help!
Dominik