Web Server Configuration Alokes Chattopadhyay Computer & Informatics Centre IIT Kharagpur.

Slides:



Advertisements
Similar presentations
PHP syntax basics. Personal Home Page This is a Hypertext processor It works on the server side It demands a Web-server to be installed.
Advertisements

4.01 How Web Pages Work.
The Internet Useful Definitions and Concepts About the Internet.
Layer 7- Application Layer
Apache Configuration Setting up a web server. Basic Server Facts Runs on port 80 Server application -> httpd Richly configurable Many defaults will let.
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
28-Jun-15 Basic Protocols. 2 Sockets Sockets, or ports, are a very low level software construct that allows computers to talk to one another When you.
HTML & Dreamweaver 101 Aman Yadav. Definitions HTTP – The Web uses a protocol called HTTP (Hyper Text Transport Protocol) to communicate between the Web.
Configuring a Web Server. Overview  Understand how a Web server works  Install IIS (Internet Information Services) and Apache Web servers  Examine.
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
CP476 Internet Computing Browser and Web Server 1 Web Browsers A client software program that allows you to access and view Web pages on the Internet –Examples.
Topics in this presentation: The Web and how it works Difference between Web pages and web sites Web browsers and Web servers HTML purpose and structure.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
Web Client/Server Communication A290/A590, Fall /09/2014.
APACHE SERVER By Innovationframes.com »
SYST Web Technologies SYST Web Technologies Installing a Web Server (XAMPP)
Web Page A page displayed by the browser. Website Collection of multiple web pages Web Browser: A software that displays web pages on client computer.
Linux Operations and Administration
TOPIC 1 – SERVER SIDE APPLICATIONS IFS 234 – SERVER SIDE APPLICATION DEVELOPMENT.
INTRODUCTION TO WEB DATABASE PROGRAMMING
The Linux Operating System Lecture 5: Apache Tonga Institute of Higher Education.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Web Administration.
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 10: Basic Apache Configuration and Management Chapter 26: Apache (httpd): Setting Up a Web.
Web Servers Web server software is a product that works with the operating system The server computer can run more than one software product such as .
TCP/IP protocols Communication over Internet is mostly TCP/IP (Transmission Control Protocol over Internet Protocol) TCP/IP "stack" is software which allows.
Chapter 1: Introduction to Web
CSCI-235 Micro-Computer Applications The Internet.
2013Dr. Ali Rodan 1 Handout 1 Fundamentals of the Internet.
1 John Magee 9 November 2012 CS120 Lecture 17a: Publishing Web pages.
Web application architecture
1 Web Server Administration Chapter 1 The Basics of Server and Web Server Administration.
How Web Servers and the Internet Work by by: Marshall Brainby: Marshall Brain
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
4-Oct-15 Basic Protocols. 2 Sockets Sockets, or ports, are a very low level software construct that allows computers to talk to one another When you send.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
Chapter 1: The Internet and the WWW CIS 275—Web Application Development for Business I.
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG 11 Kigali, Rwanda May 2010 Dorcas Muthoni Courtesy: Hervey Allen.
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
1 Welcome to CSC 301 Web Programming Charles Frank.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
CS 7: Introduction to Computer Programming Java and the Internet Sections ,2.1.
1 Session 1: Introduction to PHP & MySQL iNET Academy Open Source Web Development.
LinuxChix Apache. Serving Webpages The layer 7 protocol (HTTP) is what our browsers talk to get us the websites we can't seem to live without. HTTP is.
TCP/IP (Transmission Control Protocol / Internet Protocol)
Networking Material taken mainly from HowStuffWorks.com.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
 How a computer works  The Internet  Browsers  Web Pages.
CSI 3125, Preliminaries, page 1 Networking. CSI 3125, Preliminaries, page 2 Networking A network represents interconnection of computers that is capable.
Unit 1 – Web Concepts Instructor: Brent Presley.
Web Server Administration Chapter 6 Configuring a Web Server.
Web Server Apache PHP HTTP Request User types URL into browser Address resolved if nec. We use directly Most browsers request.
Web Server Administration Chapter 6 Configuring a Web Server.
Outline  XAMPP  XAMPP Install  Put php and HTML documents  Windows and Mac Version  Security.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
4.01 How Web Pages Work.
Web and Proxy Server.
Web Technology Seminar
4.01 How Web Pages Work.
4.01 How Web Pages Work.
Warm Handshake with Websites, Servers and Web Servers:
SUBMITTED BY: NAIMISHYA ATRI(7TH SEM) IT BRANCH
Developing Web-Based Applications
Web Page Concept and Design :
APACHE WEB SERVER.
4.01 How Web Pages Work.
Web Servers (IIS and Apache)
4.01 How Web Pages Work.
Web Application Development Using PHP
Presentation transcript:

Web Server Configuration Alokes Chattopadhyay Computer & Informatics Centre IIT Kharagpur

Web Services How Web servers bring pages into your home, school or office The Basic Process

The browser formed a connection to a Web server, requested a page and received it A bit more detail e.g. The protocol used ("http") The server name (“ The file name (“index.htm (by default)") The browser communicated with a name server to translate the server name " into an IP Address, which it uses to connect to the server machine. The browser then formed a connection to the server at that IP address on port 80 (default).

Web Application Server

Web application servers are designed specifically to extend web servers to support dynamic content The application server software “hooks in” to the web server software and automatically intercepts any user requests for dynamic content The web server still sends out static web pages and graphic files the application server can create dynamic content by mixing data with templates, running programs, or by accessing databases There are a variety of Web Application Server product available Macromedia Cold Fusion Microsoft ASP.Net J2EE

Web Servers – A Client Server architecture In general, all of the machines on the Internet can be categorized as two types: servers and clients Those machines that provide services (like Web servers or FTP servers) to other machines are servers. And the machines that are used to connect to those services are clients. A server machine may provide one or more services on the Internet. For example, a server machine might have software running on it that allows it to act as a Web server, an server and an FTP server A Web browser on local machine, it will most likely want to talk to the Web server on the server machine. The Telnet application will want to talk to the Telnet server, the application will talk to the server, and so on...

IP-address Each machine on the Internet is assigned a unique address called an IP address IP stands for Internet protocol, and these addresses are 32-bit numbers, normally expressed as four "octets" in a "dotted decimal number." A typical IP address looks like this: Every machine on the Internet has a unique IP address. A server has a static IP address that does not change very often If you are working on a Windows machine, you can view a lot of the Internet information for your machine, including your current IP address and hostname, with the command IPCONFIG.EXE On a UNIX machine, type nslookup at the command prompt, along with a machine name, like an IP address is all you need to talk to a server. For example, in your browser, you can type the URL and arrive at the machine that contains the Web server for

Domain Names Because most people have trouble remembering the strings of numbers that make up IP addresses, and because IP addresses sometimes need to change, all servers on the Internet also have human-readable names, called domain names For example, is a permanent, human-readable name. It is easier for most of us to remember the name than it is to remember The name actually has four parts: The host name ("www") The domain name (“iitkgp.ac") The top-level domain name (“in“) A set of servers called domain name servers (DNS) maps the human-readable names to the IP addresses.domain name servers These servers are simple databases that map names to IP addresses, and they are distributed all over the Internet

Ports Web server would typically be available on port 80 If we were to set up our own machine and load Web server software on it, we could put the Web server on port 918 e.g. or any other unused port. Then, the machine are known as xxx.yyy.com, someone on the Internet could connect to our server with the URL The ":918" explicitly specifies the port number, and would have to be included for someone to reach your server. When no port is specified, the browser simply assumes that the server is using the well-known port 80.

Web Server Packages Basic Apache server configuration [RHEL] basic steps When we are working with Apache, we need two packages. The first is httpd, which actually installs the Apache web server. The second is the mod_ssl package, which provides the ability to create secure websites Step 1. Install the two required packages: # yum install –y httpd mod_ssl Step 2. Verify that the packages were installed correctly: # rpm -qa | grep http httpd el6.x86_64 httpd-tools el6.x86_64 # rpm -qa | grep ssl mod_ssl el6.x86_64 openssl el6.x86_64 Step 3. With the packages installed, make sure that the service is set to start when the system boots: # chkconfig httpd on

Open http main config file # vi /etc/httpd/conf/httpd.conf DocumentRoot “/var/www/html” Test the config file : # service httpd configtest # service httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] Now finally open browser and check the web site or

ServerRoot – this specifies location in the Linux file system where the httpd.conf file will be found DocumentRoot – this specifies the location in the Linux file system where the html files and other web documents will be stored never make ServerRoot and DocumentRoot be the same directory as this leads to security holes. People could potentially access and alter configuration files. If DocumentRoot is /var/www/html and the URL is then the file accessed is /var/www/html/dir1/dir2/file1.html NOTE: Document Root’s path should not end with a / to make sure this works correctly! ServerName – this is the IP alias of the server in order to establish this, we must also have the ServerName to IP address mapping stored in DNS tables DirectoryIndex – a list of files that the server will attempt to find in a given directory if no file name is given in the URL e.g., DirectoryIndex index.html index.shtml index.php User, Group – define the user and group that will own the apache processes typically both default to apache or www

Step by Step guide to install IIS 6.0 in win server 2003

XAMPP (pronounced as ZAMP) – A free and open source cross-platform web server solution stack package, consisting mainly of the Apache HTTP Server, MySQL database, and interpreters for scripts written in the PHP and Perl programming languages. Acronym for: X- Read as "cross", meaning cross-platform A-Apache HTTP Server M-MySQL P-PHP P-Perl

How to install ? Go to Versions available for Linux, Windows, Solaris, Mac OS X Steps for Installation

Web Application Framework A web application framework (WAF) is a software framework that is designed to support the development of dynamic websites, web applications, web services and web resource Framework Applications General purpose website framework (e.g. Zend Organizational Portals JBOSS Portal (e.g. JBOSS Content management systems (CMS) Drupal ( Joomla ( Wordpress (

Thank you