IIS 5 & IIS 6
Problem with IIS snap-in after copying W3SVC/1 - Windows XP SP 2
Last post Jan 20, 2008 10:59 PM by qbernard
Jan 15, 2008 01:28 PM|sadukie|LINK
I'm running IIS 5.1 on Windows XP SP 2, and I have to have separate websites for some of the sites that I develop, as their structures wouldn't work well in one website with multiple virtual directories. I've found websites that explain how to use the scripts
in Inetpub\AdminScripts to copy one WebSite and use it to create another. I ran the following commands:
adsutil.vbs COPY W3SVC/1 W3SVC/2
adsutil.vbs COPY W3SVC/1 W3SVC/3
Both new WebSites (W3SVC/2 and W3SVC/3) were created just fine. I've changed their Home Directories to look at the right folders, but when I look at the WebSites in IIS (in the MMC snap-in), the folders appear as a mix of the folders from W3SVC/1 and what's
in the directory I pointed it to. I have a feeling I'm missing a setting somewhere, but I'm still new with IIS and not too sure where to look.
Any insight is definitely appreciated!
Jan 15, 2008 09:44 PM|qbernard|LINK
For XP Pro, you can have only one Active website at anytime.
what do you mean by " the folders appear as a mix of the folders from W3SVC/1 and what's in the directory I pointed it to"
Jan 16, 2008 01:06 PM|sadukie|LINK
W3SVC/1 's file structure (within its wwwRoot)
When I look at W3SVC/2 and W3SVC/3 in IIS, I see a mixture of what's in each's respective Home Directory plus some of W3SVC/1's files.
So W3SVC/2's file structure (within its wwwRoot, as seen through Windows Explorer) may be:
But in IIS, I'm seeing W3SVC/2 as:
Could this be something due to the COPY command that I ran?
Just so you're clear on the order of how I did things:
1. Ran the COPY commands in my original post to create the new WebSites in IIS
2. Went into each of the new site's IIS settings and changed their Home Directory to their respective folders
3. Tried to refresh my view in IIS to get the right folder structure to display (no luck)
4. Restarted IIS to maybe catch any changes I made (no luck)
5. Restarted my computer (when in doubt, reboot... still no luck)
I've also tried resyncing the IWAM account, as I wasn't sure if that was why the WebSites were out of whack - no luck there either.
Please let me know if you need to know anything else.
Jan 20, 2008 10:59 PM|qbernard|LINK
Yes. in this case because you copy from /1 to /2. it will also copy the /1 details such as the setting of vdir etc. Just remove it at /2 in IIS MMC.