apache installation

19
Apache In stallati on

Upload: theothers03

Post on 08-Apr-2018

236 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 1/19

Apache Installation

Page 2: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 2/19

What is Apache Open Source HTTP Server that serves any

HTTP request developed by numerous

developers around the globe now coordinatedby a non-profit organization called theApache Foundation.

Apache has been written in C, using a

dynamic, modular architecture (much likethe kernel module architecture) in whichpieces of functionality can beinserted into the web server by loading piecesof code known as modules.

Page 3: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 3/19

Content 

History of Apache Use of Apache

Why Apache?

Requirement And Specifications Installation & Configuration

Page 4: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 4/19

History of Apache The first version of the Apache web server was created by Robert 

McCool, known simply as NCSA HTTPd before 1994.

1995: After Robert McCool left NCSA, Brian Behlendorf started

collecting patches to be applied to the last version of NCSA. The initialversions of Apache are available primarily as a series of patches.Hence, initially, the name Apache, as it was "a patchy server". At least,so the legend goes.

April of 1995: The first public release of Apache (version 0.6.2) cameout.

December 1, 1995 : Apache 1.0 released and within a year surpassedNCSA as the most-used web server.

June of 1999:The Apache Software Foundation was formed.

March, 2000: ApacheCon was held in Orlando Florida, USA. Apache 2.0Alpha 1 was released

. January 19, 2008, Apache 2.2.8 Released.

Page 5: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 5/19

Use of Apache Number one web server most widely used. It can be

found running on almost all server one browses.

Apache is the web server component of the popularLAMP & WAMP web server application stack,alongside MySQL, and the PHP/Perl/Pythonprogramming languages.

Apache is redistributed as part of various proprietarysoftware packages including the Oracle Database orthe IBM WebSphere application server.

Apache is used where content needs to be madeavailable in a secure and reliable way.

Page 6: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 6/19

Use of Apache Web developers run apache on local

servers for development purpose.

Over 61% of all Internet web serversrunningApache.

A far second is Microsoft IIS, with ameasly 19% of market share.

Page 7: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 7/19

Usage of Apache as Web

Server

Page 8: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 8/19

Why Apache? Apache is secure. Apache has extensive logging.

Apache is modular. Apache allows you to extend the functionality

of your web site. Dynamic sites are easy with Apache. (Java

servlets, PHP, PERL, Python) URL rewriting, access control and

authentication, setting of non standard HTTPheaders, server-side includes, CGI support,server side image map support, proxy and

caching support etc.

Page 9: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 9/19

Requirement & Specifications A computer running Linux (or windows

also)

Root access on this computer

For binary and source installations, thetar and gunzip Unix utilities

To actually run a server a huge spaceand high bandwidth internet connectionis required.

Page 10: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 10/19

Alternatives to Install Source Distribution

Consists of the source code and no pre-built binaries.

Maximum flexibility to custom configure

and install Apache Latest bug fixes and feature enhancement 

Page 11: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 11/19

Alternatives to Install Binary Distribution

Consists of pre-built binaries for thevarioussupported operating environments andplatforms.

As binaries are pre-configured, muchopportunity to alter the way the softwareworks is not provided.

Can be installed in 3 commands

Page 12: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 12/19

Alternatives to Install Packaged distribution

Come in packaged formats likeRPM (for RedHat and derivative systems)

Installed via the standard installationmanagement program called rpm that 

allows the software installation of Apacheto be tracked by the Operating System.

Page 13: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 13/19

Installation Binaries Get apache from

http://www.apache.org/dist/httpd/binaries/

Unzip the archive gunzip < httpd-2.2.8.tar.gz | tar xvf

Or tar xvzf httpd-2.2.8.tar.gz

Move to the directory obtained cd httpd-2.2.8

Find install.bindist.sh. or README.bindist or INSTALL.bindist for further information

Run the install script  ./install.bindist.sh

Page 14: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 14/19

Installation RPM Find rpm in your system

rpm -qa | grep apache or rpm -qa | grep httpd

Obtain rpm fromhttp://www.apache.org/dist/httpd/binaries/rpm/

Navigate to the directory where the rpm is Install the rpm

rpm ivh httpd-2.2.3-1.i386.rpm

Page 15: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 15/19

Installation Source Obtain source archive from

http://www.apache.org/dist/httpd/

Unzip the archive gunzip < httpd-2.2.8.tar.gz | tar xvf

Navigate to installation directory cd httpd-2.0.x 

Configure build and install with ./configure

Make

make install

Page 16: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 16/19

Starting Apache For binary installation

/usr/local/apache/bin/apachectl start 

For RPM installation

/sbin/service httpd start 

To stop apache use/usr/local/apache/bin/apachectl stop

Page 17: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 17/19

Configuration Configuration files are

·httpd.conf This has the settings for the overall

configuration for the server. ·access.conf This file contains all the security

settings for Apache.

·srm.conf This file contains the MIME definitions

and default document names for files on theserver.

DocumentRoot - This is the location of thedirectory from which HTML files are

served.

Page 18: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 18/19

Configuration To find the conf files

cd /

find -name httpd.conf 

To achieve effect after changingconfiguration restart apache

Page 19: Apache Installation

8/7/2019 Apache Installation

http://slidepdf.com/reader/full/apache-installation 19/19

CONGRATULATIONS!