Lorem Ipsum
Member
- Pronoun
- x
So, before I try to do anything with Ruby on Rails, I needed to test out whether the host that I am using could handle Ruby files. I was pretty sure that it could, seeing as how the cgi-bin directory was present, but when I uploaded my file test.rb, it came up with a 500 Internal Server Error.
I'm pretty sure that my file doesn't have anything wrong with it, and if there was, it'd be the shebang line:
I've uploaded the file twice, once as a .rb file and once as a .cgi file, yet neither of them work.
Does anybody have any ideas as to why this is not working?
I'm pretty sure that my file doesn't have anything wrong with it, and if there was, it'd be the shebang line:
Code:
#!/usr/local/bin/ruby -w
puts "Content-type: text/html\n\n";
puts "Hello, World!"
I've uploaded the file twice, once as a .rb file and once as a .cgi file, yet neither of them work.
Does anybody have any ideas as to why this is not working?