SmartCloud tip: Install IIS web server on Windows 2008 R2

Follow along as Boas shows you how to install the Internet Information Services web server (IIS) on Windows 2008 R2 in the IBM SmartCloud Enterprise Release 1.2. As you're probably already aware, support for Windows Servers images the 64-bit 2008 R2, the 2008 R1, and the 2003 R2 are being rolled out for all instance configurations for IBM Cloud 1.2. For the second article in this series, I thought we could tackle something really simple and relevant to the new version's Windows support we're going to install the Internet Information Services web server (IIS) on Windows 2008 R2.

View more IBM Cloud tips

Boas Betzler, Senior Technical Staff, IBM

Boas Betzler is a senior technical staff member and member of the IBM Academy of Technology. He has worldwide responsibility for the image center of both the public IBM Compute Cloud and the IBM Shared Private Production Cloud.



23 November 2010

Also available in Japanese

tip informationIn this article, technology expert for the IBM SmartCloud Enterprise shares his knowledge on how to perform tasks in the cloud. Tasks range from surprisingly easy to more complex and difficult tasks so that designers, developers, and deployers of all skills levels can learn.

Now that images are supported on Windows, the topics in this series focus on Windows instances. But, that doesn't mean we won't cover other really neat tasks. In fact, if you have a task that you'd like to see in this series, let us know and we'll consider it.

First, a little background for those who may not be familiar with IIS.

Internet Information Services web server

Microsoft® created the Internet Information Services web server application and set of feature extension modules for use with the Windows operating system. At a recent tally, it was deemed the second most used web server behind the Apache HTTP Server

IIS 7.5, the version that comes with Windows Server 2008 R2, supports the FTP, FTPS, SMTP, NNTP, and HTTP/HTTPS protocols. It's built in a modular format: Individual modules (extensions) can be added or removed so you only have to install the modules you require for specific functionality. Some native modules IIS 7.5 includes are:

  • HTTP modules: Performs tasks such as responding to information and inquiries sent in client headers, returning HTTP errors, and redirecting requests.
  • Security modules: Performs tasks such as specifying authentication schemes, performing URL authorization, and filtering requests.
  • Content modules: Performs tasks such as processing requests for static files, returning a default page when a client does not specify a resource in a request, and listing the contents of a directory.
  • Compression modules: Performs tasks such as compressing responses, applying Gzip compression transfer coding to responses, and performing pre-compression of static content.
  • Caching modules: Performs tasks such as storing processed information in memory on the server and using cached content in subsequent requests for the same resource.
  • Logging and diagnostics modules: Performs tasks such as passing information and processing status to HTTP.sys for logging, reporting events, and tracking requests currently executing in worker processes.

Now let's install an IIS web server on Windows 2008 R2.


Install an IIS web server on Windows 2008 R2

These steps are fairly straightforward. After you have provisioned a Windows 2008 R2 instance, you can access it through the Remote Desktop Protocol tool. Once you have access to the instance, I'll show you how to:

  • Install the web server.
  • Ensure that the firewall is set up correctly.
  • Update the initial page displayed by the web server.

Install the web server

To install the Web Server (IIS) on Windows 2008 R2:

  1. Right-click My Computer > Manage to open the Server Manager window.
    Server Manager window
    Server Manager window
  2. Select Roles under Server Manager, then click Add Roles.
    Add Roles
    Add Roles
  3. The Add Roles Wizard: Before You Begin window opens. Select Server Roles and click Next.
    Add Roles Wizard
    Add Roles Wizard
  4. Select the Web Server (IIS) check box and click Next.
  5. On the Select Role Services window, keep the default options and click Next.
    Select Role Services window
    Select Role Services window
  6. The Confirm Installation Selections window opens. Read through the list and click Install to complete the installation process.
    Confirm Installation Selections window
    Confirm Installation Selections window

Ensure that the firewall is set up correctly

This is even easier than the previous steps.

  1. On the Server Manager window click Configuration and select Windows Firewall with Advanced Security.
    Windows Firewall with Advanced Security
    Windows Firewall with Advanced Security
  2. Make sure the firewall is set to the default, World Wide Web Services (HTTP), to allow http/port 80 traffic.
    Allowed Programs window
    Allowed Programs window

Update the initial page displayed by the web server

Now update the initial page shown by the web server to say "Hello! Welcome to the IBM Compute Cloud."

  1. Modify the iisstart HTML Document. In the wwwroot screen under Computer, find iisstart. (The location is iisstart HTML Document : C: > inetpub > wwwroot.)
    wwwroot screen
    wwwroot screen
  2. Open the iisstart HTML document in Notepad (or whichever text or code editor you prefer) and add the following line:
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <h1><center>"Hello! Welcome to the IBM Copute Cloud"</h1>
    <title>IIS7</title>

    Like so:

    iisstart HTML document
    iisstart HTML document
  3. Save the file.
  4. Open a browser from local machine and open the default web page. You should see the window shown below:
    Default web page
    Default web page

And that's all there is to that. Easy wasn't it?

Resources

Learn

Discuss

Comments

developerWorks: Sign in

Required fields are indicated with an asterisk (*).


Need an IBM ID?
Forgot your IBM ID?


Forgot your password?
Change your password

By clicking Submit, you agree to the developerWorks terms of use.

 


The first time you sign into developerWorks, a profile is created for you. Information in your profile (your name, country/region, and company name) is displayed to the public and will accompany any content you post, unless you opt to hide your company name. You may update your IBM account at any time.

All information submitted is secure.

Choose your display name



The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerWorks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

Required fields are indicated with an asterisk (*).

(Must be between 3 – 31 characters.)

By clicking Submit, you agree to the developerWorks terms of use.

 


All information submitted is secure.

Dig deeper into Cloud computing on developerWorks


  • Bluemix Developers Community

    Get samples, articles, product docs, and community resources to help build, deploy, and manage your cloud apps.

  • developerWorks Labs

    Experiment with new directions in software development.

  • DevOps Services

    Software development in the cloud. Register today to create a project.

  • Try SoftLayer Cloud

    Deploy public cloud instances in as few as 5 minutes. Try the SoftLayer public cloud instance for one month.

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Cloud computing
ArticleID=588553
ArticleTitle=SmartCloud tip: Install IIS web server on Windows 2008 R2
publish-date=11232010