From: Tobias Reif Date: 2001-11-28T08:02:45+09:00 Subject: [ruby-talk:26708] Re: CGI Bambang Purnomosidi D. P. wrote: > On Tuesday 27 November 2001 7:50 pm, Bhagavatheeswaran Mahadevan wrote: > >>Hi all >> >>I have installed Apache......I copied my script file into cgi-bin directory >>under Apache...and tried to run my script from the browser >>using http://localhost/cgi-bin/one.rb but still getting error page as >>"Internal Server Error" >>I have added the comment line in my script file... >> >>#!/ruby/bin/ruby >> > ^^^^ > > If I am not mistaken, that should be #!/usr/bin/ruby. Or maybe you install > your binaries at /ruby/bin/ ? If Ruby's on the path: #!ruby.exe works for me. http://localhost/cgi-bin/ruby_test.rb But: I couldn't figure out how to set ub a different directory for Ruby; or that all .rb files are handled as Ruby files. script alias, registry, and add application didn't work. Tobi -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.xhtml go_to('www.ruby-lang.org').get(ruby).play.create.have_fun http://www.pinkjuice.com/ruby/