--------------------
#!/usr/bin/perl
#
print "Content-type: text/html\n\n
<HEAD>
<TITLE>Hello</TITLE>
</HEAD>
<BODY>
<HR>
<H1>Hello!</H1>
<HR>
</BODY>
";
---------------
It returns 500 Internal Server Error, and again, it works if i run it from command line.
Suexec error:
[2004-03-18 17:34:14]: uid: (****/xxx) gid: (xxx/xxx) cmd: hello.pl
[2004-03-18 17:34:14]: command not in docroot (/home/foo/cgi-bin/hello.pl)
The syntax of your little script passes my syntax checker. It runs just fine here also from my browser.
I would get hold of PerlDiver.cgi (or .pl) and see if that runs on your server.
Also try putting this into your script after the shebang
use CGI::Carp qw(fatalsToBrowser);
Hopefully CGI::Carp will be on your server and you will see some meaningfull error messages in your browser. If you do use this I would ##comment it out.
I'm not smart enough to be able to decifer your log but here are few things to check:
Make sure you are uploading as ASCII text not binary. If you are working on a non (U)nix platform make sure the line endings are of the Unix variety in your form. Pre OS X Mac is particularly bad in this regard.
Also check that the server allows the .pl extension. Mine currently only allows .cgi to run.
I hope that this helps.
Best wishes
Sid