I am getting the following error message when I try to run any Perl files through the perl interpreter in my local cgi-bin directory. I am running the Apache 1.3.14 webserver.
[Fri Dec 07 10:03:57 2001] [error] [client 127.0.0.1] (2)No such file or directory: script not found or unable to stat: c:/usr/
For some reason it is not putting the / between the cgi-bin directory and the hello.pl file. This is what is in the hello.pl file
#!usr/ -w
# hello.pl - sends a greeting to the world
#
print "Content-type: text/html\n\n";
print "<HTML>\n";
print "<HEAD><TITLE>\n";
print "Hello!\n";
print "</TITLE></HEAD>\n";
print "<BODY>\n";
print "Hello, world!\n";
print "</BODY></HTML>\n";
and this is what the cgi part of my httpd.conf says
ScriptAlias /cgi-bin/ "C:/usr/
#
# "C:/Program Files/Apache Group/Apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/usr/
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
What am I doing wrong?
I should add that this code works fine from the command prompt, but does not work in Internet Explorer
[Fri Dec 07 10:03:57 2001] [error] [client 127.0.0.1] (2)No such file or directory: script not found or unable to stat: c:/usr/
For some reason it is not putting the / between the cgi-bin directory and the hello.pl file. This is what is in the hello.pl file
#!usr/ -w
# hello.pl - sends a greeting to the world
#
print "Content-type: text/html\n\n";
print "<HTML>\n";
print "<HEAD><TITLE>\n";
print "Hello!\n";
print "</TITLE></HEAD>\n";
print "<BODY>\n";
print "Hello, world!\n";
print "</BODY></HTML>\n";
and this is what the cgi part of my httpd.conf says
ScriptAlias /cgi-bin/ "C:/usr/
#
# "C:/Program Files/Apache Group/Apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/usr/
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
What am I doing wrong?
I should add that this code works fine from the command prompt, but does not work in Internet Explorer