{"id":117,"date":"2026-05-26T16:17:04","date_gmt":"2026-05-26T16:17:04","guid":{"rendered":"https:\/\/hostandtech.com\/kb\/windows-server\/how-to-install-configure-iis-windows-server\/"},"modified":"2026-05-26T16:17:04","modified_gmt":"2026-05-26T16:17:04","slug":"how-to-install-configure-iis-windows-server","status":"publish","type":"post","link":"https:\/\/hostandtech.com\/kb\/windows-server\/how-to-install-configure-iis-windows-server\/","title":{"rendered":"How to Install and Configure IIS on Windows Server"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>IIS (Internet Information Services) is the web server that ships with every copy of Windows Server. It&#8217;s not installed by default, but it&#8217;s a single role away. Once it&#8217;s running, you can host ASP.NET applications, static websites, PHP sites via FastCGI, and more \u2014 all managed through a graphical interface or PowerShell.<\/p>\n<p>Most people land here because they&#8217;ve just spun up a Windows Server VPS and have no idea why their site isn&#8217;t accessible yet. The answer is almost always that IIS hasn&#8217;t been installed, or it has been installed but hasn&#8217;t been properly bound to their domain. This guide covers both.<\/p>\n<p>The steps below apply to Windows Server 2019 and 2022. If you&#8217;re on a Host &amp; Tech <a href=\"https:\/\/www.hostandtech.com\/vps-ssd-servers\">VPS SSD Hosting<\/a> plan running Windows, this is where you start before deploying any web application.<\/p>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>Windows Server 2019 or 2022 (Standard or Datacenter edition)<\/li>\n<li>Administrator access to the server \u2014 either via RDP or directly at the console<\/li>\n<li>A static IP address assigned to the server (confirm this in Network Adapter Settings before you start)<\/li>\n<li>Firewall ports 80 (HTTP) and 443 (HTTPS) open \u2014 check your Host &amp; Tech firewall rules or Windows Firewall if traffic isn&#8217;t reaching the server<\/li>\n<li>If you&#8217;re pointing a domain at this server, DNS should already be configured. Allow up to 24\u201348 hours for propagation, though it&#8217;s usually much faster.<\/li>\n<\/ul>\n<h2>Step-by-Step Instructions<\/h2>\n<h3>Step 1: Install the IIS Role via Server Manager<\/h3>\n<p>The most straightforward way to install IIS on a fresh Windows Server is through Server Manager. If you prefer PowerShell, skip to Step 2.<\/p>\n<ol>\n<li>Open <strong>Server Manager<\/strong> (it usually opens automatically on login; if not, search for it in the Start menu).<\/li>\n<li>Click <strong>Manage<\/strong> in the top-right corner, then select <strong>Add Roles and Features<\/strong>.<\/li>\n<li>Click <strong>Next<\/strong> through the wizard until you reach the <strong>Server Roles<\/strong> screen.<\/li>\n<li>Check the box next to <strong>Web Server (IIS)<\/strong>. A dialog will appear asking you to add required features \u2014 click <strong>Add Features<\/strong>.<\/li>\n<li>On the <strong>Role Services<\/strong> screen, you&#8217;ll see a list of IIS components. The defaults cover basic static file serving. If you&#8217;re running ASP.NET, expand <strong>Application Development<\/strong> and check <strong>ASP.NET 4.8<\/strong> and <strong>.NET Extensibility 4.8<\/strong>. For PHP, you&#8217;ll add FastCGI support \u2014 check <strong>CGI<\/strong> under Application Development.<\/li>\n<li>Click <strong>Next<\/strong>, review the summary, then click <strong>Install<\/strong>. The install takes about 1\u20132 minutes.<\/li>\n<\/ol>\n<p>\ud83d\udcdd Note: You don&#8217;t need to restart the server after installing IIS in most cases, but the W3SVC (World Wide Web Publishing Service) will start automatically once the role is installed.<\/p>\n<h3>Step 2: Install IIS via PowerShell (Faster)<\/h3>\n<p>If you&#8217;re working headlessly or just prefer the command line, one command does the job. Open PowerShell as Administrator and run:<\/p>\n<div class='ht-code-snippet'><button class='ht-code-snippet__copy' onclick='htCopyCode(\"code-block-1\")' type='button' aria-label='Copy code'><svg class='ht-copy-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z'><\/path><path d='M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z'><\/path><\/svg><svg class='ht-check-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M13,24l-9-9,1.414-1.414L13,21.171,26.586,7.586,28,9Z'><\/path><\/svg><\/button><span class='ht-code-snippet__feedback'>Copied to clipboard<\/span><\/p>\n<pre class='ht-code-snippet__code' id='code-block-1'><code class=\"\" data-line=\"\">Install-WindowsFeature -Name Web-Server -IncludeManagementTools -IncludeAllSubFeature<\/code><\/pre>\n<\/div>\n<p>The <code class=\"\" data-line=\"\">-IncludeAllSubFeature<\/code> flag installs all IIS role services at once \u2014 static content, ASP.NET, CGI, logging, health\/diagnostics, the works. It&#8217;s more than the minimum, but it saves you the annoyance of missing a sub-feature later and wondering why something doesn&#8217;t work.<\/p>\n<p>To verify the installation succeeded:<\/p>\n<div class='ht-code-snippet'><button class='ht-code-snippet__copy' onclick='htCopyCode(\"code-block-2\")' type='button' aria-label='Copy code'><svg class='ht-copy-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z'><\/path><path d='M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z'><\/path><\/svg><svg class='ht-check-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M13,24l-9-9,1.414-1.414L13,21.171,26.586,7.586,28,9Z'><\/path><\/svg><\/button><span class='ht-code-snippet__feedback'>Copied to clipboard<\/span><\/p>\n<pre class='ht-code-snippet__code' id='code-block-2'><code class=\"\" data-line=\"\">Get-WindowsFeature -Name Web-Server | Select-Object Name, InstallState<\/code><\/pre>\n<\/div>\n<p>You should see <code class=\"\" data-line=\"\">InstallState: Installed<\/code>.<\/p>\n<h3>Step 3: Verify IIS Is Running<\/h3>\n<p>Open a browser on the server itself and go to <code class=\"\" data-line=\"\">http:\/\/localhost<\/code>. You should see the default IIS welcome page \u2014 a blue screen that says &#8220;Internet Information Services.&#8221; If you see that, IIS is running.<\/p>\n<p>You can also confirm via PowerShell:<\/p>\n<div class='ht-code-snippet'><button class='ht-code-snippet__copy' onclick='htCopyCode(\"code-block-3\")' type='button' aria-label='Copy code'><svg class='ht-copy-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z'><\/path><path d='M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z'><\/path><\/svg><svg class='ht-check-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M13,24l-9-9,1.414-1.414L13,21.171,26.586,7.586,28,9Z'><\/path><\/svg><\/button><span class='ht-code-snippet__feedback'>Copied to clipboard<\/span><\/p>\n<pre class='ht-code-snippet__code' id='code-block-3'><code class=\"\" data-line=\"\">Get-Service -Name W3SVC<\/code><\/pre>\n<\/div>\n<p>The status should be <code class=\"\" data-line=\"\">Running<\/code>. If it&#8217;s stopped, start it with:<\/p>\n<div class='ht-code-snippet'><button class='ht-code-snippet__copy' onclick='htCopyCode(\"code-block-4\")' type='button' aria-label='Copy code'><svg class='ht-copy-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z'><\/path><path d='M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z'><\/path><\/svg><svg class='ht-check-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M13,24l-9-9,1.414-1.414L13,21.171,26.586,7.586,28,9Z'><\/path><\/svg><\/button><span class='ht-code-snippet__feedback'>Copied to clipboard<\/span><\/p>\n<pre class='ht-code-snippet__code' id='code-block-4'><code class=\"\" data-line=\"\">Start-Service -Name W3SVC<\/code><\/pre>\n<\/div>\n<h3>Step 4: Open IIS Manager<\/h3>\n<p>IIS Manager is the GUI you&#8217;ll use to manage sites, application pools, bindings, and SSL certificates. Open it by pressing <strong>Win + R<\/strong>, typing <code class=\"\" data-line=\"\">inetmgr<\/code>, and hitting Enter. Alternatively, find it in <strong>Server Manager &gt; Tools &gt; Internet Information Services (IIS) Manager<\/strong>.<\/p>\n<h3>Step 5: Add a New Website<\/h3>\n<p>The default IIS site serves files from <code class=\"\" data-line=\"\">C:inetpubwwwroot<\/code>. For a real deployment, you&#8217;ll want your own site with its own folder and bindings.<\/p>\n<ol>\n<li>In IIS Manager, expand the server node in the left pane.<\/li>\n<li>Right-click <strong>Sites<\/strong> and select <strong>Add Website<\/strong>.<\/li>\n<li>Fill in the fields:\n<ul>\n<li><strong>Site name:<\/strong> Something descriptive, like <code class=\"\" data-line=\"\">mysite.com<\/code><\/li>\n<li><strong>Physical path:<\/strong> The folder where your site files live, e.g. <code class=\"\" data-line=\"\">C:inetpubsitesmysite.com<\/code><\/li>\n<li><strong>Binding:<\/strong> Leave Type as <code class=\"\" data-line=\"\">http<\/code>, set IP Address to your server&#8217;s IP or leave as <code class=\"\" data-line=\"\">All Unassigned<\/code>, Port <code class=\"\" data-line=\"\">80<\/code>, and enter your domain in the <strong>Host name<\/strong> field (e.g. <code class=\"\" data-line=\"\">mysite.com<\/code>)<\/li>\n<\/ul>\n<\/li>\n<li>Click <strong>OK<\/strong>.<\/li>\n<\/ol>\n<p>\u26a0 Warning: If you leave the Host name field blank and you have more than one site, IIS won&#8217;t know which site to serve for incoming requests. Always set the host name binding unless you&#8217;re running a single site with one IP.<\/p>\n<p>\ud83d\udcdd Note: Create the physical path folder before adding the site, or IIS will show a warning. You can do it quickly in PowerShell: <code class=\"\" data-line=\"\">New-Item -ItemType Directory -Path &quot;C:inetpubsitesmysite.com&quot;<\/code><\/p>\n<h3>Step 6: Configure Application Pool<\/h3>\n<p>Every IIS site runs under an Application Pool, which controls the .NET version and worker process settings. By default, a new pool is created with the same name as your site.<\/p>\n<p>To adjust it: in IIS Manager, click <strong>Application Pools<\/strong>, right-click your pool, and select <strong>Basic Settings<\/strong>. If you&#8217;re hosting a classic ASP.NET app, set <strong>.NET CLR Version<\/strong> to <strong>v4.0<\/strong>. For modern ASP.NET Core apps, set it to <strong>No Managed Code<\/strong> (ASP.NET Core handles its own runtime via the hosting bundle).<\/p>\n<p>I&#8217;d recommend setting the <strong>Identity<\/strong> of the app pool to a dedicated local user with only the permissions it needs, rather than leaving it as <code class=\"\" data-line=\"\">ApplicationPoolIdentity<\/code> for anything public-facing.<\/p>\n<h3>Step 7: Allow IIS Through Windows Firewall<\/h3>\n<p>IIS installation doesn&#8217;t automatically open firewall ports. Run these commands in an elevated PowerShell session:<\/p>\n<div class='ht-code-snippet'><button class='ht-code-snippet__copy' onclick='htCopyCode(\"code-block-5\")' type='button' aria-label='Copy code'><svg class='ht-copy-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z'><\/path><path d='M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z'><\/path><\/svg><svg class='ht-check-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M13,24l-9-9,1.414-1.414L13,21.171,26.586,7.586,28,9Z'><\/path><\/svg><\/button><span class='ht-code-snippet__feedback'>Copied to clipboard<\/span><\/p>\n<pre class='ht-code-snippet__code' id='code-block-5'><code class=\"\" data-line=\"\">netsh advfirewall firewall add rule name=&quot;IIS HTTP&quot; protocol=TCP dir=in localport=80 action=allow\nnetsh advfirewall firewall add rule name=&quot;IIS HTTPS&quot; protocol=TCP dir=in localport=443 action=allow<\/code><\/pre>\n<\/div>\n<p>If you&#8217;re on a Host &amp; Tech VPS or dedicated server, also check the network-level firewall in your control panel \u2014 Windows Firewall and the host firewall are separate layers.<\/p>\n<h3>Step 8: Test External Access<\/h3>\n<p>From a different machine (not the server itself), open a browser and navigate to your server&#8217;s IP address. If you&#8217;ve configured a domain and DNS has propagated, test by domain name too. You should see your site or the default IIS page.<\/p>\n<p>If nothing loads, work through the troubleshooting section below before assuming something is misconfigured in IIS.<\/p>\n<h2>Common Issues &amp; Troubleshooting<\/h2>\n<h3>HTTP Error 403.14 \u2014 Directory Listing Denied<\/h3>\n<p>This means IIS found the folder you pointed it to, but there&#8217;s no default document (like <code class=\"\" data-line=\"\">index.html<\/code> or <code class=\"\" data-line=\"\">default.aspx<\/code>) in it, and directory browsing is off. Either add an <code class=\"\" data-line=\"\">index.html<\/code> file to your site folder, or go to <strong>IIS Manager &gt; your site &gt; Default Document<\/strong> and confirm the file names listed there match what you&#8217;ve actually deployed. This catches a lot of people who upload <code class=\"\" data-line=\"\">index.htm<\/code> when IIS is looking for <code class=\"\" data-line=\"\">index.html<\/code>.<\/p>\n<h3>HTTP Error 503 \u2014 Service Unavailable<\/h3>\n<p>The application pool has stopped. This usually happens because the pool crashed (often due to a bad app config or missing .NET version) or it hit the rapid-fail protection limit. In IIS Manager, go to <strong>Application Pools<\/strong>, find the pool for your site, and check its status. If it says <strong>Stopped<\/strong>, right-click and select <strong>Start<\/strong>. Check the Windows Event Viewer under <strong>Windows Logs &gt; Application<\/strong> for the underlying error \u2014 that&#8217;s where the real cause hides.<\/p>\n<h3>Site Loads on localhost But Not Externally<\/h3>\n<p>Almost always a firewall issue. Confirm ports 80 and 443 are open in both Windows Firewall and your host-level firewall. You can test quickly from another machine using:<\/p>\n<div class='ht-code-snippet'><button class='ht-code-snippet__copy' onclick='htCopyCode(\"code-block-6\")' type='button' aria-label='Copy code'><svg class='ht-copy-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z'><\/path><path d='M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z'><\/path><\/svg><svg class='ht-check-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M13,24l-9-9,1.414-1.414L13,21.171,26.586,7.586,28,9Z'><\/path><\/svg><\/button><span class='ht-code-snippet__feedback'>Copied to clipboard<\/span><\/p>\n<pre class='ht-code-snippet__code' id='code-block-6'><code class=\"\" data-line=\"\">Test-NetConnection -ComputerName YOUR_SERVER_IP -Port 80<\/code><\/pre>\n<\/div>\n<p>If <code class=\"\" data-line=\"\">TcpTestSucceeded<\/code> returns <code class=\"\" data-line=\"\">False<\/code>, the port is blocked somewhere in the network path \u2014 not inside IIS.<\/p>\n<h3>HTTP Error 500.19 \u2014 Internal Server Error (Config Error)<\/h3>\n<p>This error usually means IIS can&#8217;t read your <code class=\"\" data-line=\"\">web.config<\/code> file \u2014 either the file has a syntax error, or the IIS worker process doesn&#8217;t have read permission on the site folder. Check permissions first: right-click the site folder, go to <strong>Security<\/strong>, and make sure <code class=\"\" data-line=\"\">IIS_IUSRS<\/code> and your app pool identity have at least Read &amp; Execute access. Then validate your <code class=\"\" data-line=\"\">web.config<\/code> XML syntax \u2014 a missing closing tag will cause this every time.<\/p>\n<h3>IIS Manager Doesn&#8217;t Show After Installation<\/h3>\n<p>This happens when the <strong>IIS Management Console<\/strong> feature wasn&#8217;t included in the installation. Fix it with:<\/p>\n<div class='ht-code-snippet'><button class='ht-code-snippet__copy' onclick='htCopyCode(\"code-block-7\")' type='button' aria-label='Copy code'><svg class='ht-copy-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z'><\/path><path d='M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z'><\/path><\/svg><svg class='ht-check-icon' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'><path d='M13,24l-9-9,1.414-1.414L13,21.171,26.586,7.586,28,9Z'><\/path><\/svg><\/button><span class='ht-code-snippet__feedback'>Copied to clipboard<\/span><\/p>\n<pre class='ht-code-snippet__code' id='code-block-7'><code class=\"\" data-line=\"\">Install-WindowsFeature -Name Web-Mgmt-Console<\/code><\/pre>\n<\/div>\n<p>Then run <code class=\"\" data-line=\"\">inetmgr<\/code> again. It&#8217;ll be there.<\/p>\n<div class='ht-faq-section'>\n<h2>Frequently Asked Questions<\/h2>\n<div class='ht-faq-item'>\n<h3 class='ht-faq-question'>Does IIS come pre-installed on Windows Server?<\/h3>\n<div class='ht-faq-answer'>\n<p>No. IIS is available on every Windows Server edition but has to be manually installed as a server role. It&#8217;s not running out of the box. Use Server Manager or the PowerShell Install-WindowsFeature command to add it.<\/p>\n<\/div>\n<\/div>\n<div class='ht-faq-item'>\n<h3 class='ht-faq-question'>Can I run PHP on IIS?<\/h3>\n<div class='ht-faq-answer'>\n<p>Yes. You need to install the CGI role service in IIS, then download the PHP Windows binaries from php.net and configure a FastCGI handler in IIS Manager. It&#8217;s a bit more setup than PHP on Linux\/Apache, but it works well. Microsoft&#8217;s official PHP on IIS documentation covers the handler mapping steps in detail.<\/p>\n<\/div>\n<\/div>\n<div class='ht-faq-item'>\n<h3 class='ht-faq-question'>How do I add an SSL certificate to IIS?<\/h3>\n<div class='ht-faq-answer'>\n<p>In IIS Manager, click on your server node, then open Server Certificates. From there you can import a PFX file, request a certificate from a CA, or create a self-signed cert for testing. After the cert is installed, go to your site&#8217;s Bindings, add an HTTPS binding on port 443, and select the certificate from the dropdown.<\/p>\n<\/div>\n<\/div>\n<div class='ht-faq-item'>\n<h3 class='ht-faq-question'>What&#039;s the default website folder path in IIS?<\/h3>\n<div class='ht-faq-answer'>\n<p>C:inetpubwwwroot is the default physical path for the built-in Default Web Site. You can put files there for quick testing, but for production sites you should create a dedicated folder (e.g. C:inetpubsitesyourdomain.com) and add a new site with its own bindings and app pool.<\/p>\n<\/div>\n<\/div>\n<div class='ht-faq-item'>\n<h3 class='ht-faq-question'>How do I restart IIS without rebooting the server?<\/h3>\n<div class='ht-faq-answer'>\n<p>Open an elevated command prompt or PowerShell and run iisreset. This recycles all application pools and restarts the IIS service without touching the rest of the server. You can also restart individual app pools in IIS Manager if you only need to reset one site&#8217;s worker process.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>IIS (Internet Information Services) is Microsoft&#8217;s built-in web server for Windows. This guide walks you through installing and configuring it on Windows Server 2019 or 2022, from enabling the role to serving your first site.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[84],"tags":[85,115,86,87,67],"class_list":["post-117","post","type-post","status-publish","format-standard","hentry","category-windows-server","tag-iis","tag-iis-configuration","tag-web-server","tag-windows-hosting","tag-windows-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install and Configure IIS on Windows Server<\/title>\n<meta name=\"description\" content=\"Step-by-step guide to IIS installation on Windows Server 2019 and 2022. Install, configure, and test your Windows web server in under 30 minutes.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hostandtech.com\/kb\/windows-server\/how-to-install-configure-iis-windows-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install and Configure IIS on Windows Server\" \/>\n<meta property=\"og:description\" content=\"Step-by-step guide to IIS installation on Windows Server 2019 and 2022. Install, configure, and test your Windows web server in under 30 minutes.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hostandtech.com\/kb\/windows-server\/how-to-install-configure-iis-windows-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Host And Tech knowledge base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/stshostandtech\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-26T16:17:04+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:site\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/windows-server\\\/how-to-install-configure-iis-windows-server\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/windows-server\\\/how-to-install-configure-iis-windows-server\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/person\\\/b6fa79c48ddaba71af32e395c5b017ee\"},\"headline\":\"How to Install and Configure IIS on Windows Server\",\"datePublished\":\"2026-05-26T16:17:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/windows-server\\\/how-to-install-configure-iis-windows-server\\\/\"},\"wordCount\":1626,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\"},\"keywords\":[\"IIS\",\"IIS configuration\",\"web server\",\"Windows hosting\",\"Windows Server\"],\"articleSection\":[\"Windows Server\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hostandtech.com\\\/kb\\\/windows-server\\\/how-to-install-configure-iis-windows-server\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/windows-server\\\/how-to-install-configure-iis-windows-server\\\/\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/windows-server\\\/how-to-install-configure-iis-windows-server\\\/\",\"name\":\"How to Install and Configure IIS on Windows Server\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#website\"},\"datePublished\":\"2026-05-26T16:17:04+00:00\",\"description\":\"Step-by-step guide to IIS installation on Windows Server 2019 and 2022. Install, configure, and test your Windows web server in under 30 minutes.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/windows-server\\\/how-to-install-configure-iis-windows-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hostandtech.com\\\/kb\\\/windows-server\\\/how-to-install-configure-iis-windows-server\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/windows-server\\\/how-to-install-configure-iis-windows-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install and Configure IIS on Windows Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\",\"name\":\"Host And Tech knowledge base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\",\"name\":\"Host And Tech knowledge base\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/logo-dark.png\",\"contentUrl\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/logo-dark.png\",\"width\":1134,\"height\":395,\"caption\":\"Host And Tech knowledge base\"},\"image\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/stshostandtech\",\"https:\\\/\\\/x.com\\\/stshostandtech\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/person\\\/b6fa79c48ddaba71af32e395c5b017ee\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/hostandtech.com\\\/kb\"],\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/author\\\/admin_fjj7qydm\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install and Configure IIS on Windows Server","description":"Step-by-step guide to IIS installation on Windows Server 2019 and 2022. Install, configure, and test your Windows web server in under 30 minutes.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hostandtech.com\/kb\/windows-server\/how-to-install-configure-iis-windows-server\/","og_locale":"en_US","og_type":"article","og_title":"How to Install and Configure IIS on Windows Server","og_description":"Step-by-step guide to IIS installation on Windows Server 2019 and 2022. Install, configure, and test your Windows web server in under 30 minutes.","og_url":"https:\/\/hostandtech.com\/kb\/windows-server\/how-to-install-configure-iis-windows-server\/","og_site_name":"Host And Tech knowledge base","article_publisher":"https:\/\/www.facebook.com\/stshostandtech","article_published_time":"2026-05-26T16:17:04+00:00","author":"admin","twitter_card":"summary_large_image","twitter_creator":"@stshostandtech","twitter_site":"@stshostandtech","twitter_misc":{"Written by":"admin","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hostandtech.com\/kb\/windows-server\/how-to-install-configure-iis-windows-server\/#article","isPartOf":{"@id":"https:\/\/hostandtech.com\/kb\/windows-server\/how-to-install-configure-iis-windows-server\/"},"author":{"name":"admin","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/person\/b6fa79c48ddaba71af32e395c5b017ee"},"headline":"How to Install and Configure IIS on Windows Server","datePublished":"2026-05-26T16:17:04+00:00","mainEntityOfPage":{"@id":"https:\/\/hostandtech.com\/kb\/windows-server\/how-to-install-configure-iis-windows-server\/"},"wordCount":1626,"commentCount":0,"publisher":{"@id":"https:\/\/hostandtech.com\/kb\/#organization"},"keywords":["IIS","IIS configuration","web server","Windows hosting","Windows Server"],"articleSection":["Windows Server"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hostandtech.com\/kb\/windows-server\/how-to-install-configure-iis-windows-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hostandtech.com\/kb\/windows-server\/how-to-install-configure-iis-windows-server\/","url":"https:\/\/hostandtech.com\/kb\/windows-server\/how-to-install-configure-iis-windows-server\/","name":"How to Install and Configure IIS on Windows Server","isPartOf":{"@id":"https:\/\/hostandtech.com\/kb\/#website"},"datePublished":"2026-05-26T16:17:04+00:00","description":"Step-by-step guide to IIS installation on Windows Server 2019 and 2022. Install, configure, and test your Windows web server in under 30 minutes.","breadcrumb":{"@id":"https:\/\/hostandtech.com\/kb\/windows-server\/how-to-install-configure-iis-windows-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hostandtech.com\/kb\/windows-server\/how-to-install-configure-iis-windows-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/hostandtech.com\/kb\/windows-server\/how-to-install-configure-iis-windows-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hostandtech.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to Install and Configure IIS on Windows Server"}]},{"@type":"WebSite","@id":"https:\/\/hostandtech.com\/kb\/#website","url":"https:\/\/hostandtech.com\/kb\/","name":"Host And Tech knowledge base","description":"","publisher":{"@id":"https:\/\/hostandtech.com\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hostandtech.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hostandtech.com\/kb\/#organization","name":"Host And Tech knowledge base","url":"https:\/\/hostandtech.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/05\/logo-dark.png","contentUrl":"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/05\/logo-dark.png","width":1134,"height":395,"caption":"Host And Tech knowledge base"},"image":{"@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/stshostandtech","https:\/\/x.com\/stshostandtech"]},{"@type":"Person","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/person\/b6fa79c48ddaba71af32e395c5b017ee","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/hostandtech.com\/kb"],"url":"https:\/\/hostandtech.com\/kb\/author\/admin_fjj7qydm\/"}]}},"_links":{"self":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts\/117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/comments?post=117"}],"version-history":[{"count":0,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts\/117\/revisions"}],"wp:attachment":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/media?parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/categories?post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/tags?post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}