What all is there Inside the Apache web server. These slides are part of study material of LAMP course. Course conducted by Prof Rocky Jagtiani – Technical.

Slides:



Advertisements
Similar presentations
Web Hosting for Fame and Fortune
Advertisements

Pakiti.
1 Real World Performance Tuning Ask Bjørn Hansen OSCON 2001.
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.
Web Server Onno W. Purbo Web server.
Apache Installation by Jack Davis. Web Servers The Apache HTTP Server is the most widely used web server on the Internet. Apache is fast, free, and full-featured.
Z39 Server DigiTool Version 3.0. Z39 Server 2 z39 SERVER Main Topics z39 server architecture z39 server services z39 server configuration Defining a new.
Apache Configuration Setting up a web server. Basic Server Facts Runs on port 80 Server application -> httpd Richly configurable Many defaults will let.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
CSE 190: Internet Commerce Lecture 4: Web Servers.
Configuring a Web Server. Overview  Understand how a Web server works  Install IIS (Internet Information Services) and Apache Web servers  Examine.
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.
1 Web Servers Web Protocols and Practice Chapter 4.
Apache httpd Web Server C. Edward Chow. Advanced Internet & Web Systems chow2 Outline of the Talk Introduction to Apache httpd web server Basic Compilation,
SquirrelMail for Webmail AfNOG 2013 Scalable Internet Services (SS-E) Presented by Michuki Mwangi Lusaka, Zambia (Original Materials by Joelja)
Apache Architecture. How do we measure performance? Benchmarks –Requests per Second –Bandwidth –Latency –Concurrency (Scalability)
Fronting Tomcat with Apache Httpd Mladen Turk Red Hat, Inc.
Virtual Hosts The apache server can handle multiple “web sites” at a time – a web service provider company may have multiple different sites to offer (see.
Linux Operations and Administration
Appendix: Installing AMP (Apache + MySQL + PHP). Training Course, CS, NCTU 2 AMP  AMP A – Apache Web Server M – MySQL Database Server P – PHP Language.
The Linux Operating System Lecture 5: Apache Tonga Institute of Higher Education.
CSN11121 System Administration and Forensics Week 5: Essential Apache and Log Analysis Module Leader: Dr Gordon Russell Lecturers: G. Russell, R.Ludwiniak.
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.
Apache Setting up a Web (httpd) server. Apache Apache is the utility used by Linux servers to provide Web services (http services). It is the most popular.
Web Servers Installation and Configuration May 24, 2001 CIS System Administration Problem Statement The class topic is setting up a Linux server to support.
Apache Server The Apache Server Apache is a WWW server that implements the HTTP protocol. Apache runs as a daemon. This means that it is a resident.
Web Servers1-1 Web Servers Xingquan (Hill) Zhu
Configuring Apache Downloading, compiling and installing apache is straightforward and even someone easy The real effort is to properly configure apache.
CSN09101 Networked Services Week 8: Essential Apache Module Leader: Dr Gordon Russell Lecturers: G. Russell, J. Jackson.
An introduction to Apache. Different Types of Web Servers Apache is the default web server for may Unix servers. IIS is Microsoft’s default web server.
Apache httpd Web Server C. Edward Chow. Advanced Internet & Web Systems chow2 Outline of the Talk Introduction to Apache httpd web server Basic Compilation,
Apache, PHP, MySQL Installation and configuration Web Programming with PHP,TITAS PROJECTIICT,BUET.
System Administration NFS & Web Servers. NFS SERVER.
APACHE 2.0 A Look Under the Hood CHUUG, June 2002 by Cliff Woolley
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Microsoft Internet Information Services 5.0 (IIS) By: Edik Magardomyan Fozi Abdurhman Bassem Albaiady Vince Serobyan.
Web Services CSCI N321 – System and Network Administration Copyright © 2007,2008 by Scott Orr and the Trustees of Indiana University.
Internet Information Server © N. Ganesan, Ph.D. All Rights Reserved.
1 Apache and Virtual Sites and SSL Dorcas Muthoni.
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG 11 Kigali, Rwanda May 2010 Dorcas Muthoni Courtesy: Hervey Allen.
Apache HTTP mod_ftp William A. Rowe, Jr. ASF Member, httpd and APR projects Sr. Software Engineer, Covalent Technologies.
Apache Web Server. Aim of this section –Introduce you to workings of the most common webserver –Give you a little experience in role of webmaster Configuring.
Understanding Apache 2.2 Configuration Brad Nicholes Senior Software Engineer, Novell Inc. Member, Apache Software Foundation
Apache Web Server Administration Syed Iqbal Syed Iqbal.
APACHE 조준희 (Cho, Junhee)
Cosc 4750 Configuring httpd, Mysql, And Samba. defaults By default httpd demean will startup and work User directories are turned off Default directory.
1 Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG X Cairo, Egypt May 2009 Hervey Allen.
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.
Multi-Domain Hosting Hosting multiple domains on one server using Apache John Beckett 1/16/2013.
Apache Global Configuration Apache MPM (multi-processing modul) Common Directives.
Web Server (Apache httpd ) 1. 2 Apache Web Server A PAtCHy server: developed by the Apache group History- First.
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.
IBM Http Server Basic Administration. CONTENTS Web server IHS How does IHS differ from Apache Basic configurations Advanced Configurations Performance.
CITA 310 Section 4 Apache Configuration (Selected Topics from Textbook Chapter 6)
Apache Web Server. Outline of the Talk : Introduction to Apache httpd web server Basic Compilation, Installation and Configuration Performance Features:
Multi-Domain Hosting CPTE 212 “Missing Slides” for 1/22/2015 John Beckett.
Web Server Administration Chapter 6 Configuring a Web Server.
Apache Configuration. Application Install IBM HTTP Server is Apache.
(c) Elizabeth Sterling * Please copy, share and reuse * sparkthing.com What Is Apache? ● A “Patchy” Web Server ● The most common HTTP server on the 'Net.
NWCLUG 04/06/2010 Jared Moore L A M P.
Web and Proxy Server.
Web Protocols and Practice
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess
Authentication & .htaccess
Unix System Administration
Lab 1 introduction, debrief
Apache Web Server A PAtCHy server: developed by the Apache group formed 2/95 around a number of people who provided patch files for NCSA httpd 1.3 by Rob.
Unit-5 Chap-1 Configuring Web Server
PHP and Forms.
Presentation transcript:

What all is there Inside the Apache web server. These slides are part of study material of LAMP course. Course conducted by Prof Rocky Jagtiani – Technical Head – Suven Consultants For any queries mail to :

What all is there Inside the Apache web server There are too many components / modules inside the web server, only 10% is used at any point of time by the web developers. To look into the Apache web server, look into the conf file. $vi /etc/init.d/conf/httpd.conf # for a ordinary user this file is read only. $ su root or simply $ su, again open httpd.conf file. The file has many sections. 2Suven Consultants - Channel Partner - Monster India

Brief over view of the important sections of the Apache web server The conf directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, which responds to requests that aren't handled by a virtual host. These directives also provide default values for the settings of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to different IP addresses or hostnames and have them handled by the same Apache server process. 3Suven Consultants - Channel Partner - Monster India

Section 1: Global Environment # The directives in this section affect the overall operation of Apache, such as the number of concurrent requests it can handle or where is the location of the configuration files. ServerRoot "/etc/httpd“ Indicates location of the apache server process. PidFile run/httpd.pid PidFile: The file in which the server should record its process identification number when it starts. Timeout 120 Timeout: The number of seconds before receives and sends time out. 4Suven Consultants - Channel Partner - Monster India

Server-Pool Size Regulation (MPM specific) prefork MPM # StartServers: number of server processes to start # MinSpareServers: minimum number of server processes which are kept spare # MaxSpareServers: maximum number of server processes which are kept spare # ServerLimit: maximum value for MaxClients for the lifetime of the server # MaxClients: maximum number of server processes allowed to start # MaxRequestsPerChild: maximum number of requests a server process serves StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild Suven Consultants - Channel Partner - Monster India

worker MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process # MaxRequestsPerChild: maximum number of requests a server process serves StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 Listen attribute : indicates the IP address and the port no. on which the apache web server listens to. Default IP : Port no : 80 Lastly this section indicates all the modules loaded at start up. “ LoadModule” 6Suven Consultants - Channel Partner - Monster India

Section 2: 'Main' server configuration The directives in this section set up the values used by the 'main' server, which responds to any requests that aren't handled by a definition. It also defines settings for the containers. 1> DocumentRoot = “ /var/www/html ” indicates the location where we would place the web pages ( php files) 2> UserDir. This directory is the home directory of any individual user. For each /home/ there is a public_html folder at the web server. This folder holds all the web pages to be visible to the entire world. 3> Permissions. Used to give the permission to UserDir. Like AllowAll, Allow, AllowNone. 4> HostnameLookups. This feature is OFF by default. If ON, then for every request a log is created in the table “HostnameLookups” 5> ErrorLog logs/error_log this file logs all the errors. 6> LogLevel indicates the type of the message logged like warn, error, debug, info. 7Suven Consultants - Channel Partner - Monster India

Section 3: Settings for virtual hosts, which allow Web requests to be sent to different IP addresses or hostnames and have them handled by the same Apache server process. NameVirtualHost *:80 Indicates the port at which the virtual host would listen. The attribute (in black colour) and the value (in the red colour) ServerAdmin DocumentRoot /var/www/html/labtest 8Suven Consultants - Channel Partner - Monster India

DirectoryIndex index.php AuthType Basic AuthName "This is for test" AuthUserFile /usr/httpdpassdir/passwords Require user rocky suven AllowOverride All Order allow,deny Allow from All ServerName suvenconsultants.com ErrorLog logs/labtest-error_log CustomLog logs/testps-access_log combined Suven Consultants - Channel Partner - Monster India9