Hướng dẫn cài iis trên win server 2023 năm 2024
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Show
Installing and Configuring Web Deploy on IIS 8.0 or Later
In this articleby Jim van de Erve SummaryIn this walkthrough, we will show steps for installing and configuring Web Deploy on IIS 8.0 or later for administrator or non-administrator deployments. This means the steps necessary to enable a client to use Web Deploy to publish Web site content to the server, even if the client does not have administrator credentials for the server. Windows 8.0 and 8.1 do not come with the Web Management Service that is required for remote connections. For more information, see . Installing Web DeployYou can install Web Deploy by using the Web Platform Installer (Web PI) or the Web Deploy MSI.
Installing Web Deploy as Part of the Recommended Server Configuration for Web Hosting ProvidersWhen the Web Platform Installer installs the Recommended Server Configuration for Web Hosting Providers, it configures the web server with the most common deployment for web hosting providers. This package makes sure that the IIS 8.0 or later prerequisites required for Web Deploy are installed. Dependencies such as SQL Server Management Objects and SQL Server are selected automatically for installation, and installed with the Web PI prerequisites, such as the Web Service Management Handler. The package includes some optional components, such as PHP and MySQL, that you can choose not to install with this bundle by clicking the X next to them. The Recommended Server Configuration for Web Hosting Providers can be installed on Windows 2012 Server or later. For information about installing on earlier versions of Windows Server with IIS 7, see Installing and Configuring Web Deploy on IIS 7.
Using the Web Platform Installer to install Web Deploy SeparatelyYou can install Web Deploy separately with its dependencies, such as the Web Management Service (WMSvc). You can install the following versions of Web Deploy.
If you install Web Deploy directly in Web PI, rather than as part of the Recommended Server Configuration for Web Hosting Providers, the dependencies required for Web Deploy may not be installed. Using Web PI, Web Deploy can be installed on Windows 2012 Server or later, or Windows 8.0 or later. For information about installing on earlier versions of Windows Server or Windows with IIS 7, see Installing and Configuring Web Deploy on IIS 7. To install Web Deploy separately using Web PI:
Using the Web Deploy Installer to Install Web DeployYou can install Web Deploy directly using the MSI installer. Using the MSI directly is generally not recommended for the novice user, as recommended or required dependent products may need to be installed separately. The following limitations may create issues when using the MSI instead of Web PI to install Web Deploy on servers:
Using the Web Deploy Installer, Web Deploy can be installed on Windows 2012 Server or later, or Windows 8.0 or later. To install Web Deploy from the .msi file:
Configuring a Site for Delegated Non-Administrator DeploymentAfter installing Web Deploy, all server-level configuration is complete for non-administrator publishing; however, additional configuration is required at a site level. This site configuration can be accomplished using PowerShell or IIS Manager, as described below. Remote Publishing Cannot Be Set up on Windows 8.0 or 8.1You cannot set up remote publishing using Web Deploy for a site that is hosted in IIS on Windows 8.0 or 8.1. The reason is that the client SKUs for Windows do not come with the Web Management Service that is required for remote connections. As a result, on Windows 8.0 or 8.1, the IIS Manager Permissions icon and the Configure Web Deploy Publishing deployment option that are required to configure remote publishing are not available in the IIS Manager. When you use the Add Roles and Features wizard to install the Management Service role on Windows Server 2012 or later, the Web Management Service is installed and enabled. The IIS Manager Permissions icon is available for a Web site in the Management area of the IIS Manager, and the Configure Web Deploy Publishing deployment option is available in the Deploy menu for a Web site in IIS Manager. With these features, the Web Management Service allows you to configure publishing to a Web server from a remote computer using Web Deploy. Using PowerShell to configure Web Deploy for a Non-Administrator
Using the IIS Manager to configure Web Deploy for a Non-AdministratorThe following steps configure publishing on an existing site for an existing user using the IIS Manager UI.
The non-administrator Windows user (NonAdminUser) may now publish to the site. Install and Configure Web Deploy for Administrator deploymentsRequirements:Install Web Deploy using one of the procedures described above. Troubleshooting Common Issues:
Check to see if .NET 4.0 has not been registered with IIS: Symptoms: .NET 4.0 is installed, but there are no .NET 4.0 application pools or handler mappings in IIS. You cannot browse to applications that use .NET 4.0 (for example, applications based on WebMatrix's site template applications) after you publish them. |