NullBock
08-08-2005, 11:36 AM
I'm trying to get up-and-running with CGI, but can't get my Hello, World program to run. Here's the program (first.pl):
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello, World.";
It's in the /var/www/cgi-bin directory, and I've properly set the ScriptAlias in the httpd config. The log file gives the following error : "(2)No such file or
directory: exec of '/var/www/cgi-bin/first.pl' failed."
Running the script from the command line also fails--"./first.pl"--returning "bad
interpreter: No such file or directory", but explicitly invoking the perl interpreter works--"/usr/bin/perl first.pl".
Ideas?
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello, World.";
It's in the /var/www/cgi-bin directory, and I've properly set the ScriptAlias in the httpd config. The log file gives the following error : "(2)No such file or
directory: exec of '/var/www/cgi-bin/first.pl' failed."
Running the script from the command line also fails--"./first.pl"--returning "bad
interpreter: No such file or directory", but explicitly invoking the perl interpreter works--"/usr/bin/perl first.pl".
Ideas?