How to Install IIS on Windows 11: Complete Guide
In this article
Yes, you can install Internet Information Services (IIS) on Windows 11 Home and Pro editions. This feature allows your local machine to act as a web server, hosting websites, applications, or APIs for development and testing purposes without needing external cloud hosting.
What You'll Need
- A Windows 11 PC (Home or Pro edition)
- Administrator privileges on the account you are using
- An active internet connection (optional, but recommended for downloading dependencies)
Step-by-Step
- Open the Control Panel: Press the
Windows Key + Rto open the Run dialog. Typecontroland press Enter. Alternatively, search for "Control Panel" in the Start menu. - Navigate to Programs: In the Control Panel, ensure the view is set to "Categories." Click on Programs, then select Turn Windows features on or off. Note that menu labels may differ slightly depending on your specific Windows 11 build or region settings.
- Locate IIS: A small window titled "Windows Features" will appear. Scroll down the list until you find Internet Information Services. Do not click the checkbox next to it yet; instead, click the plus sign (
+) or the arrow to expand the tree menu. - Select Required Components: Expand Internet Information Services, then expand World Wide Web Services, and finally Common HTTP Features. Ensure the following four items are checked:
- Default Document
- Directory Browsing
- HTTP Errors
- Static Content
- Add Advanced Features (Optional): If you plan to run dynamic content like ASP.NET, PHP, or CGI scripts, you must expand World Wide Web Services > Application Development Features and check the relevant boxes (e.g., ASP.NET, CGI, ISAPI Extensions). For pure static HTML sites, this step is optional.
- Complete Installation: Click OK at the bottom of the window. Windows will search for required files and begin installing IIS. This process may take a few minutes. Do not interrupt the computer during this phase.
- Verify Installation: Once the installation completes, click Close. Open your preferred web browser and type
http://localhostin the address bar. If IIS is installed correctly, you will see the "IIS Welcome" page confirming successful setup.
Common Mistakes
Many users attempt to install IIS via the Microsoft Store or third-party software repositories, which is incorrect. IIS is a core OS component managed exclusively through the Windows Features dialog. Another frequent error is failing to grant permissions to the IUSR (Internet Guest Account) or IIS_IUSRS group if they receive 401 or 403 Forbidden errors when accessing custom folders. Additionally, users often forget to restart their browsers or clear the cache after installation, leading to confusion about whether the service is actually running.
Tips
To manage your site efficiently, use the IIS Manager app found in the Start menu. It provides a graphical interface for creating sites, configuring bindings, and managing application pools. If you are developing a modern web application, consider enabling WebSocket Protocol under Application Development Features if your app requires real-time communication. Always back up your %SystemRoot%\System32\inetsrv\config\applicationHost.config file before making significant changes to the global configuration.
Troubleshooting
If the localhost test fails, first check if the service is running. Press Windows Key + R, type services.msc, and look for World Wide Web Publishing Service. Ensure its status is "Running" and Startup Type is "Automatic." If it is stopped, right-click and select Start. If the service crashes repeatedly, check the Windows Event Viewer for errors related to the W3SVC service. Another common issue is port conflicts; if another application (like Skype or VMware) uses Port 80, IIS will fail to bind. Change the site binding in IIS Manager to use Port 8080 instead. Finally, ensure your firewall allows inbound connections on TCP Port 80 if you intend to access the site from another device on your network.
Frequently Asked Questions
Can I use IIS on Windows 11 Home?
Yes, IIS is available on both Windows 11 Home and Pro editions. The installation steps are identical for both versions.
Does IIS support PHP natively?
No, IIS does not include PHP by default. You must install the PHP language extension separately and configure FastCGI within IIS Manager to run PHP scripts.
How do I stop IIS from using Port 80?
Open IIS Manager, click on your server name in the left pane, double-click Bindings under the Management section, and edit or remove the binding for Port 80.
Is IIS secure for production use?
IIS is enterprise-grade and secure, but it requires proper hardening. By default, it exposes minimal information. You should configure SSL/TLS certificates, disable unnecessary modules, and restrict directory browsing for any public-facing deployment.
Where are my website files stored?
The default physical path for websites is C:\inetpub\wwwroot. You can change this location in IIS Manager by selecting the Default Web Site and clicking Basic Settings.