How to Install IIS 7.5 on Windows 7?

IIS will not install by default in your Windows 7 machine. To install IIS you can perform the below procedure:

  • Click Start Menu and then click Control Panel
  • From control panel click View By and select Small Icons
  • Click on Programs and Features
  • Click on Turn Windows features on or off
  • In the windows features dialog box click Internet Information Services and click OK

How to Change the Default Mail Queue location in IIS?

  • Open IIS Manager and Stop Default Web Site
  • Copy C:\ inetpub folder to D:\ inetpub
  • Go to IIS again –> Select Default Web Site –> From the right side of the window click on Basic settings and change the physical path and click OK

  • Go to Services and stop IIS Admin Service
  • Go to system32/inetsrv folder
  • Make a backup of metabase.xml and open that file
  • Replace the path where you want by searching string- “C:\inetpub”

  • Start IIS Admin Service and SMTP service
  • Start your Default web site

BINGO!! 🙂

SharePoint prerequisite for Windows Server 2008

Before installing SharePoint in Windows Server 2008 below Roles and Features must be installed:
1. Go to Server Manager and Right Click on Roles –> Add Roles
2. From Web Server –> Common HTTP Features select

  • Static Content
  • Default Document
  • Directory Browsing
  • HTTP Errors

3. From Application Development select

  • ASP.NET
  • .NET Extensibility
  • ISAPI Extensions
  • ISAPI Filters

4. From Health and Diagnostics select

  • HTTP Logging
  • Logging Tools
  • Request Monitor
  • Tracing

5. From Security Select

  • Basic Authentication
  • Windows Authentication
  • Digest Authentication
  • Request Filtering

6. From Performance select

  • Static Content Compression
  • Dynamic Content Compression

7. From Management Tools

  • IIS Management Console

8. From IIS 6 Management Compatibility select All

From Server Manager right click on Features and Click Add Features
1. From .NET Framework 3.0 Features select

  • .NET Framework 3.0

2. From Remote Server Administration Tools –> Role Administration Tools select

  • Web Server (IIS)) Tools

How to configure SSL in IIS and how to force to use HTTPS instead of HTTP

Nowadays Web Server security is a big concern and most of the organizations are now using SSL port instead of default 80 port in Webserver.

Why SSL?

The primary reason why SSL is used is to keep sensitive information sent across the Internet encrypted so that only the intended recipient can understand it. This is important because the information you send on the Internet is passed from computer to computer to get to the destination server. Any computer in between you and the server can see your credit card numbers, usernames and passwords, and other sensitive information if it is not encrypted with a SSL certificate. When a SSL certificate is used, the information becomes unreadable to everyone except for the server you are sending the information to. This protects it from hackers and identity thieves.

Buying SSL certificate

SSL certificate is not free and there are few renowned company deal with this issue. For example VeriSign, which is now a part of Symantec (http://www.symantec.com/ssl-certificates)

How to install Certificate in IIS 7.0

  • Click on the Start menu, go to Administrative Tools, and click on Internet Information Services (IIS) Manager.
  • Click on the name of the server in the Connections column on the left. Double-click on Server Certificates
  • In the Action column on right click on Import
  • Browse the certificate that you have purchased earlier and enter the password which provide by the certificate authority
  • Click on OK
  • The certificate we will available as shown in the below picture

Bind the Certificate to a website

  • From the connection column expand the site folder and click on the website that you want to bind the certificate. Click on Bindings under Actions column
  • Click on Add, Change the type to https and select the SSL certificate that you have installed earlier. Click on OK
  • You can also view the certification and check the validity by clicking on view button on the Add Site Binding Dialog box

Force Website only to use SSL

You can force a website only to use SSL, so that if a user sends any request using http instead of https the server will not send any reply.

  • From your website click on SSL Settings. Check Require SSL checkbox and click on Apply

You may need to restart IIS after doing the above configuration