Internet Information Server

advertisement
AF_IC01_U5. HTTP protocol and web servers
Unit 5b. Practice. Internet Information Server + ASP
Introduction
In this practice, you will go further in the knowledge of the Internet Information Server (IIS), as
well as its configuration, settings and features. The web programming language used is ASP
(Active Server Pages). You will need a virtual machine with a Windows Server installed on it,
and you can use your own real machine as a client.
Objectives




Work in a Windows Server environment.
Install and configure the IIS web server, ASP and the database required.
Know configuration files and their location.
Create a guide in order to describe the needed steps to install and configure a complete
web server.
Internet Information Server
Install and configure the IIS. Test it with an HTML page.
Internet Information Services (IIS) Installation
Active Server Pages
Install and configure the Active Server Pages for IIS. Test it with an ASP page (search on the
Internet for some example and try it, or customize the annex’s example to your own purposes).
Database
Depending on the selected CMS, install and configure the required database. If more than one
is available, choose the most appropriate one.
Content Management System
Install and configure the selected CMS. Then, customize it and perform some tasks.
Extension
Perform one of the following tasks. Rating: 10% (first) and 20% (second).
 Find out what PHPMyAdmin does and search for another software in ASP to do the
same.
 Create a secure virtual server with IIS. Remember it is accessed as https://...
Report
Please note that the report should be as concise as possible and should include at least the
following sections:
1. Front page
2. Index
3. Introduction
4. Theory
5. Objectives
6. Realization
AF_IC01_U5b. HTTP protocol and web servers / Unit 5b
7. Conclusions
8. Bibliography
Annex
list.asp
<%
'declare the variables
Dim Connection
Dim ConnString
Dim Recordset
Dim SQL
'define the connection string, specify database driver (MSSQL)
ConnString="Provider=sqloledb;Data Source=localhost;Initial Catalog=DEMO;"
_
"User Id=sa;Password=1234;"
'declare the SQL statement that will query the database
SQL = "SELECT * FROM USER"
'create an instance of the ADO connection and recordset objects
Set Connection = Server.CreateObject("ADODB.Connection")
Set Recordset = Server.CreateObject("ADODB.Recordset")
'Open the connection to the database
Connection.Open ConnString
'Open the recordset object executing the SQL statement and return records
Recordset.Open SQL,Connection
'first of all determine whether there are any records
If Recordset.EOF Then
Response.Write("No records returned.")
Else
'if there are records then loop through the fields
Do While NOT Recordset.Eof
Response.write Recordset("user_id")
Response.write Recordset("name")
Response.write Recordset("city")
Response.write "<br>"
Recordset.MoveNext
Loop
End If
'close the connection and recordset objects to free up resources
Recordset.Close
Set Recordset=nothing
Connection.Close
Set Connection=nothing
%>
AF_IC01_U5b. HTTP protocol and web servers / Unit 5b
&
Download