| Bill Davidson 2004-06-11, 6:52 pm |
| I'm having trouble using the SSI exec feature on 2.0.49 and XP Pro with
all the latest patches.
The web page prints out fine other than the exec. It even does some other
SSI stuff with no problem. Nothing comes out for the exec. I get this
in my error.log:
[Thu Jun 10 17:22:25 2004] [error] [client 127.0.0.1] (OS 2)The system
cannot find the file specified. : don't know how to spawn cmd child process:
C:/Documents and Settings/username/My Documents/My Website/cgissitest.html
I've got this in my httpd.conf:
UserDir "My Documents/My Website"
<Directory "C:/Documents and Settings/*/My Documents/My Website">
AllowOverride all
Options All
</Directory>
also:
AddHandler cgi-script .cgi .pl
and:
AddOutputFilter INCLUDES .shtml .html
This is the relevant section of the cgissitest.html file:
<P>SSI Variables</P>
<PRE>
<!--#printenv -->
</PRE>
<P>CGI Variables</P>
<PRE>
<!--#exec cmd="cgi-bin/cgivars.pl" -->
</PRE>
The printenv works fine. The exec does not. I don't even get an
error message visible in the browser; only in error.log.
This is cgivars.pl:
#!c:/Perl/bin/perl.exe
print "Content-type: text/html\r\n\r\n";
foreach $key ( sort keys %ENV ){
print "$key=$ENV{$key}\n";
}
If I make the browser load http://localhost:8080/~username/cgi-bin/cgivars.pl
it works fine (other than having everything print out on one line because
the <pre></pre> tags are missing).
Back to the error message:
"(OS 2)The system cannot find the file specified. : don't know how to
spawn cmd child process"
Apparently, I don't know how to tell it where to look for scripts.
BTW, this used to work for me in 1.3.(something) on Solaris.
Clearly, Apache knows what to do with PERL since it worked properly
when I ran the script from the browser. There's something not set
up right for SSI/exec.
HELP!
--Bill Davidson
|