Okay, let me just say I have little idea of what I'm doing here. Sorry if I'm making this more complicated than it needs to be,
I have a website that I've been setting up on IIS6 for awhile now, it worked just fine. I've taken the exact same site and tried setting it up on Windows Server 2008 Enterprise 32-bit.
Here are the steps I followed:
- Take the zip file containing the website from the server.
- Unzip it into inetpub/website/version.
- It gives the error that the config file needs to be migrated, so I grant IIS_IUSRS read permission on the main folder and run the migrate command.
Now the website loads but I have two problems:
- I can't edit any of the files inside the website folder. I open it up, edit it, and when I try to save it says "Access Denied." Yet if I move the file from the folder to my Desktop, I can edit it there and move it back without a problem. I'm logged in as the administrator and the Administrators group has full permissions on every file in the website.
When I try to use the website, there are setup pages that edit some configuration files. I always get a permissions error trying to use these pages (the rest of the site functions fine):
An error occured loading a configuration file: Access to the path 'C:\inetpub\website\version\XXXXX.tmp' is denied. (C:\inetpub\website\version\web.config)
I check the permissions and see that the /config folder is set to read only, so I uncheck that. It hasn't seemed to change anything.
I read on the IIS forums that these permission issues are because I unzipped it directly to the inetpub folder and so it didn't inherit the proper permissions. So I tried unzipping it to My Documents and then moving it into inetpub as suggested, but that didn't seem to do anything.
Permissions are currently setup like this:
- website (Read-only, Administrators Group has Full Control, Users group and IIS_IUSRS has Read & execute)
- version (Same as above)
- /config (Same as above, except IIS_IUSRS also have Modify and Write)
- web.config (Same above)
- version (Same as above)
- wwwroot
So anyone know what else I have to do to get rid of that error?