1. cgi-bin permissions set to 0755?
2. Extension of the file?
3. File not uploaded from Windowz machine in binary?
4. Much different from:
Code:
#! /usr/bin/perl
use strict ;
use CGI::Carp qw(fatalsToBrowser);
print "Content-type: text/html\n\n";
print "<HTML>\n";
print "<HEAD><TITLE>Hello World!</TITLE></HEAD>\n";
print "<BODY>\n";
print "<H2>Hello World!</H2> <br /> \n";
print "</BODY>\n";
print "</HTML>\n";
5. For security purposes, set the file permissions to 0755. Unless you have a real good reason, never have an executable file world writeable.