In: Categories » Computers and technology » Servers » Installing and Setting Up IIS
|
IIS was developed by Microsoft and runs only on the Windows Server operating systems (Windows NT, 2000, and XP Professional). Note that it's not available with Windows XP Home Edition. IIS has a built-in capability to run Active Server Pages (ASP) pages, since ASP was created by Microsoft. It can also run PHP pages. The current version of IIS, which comes with Windows XP Professional, is version 5.1, although version 6.0 is available with the .NET Server Packs. To install IIS, you'll need to have your Windows operating system (OS) CD available. To start the install, insert the CD into your CD-ROM drive, and the disc should start automatically. You can then select Install Optional Windows Components or similar, and you will be able to select Internet Information Services (IIS), as shown in the following screen shot Alternatively, if the disc does not start automatically, you can go to the Control Panel, select Add / Remove Programs and Add / Remove Windows Components, and then select IIS. The wording may vary slightly depending on which Windows OS you are using, as will the location of your Windows directory. With Windows NT, the location of the Windows directory is C:\winnt\. IIS is best installed leaving all options with their default values. Installation is fairly simple and needs very little user interaction. Note that, once you have a server installed on your machine, it is very important that you make sure you have a firewall installed on your system to stop outsiders from connecting to your web server and potentially trying to hack into it. Many hackers scan for servers on home machines, as they are often fairly unprotected. It's also a good idea to keep your server up-to-date with all the latest patches from Microsoft (see http://www.microsoft.com/security/), so it behaves exactly like a production server would. There are many firewalls available such as Norton Personal Firewall from Symantec (http://www.symantec.com) or Black Ice from ISS (http://blackice.iss.net/index.php). The firewall should be set up to disallow connections to your web server from outside your computer or network. Checking the InstallationOnce you have installed IIS, the next step is to check that the installation has worked successfully. Open up a new browser window, and in the address bar enter either http://localhost/localstart.asp or http://computername/localstart.asp Both localhost and computername refer to the computer that IIS is running on. Note that computername is the name assigned to your Windows system, which you can find by selecting the System option in the Windows Control Panel. When you enter one of these addresses, you should see the default IIS page, which is shown below: Administering a Basic Web SiteTo administer your web site once IIS is installed, you need to use the Internet Information Services section of the Microsoft Management Console (MMC). To start the console, select Internet Information Services from Administrative Tools in your Windows Start menu. Otherwise, it can be opened from the Windows Control Panel. Once it opens, you can expand the tree on the left side to look something like the following screen shot (it will vary depending upon your setup). With most versions of IIS that come with Windows, you can only host one web site at a time. This is called the default web site and it can be browsed using the address http://localhost/. However, as it's a development server you're setting up, you can easily get around the "one web site" rule by creating new directories under the default web site directory, storing a different web site in each directory. You can then browse each web site using the address http://localhost/directoryname/. On the right side of the menu bar in the preceding screen shot, you can see three icons that allow you to control the web server:
On the right side of the console itself, you'll see the directories and files that make up your web site. After a normal IIS install, there will be a number of files installed here, which are for the default IIS web site and help files. The Home DirectoryThe home directory is a directory on your hard disk from which web pages are served. Usually, when you install IIS, the default home directory is set to C:\Inetpub\wwwroot. All files that are placed in this directory are available through a browser, so creating your own web site is as simple as copying your web pages and images into this directory. The path to the home directory can be to a local directory on the PC or a shared folder on another computer in the network. You can change this directory if you wish, so that you can leave the default IIS files in C:\Inetpub\wwwroot and start with a fresh directory for your new web site. Changing the Web Site SettingsRight-click Default Web Site in the IIS console and select Properties. A new dialog box will appear, allowing you to change a number of settings related to the web site. There are many tabs on this dialog box, but most are for advanced uses on a production web server, so there are only a few we need to look at here. Web SiteUnder this tab, you can set the following options:
Home DirectoryThe home directory is where the files for your web site are located. Under this tab, you can change the default home directory from C:\Inetpub\wwwroot to another directory of your choice. This can be a directory on the server machine or another machine on your network. You can also specify whether Directory Browsing is allowed. This means that if there is no default page found for a directory, the files in the directory are listed instead. This is a security risk on a production server and should be turned off, but on a development server it's often useful to leave the option on to allow you to easily select pages when you're testing the site. The Configuration button is used to tell IIS the program that processes each different file extension—for example, the .asp or .php extensions. We'll look at this in more detail in the section about installing PHP into IIS. DocumentsThe Documents tab allows you to set which web pages are loaded by default if no page is requested in the URL. For example, if someone types the address http://www.yoursite.com/, your server would actually serve that user http://www.yoursite.com/index.htm or whichever file is specified as a default page. The list box allows you to specify which page names should be searched for in such situations, with the order of priority from top to bottom in the list. In this section, you can also specify an HTML file that will be automatically added to the bottom of every page of your web site (for example, to display a copyright notice). Checking That Web Pages Are Being Served CorrectlyNow that you've looked at basic web site administration, you can check that the server can serve both HTML and ASP pages properly. Make sure that the web server is running by checking the IIS console first. Checking HTML PagesCreate a new HTML page in Dreamweaver MX, and add a test message to be displayed if the server is serving documents properly. Save the file as htmltest.htm in the home directory for your web site (remember, the default is C:\Inetpub\wwwroot\htmltest.htm). Now open a browser and go to http://localhost/htmltest.htm. If your message is displayed correctly, you can move on and check that the ASP pages are working. If your page doesn't appear, check that the web server is actually running and that the directory in which you saved htmltest.htm is actually the home directory for your web site. Checking ASP PagesTo check that ASP pages are running on your IIS installation, create a new page and add the following ASP code to the page body:
Save this page as asptest.asp in your web site's home directory, and then open a browser and navigate to http://localhost/asptest.asp. When the page opens, it should display something similar to the following: ASP Pages are working Your IP Address is: 127.0.0.1 Again, if the page doesn't appear, check that it's saved in the web site's home directory and that the web server is running. The IP address 127.0.0.1 corresponds to your own computer and is the IP address equivalent of the hostname localhost. If you assigned an IP address in the IIS setup as a local network address (for example, 192.168.0.1), it will be shown here instead of 127.0.0.1. Using an Access Database with ASPIf you want to use a Microsoft Access database with ASP, you'll need to have Microsoft Access installed on the server, or you can use the appropriate Microsoft MDAC and Jet files. These are available to download from http://www.microsoft.com/data/. You can then set up a Data Source Name (DSN), which is a database connection that ASP uses to communicate with the Access database, unless you will be using DSN-less connections in your ASP code. A DSN is a connection between your ASP code and the database that allows your code to work with the data stored in the database. Open the Windows Control Panel and select Data Sources (ODBC). In the dialog box that opens, select the System DSN tab and click the Add button. From the list of data sources that appears, select Microsoft Access Driver (*.mdb) and then click Finish. A dialog box similar to the following will appear: You can then enter the name of the DSN in the Data Source Name box. The DSN can be called anything you choose, but it cannot be the same as any others already set up on the server. A good idea is to name the DSN after your database, so that it's easy to see which database the DSN works with. You cannot have any spaces in the DSN name. Next, click the Select… button to select the database that the DSN is used to connect to. The database is normally located in a directory outside your web root directory so that it cannot be accessed over the Internet, only by your code on the server for security reasons. Click OK to create this DSN, which you can then use in Dreamweaver MX to connect to the database When you come to transfer the web site from your development server to the production server, you just need to create a DSN with the same name on the new server so that no changes are required in your code. Troubleshooting IIS Install ProblemsA detailed manual for IIS administration is copied to your server when you install IIS. You can view this manual by browsing to http://localhost/iishelp/iis/misc/default.asp. It's a good idea to read through this if you have not previously worked with IIS. If you have problems installing or setting up IIS, you can get more information about IIS from the Help menu of the IIS console. It's also worth taking a look at the IIS section of the Microsoft TechNet site, at http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/iis/support/IISTopKB.asp. This site contains the IIS Knowledge Base and a large number of articles that will help you troubleshoot any difficulties. Another good web site for IIS information is IISFAQ.com, located at http://www.iisfaq.com/, which also has a large amount of helpful information and links to other IIS-related sites. It's extremely likely that you're not the first person to have a specific problem, so it's well worth doing a search on the Internet for more information. An excellent source for information is the Usenet newsgroups, which can be easily searched on the Web using Google Groups at http://groups.google.com/. It's very likely that you'll find that someone else has posted the same problem you're encountering, along with a solution. It's a good idea to search for the specific error message or number that occurs, as that will take you directly to information about the specific error.
|
legal disclaimer
1) Our website is not responsible for the information contained by this article as well for any and all copyright infringements by authors and writers. E-articles is a free information resource. If you suspect this article for any copyright infringements, please read the Terms of service and contact us to investigate the problem.
2) The E-articles directory team is not responsible for inaccuracies, falsehoods, or any other types of misinformation this tutorial may contain and will not be liable for any loss or damage suffered by a user through the user's reliance on the information gained here. Please read the Terms of service
Useful tools and features
related articles
Previous versions of Exchange essentially forced many organizations into deploying servers in sites with greater than a dozen or so users. With the concept of site consolidation in Exchange Server 2007, however, smaller numbers of Exchange servers can service clients in multiple locations, even if they are separated by slow WAN links. For small and medium-sized organizations, this essentially means that one or two servers should suffice for the needs of the organization, with few exceptions. Larger organizations require a larger numbe...
2. Configuring Exchange Server 2007 for Maximum Performance and Reliability
After decisions have been made about AD design, Exchange server placement, and client access, optimization of the Exchange server itself helps ensure efficiency, reliability, and security for the messaging platform. Designing an Optimal Operating System Configuration for Exchange As previously mentioned, Exchange Server 2007 only operates on the Windows Server 2003 operating system, and is scheduled to be able to run on the next version of the Windows Server operating system, currently referred to as Windows L...
3. Managing Identity Information Between LDAP Directories and Exchange Server 2007
LDAP directories are commonplace today and can be found in many business environments. UNIX applications in particular make wide use of the LDAP standard for directories. Along with this proliferation of LDAP directory structures comes a need to synchronize the information contained within them to an Exchange 2007 environment. The Enterprise version of MIIS 2003 contains MAs that support synchronization to LDAP directories. Consequently, a good understanding of LDAP concepts is required before syncing between the environments. ...
4. Understanding DNS Requirements for Exchange Server 2007
In Active Directory, all client logons and lookups are directed to local domain controllers and GC servers through references to the SRV records in DNS. Each configuration has its DNS and resource requirements. Exchange relies on other servers for client authentication and uses DNS to find those servers. In an Active Directory domain controller configuration, on the other hand, the Exchange server also participates in the authentication process for Active Directory. Using DNS in Exchange Server 2007 As has bee...
One of the greatest advantages of Exchange Server 2007 is its emphasis on security. Along with Windows Server 2003, Exchange Server 2007 was developed during and after the Microsoft Trustworthy Computing initiative, which effectively put a greater emphasis on security over new features in the products. In Exchange Server 2007, this means that the OS and the application were designed with services “Secure by Default.” With Secure by Default, all nonessential functionality in Exchange must be turned on if needed. Thi...
6. Improvements in Exchange Server 2007 Relative to Security and Compliance
One of the improvement goals Microsoft has had with all of their products over the past few years has been to constantly improve the security in the products. More recently with all of the regulatory compliance laws and policies being implemented, Microsoft has focused a lot of security enhancements to address privacy, information archiving, and compliance support. The release of Exchange 2007 was no different—Microsoft added in several new enhancements in the areas of security and compliance support. One of the addition...
7. Designing Exchange Infrastructure
After Active Directory and the physical OS has been chosen and deployed, the Exchange infrastructure can be set up and optimized for the specific needs of the organization. With these needs in mind, you can do several things to optimize an Exchange 2007 setup, as detailed in the following sections. Determining the Exchange Version When installing Exchange, the choice of Exchange version needs to be made. As with Windows Server 2003, there are two versions of Exchange, Standard and Enterprise. The Standard Edit...










