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

<IfModule mod_ruby.c>
    RubyRequire apache/eruby-run

  <Location /cgi-bin>
  SetHandler ruby-object
  RubyHandler Apache::RubyRun.instance
  </Location>

    <Files *.rbx>
        SetHandler ruby-object
	RubyHandler Apache::ERubyRun.instance
    </Files>
</IfModule>

----------------------

If you don'y use mod_ruby, then use it :)

--
bpdp