Jump to content

[Solved] 500 Error Running Ruby Script


ktulx

Recommended Posts

Hi.

I'm trying to run a simple test script in Ruby, but can't figure out what's wrong. The files are 755 chmod.

I've tried

 

#!/usr/bin/ruby
header("text/html; charset=utf-8")
puts 'Hey!'

 

and a test.cgi

 

#!/usr/bin/ruby
require 'cgi'
cgi = CGI.new
puts cgi.header
puts "<html><body>Test</body></html>"

 

Do I miss something?

Thanks.

Link to comment
Share on other sites

Hi byron. Thanks for your help.

Right now I can't access my domain, it seems to be down. But I've tried the shebang line you suggested earlier, and it changes nothing.

What do you mean by "set up Ruby at your cpanel"? What kind of setup does it need?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...