How to Install and Configure IIS Web Server on Windows Server 2022?

Internet Information Services (IIS), previously called Internet Information Server, is a versatile web server software developed by Microsoft specifically designed for integration with the Windows NT family (typically utilized with Windows Server 2008, 2012, 2016, 2019, and 2022).

IIS supports protocols including HTTP, HTTP/2, HTTPS, FTP, FTPS, SMTP, and NNTP. It has been an integral component of the Windows NT family since the release of Windows NT 4.0. However, it may not be included in specific editions (like Windows XP Home edition) and usually requires manual activation.

Installing and configuring the Internet Information Services (IIS) web server on Windows Server 2022 is essential for hosting and managing web applications and websites. IIS provides a robust platform for web content, supporting various technologies such as ASP.NET, PHP, and HTML. 

This article will guide you through installing & configuring IIS on Windows Server 2022, enabling you to create a secure and effective web hosting environment customized to your requirements.


Set up IIS using the graphical interface (GUI)

Step 1: Launch Server Manager from the startup menu. If it's not visible, you can easily find it by typing "Server Manager" while the start menu is open, and it should appear in the search results.

Sep 2: Next, select "ADD ROLE AND FEATURES."

Step 3: Proceed by clicking the "Next" button on the following screen.

Step 4: Select "Role-based or feature-based installation" & click " Next."

Step 5: Choose the server from the list of servers.

Step 6: Check the box next to "Web Server (IIS)" in the "select server roles" window. A new window will appear to specify additional functions; click the ''Add Features'' button. Once finished, click the Next button.

Step 7: On the "Select Features" console, click "Next" as no additional features are required.

A standard IIS installation typically doesn't require a reboot. However, removing the role will require a reboot.

Step 8: The Web Server Role (IIS) console provides brief information about the Web Server (IIS). Click "Next" to continue.

Step 9: To proceed, click " Next."

Step 10: Review the installation selections and click "Install."

Step 11: Upon completing the installation, click on "Close."

Step 12: Open a web browser and confirm that IIS is running.

Set up the default site on IIS.

If you wish to add a new site to IIS, please refer to this article.

Step 1: Launch the Server Manager dashboard, then click on "Tools" and choose "Internet Information Services (IIS) Manager."

Step 2: Right-click Default Web Site, select Manage Website, and choose Advanced Settings.

Step 3: In Advanced Settings, click on Physical Path to select a different document root.

Step 4: Choose the document root directory. (C:\website)

Step 5: Please press OK to proceed.

Step 6: The Default Documents feature within IIS Manager allows you to specify the default files.

Step 7: Default Documents.

Step 8: Generate an index.html file in the root directory and Confirm accessibility using a web browser.



In conclusion, installing and configuring the IIS Web Server is a simple process that involves enabling the necessary features through Server Manager or PowerShell, configuring basic settings such as default documents and bindings, and ensuring proper security measures. Following the steps outlined in this article, users can effectively set up an IIS Web Server environment tailored to their needs, ready to host websites and applications efficiently and reliably on Windows Server 2022.

Was this answer helpful?

« Back