Bluehost.com Web Hosting $6.95

Trouble with SSI exec in Apache 2 on XP Pro

This is a discussion on Trouble with SSI exec in Apache 2 on XP Pro within the Windows Web Servers forums, part of the Web Server and Related Forums category; I'm having trouble using the SSI exec feature on 2.0.49 and XP Pro with all the latest ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-11-2004
Bill Davidson
 
Posts: n/a
Default Trouble with SSI exec in Apache 2 on XP Pro

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
  #2 (permalink)  
Old 06-14-2004
Phil Frisbie, Jr.
 
Posts: n/a
Default Re: Trouble with SSI exec in Apache 2 on XP Pro

Bill Davidson wrote:
> 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>


On Windows this will work:

<!--#include virtual="/cgi-bin/cgivars.pl" -->


--
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:08 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0