Hi everyone! i have a Problem with a Perl/Ruby CGI Script - 500 Internal Server Error. user: dagger address: http://dagger.heliohost.org Server: Johnny From the very beginning Perl was not worked: http://dagger.helioh...cgi-bin/test.pl
#!/usr/bin/perl
BEGIN {
my $b__dir = (-d '/home/dagger/perl'?'/home/dagger/perl':(/>/> getpwuid($>) )[7].'/perl');
unshift @INC,$b__dir.'5/lib/perl5',$b__dir.'5/lib/perl5/x86_64-linux',map { $b__dir . $_ } @INC;
}
print "Content-type: text/html\n\n";
print <<HTML;
<html>
<head>
<title>A Simple Perl CGI</title>
</head>
<body>
<h1>A Simple Perl CGI</h1>
<p>$theTime</p>
</body>
HTML
Ruby was for beginning worked, but now the same problem - 500 Internal Server Error http://dagger.helioh...gi-bin/test.cgi
#!/usr/local/bin/ruby -w
require 'cgi'
cgi = CGI.new
puts cgi.header
puts "<html><body>This is a test</body></html>"
http://dagger.helioh...in/test_ruby.rb
#!/usr/bin/ruby
puts "Content-type: text/html"
puts
puts "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
puts "<!DOCTYPE html>"
puts "<html>"
puts "<head>"
puts "<title>Ruby CGI test</title>"
puts "</head>"
puts "<body>"
puts "<p>Hello, world!</p>"
puts "<br>
puts "Ruby is amazing! :)/>/>"
puts "</body>"
puts "</html>"
My question is, what happened with Perl and Ruby? Python and Free Pascal CGI working fine Thanks in advance! P.S. Sorry, for my pure English