IIS Create Application - jamesperrin/developer-training-resources GitHub Wiki

These are the instructions to create and configuration a new IIS Application.

Table of Contents

Create Application Pool

  1. Click on the Windows Start Menu button.
  2. Scroll down and click on Windows Administration Tools to expand.
    1. Scroll down, then click on Internet Information Services (IIS) Manager.
  3. In the left menu, under Connections, click on the Application Pools.
  4. In the right menu, under Actions, click on Add Application Pool.
    1. The Add Application Pool dialogue will be displayed.
      1. Enter the name of the application. Note appended the words AppPool.
        • Example: ExampleAppPool
      2. Click OK
    2. Click on the new Application Pool ExampleAppPool
      1. In the right menu, under Actions, click on Advanced Settings.
      2. The Advanced Settings dialogue will be displayed.
        1. Under General section
        2. Click next to the Start Mode setting.
          • You will be presented with two options OnDemand and AlwaysRunning.
          1. Use OnDemand for low usage appplications.
          2. Use AlwaysRunning for high usage applications.
        3. Scroll down to the Process Model section.
        4. Click next to the Identity setting.
          1. Click on the Ellipsis icon [...].
          2. The Advanced Settings dialogue will be displayed.
            1. For Default identity.
              1. Click on the Built-in account DropDownList.
              2. Select NetworkService.
            2. For Custom identity
              1. Click on the radio button next to Custom account.
              2. Click on the Set button.
              3. The Advanced Settings dialogue will be displayed.
              4. Provide the following information.
                1. User Name: SERVICE\ACCOUNT\USERANME
                2. Password: PASSWORD
                3. Confirm Password: PASSWORD
              5. Click OK
            3. Click OK
        5. Scroll down to the Recycling section.
        6. Click next to the Specific Times setting.
          1. Click on the Ellipsis icon [...] next to TimeSpan[] Array.
          2. The TimeSpan Collection Editor dialogue will be displayed.
            • Note: The IIS Application Pools recycle by default every 29-hours.
            1. Click on the Add button.
            2. Under TimeSpan, enter a value between 23:00:00 and 03:00:00.
            3. Click OK
          3. Click OK

Create Default Applications Folder

  1. Navigate to the data drive.
  2. Create a new folder named webapps.
    • The webapps folder will be the default location to create new application folders.
  3. Right click on the webapps folder.
    1. From the context menu, click on Properties.
  4. The webapps Properties dialogue will be displayed.
    1. Click on the Security tab.
    2. Click on the Edit button.
    3. The Permissons for webapps dialogue will be displayed.
      1. Click on the Add button.
      2. The Select Users or Groups dialogue will be displayed.
        1. Click on the Locations button.
          1. The Locations dialogue will be displayed.
          2. Under Locations, scroll to the top and select the server's name.
          3. Click OK.
        2. Click the Advanced button.
        3. Click the Find Now button.
        4. Scroll down and double-click on IIS_IUSERS.
        5. Click OK.
    4. Click on the Add button.
      1. The Select Users or Groups dialogue will be displayed.
      2. Click the Advanced button.
        1. Click the Find Now button.
        2. Scroll down and double-click on IUSR.
        3. Click OK.
    5. Click on the Add button.
      1. The Select Users or Groups dialogue will be displayed.
      2. Click the Advanced button.
      3. Click the Find Now button.
      4. Scroll down and double-click on USERS.
      5. Click OK.
    6. Click OK.
  5. Click OK.

Create Application Folder

  1. Navigate to the data drive.
  2. Under the default location where applications folders are stored.
    • Example: webapps
  3. Create a new folder store the new application contents.
    • Example: ExampleApp
  4. Right click on the ExampleApp folder.
    1. From the context menu, click on Properties.
  5. The ExampleApp Properties dialogue will be displayed.
    1. Click on the Security tab.
    2. Click on the Edit button.
    3. The Permissons for ExampleApp dialogue will be displayed.
      1. Click on the Add button.
      2. The Select Users or Groups dialogue will be displayed.
        1. Click on the Locations button.
          1. The Locations dialogue will be displayed.
          2. Under Locations, scroll to the top and select the server's name.
          3. Click OK.
        2. In the input field Enter the object names to select (examples).
          • Enter the information for the associated applications pool.
          1. Example: IIS AppPool\ExampleAppPool
        3. Click the Check Names button.
        4. Click OK.
    4. Click OK.
  6. Click OK.

Create New Application

  1. Click on the Windows Start Menu button.
  2. Scroll down and click on Windows Administration Tools to expand.
  3. Select and Open Internet Information Services (IIS) Manager
  4. In the left menu, under Connections, click next to the server's name to expand the items.
  5. In the left menu, under Connections, click next to Sites to expand the items.
  6. In the left menu, under Connections, right click on Default Web Site.
    1. From the context menu, click on Add Application.
  7. The Add Application dialogue will be displayed.
    1. In the Alias field, type the name of the application.
      • Example: ExampleApp
    2. Application pool.
      1. Click on the Select button.
      2. The Select Application Pool dialogue will be displayed.
        1. Under Application Pool, click on the DropDownList.
        2. Select the associated application pool.
          • Example: ExampleAppPool
        3. Click OK
    3. Physical path.
      1. Click on the Ellipsis icon [...] .
      2. The Browse For Folder dialogue will be displayed.
        1. Navigate to the location where application contents are stored.
          • Example: E:\webapps\ExampleApp
        2. Click OK
    4. Click OK