42.2. Browse to the D:\newweb21 folder (Figure 0957).
Figure 0957 : Notepad Editor - Save As
42.3. Select Save as type: All Files (Figure 0958).
Figure 0958 : Notepad Editor - Save as type:
42.4. Key-in default.htm in the File name: box (Figure 0959).
Figure 0959 : Notepad Editor - Save As
42.5. Click the Save button to save (Figure 0959).
42.6. Close the Notepad Editor (Figure 0960) and all remaining window.
Figure 0960 : Notepad Editor – default.htm
43. Launch the Internet Information Services (IIS) Manager. Click Start ► Administrative Tools
► Internet Information Services (IIS) Manager (Figure 0961).
Figure 0961 : Launch Internet Information Services (IIS) Manager
44. In the Internet Information Services (IIS) Manager, expand your server (Figure 0962).
Figure 0962 : Internet Information Services (IIS) Manager
45. Right-click the Sites folder and select Add Web Site… (Figure 0963).
Figure 0963 : IIS Manager – Add Web Site
46. In the Site name: box, type the name of your site (e.g. Tutorial Site) (Figure 0964).
Figure 0964 : Add Web Site window - Site name
47. In the Physical path: box, type or browse to the directory that contains the site content
(D:\newweb21) (Figure 0965).
Figure 0965 : Add Web Site window - Physical path
48. Select your Web server IP address from IP Address: drop-down menu (Figure 0966).
Figure 0966 : Add Web Site window – IP address
49. Enter Host name: as www.myserver.com for this site, and click the OK button (Figure 0967).
Figure 0967 : Add Web Site window
50. On IIS Manager, Select the new web site (Tutorial Site) and click the Start button to start the
new web site service (Figure 0968).
Figure 0968 : page
EXERCISE 21.7
Configure DNS Service for Host Name.
In this exercise you will configure host name for your new Web site.
51. Launch DNS Manager. Click Start ►Administrator Tools ► DNS (Figure 0969).
Figure 0969 : Launch DNS Manager
52. Double-click the computer icon to expand the DNS Server (Figure 0970).
Figure 0970 : DNS Manager
53. Expand the Forward Lookup Zones; right click myserver.com and select New Host (A or
AAAA)… (Figure 0971).
Figure 0971 : Create New Host
54. In the Name box, type www (Figure 0972).
55. Enter IP address for your Web server (www.myserver.com) and make sure you select the Create
associated pointer (PTR) record option (Figure 0972).
Figure 0972 : New Host
56. Click Add Host (Figure 0972).
57. Click the OK button (Figure 0973).
Figure 0973 : Host Record Successfully Created Message
58. Click Done button to exit New Host Wizard (Figure 0974).
Figure 0974 : New Host Wizard
59. Click the Refresh button and close the DNS Manager (Figure 0975).
Figure 0975 : DNS Manager
60. Log off the server.
EXERCISE 21.8
Test the New Web Site on Web Server
In this exercise you will test the functionality of your New Web Site from client workstation.
61. Log on to the client computer as Administrator (Figure 0976).
Figure 0976 : Windows XP Log On Screen
62. Launch Internet Explorer. Click Start ►All Programs ►Internet Explorer (Figure 0977).
Figure 0977 : Launch Internet Explorer
63. On the Address box, key-in http://www.yourdomain.com
(e.g. http://www.myserver.com) and click the Go button (Figure 0978).
Figure 0978 : Internet Explorer - http://www.myserver.com
64. Your new web site page will appear in the browser (Figure 0978).
65. Log off the client computer.
Summary
Whether your site is on an intranet or the Internet, the principles of providing content are the
same. You place your Web files in directories on your server so that users can establish an
HTTP connection and view your files with a Web browser.
But beyond simply storing files on your server, you must manage how your site is deployed, and
more importantly, how your site evolves. Today, an engaging Web site is seldom a static
collection of pages. Most successful Web administrators are kept busy accommodating ever
changing Web content.
Each Web site must have a home directory. The default Web site home directory is
LocalDrive:\inetpub\wwwroot. You can change a Web site home directory using IIS Manager.
Exercise 22
INSTALLING AND
CONFIGURING
FTP SERVER
1
Exercise 22 : Installing And Configuring FTP Server
In this exercises, you will install and configure your server to run as FTP Server. This
exercise also describes installation of the FTP service, and changing default FTP
settings globally and for specific FTP sites.
File Transfer Protocol (FTP) is a protocol used to transfer files over the internet. People
commonly use FTP to make files available for others to download, but you can also use
FTP to upload webpages for building a website or for putting digital photos on a picture
sharing site.
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 Server Manager. Installing the FTP service creates a default
FTP site, which you can then customize to your needs using IIS Manager.
EXERCISE 22.1
Installing FTP Server.
1. Log on to the server as Administrator (Figure 0979).
Figure 0979 : Administrator Login
2
2. Launch the Server Manager. Click Start ► Administrative Tools ► Server Manager (Figure
0980).
Figure 0980 : Launch Server Manager.
3. In Server Manager, select Roles (Figure 0981).
Figure 0981 : Server Manager - Roles
3
4. Scroll down until you reach the Web Server (IIS) section (Figure 0982).
5. Click the Add Role Services at the Role Services: section (Figure 0982).
Figure 0982 : Add Role Services
4
6. On the Select Role Services page, select the check box next to the FTP Publishing
Service (Figure 0983).
Figure 0983 : Role Services – FTP Server
7. If you are asked to add role services for FTP Publishing Service, just click the Add
Required Role Services button to add the role services. You cannot install FTP
Publishing Service unless the required role services are also installed (Figure 0984).
Figure 0984 : Add Role Services – Add Required Role Services
5
8. Click the Next button to continue (Figure 0985).
Figure 0985 : Role Services – FTP Publishing Service
9. On the Confirm Installation Selections page, click Install button to start installation
process (Figure 0986).
Figure 0986 : Confirm Installation Selections
6
Please wait. This operation will take a few minutes.
Figure 0987 : Installation Progress
10. On the Installation Result page, review the information.
Click Close to continue (Figure 0988).
Figure 0988 : Installation Result
11. Close the Server Manager.
7
Configuring FTP Server
IIS creates a default FTP site configuration on your hard disk at the time of installation.
You can use the C:\inetpub\ftproot directory to store your FTP files, or create any
directory or virtual directory you choose.
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.
EXERCISE 22.2
Change the Default FTP Site Setting.
12. Log on to the server as Administrator (Figure 0989).
Figure 0989 : Administrator Login
8
13. Launch the Internet Information Services (IIS) 6.0 Manager. Click Start ►
Administrative Tools ► Internet Information Services (IIS) 6.0 Manager (Figure 0990).
Figure 0990 : Launch Internet Information Services (IIS) 6.0 Manager
14. In the Internet Information Services (IIS) 6.0 Manager, expand your server (Figure
0991).
Figure 0991 : Internet Information Services (IIS) Manager
9
15. Expand the FTP Sites folder (Figure 0992).
Figure 0992 : Internet Information Services (IIS) 6.0 Manager – FTP Sites
You can see, IIS already create a default FTP site on your hard disk. The default folder
for the default FTP site is set to the C:\inetpub\ftproot folder.
16. Right-click the Default FTP Site and select Properties (Figure 0993).
Figure 0993 : IIS 6.0 Manager - Default FTP Site
10
17. On the FTP Site tab, under FTP site description, type the name of your FTP site in the
Description: box. (e.g. Server 21 FTP Site) and select IP address for your FTP site
(Figure 0994).
Figure 0994 : Default FTP Site Properties
18. Click the OK button. The name of the new site appears in IIS 6.0 Manager (Figure
0995).
Figure 0995: IIS 6.0 Manager – Server 21 FTP Site
19. Click the Refresh button and close the IIS 6.0 Manager.
11
EXERCISE 22.3
Change the FTP Site Home Directories.
Each FTP site on a computer must have its own home directory. The default home
directory for the default FTP site is LocalDrive:\inetpub\ftproot.
There are two ways to change the home directory of an FTP site:
Use IIS Manager
Edit the MetaBase.xml file directly.
But in this exercise we only use IIS Manager.
20. Make sure you are log on to the server as Administrator.
21. Launch the Internet Information Services (IIS) 6.0 Manager. Click Start ►
Administrative Tools ► Internet Information Services (IIS) 6.0 Manager (Figure 0996).
Figure 0996 : Launch Internet Information Services (IIS) 6.0 Manager
12
22. In the Internet Information Services (IIS) 6.0 Manager, expand your server (Figure
0997).
Figure 0997 : Internet Information Services (IIS) Manager
23. Expand the FTP Sites folder (Figure 0998).
Figure 0998 : Internet Information Services (IIS) 6.0 Manager – FTP Sites
24. Make sure the FTP Site service is stop. Right-click the Server 21 FTP Site and select
Stop (Figure 0999).
Figure 0999 : IIS 6.0 Manager – Server 21 FTP Site
13
25. Right-click the Server 21 FTP Site again, and select Properties (Figure 1000).
Figure 1000 : IIS 6.0 Manager – Server 21 FTP Site
26. Click the Home Directory tab (Figure 1001).
Figure 1001 : Server 21 FTP Site Properties – Home Directory
14
27. Select the A directory located on this computer option, and enter the location of your
ftp home directory in the Local path: box (e.g. D:\newweb21) or press the Browse…
button to find the location of your ftp home directory (Figure 1002).
Figure 1002 : Server 21 FTP Site Properties – Home Directory
Note:
If you select a directory on a network share, you might need to enter a user name
and password to access the resource. IUSR_computername is the default
account used if another account is not specified.
If you use an account with administrative credentials on the server, clients can
gain access to server operations. This seriously jeopardizes the security of your
network.
For more information on security see, Security Best Practices in Windows Help.
28. Click the OK button (Figure 1002).
15
29. Right-click the FTP site you’ve just configured, and select Start (Figure 1003).
Figure 1003 : IIS 6.0 Manager – Server 21 FTP Site
30. Click the Yes button to start the FTP Server service (Figure 1004).
Figure 1004 : IIS 6.0 Manager – Start Server 21 FTP Site
31. Click the Refresh button and close the IIS 6.0 Manager.
16
EXERCISE 22.4
Create a Text Document in FTP Home Directory.
32. Launch the Windows Explorer and go to the FTP Home Directory (e.g. D:\newweb21)
(Figure 1005).
Figure 1005 : Windows Explorer - D:\newweb21
33. Create a new text document inside FTP Home Directory and rename the text document
as testing.txt.
33.1. Right-click in the windows and select New Text Document (Figure 1006).
Figure 1006 : Create New Text Document
17
34. Right click testing.txt file and select Edit. This will load the Notepad Editor (Figure
1007).
Figure 1007 : Edit Text Document
35. Type the following text into the file (Figure 1008):
This only test document to test the FTP server.
Figure 1008 : Notepad Editor
36. Save the file by pressing Ctrl + S key and close the file.
37. Close all the remaining window.
38. Log off the server.
18
EXERCISE 22.5
Test The FTP Site.
39. Log on to the client computer as Administrator (Figure 1009).
Figure 1009 : Windows XP Log On Screen
40. Launch Internet Explorer. Click Start ►All Programs ►Internet Explorer (Figure 1010).
Figure 1010 : Launch Internet Explorer
19
41. On the Address box, key-in ftp://www.yourdomain.com
(e.g. ftp://www.myserver.com) and click the Go button (Figure 1011).
Figure 1011 : Internet Explorer - ftp://www.myserver.com
42. Your FTP site will appear in the browser (Figure 1011).
43. Attempt to create a new folder (right click in the window and select New ► Folder)
(Figure 1012).
Figure 1012 : ftp://www.myserver.com – Create New Folder
Could you create the folder?
YES / NO
If NO, why do you think this happened?
20
This happened because you log on to the FTP server as guest (anonymous user). By
default, FTP server only allow read permission to anonymous user. And we also not
configure the FTP server to allow any user to have write permission on the FTP server.
44. Close all window.
45. Log off the client computer.
21
EXERCISE 22.6
Configure The FTP Server to Allow User to Upload or Modify File and Directory.
46. Log on to the server as Administrator (Figure 1013).
Figure 1013 : Administrator Login
47. Launch the Internet Information Services (IIS) 6.0 Manager. Click Start ►
Administrative Tools ► Internet Information Services (IIS) 6.0 Manager (Figure 1014).
Figure 1014 : Launch Internet Information Services (IIS) 6.0 Manager
22
48. In the Internet Information Services (IIS) 6.0 Manager, expand your server (Figure
1015).
Figure 1015 : Internet Information Services (IIS) Manager
49. Expand the FTP Sites folder (Figure 1016).
Figure 1016 : Internet Information Services (IIS) 6.0 Manager – FTP Sites
50. Right-click the Server 21 FTP Site again, and select Properties (Figure 1017).
Figure 1017 : IIS 6.0 Manager – Server 21 FTP Site
23
51. Click the Home Directory tab. Under the FTP site directory, tick the Write option
(Figure 1018).
Figure 1018 : Server 21 FTP Site Properties – Home Directory
52. Click the OK button (Figure 1018).
53. Click the Refresh button and close the IIS 6.0 Manager.
24
EXERCISE 22.7
Test The FTP Site.
54. Log on to the client computer as Administrator (Figure 1019).
Figure 1019 : Windows XP Log On Screen
55. Launch Internet Explorer. Click Start ►All Programs ►Internet Explorer (Figure 1020).
Figure 1020 : Launch Internet Explorer
25
56. On the Address box, key-in ftp://www.yourdomain.com
(e.g. ftp://www.myserver.com) and click the Go button (Figure 1021).
Figure 1021 : Internet Explorer - ftp://www.myserver.com
57. Your FTP site will appear in the browser (Figure 1021).
58. Attempt to create a new folder (right click in the window and select New ► Folder)
(Figure 1022).
Figure 1022 : ftp://www.myserver.com – Create New Folder
Could you create the folder?
YES / NO
26
59. Now try copy any file and paste it to this FTP site.
Could you paste any files?
YES / NO
Why do you think this is so?
You should be could paste a files to the FTP site because you have given permission to
everyone to read and write to the FTP site.
60. Close all window.
61. Log off the client computer.
27
Create New FTP Site Using Multiple IP Address.
You can create multiple FTP sites using multiple IP addresses and multiple ports. While
creating multiple sites with multiple IP addresses is a common and recommended
practice, it can be more complicated because, by default, clients call port 21 when using
the FTP protocol.
Therefore, if you create multiple FTP sites using multiple ports, you need to inform users
of the new port number so their FTP clients can locate and connect to the port.
If you create a new site using the same port as an existing site with the same IP
address, the new site will not start. The general rule is that you can have multiple sites
using the same IP and port, but only one site from this group can run at a time. If you try
to start another site from this group, you receive an error message.
Before you start create multiple FTP site using multiple IP address, you need to make
sure your server have set with multiple IP address. If not, you have to set your server to
use multiple IP address.
EXERCISE 22.8
Creating Multi IP Address in Single NIC
1. Log on to the server as Administrator (Figure 1023).
Figure 1023 : Administrator Login
28
2. Launch Network and Sharing Center. Click Start ► Right click Network ► Properties
(Figure 1024).
Figure 1024 : Network Properties
3. Under myserver.com (Domain network), click View status (Figure 1025).
Figure 1025 : View Network Status
29
4. Click Properties button to open Local Area Connection Properties (Figure 1026).
Figure 1026 : Local Area Connection Status
5. Select Internet Protocol Version 4 (TCP/IPv4), and click Properties button (Figure
1027).
Figure 1027 : Local Area Connection Properties
30
6. Now click the Advanced button (Figure 1028).
Figure 1028 : Network Configurations
7. Select the IP Settings tab (Figure 1029).
8. Under IP addresses field, click Add… button (Figure 1029).
Figure 1029 : Advanced TCP/IP Setting - IP Settings
31
9. Enter second IP address for your server [e.g. 192.168.2.24] (Figure 1030).
Figure 1030 : TCP/IP Address
10. Enter your subnet mask number (e.g. 255.255.255.0) and click the Add button (Figure
1030).
11. As you can see, now your server has 2 IP address (Figure 1031).
Figure 1031 : Advanced TCP/IP Setting - IP Settings
12. Click the OK button (Figure 1031).
32
13. Click the OK button (Figure 1032).
Figure 1032 : Network Configurations
14. Click the Close button (Figure 1033).
Figure 1033 : Local Area Connection Properties
33
15. Click the Close button (Figure 1034).
Figure 1034 : Local Area Connection Status
16. Close all remaining windows.
34
EXERCISE 22.8.1
Creating New FTP Site for Specific User Using Multiple IP Address.
FTP Site can be set to be login only by specific user. You can allow specific users to
establish an FTP connection and transfer files with an FTP client or FTP-enabled Web
browser. But beyond simply storing files on your server, you must manage how your site
is deployed, and more importantly, how your site evolves. This section presents the
basics of managing the infrastructure of an FTP site, from securing your site to hosting
multiple sites.
This exercise to help administrators, and particularly Internet hosting providers,
efficiently secure and commercialize the FTP services for their customers.
Let's say we want to set Ain Syahmi as administrator for the Student FTP Site.
17. Log on to the server as Administrator (Figure 1035).
Figure 1035 : Administrator Login
35
18. Launch Windows Explorer. Click Start ► Right-click Computer ► select Explore
(Figure 1036).
Figure 1036 : Launch Windows Explorer
19. Access D: drive (Figure 1037).
Figure 1037 : Windows Explorer – D Drive
36
20. Create a new folder named StudentSN (SN represents you’re Station Number).
In previous exercise I use number 21 as my Station Number. So in this exercise my folder
named will be Student21.
20.1. Right-click D drive ► select New ► Folder (Figure 1038).
Figure 1038 : Windows Explorer – Create New Folder
20.2. Rename the folder as Student21 (Figure 1039).
Figure 1039 : Rename Folder
37
21. View the default permission of your Student21 folder. Right-click D:\Student21
folder, and select Properties (Figure 1040).
Figure 1040 : Windows Explorer – D:\Student21
22. Click the Security tab. You should see your default folder security setting
permissions for your new Student21 folder (Figure 1041).
Figure 1041 : Student21 Properties
38
23. Delete all users except Administrator.
23.1. Click the Advanced button (Figure 1042).
Figure 1042 : Student21 Properties
23.2. Click the Edit… button (Figure 1043).
Figure 1043 : Advanced Security Setting for Student21
39