IIS 5.0 #exec cgi problems

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Bob Minton (rjm_at_interplus.net)
Date: 06/07/04


Date: Mon, 7 Jun 2004 12:20:57 -0600

System is Win2000 Server, all service packs/updates, latest version of
ActivePerl installed.

I am having trouble getting SSI's to work. I have put the
SSIEnableCmdDirective in the registry as per Microsoft's intructions.

Scenario:

I have a Perl script called poplist-inc.pl. Actually I have a couple of
others as well, and they all do the same thing. It is in a web directory
configured for scripts. If I run it directly from a web browser, it works;
i.e.:

http://www.mysite.com/cgi-bin/poplist-inc.pl

works PERFECTLY.

If I call this from my index.shtml page using the line:

<!-- #exec cgi="/inetpub/mysite.com/cgi-bin/poplist-inc.pl" -->

It gives me:

Cannot #EXEC '/inetpub/mysite.com/cgi-bin/poplist-inc.pl' due to lack of
EXECUTE permission

I have researched this for 3 days and found this a very common problem in
IIS put no one has ever posted a solution that I have been able to find.

I have checked/changed my directory and file permissions at least a dozen
times with no avail.

If I use:

<!-- #exec cmd="perl /inetpub/mysite.com/cgi-bin/poplist-inc.pl" -->

It works, but the output has a very annoying header that Perl generates that
I cannot get rid of.

I guess my question is, has anyone EVER gotten #exec cgi calls to work under
IIS 5.0, and if so, how did you do it? It appears to me that whatever #exec
cgi is trying to use under SSI needs an execute permission set somewhere
else rather than the directory the script is in, but why does it work from a
browser and not from an SSI call? Giving the IUSR account Full Control
permssions on the entire web directory didn't fix the problem, so it's
something else.

TIA

Bob



Relevant Pages

  • Re: Starting kwrite: Parameter to show end of file?
    ... implemented as a wrapper script so that you can ... file and give it execute permission. ... # Then we will check for the length of the longest paragraph - i.e. ... # the longest continuous line of text without newline characters - ...
    (comp.os.linux.setup)
  • Re: hidding the content of a script
    ... >> feeding some nefarious endeavor but, thinking again, ... Execute permission don't really matter as long as ... Except when the script is setgid and is in the bin group ... ...
    (comp.unix.shell)
  • RE: Need a script to update directories
    ... Need a script to update directories ... Hey all, ... I have thrown together a simple "copy script" that runs as part ... directory to the actual web directory every night. ...
    (RedHat)
  • RE: Need a script to update directories
    ... Need a script to update directories ... Hey all, ... I have thrown together a simple "copy script" that runs as part ... directory to the actual web directory every night. ...
    (RedHat)
  • Re: Weird Permissions Problem With Includes
    ... Yes that is the weird thing, I gave read and execute permission to the ... If I run the script from the command line it works. ... Your error message indicates the Apache user does not have read access to the scripts. ... Or make the Apache user a member of the group which owns the file and give the file group read access. ...
    (comp.lang.php)