How To Migrate A Website From IIS 6 to IIS 7

IIS 7 was developed to overcome the shortcoming of IIS 6. New features were added with the release of IIS 7. You can easily migrate your website from IIS 6 to IIS 7 to experience the new technology and become faster & efficient.

This guide will explain how you can migrate your website (configuration settings, content & certifications) from IIS 6 to IIS 7 using a Web Deployment Tool.

Prerequisites

  • Web Deployment Tool
  • Website in IIS 6 server
  • Target IIS 7 server
  • Installation dependencies

Step 1:

Before initiating the migration process,

it is very important to check whether all the dependencies of the site are present or not
. To check this, run the command below in the web deployment tool
msdeploy -verb:getDependencies -source:metakey=lm/w3svc/1

The value 1 represents the default website

Review the output and look for any scripts or components that are currently used by the site. If the site uses Windows authentication, then it will show <dependecy name= “WindowsAuthentication” />

Step 2:

After checking the status of the dependencies on the source server, you need to make sure they are installed on the destination server too.
If you had Windows Authentication & ASP.NET installed on the source server, you need to make sure that these components are present in the destination server too.

If the dependencies and components are not the same, then the migration will not complete. You can remove unwanted components or dependencies from the XML file in the backup directory.

Step 3:

Now, you are ready to migrate your website from IIS 6 to IIS 7.

For safe migration, consider making a backup of your destination server
. It will help to restore to the initial state of the server if the migration fails for an unknown reason.

To create a backup of the destination server, run the following command in the Web Deploy tool.

%windir%system32inetsrvappcmd add backup "PreMsDeploy"

After setting up a backup, you can compress it to an archive using the command below

msdeploy -verb:sync -source:metakey=lm/w3svc/1 -dest:archivedir=c:mysitearchive

Now, You can validate the effect of a migration by executing the command on the destination server.

msdeploy -verb:migrate -source:archivedir=c:mysitearchive -dest:metakey=lm/w3svc/1 -whatif> msdeploymigrate.log

Step 4:

After taking all necessary steps, you are now all set to migrate your website from IIS 6 to IIS 7. Run the following command to start the migration.
msdeploy -verb:sync -source:package=c:mysitearchive -dest:metakey=lm/w3svc/1 > WebDeploySync.log

This concludes the migration of the website from IIS 6 to IIS 7. Some components like PHP, AJAX, ASP.NET needs to be configured after the migration independently by matching the configuration from the source IIS 6 server.

Conclusion:

In this guide, you learned how to successfully migrate a website from IIS 6 to IIS 7 by reviewing the dependencies, configuring the destination IIS server and using a Web Deployment tool.

Check out these top 3 Windows hosting services:

HostArmada
£1.41 /mo
Starting price
Visit HostArmada
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.5
  • Features
    4.5
  • Reliability
    4.5
  • Pricing
    4.0
IONOS
£0.79 /mo
Starting price
Visit IONOS
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.0
  • Features
    4.5
  • Reliability
    4.5
  • Pricing
    4.3
Ultahost
£2.28 /mo
Starting price
Visit Ultahost
Rating based on expert review
  • User Friendly
    4.3
  • Support
    4.8
  • Features
    4.5
  • Reliability
    4.0
  • Pricing
    4.8

How to Install the WISA (Windows, IIS, SQL, ASP.NET) Stack

WISA is an acronym which stands for (Windows, IIS, SQL, and ASP.net).WISA uses W
3 min read
Vladimir Rakov
Vladimir Rakov
Hosting Expert

How to Deploy IIS and ASP.NET with the Puppet Module

Puppet is a great tool for automating Windows server management, including file
2 min read
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert

How To Enable mod_rewrite On IIS

This tutorial will teach you how to enable mod_rewrite function on IIS web serv
2 min read
Max Ostryzhko
Max Ostryzhko
Senior Web Developer, HostAdvice CTO

How To Harden a Windows IIS Web Server

The article covers how to improve security in Windows Internet Information servi
3 min read
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top