Re: Security error with ERuby
"Stefano Z." <[email protected]> Mon, 20 Sep 2004 15:59:48 +0200
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Hello Nagy, Monday, September 20, 2004, 12:16:33 PM, you wrote: > I got allways the following error in the 2nd line: > loading from unsafe path > /usr/lib/ruby/site_ruby/1.8:/usr/lib/ruby/site_ruby/1.8/i386-linux-gnu: > /usr/lib/ruby/site_ruby:/usr/lib/ruby/1.8:/usr/lib/ruby/1.8/i386-linux- > gnu:. (SecurityError) I think it is my same problem, i have a test script named "prova.rhtml": -- #!D:\Programmi\ruby\bin\eruby.exe <%= require "mysql" %> -- and when i run it from command line: "eruby prova.rhtml" all work ok, no error. if i'load' it from my browser, i obtain this from the apache error.log: -- [Mon Sep 20 15:50:53 2004] [error] [client 127.0.0.1] Premature end of script headers: d:/appserv/www/prova.rhtml [Mon Sep 20 15:50:53 2004] [error] [client 127.0.0.1] D:/Programmi/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/mysql.so: 126: Unable to find the specified module. - D:/Programmi/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/mysql.so (LoadError)\n [Mon Sep 20 15:50:53 2004] [error] [client 127.0.0.1] --- generated code ---\n [Mon Sep 20 15:50:53 2004] [error] [client 127.0.0.1] \n [Mon Sep 20 15:50:53 2004] [error] [client 127.0.0.1] print "\\n"\n [Mon Sep 20 15:50:53 2004] [error] [client 127.0.0.1] print(( require "mysql" )); print "\\n"\n [Mon Sep 20 15:50:53 2004] [error] [client 127.0.0.1] ----------------------\n -- I'm e newbe in ruby/eruby/apache.... Thanks. -- bye, Stefano The Bat! version: 3.0.0.15 Windows XP 2600 Bayes Filter Plugin v1.5.4 Bayes Filter Plugin v1.5.4HamMails: 971 SpamMails: 3009 detected Ham: 280 (98.9%) detected Spam: 27 (100.%) FALSE Ham detected: 0FALSE Spam detected: 3