From: "Bambang Purnomosidi D. P." Date: 2001-11-27T22:02:13+09:00 Subject: [ruby-talk:26647] Re: CGI 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/ ? > > but still my code not working............ > > Could anybody please help me out...do I have to make some changes in the > httpd.conf file............ > Did you use mod_ruby? if yes, take a look at my server config below: ---- LoadModule ruby_module /usr/lib/apache/1.3/mod_ruby.so RubyRequire apache/eruby-run SetHandler ruby-object RubyHandler Apache::RubyRun.instance SetHandler ruby-object RubyHandler Apache::ERubyRun.instance ---------------------- If you don'y use mod_ruby, then use it :) -- bpdp