rolimat Posted April 16, 2011 Share Posted April 16, 2011 Hi!! Im learning how to programming cgi scripts using ruby. I uploaded a test file to my cgi-bin folder and it has 755 permissions but I get error 500. This simply test file is correct, because it runs ok in my localhost server. I've included this shebang line: #!/usr/bin/ruby Greetings and thanks for your services, really amaizing we can use a great server like helio for free Link to comment Share on other sites More sharing options...
Byron Posted April 16, 2011 Share Posted April 16, 2011 Please post your username, domain name, server name and the code snippet. Link to comment Share on other sites More sharing options...
rolimat Posted April 16, 2011 Author Share Posted April 16, 2011 Please post your username, domain name, server name and the code snippet. sorry, I forgot it XD this is the url to the cgi: http://aap.heliohost.org/cgi-bin/test.cgi and this is the code (its really simple): #!/usr/bin/ruby require 'cgi' cgi = CGI.new puts cgi.header puts "<html><body>This is a test</body></html>" As I said, it runs on my local server.... Thank you!! Link to comment Share on other sites More sharing options...
Byron Posted April 17, 2011 Share Posted April 17, 2011 Escalating... @djbob: He's on Johnny and his code works for me. http://dallas.heliohost.org/cgi-bin/ruby.cgi Link to comment Share on other sites More sharing options...
Ashoat Posted April 17, 2011 Share Posted April 17, 2011 You had your script chmod'd to 775 instead of 755. Link to comment Share on other sites More sharing options...
rolimat Posted April 17, 2011 Author Share Posted April 17, 2011 Escalating... @djbob: He's on Johnny and his code works for me. http://dallas.heliohost.org/cgi-bin/ruby.cgi wow!!! was that the mistake??? rookie mistake Now it works! thank you so much bob!! Link to comment Share on other sites More sharing options...
Ashoat Posted April 17, 2011 Share Posted April 17, 2011 No problem Link to comment Share on other sites More sharing options...
Recommended Posts