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.

Slides:



Advertisements
Similar presentations
Dan Fleck.  WAMP – Windows Apache MySQL PHP -  LAMP – Linux Apache MySQL PHP ◦ There are.
Advertisements

1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
20-753: Fundamentals of Web Programming 1 Lecture 11: Web Server Case Study Fundamentals of Web Programming Lecture 11: Web Server Case Study.
Chapter Apache Installation on Linux. Acknowledgement The contribution made by Darrin Morison is acknowledged.
PHP Programming with MySQL Slide 2-1 CHAPTER 2 Getting Started with PHP.
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
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 on Linux. Acknowledgement The contribution made by Darrin Morison is acknowledged.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
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.
Apache : Installation, Configuration, Basic Security Presented by, Sandeep K Thopucherela, ECE Department.
Tomcat Configuration A Very, Very, Very Brief Overview.
1 Chapter Overview Introduction to Windows XP Professional Printing Setting Up Network Printers Connecting to Network Printers Configuring Network Printers.
APACHE SERVER By Innovationframes.com »
Chapter 22 Web Hosting and Internet Servers Xuanxuan Su.
Tomcat Celsina Bignoli History of Tomcat Tomcat is the result of the integration of two groups of developers. – JServ, an open source.
SquirrelMail for Webmail AfNOG 2013 Scalable Internet Services (SS-E) Presented by Michuki Mwangi Lusaka, Zambia (Original Materials by Joelja)
Linux Operations and Administration
Web Technology – Web Server Setup : Chris Uriarte ITI-520: Web Technology Web Server Setup Meeting 2: Apache Installation and Initial Configuration Rutgers.
Web Server Configuration Alokes Chattopadhyay Computer & Informatics Centre IIT Kharagpur.
The Linux Operating System Lecture 5: Apache Tonga Institute of Higher Education.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
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.
Chapter 33 CGI Technology for Dynamic Web Documents There are two alternative forms of retrieving web documents. Instead of retrieving static HTML documents,
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.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Web Services CSCI N321 – System and Network Administration Copyright © 2007,2008 by Scott Orr and the Trustees of Indiana University.
SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
Apache Web Server v. 2.2 Reference Manual Chapter 1 Compiling and Installing.
1 Apache and Virtual Sites and SSL Dorcas Muthoni.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
1 Week 6 The lynx browser Apache Web Server John Wang With materials courtesy of Inge Mclaurin.
_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition1  Wiley and the.
Web Technology – Web Server Setup : Chris Uriarte ITI-520: Web Technology Web Server Setup Meeting 2: Apache Installation and Initial Configuration Rutgers.
Apache, MySQL and PHP Installation and Configuration Chapter 1 Apache Installation and Configuration.
Apache Web Server Administration Syed Iqbal Syed Iqbal.
Cosc 4750 Configuring httpd, Mysql, And Samba. defaults By default httpd demean will startup and work User directories are turned off Default directory.
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.
What is a port The Ports Collection is essentially a set of Makefiles, patches, and description files placed in /usr/ports. The port includes instructions.
Apache, MySQL and PHP Installation and Configuration Chapter 2 MySQL Installation and Configuration.
More than one site? Use multiple configuration files Use multiple configuration files  httpd –d {path}  Assumes “conf/httpd.conf” Logging transactions.
Field Trip #24 Setting Up a Web Server. Apache Apache is one of the most successful open source web servers In 1995 the most popular web server was the.
Web Server Administration Chapter 6 Configuring a Web Server.
Presented by Lonnye Bower Fardin Khan Chris Orona APACHE WEB SERVER.
Web Server Apache PHP HTTP Request User types URL into browser Address resolved if nec. We use directly Most browsers request.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
Planning, configuring, running and maintaining a web server -1.
Web Technology – Web Server Setup : Chris Uriarte WMB-520: Web Technology Web Server Setup Meeting 2: Apache Installation and Initial Configuration Rutgers.
Day 15 Apache. Being a web server Once your system is correctly connected to the network, you could be a web server. –When you go to a web site such as.
Building Your Own Website Using:. Install & configure LAMP. Download WordPress and run it as a local website on your Raspberry Pi. Configure WordPress.
Web Server Administration Chapter 6 Configuring a Web Server.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 1 Installing A Web Server.
Apache Web Server v. 2.2 Reference Manual Chapter 2 Starting Apache.
APACHE Apache is generally recognized as the world's most popular Web server (HTTP server). Originally designed for Unix servers, the Apache Web server.
9/21/04 James Gallagher Server Installation and Testing: Hands-on ● Install the CGI server with the HDF and FreeForm handlers ● Link data so the server.
Web and Proxy Server.
MapServer In its most basic form, MapServer is a CGI program that sits inactive on your Web server. When a request is sent to MapServer, it uses.
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
Chapter 2 Getting Started with PHP PHP Programming with MySQL
Building Web Applications
Configuring Internet-related services
APACHE WEB SERVER.
Presentation transcript:

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. It runs on many different platforms and has a multitude of third-party modules available to expand its functionality.

Understanding Apache Apache source, httpd – standard set of modules, numerous header and configuration files compiling apache – compile the server for your architecture and purposes using the config-make-make install routine common to open source software the latest version of gcc or other ANSI c compiler is required

How does it work? httpd – listens for requests and delivers files Apache modules are added to implement additional functionality A set of standard modules is delivered with the server when downloading httpd.conf – a text file that contains most set-up information for the server

httpd.conf The configuration files contain directives, which are one-line commands that tell the server what to do. The first thing Apache needs from the configuration file are basics like the listening port, server name, the default locations for content, logs, and other important files.

Example Directives ServerType standalone Port 80 ServerAdmin ServerName itec325server.radford.edu User nobody Group nobody

Handling Requests On Unix systems – the Apache daemon httpd always starts itself as a system superuser (root). On Windows – the Apache service is called apache and runs with administrator privileges. Once started – apache listens for requests on any address and port to which it has been configured

Handling Requests (Continued) Once a request is received - apache spawns a separate process to handle the connection - the spawned process does not run as the superuser (for security reasons) - it returns files to the client - normally apache has five such processes waiting for connections –

Handling Requests (continued) all resources (html docs etc) reside under a single root directory defined by the DocumentRoot directive this defines the base directory that is prepended to a URL path to locate a file on the server more complex mapping can be defined through aliasing, redirection, URL rewriting

Installation Process make a new directory called src just below your name directory (home/jcdavis/src) make a new directory named apache just below your name directory (home/jcdavis/apache) download httpd tar.gz into src (or current version) use gunzip to uncompress src>gunzip < httpd-2.0*.tar.gz | tar xvf – need to configure src>./configure –prefix=/home/jcdavis/apache –enable- module=so

Installation Process (continued) The purpose of the configure script is to figure out everything related to finding libraries, compile-time options, platform- specific differences, etc. Next have to make apache>make after finished have to install apache>make install

Installation Process (continued) at the prompt apache>./bin/httpd –v you should see the following output Server version:Apache/ Server built: Sep :20:47 to start & stop apache apache> apachectl start (restart) > apachectl stop DON’T START YET, must edit config

Installation Process (continued) You must edit the httpd.conf file that is in the conf directory under apache/conf (with vim or pico) Here are the changes - in the # prefork MPM section MAXSPARESERVERS 10  5 MAXCLIENTS 150  50 - #LISTEN CHANGE PORT NUMBER TO YOUR ASSIGNED PORT NUMBER

Control Commands apache>./bin/apachectl start (restart) apache>./bin/apachectl stop you should stop your server to minimize load on rucs whenever you’re not using it once started, open a browser you should receive a default page from apache that is rendered in the browser

Configuration File Apache keeps all of its configuration information in text files. The main file is named httpd.conf. It contains directives and containers Directives configure specific settings of Apache, such as authorization, performance, and network parameters. Containers specify the context to which those settings refer.

Directives directive arguments follow the directive name. directive arguments are separated by spaces. number and type of arguments vary from directive to directive. a directive occupies a single line, but can be continued by using a backslash \ to end the previous line the pound (#) sign should precede the directive and must appear on its own line

Documentation Server Documentation found at quick reference for all directives 2.0/mod/quickreference.html 2.0/mod/quickreference.html

Containers Also called sections, limit the scope for which directives apply. If directives are not inside a container, they belong to the default server scope (serverconfig) and apply to the server as a whole. Default Apache directive containers: - specifies a virtual server - directories - URL’s - certain files or patterns

Log Files Apache includes two log files by default - access_log is used to track client requests - error_log is used to record important events such as errors or server restarts

Installing PHP First, you must check to see that you don’t have an Ada compiler in your path variable in the.cshrc.solaris file - if you’ve been here for several years or have taken the Ada class you will have: source /usr/local/bin/ada_env near the end of the file you’ll have to comment out this line & log-off then log back on

Download the PHP files go to and follow the link to the downloads sectionhttp:// download the latest version of the source code, version to your src directory again you’ll have to untar this file >tar –xvzf php tar.gz you’ll have to move to the newly created php directory, cd php-4.3.3

Configure to execute the configure script >./configure –prefix=/home/username/php -- with-mysql=/home/mysql-php/mysql -- with-apxs2=/home/jcdavis/apache/bin/apxs (type this in one long command, let it wrap) (remember to replace username with your username, like jrsmith)

Make & Install Issue the make command > make then the make install > make install two important files must be copied you’ll need to change directories: > cd /home/username/src/php4.3.3

Copy Files cp php.ini-dist /home/username/php/lib/php.ini this copies the distributed version of php.ini to its default location cp libs/libphp4.so /home/username/apache/modules/ (this can be all on one line with space after cp and after.so) copies the shared object file

Test use should bring up a default page from the apache server put in an index.php file (it’s just a standard html file and see if you add that to the request if the file displays