I am trying to port a web app from IIS5 to IIS6 but my perl script cannot run
an EXE. Are there any permissions that would fix this? Is it possible to
install IIS5 on the Windows 2003 Server box?

Re: IIS6 Perl CGI calling EXE by Consultant

Consultant
Tue Nov 01 11:26:22 CST 2005

enable scripts & executables

no 5.0 on 2003

"kevin" <kevin@discussions.microsoft.com> wrote in message
news:D1222E12-5114-43E7-9E6A-AEA67F7708AE@microsoft.com...
>I am trying to port a web app from IIS5 to IIS6 but my perl script cannot
>run
> an EXE. Are there any permissions that would fix this? Is it possible to
> install IIS5 on the Windows 2003 Server box?



Re: IIS6 Perl CGI calling EXE by kevin

kevin
Tue Nov 01 11:45:02 CST 2005

Where do I make this change? In the properties of the folder containing the
CGI script, in the Directory tab, the permissions are "Scripts and
Executibles". Is this the right place?

"Consultant" wrote:

> enable scripts & executables
>
> no 5.0 on 2003
>
> "kevin" <kevin@discussions.microsoft.com> wrote in message
> news:D1222E12-5114-43E7-9E6A-AEA67F7708AE@microsoft.com...
> >I am trying to port a web app from IIS5 to IIS6 but my perl script cannot
> >run
> > an EXE. Are there any permissions that would fix this? Is it possible to
> > install IIS5 on the Windows 2003 Server box?
>
>
>

Re: IIS6 Perl CGI calling EXE by Consultant

Consultant
Tue Nov 01 11:48:37 CST 2005

yes, the properties of the site/virtual directory where these are stored

"kevin" <kevin@discussions.microsoft.com> wrote in message
news:B37BDAE5-64BD-4E02-8100-CC8F763FA1EA@microsoft.com...
> Where do I make this change? In the properties of the folder containing
> the
> CGI script, in the Directory tab, the permissions are "Scripts and
> Executibles". Is this the right place?
>
> "Consultant" wrote:
>
>> enable scripts & executables
>>
>> no 5.0 on 2003
>>
>> "kevin" <kevin@discussions.microsoft.com> wrote in message
>> news:D1222E12-5114-43E7-9E6A-AEA67F7708AE@microsoft.com...
>> >I am trying to port a web app from IIS5 to IIS6 but my perl script
>> >cannot
>> >run
>> > an EXE. Are there any permissions that would fix this? Is it possible
>> > to
>> > install IIS5 on the Windows 2003 Server box?
>>
>>
>>



Re: IIS6 Perl CGI calling EXE by kevin

kevin
Tue Nov 01 12:01:04 CST 2005

I have made that change with no luck. I should note that the EXE being called
resides in another directory, but that directory is in the path (I output the
path and all the other environment variables to a log file). I have also
tried to run the exe in the script with a full pathname with no luck.

Is there any global /registry settings that cause this behavior? The script
runs fine until it has to execute the EXE. Thanks...

Re: IIS6 Perl CGI calling EXE by David

David
Tue Nov 01 16:29:18 CST 2005

1. In order to be able to execute Perl script on IIS6 you must:
- configure exactly like IIS5
- vdir has at least "ScriptS" Execute permissions
- have a .pl Application Mapping to Perl engine binary)
- remote authenticated user has permissions to both perl script and perl
engine binary
- IIS6 only: add WebServiceExtension for Perl engine binary and enable it
http://blogs.msdn.com/david.wang/archive/2005/04/20/IIS6_CGI_Web_Service_Extension.aspx

2. In order for Perl script which is executed to be able to call an EXE, you
must
- configure exactly like IIS5, including ACLs
- WS03 only: If script execution involves shell() or anything that touches
CMD.EXE, make sure that the remote authenticated user actually has
permissions to CMD.EXE (itself a security risk). WS03 security lockdown
prevents non-administrator users that log on via IIS to access system
console apps like CMD.EXE.

Finally, you must consider the possibility that your EXE may not run on
Windows Server 2003 or has elevated security requirements no longer provided
by IIS6 (You will have to determine and assess the risks yourself; IIS6
simply has no privileges and thuspassively prevent you from doing anything
until you explicitly configure it).

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"kevin" <kevin@discussions.microsoft.com> wrote in message
news:9ED5B12A-4DE2-4E8D-A8C5-5E82324DAA4F@microsoft.com...
I have made that change with no luck. I should note that the EXE being
called
resides in another directory, but that directory is in the path (I output
the
path and all the other environment variables to a log file). I have also
tried to run the exe in the script with a full pathname with no luck.

Is there any global /registry settings that cause this behavior? The script
runs fine until it has to execute the EXE. Thanks...