You are on page 1of 82

Institute of Technology of Cambodia Department Computer Science and communications

Project I4GIC

Services in Window Server 2008

LECTURER : HEAN Samboeun STUDENT : SAY Vortana

2011-2012

Content
I. Introduction.. 1 I.1. General Information.. 1 I.2. Technology 1 II. Installation roles and services. 2 II.1. Install Window Server 2008 on VM ware... 2 II.2. Assign IP Address.... 7 II.3. Installation Dynamic Host Control Protocol (DHCP)..7 II.3.1. How to manage new DHCP on Window Server 2008.. 14 II.3.2. How to manage new DHCP on Client side... 19 II.4. Active Directory...20 II.4.1. Installation Active Directory 21 II.4.2. Configuration Active Directory ... 22 II.4.3. Using Active Directory Management Tools 30 II.4.4. Add Member to a group ... 35 II.5. Domain Name System (DNS) .... 38 II.5.1. Configuration ... 38 II.5.2. Joining New Domain Name.. 39 II.6. Roaming Profile... 41 II.7. File Transfer Protocol (FTP)... 47 II.7.1. Mapping a network drive.. 52 II.8. Web Server ..53 II.8.1. Internet Information Services (IIS)... 53 II.8.2. PHP... 56 II.8.2.1. Configuration PHP..... 56 II.8.2.2. Configuration IIS7 to Run Fast CGI...... 57 II.8.2.3. Configuration IIS to run PHP via FastCGI.... 59 II.8.2.4. Testing PHP... 62 II.8.3. MySQL..63 II.8.3.1. Install MySQL....63 II.8.3.2. Configuration PHP to Access MySQL 68

II.8.4. PHPMyAdmin...68 III. Conclusion 73 III.1. Strengths in research... 73 III.2. Weaknesses in research...73 III.3. Strengths of our work..73 III.4. Weaknesses of our work..... 73 III.5. Difficulties.. 73 III.6. Experiences. 73 III.7. Conclusion.. 73 References73

Figures Fig.1 New Virtual Machine Wizard ... 2 Fig.2 Point to OS in New Virtual Machine Wizard .2 Fig.3 Select type of OS .................................... 3 Fig.4 Enter Password of OS..3 Fig.5 Determine space of OS 4 Fig.6 Installation new OS . 5 Fig.7 Installation Window Server 2008 5 Fig.8 Window Server 2008.. 6 Fig. 9 Desktop of Window Server 2008 ... 6 Fig.10 Assign IP Address 7 Fig.11 Server Manager ....8 Fig.12 Adding a new Role in Windows Server 2008.......... 8 Fig.13 Selecting the DHCP Server Role .9 Fig.14 Network connection binding ... 9 Fig.15 Specify IPv4 DNS Server Setting 10 Fig.16 Adding a new DHCP Scope........ 11 Fig.17 Configure DHCPv6 Stateless Mode. 11 Fig.18 Specify IPv6 DNS Server Settings . 12 Fig.19 Authorize DHCP Server .. 12 Fig.20 Confirm Installation Selections .. 13 Fig.21 Installation Result. 13 Fig.22 DHCP Management tool.. 14 Fig.23 Manage Authorized servers . 14 Fig.24 New Scope Wizard .. 15 Fig.25 Scope name ..15 Fig.26 Address Range..16 Fig.27 Add Exclusive IP Range ..16 Fig.28 Lease Duration .....17

Fig.29 Router Gateway ... 17 Fig.30 Domain Name ..18 Fig.31 Add scope 18 Fig.32 Finish the add scope wizard 19 Fig.33 Obtain IP Dynamically .. 19 Fig.34 IP obtained from Server ................................................ 20 Fig.35 Select Server Role... 21 Fig.36 Confirm install Active Directory 21 Fig.37 Installation Result ......................... 22 Fig.38 Active Directory Domain Services . 22 Fig.39 Run dcpromo ... 23 Fig.40 Checking for existing AD 23 Fig.41 Active Directory Domain Services Installation Wizard .. 24 Fig.42 Operating System Capability .................... 24 Fig.43 Choosing Deployment Configuration .. 25 Fig.44 Name the forest root domain ... 25 Fig.45 Set Domain Functional Level.. 26 Fig.46 Additional Domain Controller Options .26 Fig.47 DNS Delegation confirmation .... 27 Fig.48 Location for Data Base. Log File and SYSVOL . 27 Fig.49 Directory Services Restore Mode Administrator Password . 28 Fig.50 Active Directory Domain Services Installation Wizard Summaries 29 Fig.51 Active Directory Domain Services Installation Wizard Installation ... 29 Fig.52 Access AD management tools .30 Fig.53 Active Directory Users and Computers ...30 Fig.54 Add New Computer or User .. 31 Fig.55 New Object- Organizational Unit .. 31 Fig.56 Creating new Users Account 32 Fig.57 New Object User Fig.58 Fill Password for new account.. 32 33

Fig.59 Finish the creating User ................................................ 33 Fig.60 User account in the Active Directory User and computers.. 34 Fig.61 Create new group .35 Fig.62 Add member to group teacher ......... 35 Fig.63 Add member to group teacher .... 36 Fig.64 Select user to add to group . 36 Fig.65 Added user to group teacher 1 Fig.67 DNS Manager .......................................... 37 38 Fig.66 group teacher 1 member 37 Fig.68 Join domain 39 Fig.69 Computer Changes Domain Name . 39 Fig.70 Join new domain 40 Fig.71 Reset Password .. 40 Fig.72 Change Password ... Fig.73 Create folder profile for user .. Fig.75 Advanced Sharing Fig.77 Select user to share .. 40 41 42 43

Fig.74 Roaming Folder property . 41 Fig.76 Roaming Folder property . 42 Fig.78 Grant Rights to user .. 43 Fig.79 Advanced Sharing .. 44 Fig.80 Advance Security Settings for sayvortana user 44 Fig.81 Select User 45 Fig.82 Grant Full rights . 45 Fig.83 Path to Roaming Profile . 46 Fig.84 Roaming Profile for sayvortana .. 46 Fig.85 Server Manager .. 47 Fig.86 Add Role Wizard 48 Fig.87 Select Role (File Services).. 48 Fig.88 File Services Wizard .. 49

Fig.89 Select Role Services for File Services .. 49 Fig.90 Confirm Installation Selection .. 50 Fig.91 Installation Results . 50 Fig.92 Map Network Drive .. 52 Fig.93 Server Manager . 53 Fig.94 Add Role Wizard 53 Fig.95 Select Role Services .. 54 Fig.96 Add Roles Wizard 54 Fig.97 Installation Result . 55 Fig.98 IIS localhost page . 55 Fig.99 PHP binary file 56 Fig.100 file php.ini. 56 Fig.101 Server Manager . 57 Fig.102 Select Role CGI 58 Fig.103 Install Administration Pack for IIS 7.0 . 58 Fig.104 IIS Manager . 59 Fig.105 IIS Manager Add Application ... 59 Fig.106 Add FactCGI Application . 60 Fig.107 IIS Manager Handler Mappings . 60 Fig.108 Handler Mapping ............................... 61 Fig.109 Add Module Mappings . 61 Fig.110 Add module Mapping . 61 Fig.111 IISRESET 62 Fig.112 Notepad PHP INFO testing 62 Fig.113 PHP information . 63 Fig. 114 Install MySQL .......................................................... 63 Fig.115 Set Up MySQL Server 5.564 Fig.116 Choose Setup type . 64 Fig.117 MySQL Enterprise ... 65 Fig.118 Complete MySQL setup wizard 65 Fig.119 MySQL Server Instance Configuration wizard 66

Fig.120 MySQL Server Instance Configuration 66 Fig.121 MySQL Server Instance Configuration 67 Fig.122 MySQL Server Instance Configuration.... 67 Fig.123 MySQL Server Instance Configuration . 67 Fig.124 MySQL enable .... 68 Fig.125 Extract Compressed folder PHPMyAdmin .. 69 Fig.126 Convert to Application .. 69 Fig.127 Add Application .. 70 Fig.128 IIS Manager Default Document ... 71 Fig.129 Add Default Document . 71 Fig.130 PHPMyAdmin panel ... 72

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

I. Introduction I.1 General Information


Being a student in a network administration class, I am given a project namely installation and configuration File Server. The objectives of this project are enabling the students to understand about server base network. Furthermore, students could install and configure domain name system (DNS), and they understand how to set permission and security on data which is very important to ensure the protectionist of information. Moreover, students could install the file server for their network. In this report, though, I would like to look beyond the given requirements by looking at DHCP (Dynamic Host Control Protocol), web server and mail server which are also important services for all clients, and these topics are very sensitive and difficult to deal with. The duration for this project is six weeks, and the students are supposed to summit practice tools and reports.

I.2
-

Technology

There are some tools that we need in order to accomplish this project. VMware Workstation 7.1.3 build-324285 is a isolated software container that can run its own operating systems and applications as if it were a physical computer. A virtual machine behaves exactly like a physical computer and contains its own virtual CPU, RAM hard disk and network interface card (NIC) (VMware Inc.). This tool is very useful for testing any operating system without serious affects to the real hardware computer. Windows Server 2008, the successor to window server 2003, is the most recent release of Microsoft Windows' server line of operating systems. Like Windows Vista, Windows Server 2008 is built on the Windows NT 6.0 kernel (EaseUs). The Windows Server 2003 Administration Tools Pack (adminpak.msi) provides server management tools that allow administrators to remotely manage Windows 2000 Servers & Windows Server 2003 family servers. This is the final version (build 3790) of the adminpak.msi file. (Microsoft) The MySQL Installer for Windows radically simplifies the installation process for all MySQL users on the Windows platform. It only takes minutes from downloading the MySQL Installer to having a ready to use MySQL system on your machine. (MySQL) phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the World Wide Web. phpMyAdmin supports a wide range of operations with MySQL. (phpMyAdmin)
1|Pa ge Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

II. Installation roles and services II.1 Install Window server 2008 on VM ware
To get started, open VMware, click on the New Virtual machine option, select Custom (Advanced) and click Next.

Fig.1 New Virtual Machine Wizard

In the hardware compatibility section select version 6.5-7.0. In the next step select an installation device (e.g. DVD ROM) or add a disk image.

Fig.2 Point to OS in New Virtual Machine Wizard 2|Pa ge Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

When selecting a guest operating system choose Windows Server 2008 x64. Or select Windows Server 2008 in case you wish to install a 32 bit version.

Fig.3 Select type of OS

Specify a location to save your virtual machine. Make sure that the partition you use should have at least 20GB of free hard disk space

Fig.4 Enter Password of OS

3|Pa ge

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

In the next step, create a new virtual hard disk, choose a hard disk type and allocate space. At least 20 GB should be allocated to avoid running out of disk space. Although the initial size requirement is about 5 GB, however, installation of updates, software and server components are likely to consume a lot more space.

Fig.5 Determine space of OS

4|Pa ge

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

After that, verify that all parameters are properly configured and click Finish. The operating system will normally boot automatically, however, if it does not, click any key to continue.

Fig.6 Installation new OS

The rest of the installation will take place according to normal procedure within VMware.

Fig.7 Installation Window Server 2008

5|Pa ge

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

After that you can log in to the window server 2008 with the username and password you are defined.

Fig.8 Window Server 2008

Fig.9 Desktop of Window Server 2008

6|Pa ge

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

II.2

Assign IP Address
An IP address is a 32-bit number that uniquely identifies a host (computer or other device, such as a

printer or router) on a TCP/IP network. IP addresses are normally expressed in dotted-decimal format, with four numbers separated by periods, such as 192.168.100.1. (Microsoft, 2011) For example, the dotted-decimal IP address 192.168.100.1 has network identification 192.168.100 and 1 at the end refers to the address of the host in the network which is unique. It is very important to assign unique IP address to each host in the network so that they can communicate with each other. Because we will use Dynamic Host Control Protocol (DHCP) (See II.3), we need only assign IP address to the server only.

Fig.10 Assign IP Address

II.3

Installation Dynamic Host Control Protocol (DHCP)

DHCP Server is now a role of Windows Server 2008 not a windows component as it was in the past. To do this, you will need a Windows Server 2008 system already installed and configured with a static IP address. You will need to know your networks IP address range, the range of IP addresses you will want to hand out to your PC clients, your DNS server IP addresses, and your default gateway.
7|Pa ge Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Additionally, you will want to have a plan for all subnets involved, what scopes you will want to define, and what exclusions you will want to create. To start the DHCP installation process, you can click Add Roles from the Initial Configuration Tasks window or from Server Manager Roles Add Roles.

Fig.11 Server Manager

Fig.12 Adding a new Role in Windows Server 2008 8|Pa ge Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

When the Add Roles Wizard comes up, you can click Next on that screen. Next, select that you want to add the DHCP Server Role, and click Next.

Fig.13 Selecting the DHCP Server Role

If you do not have a static IP address assigned on your server, you will get a warning that you should not install DHCP with a dynamic IP address. At this point, you will begin being prompted for IP network information, scope information, and DNS information. If you only want to install DHCP server with no configured scopes or settings, you can just click Next through these questions and proceed with the installation. On the other hand, you can optionally configure your DHCP Server during this part of the installation. In my case, I chose to take this opportunity to configure some basic IP settings and configure my first DHCP Scope.

9|Pa ge

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.14 Network connection binding

Entered Parent Domain, Primary DNS Server, and Alternate DNS Server (as you see below) and clicked Next.

Fig.15 Specify IPv4 DNS Server Setting

10 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Then, I was promoted to configure a DHCP scope for the new DHCP Server. We can add new scope now, but I will leave it empty and click Next, and we create the DHCP scope in the DHCP management part..

Fig.16 Adding a new DHCP Scope

Back in the Add Scope screen, I clicked Next to add the new scope (once the DHCP Server is installed). I chose to Disable DHCPv6 stateless mode for this server and clicked Next. Then, I confirmed my DHCP Installation Selections (on the screen below) and clicked Install.

Fig.17 Configure DHCPv6 Stateless Mode

11 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.18 Specify IPv6 DNS Server Settings

Fig.19 Authorize DHCP Server

12 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.20 Confirm Installation Selections

Fig.21 Installation Result

13 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

II.3.1 How to manage new DHCP on new Window Server 2008


To configure the DHCP Server and see what clients have obtained IP addresses, I need to go to the DHCP Server management tool. To do this, I went to Start Administrative Tools DHCP Server, like this:

Fig.22 DHCP Management tool

When expanded out, the MMC offers a lot of features. Here is what it looks like

Fig.23 Manage Authorized servers

14 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.24 New Scope Wizard

Enter scope name

Fig.25 Scope name

15 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.26 Address Range Exclusive Range is the IP range determined by administrator for specific purposes; for example, for specific equipment or training.

Fig.27 Add Exclusive IP Range

16 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Lease duration is determined so that the client would likely to release the old IP and renew the new IP address; it is very useful for economic saving when any computer is down or stop use any IP.

Fig.28 Lease Duration

Determine the gateway IP in order to connect to other network especially for using internet.

Fig.29 Router Gateway

17 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.30 Domain Name

Fig.31 Add scope

18 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.32 Finish the add scope wizard

II.3.2 How to manage new DHCP on client side

Fig.33 Obtain IP Dynamically

19 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.34 IP obtained from Server

II.4 Active Directory


Microsoft Active Directory provides the structure to centralize the network management and store information about network resources across the entire domain. Active Directory uses Domain Controllers to keep this centralized storage available to network users. In order to configure a Windows Server 2008 machine to act as Domain Controller, several considerations and prerequisites should be taken into account, and several steps should be performed. When you install AD to create the first domain controller in a new Windows Server 2008 forest, you must keep the following considerations in mind:

You must make forest and domain functional level decisions that determine whether your forest and domain can contain domain controllers that run Windows 2000 Server, Windows Server 2003, or both. To read more about forest and domain functional levels please refer to the links below.

Domain controllers running the Microsoft Windows NT Server 4.0 operating system are NOT supported with Windows Server 2008. Servers running Windows NT Server 4.0 are NOT supported by domain controllers that are running Windows Server 2008, meaning you MUST have additional DCs running Windows 2000/2003 to support older NT 4.0 servers.

The first Windows Server 2008 domain controller in a forest must be a global catalog server and it cannot be an RODC. (Microsoft S. , 2011)

20 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

II.4.1 Installation Active Directory


Open Server Manager and click on roles, this will bring up the Roles Summary on the right hand side where you can click on the Add Roles link. This will bring up the Add Roles Wizard where you can click on next to see a list of available Roles. Select Active Directory Domain Services from the list, you will be told that you need to add some features, click on the Add Required Features button and click next to move on.

Fig.35 Select Server Role

A brief introduction to Active Directory will be displayed as well as a few links to additional resources, you can just click next to skip past here and click install to start installing the binaries for Active Directory.

Fig.36 Confirm install Active Directory 21 | P a g e Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

When the installation is finished you will be shown a success message, just click close.

Fig.37 Installation Result

II.4.2 Configuration Active Directory


Going back to Server Manager, click on the Active Directory Domain Services link, and note that there's no information linked to it, because the DCPROMO command has not been run yet.

Fig.38 Active Directory Domain Services

22 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

To run DCPROMO, enter the command in the Run command, or click on the DCPROMO link from Server Manager Roles Active Directory Domain Services.

Fig.39 Run dcpromo

Depending upon the question if AD-DS was previously installed or not, the Active Directory Domain Services Installation Wizard will appear immediately or after a short while. Click Next.

Fig.40 Checking for existing AD 23 | P a g e Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.41 Active Directory Domain Services Installation Wizard

In the Operating System Compatibility window, read the provided information and click Next.

Fig.42 Operating System Capability

24 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

In the Choosing Deployment Configuration window, click on "Create a new domain in a new forest" and click Next.

Fig.43 Choosing Deployment Configuration

Enter an appropriate name for the new domain. Make sure you pick the right domain name, as renaming domains is a task you will not wish to perform on a daily basis. Click Next.

Fig.44 Name the forest root domain

25 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Pick the right forest function level. Windows 2000 mode is the default, and it allows the addition of Windows 2000, Windows Server 2003 and Windows Server 2008 Domain Controllers to the forest you're creating.

Fig.45 Set Domain Functional Level

I decided to install DNS server alongside with the AD, so I need to check on the DNS server.

Fig.46 Additional Domain Controller Options 26 | P a g e Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

We'll probably get a warning about DNS delegation. Since no DNS has been configured yet, you can ignore the message and click Yes.

Fig.47 DNS Delegation confirmation Next, change the paths for the AD database, log files and SYSVOL folder. For large deployments, carefully plan your DC configuration to get the maximum performance. When satisfied, click Next.

Fig.48 Location for Data Base. Log File and SYSVOL

27 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Enter the password for the Active Directory Recovery Mode. This password must be kept confidential, and because it stays constant while regular domain user passwords expire (based upon the password policy configured for the domain, the default is 42 days), it does not. This password should be complex and at least 7 characters long. I strongly suggest that you do NOT use the regular administrator's password, and that you write it down and securely store it. Click Next.

Fig.49 Directory Services Restore Mode Administrator Password

28 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

In the Summary window review your selections, and if required, save them to an unattend answer file. When satisfied, click Next.

Fig.50 Active Directory Domain Services Installation Wizard Summaries

The wizard will begin creating the Active Directory domain, and when finished, you will need to press Finish and reboot your computer.

Fig.51 Active Directory Domain Services Installation Wizard Installation

29 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

II.4.3 Using Active Directory management tools


Your server now acts as a Domain Controller. Make sure you properly back it up. You can test functionality by using AD management tools such as Active Directory Users and Computers, examine the Event Logs, services and folders and shares that have been created.

Fig.52 Access AD management tools

Fig.53 Active Directory Users and Computers

30 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.54 Add New Computer or User

Fig.55 New Object- Organizational Unit

31 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.56 Creating new Users Account

Fig.57 New Object User

32 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

You need to fill in the password for creating user. Check user must change password at next logon to tell user need to change his or her password.

Fig.58 Fill Password for new account

Fig.59 Finish the creating User

33 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Here are some sample users that I created.

Fig.60 User account in the Active Directory User and computers

34 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

In order to create a group, right click on the unit group.

Fig.61 Create new group

II.4.4 Add member to a group

Fig.62 Add member to group teacher 35 | P a g e Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Right click on group teacher 1 Properties.

Fig.63 Add member to group teacher

Fig.64 Select user to add to group

36 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.65 Added user to group teacher 1

Fig.66 group teacher 1 member

37 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

II.5 Domain Name System (DNS)


Domain Name System (DNS) is a system that is used in TCP/IP networks for naming computers and network services that is organized into a hierarchy of domains. DNS naming locates computers and services through user-friendly names. When a user enters a DNS name in an application, DNS services can resolve the name to other information that is associated with the name, such as an IP address. Forward zone is used to map DNS domain name IP address Reverse zone ise used to map IP address DNS domain name

II.5.1 Configuration
In DNS Manager, everthing has been configured when we install AD.

Fig.67 DNS Manager

38 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

II.5.2 Joining New Domain Name

Fig.68 Join domain

Fig.69 Computer Changes Domain Name

39 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.70 Join new domain

Fig.71 Reset Password

Fig.72 Change Password

40 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

II.6 Roaming Profile


A roaming user profile is a concept in the Microsoft Windows NT family of operating systems (and now adopted by Linux operating systems such as Ubuntu) that allows users with a computer joined to a Windows Server domain to log on to any computer on the same network and access their documents and have a consistent desktop experience, such as applications remembering toolbar positions and preferences, or the desktop appearance staying the same. (Wiki, 2012)

Fig.73 Create Roaming folder

Fig.74 Create folder profile for user 41 | P a g e Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.75 Roaming Folder property

Fig.76 Advanced Sharing

42 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.77 Select user to share

Fig.78 Grant Rights to user

43 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.79 Grant Rights to user

Fig.80 Advance Security Settings for sayvortana user

44 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.81 Select User

Fig.82 Grant Full rights

45 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.83 Path to Roaming Profile

Fig.84 Roaming Profile for sayvortana

46 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

II.7 File Transfer Protocol (FTP)


File Transfer Protocol (FTP) is an old and venerable protocol, especially useful for Internet publishing. It may seem that Microsoft has not done much work on providing a robust, secure FTP. But that's all about to change. Microsoft has just created and released a new FTP service that has been completely rewritten for Windows Server 2008. This new FTP service incorporates many new features that enable web authors to publish content better than before, and offers web administrators more security and deployment options. (Petri, 2009)

Fig.85 Server Manager

47 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.86 Add Role Wizard

Fig.87 Select Role (File Services)

48 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.88 File Services Wizard

Fig.89 Select Role Services for File Services

49 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.90 Confirm Installation Selection

Fig.91 Installation Results

50 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

There are several methods you can use to share folders and files with others on the network. The Create a Shared Folder Wizard guides you through the steps of setting up a basic shared folder. You can also use the command-line interface to share a folder or drive. To share a folder or a drive by using the Windows interface 1. Open Computer Management. 2. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes. 3. In the console tree, click System Tools, click Shared Folders, and then click Shares. 4. On the Action menu, click New Share. 5. Follow the steps in the Create a Shared Folder Wizard, and then click Finish.

To share a folder or a drive by using a command line 1. To open an elevated Command Prompt window, click Start, point to All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator. 2. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes. 3. Type: net share <sharename=drive:path> For example, to share a folder named myshare located on drive C, in the path \Users\Myname, type: net share myshare=C:\Users\Myname Value Net share <sharename> <drive:path> Description Creates, deletes, or displays shared folders. The network name of the shared folder. The absolute path of the shared folder.

51 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

II.7.1 Mapping a network drive


In order to map a shared folder as a network drive from any remote computer administrators must follow the steps given as below: 1. Log on to Microsoft Windows server 2008 R2 operating system. 2. Use Universal Naming Convention (UNC) path to locate the file server and right-click on the target shared folder that has to be mapped as a network drive on the local computer. 3. From the context menu right-click Map network drive. 4. On Mapped Network Drive box make sure that the UNC path in Folder field is correct and from the drop-down list available in Drive field choose the desired drive letter to assign to the mapped drive. 5. Check Reconnect at logon checkbox to make the drive mapping persistent.

Fig.92 Map Network Drive

Click Finish when done. To access the mapped drive go to Start Computer. Windows explorer displays the mapped network drive along with other local volumes. However the icon of the mapped drive is different from the icons of local volumes.
52 | P a g e Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

II.8 Web Server II.8.1 Internet Information Services (IIS)


IIS 7.0 is the Web server role in Windows Server 2008 and the Web server in Windows Vista. IIS 7.5 is the Web server role in Windows Server 2008 R2 and the Web server in Windows 7. Windows Server 2008 R2 and Windows Server 2008 operating systems have all the IIS features needed to support the hosting of Web content in production environments. Windows 7 and Windows Vista also include IIS features, but the available features depend on the operating system versions. (pharr, 2007) Click Start All Programs Administrative Tools Server Manager.

Fig.93 Server Manager

Select Web Server (IIS) on the Select Server Roles page.

Fig.94 Add Role Wizard 53 | P a g e Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Select the IIS services to be installed on the Select Role Services page. Add only the modules necessary. In this case, ASP.NET is selected, and a description of ASP.NET appears in the right pane. Once desired modules are added, click Next.

Fig.95 Select Role Services

Add any required role services.

Fig.96 Add Roles Wizard

54 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

IIS is now installed with a default configuration for hosting ASP.NET on Windows Server. Click Close to complete the process.

Fig.97 Installation Result

Confirm that the Web server works by using http://localhost

Fig.98 IIS localhost page

55 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

II.8.2 PHP II.8.2.1 Configuration PHP


In order for Windows to run PHP code, the PHP binary files need to be copied to your system. No installation is required, however some configuration must be done in order for it to properly run. The first step is to download the PHP Windows Binaries and extract them (i.e. C:PHP).

Fig. 99 PHP binary file

Copy the php.ini-production file from the extracted files paste it into the Windows directory. In the Windows directory, rename this file to php.ini.

Fig.100 file php.ini

56 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Open the php.ini file in Notepad and configure it as needed. Out of the box, the production configuration we copied is preconfigured for what the PHP Team feels is good for a production server. There are a few changes you will need to make to configure PHP for your IIS 7 system:

Uncomment and set the key, cgi.force_redirect = 0 Uncomment the key, fastcgi.impersonate = 1 Uncomment and set the key, extension_dir to the ext folder in the path PHP was extracted to (i.e. C:PHPext). Set the key, date.timezone to the time zone of your server (the URL on the line above this key lists the accepted values).

At this point, your Windows system can run PHP scripts from the command line using the php.exe tool.

II.8.2.2 Configuration IIS7 to Run FastCGI


Internet Information Services (IIS) 7 includes the FastCGI framework as part of the installation package. To make sure it is enabled in your IIS 7 installation, check the Role Services under Server Manager Roles Web Server.

Fig.101 Server Manager

57 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Make sure the CGI option is installed under the Application Development section. If it is not, enable this feature and update your IIS 7 installation.

Fig.102 Select Role CGI

Administration Pack. If you do not use the Typical setup then make sure you have the FastCGI option set to install. This package installs the FastCGI configuration interface inside the IIS Manager.

Fig.103 Install Administration Pack for IIS 7.0

58 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

II.8.2.3 Configuration IIS to run PHP via FastCGI


Once IIS 7 is setup with all the required features, we just need to configure it to run PHP. First, we configure FastCGI to work with PHP under the FastCGI Settings option (this feature is installed as part of the IIS 7 Administration Pack).

Fig.104 IIS Manager

In the FastCGI Settings screen, add an application.

Fig.105 IIS Manager Add Application

59 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Set the path to the php-cgi.exe executable located in the folder where you extracted the PHP Windows binaries. Additionally, change the InstanceMaxRequests to a value higher than the default (i.e. 5000). Under the EnvironmentVariables setting, click the ellipses button to configure additional options.

Fig.106 Add FactCGI Application

Next, we have to map how PHP scripts are executed by IIS which is configured in Handler Mappings.

Fig.107 IIS Manager Handler Mappings 60 | P a g e Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

In the Handler Mappings, add a new module mapping.

Fig.108 Handler Mapping

Set the modules request path to PHP files (*.php) with the module interface FastCgiModule. Set the executable to the same file as what was configured in the FastCGI settings above. Assign a friendly name to this mapping, such as PHP, and click Ok.

Fig.109 Add Module Mappings

Fig.110 Add module Mapping 61 | P a g e Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

II.8.2.4 Testing PHP


At this point, your server is ready to go, but just to be sure we can confirm your PHP setup through IIS pretty easily. Create a text file in the directory C:Inetpubwwwroot named phpinfo.php which simply contains the line:

Fig.111 IISRESET

Create PHP file and put <?php phpinfo(); ?> Finally, browse to the address: http://localhost/phpinfo.php on your server and you should see the PHP information page. If the page loads successfully, PHP is now up and running on your machine.

Fig.112 Notepad PHP INFO testing

62 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.113 PHP information

II.8.3 MySQL
While Microsoft SQL Server 2008 is the recommended database to use when hosting PHP applications on an Internet Information Services 7 (IIS 7) Web server, you can also use MySQL as the database. Currently, many popular PHP applications use MySQL Server for data storage. Using MySQL requires hosting providers to include MySQL database support with the hosting packages. (Yakushev, 2008)

II.8.3.1 Install MySQL

Fig.114 Install MySQL 63 | P a g e Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.115 Set Up MySQL Server 5.5

Choose Complete

Fig.116 Choose Setup type

64 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.117 MySQL Enterprise

Fig.118 Complete MySQL setup wizard

65 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig119 MySQL Server Instance Configuration wizard

Fig.120 MySQL Server Instance Configuration

66 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

Fig.121 MySQL Server Instance Configuration

Type in Password for user root of the MySQL.

Fig.122 MySQL Server Instance Configuration

Fig.123 MySQL Server Instance Configuration

67 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

II.8.3.2 Configuration PHP to Access MySQL


1. Open the c:\php\php.ini file with your favorite text editor. 2. Uncomment the following lines by removing the semicolon: extension=php_mysqli.dll extension=php_mbstring.dll extension=php_mcrypt.dll 3. Restart the IIS service by clicking on Start, selecting the Search Field, typing iisreset, and then pressing ENTER. 4. If all went well, you should see the mysqli section on the PHP information page created earlier (http://localhost/phpinfo.php).

Fig.124 MySQL enable

II.8.4 PHPMyAdmin
If you dont feel like learning the command line sequences for MySQL you might be interested in using a web based GUI based tool which will make managing the databases a lot easier. This tool is called PHPMyAdmin. The current version as I write this article is 2.11.9, so I am going to go ahead and download that to get started from www.phpmyadmin.net/home_page/downloads.php. Which version you use will depend on your environment; I am going to use the english.zip for this demo. (Lawlor, 2008)

68 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

1. Extract the files from the archive to a site that is available on the web server (remember the application is web based).

Fig.125 Extract Compressed folder PHPMyAdmin

2. Now start IIS Manager and expand the default website; right click on phpmyadmin and left click on Convert to Application.

Fig.126 Convert to Application 69 | P a g e Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

3. You can leave the default settings in place for the Add Application window and click OK.

Fig.127 Add Application

4. Create a folder to save your PHP sessions; for our example I am going to use C:\temp\phpsessions and give full rights to the following users: IUSR IIS_IUSRS Network Service

5. Now go into your php directory and find php.ini we have to make a few changes: Find session.save_path and set it to the same as you used in step 4 which in our case is C:\temp\phpsessions and save the file. 6. Please note that this application requires the following extensions for PHP:

MySQL GD MBSTRING If you do not have these on your server already, please install them. If you are using my article to install PHP then in step 6 just add the above extensions to your installation, or if you already installed it rerun the installer msi file and modify your installation to include these extensions.
70 | P a g e Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

To check if they are installed do a search for extension=php_mysql in the php.ini and you should see it uncommented. Do the same for the other extensions: extension=php_gd2.dll extension=php_mbstring.dll Go into IIS Manager, go to the default site (that is if you have been following my demo, if you have been modifying your site location or path then use that) and click on Default Document.

Fig.128 IIS Manager Default Document

7. In the right pane click Add

Fig.129 Add Default Document 71 | P a g e Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

8. Go to the directory that you unzipped PHPMyAdmin to and look for a file named config.sample.inc.php and open it in Wordpad. (You can use notepad but it tends to jumble everything up) 9. Now find the line $cfg[blowfish_secret] = ; you have to fill in this line with anything that you want but it needs to be a value. 10. Now save this file as config.inc.php 11. Point your browser to http://localhost/phpmyadmin/ (if you have been following this example; if you have used a different site/directory then point to that) and you should see a login page.

Fig.130 PHPMyAdmin panel

72 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

III Conclusion III.1. Strengths in research


Finish all the tasks in the research Beyond the scope of the topic with deeply explanation All services are tested in VMWare

III.2. Weaknesses in research


Some advance point are not discussed Lack other services such as SMTP

III.3. Strengths of our work


All the services and software are installed correctly. Server functions properly by providing the services to the clients.

III.4. Weaknesses of our work


We have not considered thoroughly about the security in network between server and clients

III.5. Difficulties
Not enough internet access while doing the research Some services are complicated

III.6. Experiences
More familiar with the research Understand more about networking especially client-server Get to know the useful services and software such as those mentioned above Have a chance to experience self-study

III.7. Last Remark


After having done this research, I acquire a lot of new and interesting knowledge concerning with client-server networking, administering network services, and managing clients connected to server. I believe that this research is very practical and helpful for us, students, and it is like the door that opens our mind to the world of advanced technology. Moreover, it allows us to relate our knowledge to the new technologies, and to learn more about them. Last but not least, I strongly hope that this research can contribute to help other students in this field to learn and critics for better solutions.

73 | P a g e

Prepared by SAY Vortana

Institute of Technology of Cambodia Computer Science and Communication

Course : Network Administration Lecturer : Mr. HEAN Samboeun

References
EaseUs. (n.d.). http://www.easeus.com/resource/windows-server-2008.htm. Retrieved April 10, 2012, from http://www.easeus.com/. farshad. (2011, January 7). http://www.addictivetips.com/windows-tips/how-to-install-windowsserver-2008-r2-x64-on-vmware-7/. Retrieved April 12, 2012, from http://www.addictivetips.com/. Lawlor, D. (2008, September 16). Install PHPMyAdmin on IIS7 and Server 2008. Retrieved from http://www.trainsignal.com: http://www.trainsignal.com/blog/install-phpmyadmin-on-iis7and-server-2008 Microsoft. (n.d.). Windows Server 2003 Administration Tools Pack. Retrieved from http://www.microsoft.com/: http://www.microsoft.com/enus/download/details.aspx?id=16770 Microsoft, S. (2011, September 23). http://support.microsoft.com/kb/164015. Retrieved April 15, 2012, from http://support.microsoft.com/. MySQL. (n.d.). Introducing the MySQL Installer for Windows. Retrieved from http://dev.mysql.com/: http://dev.mysql.com/tech-resources/articles/mysql-installer-forwindows.html Petri, D. (2009, January 8). Microsoft FTP Publishing Service for IIS 7.0 for Windows Server 2008. Retrieved from http://www.petri.co.il: http://www.petri.co.il/ftp-publishing-service-iis7windows-server-2008.htm pharr. (2007, October 26). Installing IIS 7 on Windows Server 2008 or Windows Server 2008 R2. Retrieved from http://learn.iis.net/: http://learn.iis.net/page.aspx/29/installing-iis-7-andabove-on-windows-server-2008-or-windows-server-2008-r2/ phpMyAdmin. (n.d.). About PHPMyAdmin. Retrieved from http://www.phpmyadmin.net/: http://www.phpmyadmin.net/home_page/ Rouse, M. (2005, September). SMTP (Simple Mail Transfer Protocol). Retrieved from http://searchexchange.techtarget.com/: http://searchexchange.techtarget.com/definition/SMTP VMware Inc. (n.d.). http://www.vmware.com/virtualization/virtual-machine.html. Retrieved April 10, 2012, from http://www.vmware.com/. Wiki. (2012, April 10). Roaming user profile. Retrieved from http://en.wikipedia.org/wiki/: http://en.wikipedia.org/wiki/Roaming_user_profile Yakushev, R. (2008, February 14). Install and Configure MySQL for PHP Applications on IIS 7. Retrieved from http://learn.iis.net/: http://learn.iis.net/page.aspx/353/install-and-configuremysql-for-php-applications-on-iis-7-and-above/
74 | P a g e Prepared by SAY Vortana

You might also like