Install and Setup a Website in IIS on Windows 10

If you want to learn more about vane purpose and development, installing Internet data Services ( IIS ) on your Windows 10 calculator is a good method acting. IIS is a free Windows Feature included in Windows 10, so why not use it ?
IIS is a full-featured vane and FTP waiter with some herculean admin tools, solid security features, and can be used to host ASP.NET and PHP applications on the like waiter. You can evening host WordPress sites on IIS .
table of Contents

    IIS Featured Image There are three ways to install and set up a web site in IIS on Windows 10 ; using the Graphical User Interface ( GUI ), PowerShell, or Windows CMD. We ’ ll be using each method acting to do a basic facility of IIS.

    Install IIS Using The GUI

    This is the point-and-click method acting to set up a web site in IIS. It ’ s the ideal method acting if you haven ’ metric ton learned PowerShell or Windows commands .

    1. Start typing “turn on windows” in the Search bar. The Turn Windows features on or off utility will show as a result. Click on it.

    GUI search turn windows features on off

    1. The Windows Features window will open. It may take a bit for the different features to load. Once it does, click on the checkbox next to Internet Information Services and then click the OK button.

    GUI select IIS

    1. The installation will begin and can take several minutes. Once it’s completed, click on the Close button.

    GUI completed requested changes

    1. To ensure that IIS is installed and working, type IIS in the Search bar near the Start button. You’ll see the Internet Information Services Manager as a result. Click on that to open it.

    Open IIS

    1. When IIS Manager opens, look in the left pane of the window under Connections. Expand the tree menu until you see Default Web Site. That’s a placeholder site that is installed with IIS. Click on it to select it.

    Select Default Web Site

    1. On the right side of the IIS Manager look under the Browse Website section. Click on Browse *:80 (http). That will open the default web site in your default web browser.

    Open Default Web Site

    1. You’ll see a web page like the following. Notice in the address bar that it says localhost. That’s the address to type in to go to your new website.

    Default site in browser

    Create Your First Web Page for IIS

    Before we go into the other two methods of installing IIS, let ’ s see where the files that make your web site are stored. We ’ ll besides make a very basic world wide web page. once you know how to do this, you ’ ll know the basics to jump into learning vane design and exploitation .

    1. After IIS is installed, open File Explorer. Navigate to C:\intepub\wwwroot. That’s where the files that make up the website need to be stored. You’ll see the default IIS web page file, iisstart.html, and the image shown on the page, iisstart.png. This is where you’ll save your first web page.

    inetpub wwwroot

    1. Open Notepad as administrator. To save to the wwwroot location, you must be an administrator.

    Open notepad administrator

    1. Save the file to the wwwroot location. Name it index.html and change the Save as type: to All Files. Then click the Save button.

    Save html file

    1. Now that it’s saved as the right filetype, let’s put some content in it. Enter the following HTML code for a very basic web page and save it:

    Hello World!

    HTML in Notepad

    1. Go back to the web browser that has the default IIS web page. Click on the refresh button. You will now see your first web page.

    Hello world That ’ s it ! You ’ ve just created and published your first web site on IIS .

    Install IIS Using Windows Commands

    We can reduce the work of installing IIS to a one-line command. It can be done in either Windows Command Prompt or using PowerShell. We ’ ll show you how to do it with Windows command first base, but learning PowerShell would be of capital benefit in the future.

    1. Type cmd in the search bar and the top result should be Command Prompt. Click on Run as administrator.

    Open CMD administrator

    1. Type in the command DISM /online /enable-feature /featureName:IIS-DefaultDocument /All and press Enter.

    DISM install IIS command

    1. You’ll see a progress bar appear. Once it reaches 100.0% and you see the message, “The operation completed successfully.” you can close the Command Prompt. IIS is installed.

    DISM complete

    1. Check to ensure you can open the IIS Manager and that the installation worked, using steps 4-7 from the Install IIS Using The GUI section.

    Install IIS Using PowerShell

    Learning to do things like installing IIS in PowerShell is a huge benefit for two reasons. One, it ’ s the easiest and fastest manner to do most administrative tasks in Windows. Two, you can save your PowerShell commands, known as cmdlets, as a script and run them anytime on any Windows calculator or server .

    1. Type powershell in the search bar and one of the results should be PowerShell ISE. Click on Run as administrator.

    Open PowerShell ISE administrator

    1. Type the cmdlet Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole -NoRestart and run it. You’ll see a progress bar start. Once it’s complete, check to make sure IIS is installed and working.
    1. This step is optional, but you can save this as a PowerShell script and then run it anytime. Work with the script and add different parameters. Eventually, you’ll have an IIS install script that sets things up exactly as you want it, every time, with a single click.

    You’re The Web Now!

    This is merely the get down of what you can do with making your own web site in IIS. Look into using IIS for FTP file transfer or media hosting equally well. besides, look into Microsoft ’ s Web Platform Installer for simplified ways to install and learn things like WordPress, PHP, Python, and more .

    source :
    Category : Tech

    About admin

    I am the owner of the website, my purpose is to bring all the most useful information to users.

    Check Also


    Manage participants in a zoom meeting webinar

    Call the people who attend the meet as follows Alternate host host Who scheduled the …

    Leave a Reply

    Your email address will not be published.