IIS 5.0 #exec cgi problems
From: Bob Minton (rjm_at_interplus.net)
Date: 06/07/04
- Next message: David: "Flash anims bring up login box."
- Previous message: Eric Phetteplace: "Re: IIS6, MSWC.PermissionChecker, IIS Resource Kit"
- Next in thread: Brett Hill. IIS MVP: "RE: IIS 5.0 #exec cgi problems"
- Reply: Brett Hill. IIS MVP: "RE: IIS 5.0 #exec cgi problems"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: David: "Flash anims bring up login box."
- Previous message: Eric Phetteplace: "Re: IIS6, MSWC.PermissionChecker, IIS Resource Kit"
- Next in thread: Brett Hill. IIS MVP: "RE: IIS 5.0 #exec cgi problems"
- Reply: Brett Hill. IIS MVP: "RE: IIS 5.0 #exec cgi problems"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|