IIS6 - CGI won't run on 'new website'

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

From: Jeff Mowatt (jeff_at_albacrest.com)
Date: 09/29/04


Date: 29 Sep 2004 04:54:23 -0700

I have an inexplicable problem with CGI under IIS6:

I have transferred my CGI based application from IIS5 to IIS6 and
setting this up as a virtual folder under the Default Web Site,
allowing scripts and executeables, defining and allowing my CGI.EXE
under web extensions, I've managed to get it working. So far, so good.

On delivery to my customer, he has chosen to set up as a separate web
site under IIS. He reports that it fails to function and I replicate
his installation as a separate web site.
All the actions which enabled me to run under a virtual folder have
been applied,both at my customer's site and my own server and the
results are as follows.

Starting with my server, I'm relating this having opened IE on my
server whilst logged on as Administrator:

When attempting to open the initial static html page which in turn
calls the CGI in its form action, a prompt for username and password
appears. I enter my adminstrator username and password and the static
form is revealed. (This is exactly what happens at the customer too.)

I click a button on the form which initiates the form action, calling
my CGI.EXE. It shows as a process in the Task Manager window running
on behalf of Adminstrator and hangs. I kill this task and my page
returns an error, unsurprisingly, indicating that a complete set of
HTTP headers have not been returned.

I repeat the above on my workstation, no username password prompt is
presented and I go straight to my static html page. Hitting the button
has the same effect as on the server with the process this time
running under the name of my workstation logon. I kill the process as
before and get the same error result back on my browser.

In my customer's environment, there is a difference. He is prompted to
install and run the exe.

Back to my installation-

I decide to inspect the physical file permissions for my site and
discover that they are not set as web shareable, also the IUSR account
for my server has no permissions for this folder.
I set the folder to web shareable and from the drop-down options I
select the name of my new web site, set execute permissions and apply,
I then add execute permissions for the IUSR account under the security
tab.

When I return to the folder to look at these permissions I find that
they have reverted to being shareable by the Default Web Site and no
matter how many times I try this, whether I change it to my web site
or Administration the result is the same, this change is not applied.

So it would seem that my app can only work as a virtual directory and
setting up as a discrete web site under ISS, I cannot allocate
permissions for the site to use the files because IIS Manager seems to
prevent me from doing so.

I can't find anything else in the online documentation I've read
relating to this problem or any other user on a discussion group
reporting this problem.

My customer should in my view have installed as a virtual folder but
has reason to keep the app discrete and fears doing so now will impact
on other applications.
 
Could anyone suggest where I could take this next?

TIA - Jeff Mowatt



Relevant Pages

  • Re: Administrator denied access ?!
    ... For XP Pro, you must must be running NTFS as your file system, and you must turn off Simple File Sharing (Tools, Folder Options, View tab) for the Security tab to appear. ... The permissions issue would appear to be on the server site, ... Ensuse that your IUSR_account on the web server has write privileges, or you may need to explictly allow access for your username. ... > Clicking "yes" brings me back into a loop to the "Remote Web Site ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Web Server Problem
    ... permissions on NTFS where the web site content is. ... > Currently we are running a fully updated Win2003 Stanard Server Edition ... > We copied all files from this server to the new and setup IIS. ...
    (microsoft.public.windows.server.setup)
  • Re: Restricted web site / registration form
    ... The permissions must be changed on the computer you are going to publish to. ... The public host you are currently using may not allow you to change permissions either - this is a setting in the Extensions configuration, to change this you need access to the server - or ask the server administrator to change them. ... FrontPage Support: http://www.frontpagemvps.com/ ... I create my web site at a public ...
    (microsoft.public.frontpage.extensions.windowsnt)
  • Re: Server access problem - no frontpage access
    ... I am running server extentions 2002 ... Try Remove the extensions from the site under IIS MMC, then restart the server, then re-apply the ... then create a new web site and let the FP extensions handle permissions. ...
    (microsoft.public.frontpage.extensions.windowsnt)
  • RE: Frontpage SE Modifying NTFS permissions
    ... The web site A, B and C are under the webs ... folder to the parent folder that is the webs folder. ... | The problem was that Fronpage would change permissions on C:\Webs\c, ... they can no longer browse any sites on that server anonymously. ...
    (microsoft.public.frontpage.extensions.windowsnt)