N
NullBock
So I'm trying to get my first PERL script working; here it is,
verbatim:
[start]
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello, World.";
[end]
Permissions look good :
-rwxr-xr-x 1 root root 79 Aug 8 05:10 first.pl
Running it via a web-browser shows an internal error :
http://easypeas.net/cgi-bin/first.pl
The log gives me the following message:
[Mon Aug 08 04:55:27 2005] [error] [client 1.2.3.4] (2)No such file or
directory: exec of '/var/www/cgi-bin/first.pl' failed
[Mon Aug 08 04:55:27 2005] [error] [client 1.2.3.4] Premature end of
script headers: first.pl
Running the script via the command line (./first.pl) results in a "bad
interpreter: No such file or directory" error; but the perl path is
corrent! Explicitly calling the perl interpreter (/user/bin/perl
first.pl) results in the proper output :
[start]
Content-type: text/html
Hello, World.
[end]
Any ideas?
Walter Gildersleeve
Freiburg, Germany
verbatim:
[start]
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello, World.";
[end]
Permissions look good :
-rwxr-xr-x 1 root root 79 Aug 8 05:10 first.pl
Running it via a web-browser shows an internal error :
http://easypeas.net/cgi-bin/first.pl
The log gives me the following message:
[Mon Aug 08 04:55:27 2005] [error] [client 1.2.3.4] (2)No such file or
directory: exec of '/var/www/cgi-bin/first.pl' failed
[Mon Aug 08 04:55:27 2005] [error] [client 1.2.3.4] Premature end of
script headers: first.pl
Running the script via the command line (./first.pl) results in a "bad
interpreter: No such file or directory" error; but the perl path is
corrent! Explicitly calling the perl interpreter (/user/bin/perl
first.pl) results in the proper output :
[start]
Content-type: text/html
Hello, World.
[end]
Any ideas?
Walter Gildersleeve
Freiburg, Germany