httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7786] - ScriptInterpreterSource is broken
Date Fri, 21 Jun 2002 16:52:09 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7786>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7786

ScriptInterpreterSource is broken





------- Additional Comments From wolf-dietrich.moeller@siemens.com  2002-06-21 16:52 -------
You were looking for other reports on this fault on Apache 2.0. Mine looks similar:
I have the following 1 line perl script:

print "Content-type: text/plain\n\nHello perl\n".localtime(time)."\n";

If the name of the script is "test.pl", the script is executed fine.
If the name is "test.cgi", I get the following log error lines:
[Fri Jun 21 18:10:09 2002] [error] [client 127.0.0.1] E:/Web/cgi-bin/test.cgi is
not executable; ensure interpreted scripts have "#!" first line
[Fri Jun 21 18:10:09 2002] [error] [client 127.0.0.1] (9)Bad file descriptor:
don't know how to spawn child process: E:/Web/cgi-bin/test.cgi
and the error message
  E:/Web/cgi-bin/test.cgi is not executable; ensure interpreted scripts have
"#!" first line
with Error 500 is sent to the browser.

The script is executed without error under both names on the same machine on
Apache 1.3.26. This means, that the registry is exactly the same for both Apache
installations.
Also invocation from command line works fine for both file names.

The only difference I know is, that the registry entry for ".pl" was done by the
Perl installation (currently ASPN 5.6.1 Build 633) and the entry for ".cgi" was
done manually in NT-Explorer with the same parameter for "Open" as copied from
".pl" ("D:\Programme\Perl\bin\perl.exe" "%1" %*) and no DDE enabled.

-------------------------
System: WinNT 4.0 SP6a, Apache installed from "apache_2.0.39-win32-x86-no_ssl.msi".

Snippet from httpd.conf (for both installations):
-------------------------
ScriptInterpreterSource registry
<Directory "E:/Web/cgi-bin">
    AllowOverride Limit
    Options ExecCGI
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    Order allow,deny
    Allow from all
</Directory>
-------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message