windows platform (iti310)

Download Report

Transcript windows platform (iti310)

(ITI310)
SESSIONS 7:
Internet Information Services (IIS)
By Eng. BASSEM ALSAID
“Internet Information Services (IIS)”
objectives in this session:
- Install the Web Server Role.
- Create, Configure, and Manage New Websites.
- Secure Websites.
- Use the Command Line with IIS 7.0.
- Improve IIS 7.0 Performance.
“Internet Information Services (IIS)”
Internet Information Services (IIS 7.0) is used as a web server; in
other words, it is used to serve web pages to clients.
A client can be any system (Microsoft or non-Microsoft) running
a web browser such as Internet Explorer.
A page is requested, IIS creates HTML-formatted pages, and the
client receives the HTML page and displays it in the browser.
“Web Servers on the Internet”
The most popular web server on the Internet is Apache. It often runs on
Unix/Linux. One of the big draws to Linux and Apache is that they’re
free. In addition to Linux and Apache, web developers often use MySQL
as the database and Perl, Python, or PHP as the programming language.
This combination is often referred to as LAMP.
Microsoft has long been trying to increase its market share with web
servers. One of the things it has done is improve the capabilities and the
usefulness of web applications by using ASP.NET and .NET Framework.
Additionally, ASP.NET applications can easily tie into Microsoft’s SQL
Server.
Since these applications run on IIS and IIS runs on Windows, as the
popularity of IIS increases, more and more Windows Servers are being
deployed specifically to host IIS both on the Internet and within
intranets.
Practice I: Install the Web Server Role.
“Create, Configure, and Manage New Websites”
HTML (Hyper Text Markup Language): is the main markup
language for creating web pages and other information that can
be displayed in a web browser.
ASP.NET (Active Server Pages): programming language gives
web developers access to Microsoft’s .NET Framework, which
allows them to create sophisticated pages quite quickly.
You can tell whether the web server serving your web pages is
using an ASP.NET application by the extension of the request. IIS
7.0 web applications use the .aspx extension.
For example, if you go to the IIS home page, you’ll see this
address: http://www.iis.net/default.aspx
Practice II: Create, Configure, and Manage New Websites
“Secure your Website”
When considering the security of you web server and websites, you
have a variety of features and tools that are part of IIS 7.0:
Authentication: By default, IIS7.0 uses anonymous authentication.
Authorization: You can define which resources a user has access to.
Certificates: You can verify the identity of a website.
ISAPI and CGI restrictions: You can allow/deny dynamic content to run
on your server.
SSL settings: You can encrypt data between the server and the client.
HTTP filters: You can restrict the type of HTTP requests allowed.
Roles: You can control security for a group of users.
Trust levels: You can grant permissions via ASP.NET code security policy.
Users: You can configure user access to web applications.
“Use the Command Line with IIS 7.0”
Appcmd.exe utility, which is specifically designed to be used for IIS
7.0 management. “appcmd.exe” command can be found in the
directory:
%systemroot%\system32\inetsrv
Get a list of the websites on a web server, use:
appcmd list site
Add a Website Using appcmd.exe:
appcmd add site /name:NewSite /bindings:”http/*:802:”/physicalpath:”c:\NewSite”
Delete a Website Using appcmd.exe:
appcmd delete site “NewSite”
appcmd /?
“Common Administrative Tasks (IIS 7)”
Common administrative tasks in IIS 7 include the following:
• Configuring a Web Server to Serve Content.
• Configuring HTTP Settings.
• Delegating Site and Application Management.
• Monitoring Activity on a Web Server.
• Configuring Web Server Security.
• Configuring Web Application Development Settings.
“IIS7: Complementary Modules”
ASP.Net: IIS7 web server has been completely optimized for
ASP.NET. It allows the installation of all modules required to run the
ASP.NET applications. To use ASP.Net in the development of a web
site, we must put all your files in the ASP.NET project folder:
C:\inetpub\wwwroot.
PHP: To install PHP5, you need to download a zip file which is used
to obtain the additional libraries of PHP interpreter. This library is
available on the address: http://www.php.net/downloads.php,
Once downloaded we will comply with the following operations:
– Installing .Msi file.
– Extracting .Zip file
– Configuring php.ini
– Configuring IIS7.
“IIS7: Complementary Modules”
FTP: An FTP server (File Transfer Protocol) is useful to share files
between users.
To start the FTP service on Windows Server 2008
• On the Start menu, click Administrative Tools, and then click
Server Manager.
• In the Server Manager pane, in the Roles Summary section,
click Web Server (IIS).
• In the Web Server (IIS) section, under System Services, click
Microsoft FTP Publishing Service and then click Start.
Internal developers want to host an
ASP.NET application within the intranet.
They ask you to enable a server role to
support the application. What server role
should you enable?
EXERCISE I
A. TS
B. WSRM
C. FSRM
D. IIS
NEXT SESSION
C10: SATURDAY 21-Jun-2014 12:00
C11: Tuesday 21-Jun-2014 13:30
Title: “Load Balancing Cluster in Windows 2008 Servers”
THANKS