Installing IIS On Windows 10 And Windows Server 2019
Remember IIS stands for Internet Information Services, if you do not know what it is you can read my last post explaining what IIS is, or feel free to use your favorite browser to look it up!
Installing IIS
Windows 10
First, you have to enable it. Search ‘Turn Windows features on or off’.
Look for ‘Internet Information Services’, check it and click ‘Ok’.
It should be install by now, look for ‘IIS’ and open ‘Internet Information Services (IIS) Manager’:
In the Internet Information Services Manager, you can see the default website by clicking the dropdown menu on the left, and again in the dropdown menu of ‘Sites’ you should see the ‘Default Web Site’. Its root folder is located at ‘C:\inetpub\wwwroot’.
In your browser type ‘localhost’ and you should see the following:
Awesome! You have just installed IIS in your Windows!
Windows Server 2019
Create a free trial account in Azure Microsoft and a Virtual Machine with Windows Server 2019.
Open the ‘Server Manager’:
Click ‘Add roles and features’:
Hit ‘Next’ three times until you are at the following screen and search for ‘IIS’ and checkbox it:
A pop out will appear, just click ‘Add Features’.
Click ‘Next’ four times and ‘Install’.
After installation is complete you can close it and search ‘IIS’.
By default, it has a website already set up. You can view it by typing “localhost” in your browser or typing you IP address. Remember that its root folder is located at ‘C:\inetpub\wwwroot’.
When installed it will enable the HTTP port(80) firewall rule in Windows Firewall.
Viewing and Installing Modules
Modules enhances the functionality provided by IIS. They can provide URL rewrite, authentication, tracing capabilities, compression, and much more.
Windows 10
Search the ‘Turn Windows features on or off’:
‘Control Panel > Programs > Turn Windows features on or off’
Once you click the dropdown menu you will find all the modules, checkbox the ones you want to install and hit ‘Ok’.
Via Server Manager (Windows Server)
Search for ‘Server Manager’.
Click ‘Next’ three times, search for ‘Web Server (IIS).
Once you click the dropdown menu you will see all the available modules, checkbox the ones you need and install them.
That’s it.
Via Windows PowerShell (Windows Server)
Open Windows PowerShell and type the following command:
Get-WindowsFeature
You will see a huge list, search for ‘Web Server (IIS)’ and all their ‘children’ are the modules.
If you want to install one module, look for its name in the middle column and type:
Install-WindowsFeature -name <NAME OF MODULE>
Install-WindowsFeature -name Web-Http-Redirect
Final Thoughts
- IIS can be installed in Windows 10.
- IIS can be installed in Windows Server.
- Modules enhances the functionality provided by IIS.
- The root of the default website is in ‘C:\inetpub\wwwroot’.