rolimat Posted April 16, 2011 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
Byron Posted April 16, 2011 Posted April 16, 2011 Please post your username, domain name, server name and the code snippet.
rolimat Posted April 16, 2011 Author 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!!
Byron Posted April 17, 2011 Posted April 17, 2011 Escalating... @djbob: He's on Johnny and his code works for me. http://dallas.heliohost.org/cgi-bin/ruby.cgi
Ashoat Posted April 17, 2011 Posted April 17, 2011 You had your script chmod'd to 775 instead of 755.
rolimat Posted April 17, 2011 Author 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!!
Recommended Posts