Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Failing to run script under an application pool

$
0
0

... but I succeeded earlier today, so I know it can be done.

IIS 7.5 on Windows Server 2008 R2

I have a Python CGI script (this is a low-demand, internal server) that I want to run under its own application pool. The script is in a subdirectory: C:\inetpub\wwwroot\subdir\script.py

I have created an application pool: MyPool, No Managed Code.

In IIS Manager, under Sites, Default Web Site, I right-click on the subdir folder and Convert to Application:

  • Alias: subdir
  • Application pool: MyPool
  • Physical path: C:\inetpub\wwwroot\subdir

I have a "whoami" command in the CGI script. Earlier today I succeeded in getting the script to run (in a different subdirectory name, which I was using as a sandbox) as user IIS AppPool\MyPool. Now, when I invoke it, it runs as user NT Authority\IUSR.

Grr. I know it can be done, because I had it working in my experimental script. I have Binged and Googled and sworn heartily, but none of it seems to be helping.

Thanks in advance.


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>