Tutorials Forums
     Tutorials Videos
        Sign Up Now For FREE

How-To-Main

12
January
2010

How To Installing IIS 7 on Windows Vista and Windows 7
4.4/5 rating (5 votes)

You can use the Microsoft® Web Platform Installer (Web PI) to easily install Internet Information Services (IIS), and applications that run on IIS. If you choose to install IIS 7.0 or IIS 7.5 (collectively known as IIS 7) manually, you can use this article for guidance.

Ensure that you have installed one of the supported editions of Windows Vista® and Windows 7 before proceeding.

  • •Windows Vista® Ultimate 
  • •Windows Vista® Home Premium 
  • •Windows Vista® Business 
  • •Windows Vista® Enterprise 
  • •Windows® 7

Also be sure that you have administrative privileges on the computer. Note that by default, you do not have administrative privileges if you are logged on as a user other than the built-in administrator, even if you were added to the local Administrators group on the computer (this is a new security feature in Windows Server® 2008 called Local User Administrator). Log on either to the built-in administrator account, or explicitly invoke applications as the built-in administrator using the runas command-line tool. 

Note that you can run runas /user:administrator cmd.exe so that every application you run from that command line will be elevated, eliminating the need to use the runas syntax from that command line. 
If you are logged on to an account other than the built-in local administrator account, you may see the following security alert dialog box. 

03
January
2010

How To Setup Simple Mail Transfer Protocol (SMTP)
4.5/5 rating (2 votes)

The Simple Mail Transfer Protocol (SMTP) service provided by IIS is a simple component for delivering outgoing e-mail messages. Delivery of a message is initiated by transferring the message to a designated SMTP server. Based on the domain name of the recipient e-mail address, the SMTP server initiates communications with a Domain Name System (DNS) server, which looks up and then returns the host name of the destination SMTP server for that domain.

Next, the originating SMTP server communicates with the destination SMTP server directly through Transmission Control Protocol/Internet Protocol (TCP/IP) on port 25. If the user name of the recipient e-mail address matches one of the authorized user accounts on the destination server, the original e-mail message is transferred to that server, waiting for the recipient to pick up the message through a client program.

In the case where the originating SMTP server cannot communicate directly with the destination server, the SMTP service can transfer messages through one or more intermediate relay SMTP servers. A relay server receives the original message and then delivers it to the destination server, or redirects it to another relay server. This process is repeated until the message is delivered or a designated timeout period passes.

The SMTP service is not installed by default. You must install the SMTP service using the Control Panel. Installing the SMTP service creates a default SMTP configuration which you can then customize to your needs using IIS Manager.

Many articles about deploying and configuring the SMTP service are available by searching for "smtp" on the Microsoft Developer Network (MSDN) Web site.


Procedures
To install the SMTP service
  1. From the Start menu, click Control Panel.
  2. Double-click Add or Remove Programs.
  3. From the left pane, click Add/Remove Windows Components.
  4. From the Components list, click Application Server, and then click Details.
  5. From the Subcomponents of Application Server list, click Internet Information Services (IIS), and then click Details.
  6. From the Subcomponents of Internet Information Services (IIS) list, select the SMTP Service check box.
  7. Click OK.
  8. Click Next. You might be prompted for the Windows Server 2003 family CD or the network install path.
  9. Click Finish.
When you install the SMTP service, a default SMTP server configuration is created with a message store in LocalDrive:\Inetpub\Mailroot.
When setting up the SMTP service for the first time, you can configure global settings for a SMTP virtual server, as well as settings for individual components of the virtual server.
Important

You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /user:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".

To configure global SMTP settings
  1. In IIS Manager, expand the local computer, right-click Default SMTP Virtual Server, and click Properties.
  2. Change the default settings on the property pages as needed. For information about individual settings, click Help
To configure SMTP virtual server components settings
  1. In IIS Manager, expand the local computer, expand Default SMTP Virtual Server, right-click the component you want to configure, and click Properties.
  2. Change the default settings on the property pages as needed. For information about individual settings, click Help.
02
January
2010

How To Uninstalling IIS 6
4.0/5 rating (2 votes)

This topic describes how to uninstall IIS using either of the following 2 methods:
  • Using the Configure Your Server Wizard.
  • Using Add or Remove a Windows Component in Control Panel
Important

You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /user:Administrative_AccountName "mmc systemroot\system32\inetsrv\iis.msc".

Procedures
  1. To uninstall IIS using the Configure Your Server Wizard
  2. From the Start menu, click Manage Your Server.
  3.  Under Managing Your Server Roles, click Add or remove a role.
  4. Read the preliminary steps in the Configure Your Server Wizard and click Next.
  5. Under Server Role, click Application server (IIS, ASP.NET) and then click Next.
  6.  In the Role Removal Configuration dialog, check the Remove the application server role check box.
  7. Complete the wizard, and then click Finish.
To uninstall IIS using Add or Remove a Windows Component in Control Panel
  1.  From the Start menu, click Control Panel.
  2. .Double-click Add or Remove Programs.
  3. Click Add/Remove Windows Components.
  4.  In the Components list click the Application Server check box.
  5.  Click Next.
  6. Click Close when uninstallation of IIS is complete.
02
January
2010

How To Setup File Transfer Protocol (FTP)
4.5/5 rating (2 votes)

IIS includes the File Transfer Protocol (FTP) service for publishing and managing files. This version of IIS includes FTP user isolation to help administrators (particularly Internet hosting providers) efficiently secure and commercialize FTP services for their customers.

The FTP service is not installed by default. To set up an FTP site, you must first install the FTP service through the Control Panel. Installing the FTP service creates a default FTP site, which you can then customize to your needs using IIS Manager.

Procedures
To install the FTP service

  1. From the Start menu, click Control Panel, double-click Add or Remove Programs, and then click Add/Remove Windows Components.
  2. From the Components list, click Application Server, and then click Details.
  3. From the Subcomponents of Application Server list, click Internet Information Services (IIS), and then click Details.
  4. From the Subcomponents of Internet Information Services (IIS) list, select the File Transfer Protocol (FTP) Service check box, and then click OK.
  5. Click Next. You might be prompted for the Windows Server 2003 product CD or the network install path.
  6. Click Finish.

Caution

Caution FTP sites or virtual directories that are configured to use Active Directory isolation or FTP load balancing should not be mapped to physical directories that are used for Web sites that use FrontPage® Server Extensions from Microsoft. Doing so can allow users to view any files in that folder structure over the network.
When you install the FTP service, a default FTP directory is created at LocalDrive:\Inetpub\Ftproot.
Setting up the FTP service for the first time involves first setting global FTP settings, then settings for the default FTP site, and finally adding the content to the FTP site. IIS uses an inheritance model, which means that settings on higher levels are automatically inherited by lower levels. Settings at lower levels can be edited individually to override inherited settings from the next level up.
If you change a setting at a lower level, then later change a setting at a higher level that conflicts with the lower-level setting, you will be prompted to choose whether you want to change the lower-level setting to match the new higher-level setting.

Before setting up the FTP service, see Securing FTP Sites with IIS 6.0 for clarification on security issues associated with the FTP service.

Important

You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /User:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".

To globally change FTP settings
  1. In IIS Manager, expand the local computer, right-click the FTP Sites folder, and click Properties.
  2. Change the default settings on the property pages as needed. The changes are inherited by all FTP sites on your computer. For information about individual settings, click Help.
To change settings for the default FTP site
  1. In IIS Manager, expand the local computer, expand the FTP Sites folder, right-click Default FTP site, and click Properties.
  2. Change the default settings on the property pages to replace any inherited settings as needed. For information about individual settings, click Help.
To publish content on your FTP site
• Copy or move your content files into the default FTP publishing directory.

Note: If your network has a name resolution system, for example, DNS, visitors can type ftp:// followed by your computer name in the address box of their browsers to reach your site. If your network does not have a name resolution system, visitors must type ftp://, followed by the numerical IP address of your computer.
02
January
2010

How To Installing IIS 6
5.0/5 rating (2 votes)

This topic describes 3 methods for installing IIS:

  • Using the Configure Your Server Wizard.
  • Using Add or Remove Programs from Control Panel.
  • Using unattended setup.

This topic also lists the directories created on install, describes the IIS initial configuration backup, and briefly describes IIS optional components.

Important
To help minimize the attack surface of the server, IIS 6.0 is not installed on Windows Server 2003 by default. When you first install IIS 6.0, it is locked down — which means that only request handling for static Web pages is enabled, and only the World Wide Web Publishing Service (WWW service) is installed. None of the features that sit on top of IIS are turned on, including ASP, ASP.NET, CGI scripting, FrontPage® 2002 Server Extensions from Microsoft, and WebDAV publishing. If you do not enable these features, IIS returns a 404 error. You can enable these features through the Services Extensions Web node in IIS Manager. For more information about how to troubleshoot 404 errors and other issues, see .Troubleshooting in IIS 6.0