View previous topic :: View next topic |
Author |
Message |
nazgum Tux's lil' helper
Joined: 19 Apr 2003 Posts: 111 Location: Canada
|
Posted: Mon Dec 08, 2003 12:49 am Post subject: Apache2 and modruby |
|
|
I've been trying to get this one to work all day.. After searching forever I found there is very little help posted about it so hopefully someone here has some experience with this:
I emerged mod-ruby for apache2, however I keep getting permission errors with it:
With .rbx files, I get Internal Server Error when I try to view the file from a web browser, and I get the following in my apache error log:
[Sun Dec 07 14:48:28 2003] [error] mod_ruby: error in ruby
/usr/lib/ruby/1.8/apache/ruby-run.rb:53:in `load': loading from unsafe file /home/nazgum/webserver/ruby/test.rbx (SecurityError)
from /usr/lib/ruby/1.8/apache/ruby-run.rb:53:in `handler'
With .rhtml files [using eruby] I get the code printed out in the web browser - like viewing a php file without php installed - and no errors in my apache error log...
I'm not sure how to fix this but I'd really like to play with ruby in apache2..
If anyone can offer some suggestions or help that would rock, thanks |
|
Back to top |
|
|
nazgum Tux's lil' helper
Joined: 19 Apr 2003 Posts: 111 Location: Canada
|
Posted: Mon Dec 08, 2003 12:52 am Post subject: |
|
|
actually .rhtml files do not work properly either and produce the following error in my apache error log:
[Sun Dec 07 14:52:17 2003] [error] mod_ruby: error in ruby
/home/nazgum/webserver/ruby/test.rhtml:3: undefined method `param' for #<CGI:0x41956680> (NoMethodError)
from (eval):45
from /usr/lib/ruby/1.8/apache/eruby-run.rb:114:in `eval_string_wrap'
from /usr/lib/ruby/1.8/apache/eruby-run.rb:114:in `run'
from /usr/lib/ruby/1.8/apache/eruby-run.rb:72:in `handler' |
|
Back to top |
|
|
nazgum Tux's lil' helper
Joined: 19 Apr 2003 Posts: 111 Location: Canada
|
Posted: Mon Dec 08, 2003 12:59 pm Post subject: |
|
|
no one can offer help on this one?
I've been looking all over and still no answer |
|
Back to top |
|
|
abacker n00b
Joined: 28 Sep 2004 Posts: 74
|
Posted: Fri Apr 08, 2005 2:36 am Post subject: |
|
|
I'm having the same problem over here. Not sure whats goin on, but I see this output in my apache startup logs :
from /var/log/apache2/error_log
Code: | ...
[Thu Apr 07 19:32:38 2005] [error] mod_ruby: ruby:0:in `require': No such file to load -- apache/ruby-run (LoadError)
[Thu Apr 07 19:32:38 2005] [error] mod_ruby: failed to require apache/eruby-run
[Thu Apr 07 19:32:38 2005] [error] mod_ruby: error in ruby
[Thu Apr 07 19:32:38 2005] [error] mod_ruby: ruby:0:in `require': No such file to load -- apache/eruby-run (LoadError)
[Thu Apr 07 19:32:38 2005] [error] mod_ruby: failed to require apache/erb-run
[Thu Apr 07 19:32:38 2005] [error] mod_ruby: error in ruby
[Thu Apr 07 19:32:38 2005] [error] mod_ruby: ruby:0:in `require': No such file to load -- apache/erb-run (LoadError)
[Thu Apr 07 19:32:38 2005] [notice] Apache/2.0.53 (Gentoo/Linux) mod_ruby/1.2.4 Ruby/1.8.2(2004-12-25) mod_ssl/2.0.53 OpenSSL/0.9.7e configured -- resuming normal operations
[Thu Apr 07 19:32:38 2005] [error] mod_ruby: failed to require apache/ruby-run
[Thu Apr 07 19:32:38 2005] [error] mod_ruby: error in ruby
[Thu Apr 07 19:32:38 2005] [error] mod_ruby: ruby:0:in `require': No such file to load -- apache/ruby-run (LoadError)
[Thu Apr 07 19:32:38 2005] [error] mod_ruby: failed to require apache/eruby-run
[Thu Apr 07 19:32:38 2005] [error] mod_ruby: error in ruby
[Thu Apr 07 19:32:38 2005] [error] mod_ruby: ruby:0:in `require': No such file to load -- apache/eruby-run (LoadError)
[Thu Apr 07 19:32:38 2005] [error] mod_ruby: failed to require apache/erb-run
[Thu Apr 07 19:32:38 2005] [error] mod_ruby: error in ruby
[Thu Apr 07 19:32:38 2005] [error] mod_ruby: ruby:0:in `require': No such file to load -- apache/erb-run (LoadError)
==EOF==
|
I am using the stock ruby config, and followed the top parts of this faq i found in the forums : https://forums.gentoo.org/viewtopic-t-249895-highlight-modruby.html
I have emerged eruby and mod_ruby, and edited the httpd.conf to point to the proper mod_ruby.so, so its not complaining about that any more.
erb and eruby are located in /usr/bin _________________ under the line |
|
Back to top |
|
|
tkirby n00b
Joined: 04 Aug 2003 Posts: 30
|
|
Back to top |
|
|
|