Why install IIS? The most obvious answer is because you need a web server that is easy to configure and work with. IIS 7 in Windows Server 2008 is a completely different animal than it has been in the past.
It seems Microsoft may have finally created a version of IIS that will compete against Apache for functionality and performance. IIS 7 is a giant step forward for the IIS platform with the following enhancements:
- Modular Design – In the past it was an all or nothing install for IIS, but not so anymore. With the ability to only load the modules that you need for server operation you increase both performance and security
- New Management Interface – IIS 7 has a completely new interface that allows you to quickly and easily change the settings you need to for each site. Also in this version is the ability to edit all the website settings in a text based configuration file
- Share tasks with site owners – If you are hosting multiple sites you can delegate administrative control to developers or content owners
In this article we will explore installing and enabling the basic features of IIS 7 and placing a static website into service. For this article, I will assume that you have installed Server 2008 and know how to launch Server Manager.
Installing IIS 7 on Windows Server 2008
Since the IIS web server is not installed by default, the first thing we have to do is install IIS as a role for the server we are working on.
1. Click on Start -> Administrative Tools -> Server Manager

2. In Server Manager scroll down to Roles Summary, and click on Add Roles

3. The Add Roles Wizard starts at this point and warns you that if you are going to add a role to make sure:
- The administrator account has a strong password
- Network settings, such as static IP, are configured
- The latest security updates from Windows Updates are installed

4. Click Next to go the Add Server Role page. Place a checkmark next to Web Server (IIS) and then click on the button Next

5. The next page will give you some basic information on IIS Web Servers and a few links with extra information if needed. Click on the button Next to continue

6. The next window is the Select Role Services. This very important screen will allow you to add only the modules necessary for your planned installation of IIS.
When you choose a module in this screen in the upper right corner you will get more information about what the module is for. For our example we are going to load the following modules:
- Static Content – Lets the Web server publish static Web file formats, such as HTML pages and image files.
Use Static Content to publish files on your Web server that users can view using a Web browser. - Default Document – Lets you configure a default file for the Web server to return when users do not specify a file in a URL.
Default Documents make it easier and more convenient for users to reach your Web site. - HTTP Errors – Allows you to customize the error messages returned to users’ browsers when the Web server detects a fault condition.
Use HTTP Errors to provide users with a better user experience when they run up against an error message. Consider providing users with an e-mail address for staff who can help them resolve the error. - HTTP Redirection – Provides support to redirect user requests to a specific destination.
Use HTTP redirection whenever you want customers who are using one URL to actually end up at another URL. This is helpful in many situations, from simply renaming your Web site, to overcoming a domain name that is difficult to spell, or forcing clients to use a secure channel. - HTTP Logging – Provides logging of Web site activity for this server.
When a loggable event, usually an HTTP transaction, occurs, IIS calls the selected logging module, which then writes to one of the logs stored in the files system of the Web server. These logs are in addition to those provided by the operating system. - Request Filtering – Screens all incoming requests to the server and filters these requests based on rules set by the administrator.
Many malicious attacks share common characteristics, like extremely long requests, or requests for an unusual action. By filtering requests, you can attempt to mitigate the impact of these types of attacks. - IIS Management Console – Provides infrastructure to manage IIS 7 by using a user interface.
You can use the IIS management console to manage a local or remote Web server that runs IIS 7. To manage SMTP or FTP, you must install and use the IIS 6 Management Console.

7. Click Next to get to the Confirm Installation Selections screen to verify your chosen settings.

8. Click Install and installation will start

9. After installation you should see the Installation Results page. Click Close to finish the process.

10. In the Server Manager window, under Roles Summary, you should now see Web Server (IIS)

11. Let’s go ahead and open IIS Manager by going to Start -> Administrative Tools -> Internet Information Services (IIS) Manager

12. Once IIS Manager opens, expand out the web server and then expand the Sites folder. Right click on sites and then click on Add Web Site

13. In the Add Web Site window we have some basic information to fill out for a static site:
- Site Name – Name of the site, this will be either domain.com or *.domain.com (Where * would represent a sub domain name such as www or blog for example)
- Physical Path – The location on the local server that will hold the files for the website. If you did not set this up beforehand you can create a folder through this interface
- Type – choose either http or https depending on whether your site will use Secure Socket Layer (SSL) certificate or not
- IP Address – From the dropdown you can specify what IP the website should answer on or use the default switch of All Unassigned
- Host Name – If you would like this site to respond to other domain names you can put these here

You have now installed IIS 7 and configured a static website. Just place your html files in the directory you specified when creating the site and you are good to go.








Wonderful document. Keep up the good job!!!
Regards,
Saji Thomas
excellent article
I am using windows server 2008 and this is helping me get that running start I desparately need. Thanks.
This helped me tremendously.
Thanks so much.
very helpful…
Goodjob
Good Work.
Rana Adnan Akram
Senior Network/System Administrator
Ministry of Information Technology
Government of Pakistan
I need one help from You, Can you please help me.
I have one win 2008 server. How can i configure multiple websites on the server with one public IP and using same port.
Sundaram R
i need help to enable/disable the logging feature for IIS 7 on windows 2008 as it is quite different if compared to centralized logging for IIS 6.
Is this feature enabled by default on win 2008???
Sheetal
Excellent work!!!!
Fantastic ,Realy usefull
Yes I have the web site, but permissions or somthing won’t let me access it. You stopped a few steps too early (Server 2008).
I am most grateful for your efforts. The instructions are clear, well presented and easily understood. Excellent communication..
Thanks.
(Setting up CS Network Lab.)
Great article. Very easy to reaad and understand – thank you!
realy helpful article
i face some problem related to installation after read your article it is very easy.
thanks of bunch
Unfortunately I went in blind and installed all the IIS 7 Role services when I installed the windows server 2008. I played around setting up permissions and tested the connections. Connecting from inside is fine localhost or the internal IP (192.168.1.?). Now connectiing from the outside is a different story. I set up my router to open port 80 in and out to this virtual HTTP server and it seems fine, but I still cannot connect to my External IP. I uninstalled all except the items that you said to keep in your article above and did what you said and I still cannot connect. Do you have any more ideas past your steps for 2008 web server? Thank You
This helped me tremendously.
Thanks so much.
Nice, thanks!
Brilliant articule, i learnt so so much from you thanks a lot… and thanks god that i reach this website.
Worth reading…… Wonderful………
\o/
Thank uuu… it worksss!
What Microsoft cannot do you did, very helpful!!!
Keeping it simple is the best approach. You get an A+. Thanks
Thanks its really help me but i need to the set more then 2 website in IIS with same IP and publish this to online…..
Is there any one help me …..
plz mail me on my email id samsaggu@gmail.com
i m waiting
thanks…
i have win 2008 standard edition. and i want ot host a web site…….. can you help me step by step……
i am used in windows 7 home basic edition ,but dit not working properly in IIS,so please send to me information from install and configure IIS7 in eindows 7 home basic operatin system.
thanks a lot but how do the people see my site
Thanks helped me out just bought my first vps and not linux this time
Great article keep em’ coming
thnaks
article Worth reading…… excellent Wonderful………
i have done this step by step and still all i can get is either the iis default page or if i take that out of the wwwroot folder receive the 403 forbiden access error. what am i doing wrong?
dear sir,
I wnat to creat a new web site in server 2008.plz give me step-by-step confiure of iis.i m waiting .
Is it possiable remote Web server . SMTP and FTP, that runs in IIS 7. Why because you i mention on 6th step that for SMTP and FTP need IIS 6.
No pics show
Doesn’t work.
Just get 403 errors
I can get the site to work on Windows 7 Ultimate 64 Bit without issues but 2008 R2 Enterprise Server is a different matter
I use DynDNS.org too
Thanks for the heads up and sorry about that, some images got lost in transition when we redesigned the site. This post has been fixed but if you notice any other errors or images missing let us know.
Thanks!
Even after i followed the above procedure when i clicked on the browse option the website was showing as 133.66.64.63:8080 ( My wan’s ip scheme). but should this be the case please help.
Very helpful
hello
i install my website successfully and its run ok!!
but there r a problem ,, the Java Script is disable and not run in the website.
how i can enable the JScript in the webserver !!!
plz help
Nice and Informative article….please keep up the good Work…..Thanks again
So simple a Mac-user understand. Thank you.
Excellent article for a beginner.