Pages

Thursday, September 1, 2011

Migration of IIS 6 server to IIS 7 or IIS 7.5 server

There could be time when we do migration of web server , I have mentioned the process to migration of IIS 6 server to IIS 7 or IIS 7.5 server. Environmental element you need are:

Source : - IIS 6 web server running on Windows 2003 operating system
Destination :  - IIS 7 web Server running on Windows 2008 operating system
Migration Software : - Microsoft Web Deploy

First we need to identify the dependencies for the web application, and then we need to create the source package of the website we need to migrate. Once created we will copy that source to the IIS 7 server and will do the actual migration. I have tried my best to keep it simple and broken it in bits.

Dependency List
At the command prompt, type:
msdeploy –verb:getDependencies –source:metakey=lm/w3svc/#siteid
By the data return as result of above command , you will get idea that what components are installed and available for use for this site. Any dependency listed here needs to get installed on IIS7 server (destination server) otherwise installation will fail.

Source Creation
Creating a backup Folder, On the IIS 6 source server execute below command :
msdeploy -verb:sync  -source:metakey=lm/w3svc/# siteid -dest:archivedir=c:\IIS6SiteBackup

Move the backup
Move the folder created above c:\IIS6SiteBackup to the destination server or to any share on reach.

Actual Migration
On IIS 7 (destination server) type the command given below and execute it
msdeploy -verb:migrate -source:archivedir=c:\IIS6SiteBackup -dest:metakey=lm/w3svc/# siteid

Post Migration
You may need to reconfigure some components like PHP, Ajax, ASp.NEt , Perl. If you have installed each of these elements in exactly same drive / path then probably you wont require customisation.

I wish this may help you.