Matma Rex Posted January 24, 2010 Posted January 24, 2010 Ruby scripts don't work on my account. I am sure I did everything right - they're in cgi-bin dir, chmod is 755, I use #!/usr/bin/ruby shebang line, I've even created cgi-script apache handler for .rb extension. Still, every time I try to access .rb file i get error 500 (Internal Server Error). What am I doing wrong? Username: matmarex, site: books. Example: http://books.heliohost.org/cgi-bin/test.rb
Byron Posted January 24, 2010 Posted January 24, 2010 You shouldn't need to add a ruby handler. That mime type is already set at your cpanel. Have you tried a simple Hello World script?
Matma Rex Posted January 25, 2010 Author Posted January 25, 2010 Of course I did. I've even tried script consisting only of shebang line, and even that caused error 500.
Byron Posted January 25, 2010 Posted January 25, 2010 This support request is being escalated to our root admin.
Ashoat Posted January 26, 2010 Posted January 26, 2010 A file with only the shebang will cause a 500 by design. You need to echo the Content-type header. http://www.heliohost.org/home/features-mai...enu/rubyonrails Here's a file I created on your account that is working fine: http://books.heliohost.org/cgi-bin/blah.rb
Matma Rex Posted January 26, 2010 Author Posted January 26, 2010 Eh, but I was outputting this line :/ Anyway, thanks.
Recommended Posts