Chapter Apache Installation on Linux. Acknowledgement The contribution made by Darrin Morison is acknowledged.

Slides:



Advertisements
Similar presentations
FIRST SESSION - XAMPP Jeongmin Lee.  Jeongmin Lee  CS  PHD  Machine Learning, AI  Web System Development.
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.
Initial web server configuration 1WUCM1. Overview Planning Testing the OS/Environment – IP setup Installation Configuration – Simple minimum details Testing.
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.
Initial web server configuration Dr Jim Briggs 1WUCM1.
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
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.
Apache : Installation, Configuration, Basic Security Presented by, Sandeep K Thopucherela, ECE Department.
SETUP AND CONFIGURATIONS WEBLOGIC SERVER. 1.Weblogic Installation 2.Creating domain through configuration wizard 3.Creating domain using existing template.
Installing Apache There are several ways to install the Apache web server – in CIT 370, you probably installed it from the CentOS CD-ROM although in fact,
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
APACHE SERVER By Innovationframes.com »
Chapter 22 Web Hosting and Internet Servers Xuanxuan Su.
Sharepoint Portal Server Basics. Introduction Sharepoint server belongs to Microsoft family of servers Integrated suite of server capabilities Hosted.
SquirrelMail for Webmail AfNOG 2013 Scalable Internet Services (SS-E) Presented by Michuki Mwangi Lusaka, Zambia (Original Materials by Joelja)
Deployment Management The following screens demonstrate how to: 1. Access and view deployments 2. Create a new local deployment 3. Create and modify a.
A crash course in njit’s Afs
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.
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.
1 Web Server Concepts Dr. Awad Khalil Computer Science Department AUC.
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.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 21 - Web Servers (IIS, PWS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3.
SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.
Apache Web Server v. 2.2 Reference Manual Chapter 1 Compiling and Installing.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
ASP Introduction Y.-H. Chen International College Ming-Chuan University Fall, 2004.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
Booting Ubuntu Linux Live CSCI 130 – Fall 2008 Action Lab Dr. W. Jones.
1 Week 6 The lynx browser Apache Web Server John Wang With materials courtesy of Inge Mclaurin.
Lecture Note 1: Getting Started With ASP.  Introduction to ASP  Introduction to ASP An ASP file can contain text, HTML tags and scripts. Scripts in.
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.
1 Session 1: Introduction to PHP & MySQL iNET Academy Open Source Web Development.
ASP. What is ASP? ASP stands for Active Server Pages ASP is a Microsoft Technology ASP is a program that runs inside IIS IIS stands for Internet Information.
WAMP Windows Apache MySQL and PHP i.e. “WAMP”. Why WAMP? WampServer is a Windows web development environment. It allows you to create and test web pages.
Apache, MySQL and PHP Installation and Configuration Chapter 2 MySQL Installation and Configuration.
Free Powerpoint Templates Page 1 Free Powerpoint Templates Users and Documents.
17 Establishing Dial-up Connection to the Internet Using Windows 9x 1.Install and configure the modem 2.Configure Dial-Up Adapter 3.Configure Dial-Up Networking.
Web Server (Apache httpd ) 1. 2 Apache Web Server A PAtCHy server: developed by the Apache group History- First.
Linux Operations and Administration
Web Server Administration Chapter 6 Configuring a Web Server.
Presented by Lonnye Bower Fardin Khan Chris Orona APACHE WEB SERVER.
Lab 8 Overview Apache Web Server. SCRIPTS Linux Tricks.
Web Technology – Web Server Setup : Chris Uriarte WMB-520: Web Technology Web Server Setup Meeting 2: Apache Installation and Initial Configuration Rutgers.
Tomcat Setup BCIS 3680 Enterprise Programming. One-Click Tomcat Setup 2  This semester we’ll try to set up Tomcat with a PowerShell script.  Preparation.
Multi-Domain Hosting CPTE 212 “Missing Slides” for 1/22/2015 John Beckett.
NX Documentation Using Windows IIS (Internet Information Services) as a http server for NX documentation.
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.
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.
CACI Proprietary Information | Date 1 Upgrading to webMethods Product Suite Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8,
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.
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.
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
bitcurator-access-webtools Quick Start Guide
APACHE WEB SERVER.
Presentation transcript:

Chapter Apache Installation on Linux

Acknowledgement The contribution made by Darrin Morison is acknowledged

Demonstrate a basic installation and setup of an Apache Web Server on a PC running the Linux OS. Chapter Objectives

Chapter Modules Apache Web Server installation

Introduction to Apache Apache is a web server package that works under Linux as well as under other operating systems The name Apache comes from the concept of extensive patching of existing code The primary advantage of Apache is that it is generally free or available at modest costs

Apache Server Installation Download newest version of Apache –May be installed from a CD-ROM as well Unzip downloaded file Untar the tar file Create the MAKE files Make Install Edit httpd.conf file Start Apache Server

Installing Apache From a CD- ROM If your CD-ROM has Apache and you want to use RPM to install the package, issue this command –rpm –i apache_1_3_4.rpm (substitute the full name of the Apache package)

Downloading the newest Apache First, in Linux, create a folder to hold the Apache file you will download. The newest version of Apache Server and Documentation can be found at The Apache Software Foundation To download the newest version of Apache go to and click on apache_ tar.gz. apache_ tar.gz Download this file into your newly created directory. NOTE: apache is the latest version at the time of this writing. You may want to check for newer releases.

Unzipping Downloaded File After you have downloaded your Apache file go into the folder you have downloaded it into by typing cd /path to folder/name of folder/. Next, to unzip the.gz file at the prompt type: gunzip apache_ and press the enter key. This will unzip the file into the current directory.

Untarring the TAR file After unzipping the.gz file the resulting file will be a.tar file. (Which stands for tape archival) You will need to untar this file by typing at the prompt: tar –xvf apache_ and press the enter key. This will untar the file to a new directory named apache_1.3.12

Creating the Make Files Go into the folder that now contains the untarred apache files. To change into that folder, at the prompt type: cd / /apache_ Once you are in the apache_ folder you will need to create the apache make files. To do this, at the prompt type:./configure --prefix=/usr/local/apache and press the enter key. This will install apache in the folder /usr/local/apache. You may chose to install in another directory.

Compiling Make Files After running the configure command you will need to compile the make files. To compile the make file, from inside in the apache_ directory, at the prompt, simply type: make and press the enter key.

Running the Make Install Next you must run the make install. While still in the directory apache_1.3.12, at the prompt, type: make install and then press enter. This will install the apache server to the directory defined in the configure command.

Editing the httpd.conf File In order to get the apache server started you must edit the httpd.conf file. The file is located in whatever directory you installed apache in. Once in your apache install directory find the folder named conf. Change into the conf folder and locate the file named httpd.conf. Open the httpd.conf file with any file editor. Next locate the line # ServerName and uncomment out this line by deleting the # symbol preceding ServerName. Save the file and close it.

Starting, Stopping and Restarting Your Apache Server To start your Apache server you must either put the location of the directory, where your Apache server is installed, in you PATH environment variable or you must change into your Apache directory and at the prompt type: apachectl start and press return If the path to your Apache install directory is already in your PATH environment variable, then you can type: apachectl start to start your apache Server from anywhere within your environment.

Starting, Stopping and Restarting Your Apache Server (cont.) To stop your Apache Server, from inside the directory where your Apache is installed, type: apachectl stop and press enter. To restart your Apache Server, from the directory where your Apache is installed, type: apachectl restart and press enter.

Testing Your Apache Installation After you have installed and started your Apache server you can test to if everything is running OK by doing the following… Start a browser application. If you installed Apache as root, type in the address bar of your browser the name of your computer and press enter. If you installed Apache as a user, type in the address bar the name of the computer followed by a colon and then For example…. your_computer_name: is the default port for user and 80 is the default port for root.

Testing Your Installation (cont.) If everything has gone as it should have you should see a page with the apache logo at the top explaining why you are seeing this page. This page gives you links to all the apache documentation which you should read. If you would like to customize this index page it is called index.html.en in the htdocs directory located in the directory your Apache server is installed. (source:

Apache Installation is Finished! The basic installation of the Apache server is finished. There is much more to an Apache server customization. You should then read the documentation provided with your release to become more familiar with your Apache setup.

Setting Up the Website Create the home directory for the website, we will use /usr/www/ganesan Create 3 subdirectories under the site directory –conf –htdocs –logs

Setting Up the Website (con’t) You will find a subdirectory called conf under the directory where you installed Apache –Copy 3 files (srm.conf-didst, access.conf- dist, http.conf-dist) from this directory into /usr/www/ganesan/conf –If you cannot find the 3 files, use the find command to find them

Setting Up the Website (con’t) Rename the 3 files you just copied to drop the “-dist” portion of the name Edit the httpd.conf file to specify –the port number on which your web server responds –the user running the httpd daemon, etc… Specify the server name –ServerName ganesan.com

Setting Up the Website (con’t) Add a line that specifies the root directory for your website –DocumentRoot /usr/www/ganesan/htdocs Edit the srm.conf file to set up the web home directory and any special internal command usage Edit the access.conf file to set a basic set of access permissions

Setting Up the Website (con’t) In the htdocs directory create an HTML file for the server to read when it starts –This can be any HTML file –The filename should be default.html Start the httpd daemon –httpd –f /usr/www/ganesan/conf

Setting Up the Website (con’t) Test the web server by starting a browser and specify the URL If the system is working properly, you will see a screen with a list of files in the htdocs directory

Server Configuration

Make sure the ServerType directive is set to “standalone” Check the Port device to make sure it is set to the TCP/IP port to which your Apache server listens Set the User directive to either the user ID (UID) or the user name used for all web visitors

Server Configuration (con’t) Set the Group directive to either the group ID (GID) or the group name assigned to all web users Modify the ServerAdmin directive to include the address of the administrator Set the ServerRoot directive to the absolute path to the directory where all Apache resource and configuration files are stored –/usr/apache/conf or /etc/httpd

Server Configuration (con’t) Set the ServerName directive to the fully qualified domain name of your server

Starting and Stopping Apache

If you are running Apache as a standalone server, you need to start and stop Apache manually –Start with httpd –d rootdir –f configs –To stop Apache use ps to detect the httpd daemon’s PID and use the kill command to terminate the process

A Note on Starting and Stopping Apache Later versions of Apache include a script that does the start and stop tasks for you

Virtual Hosting

Virtual Hosts A virtual host is a web server that resides on one domain but acts as if it was on another. For example, suppose you control ganesan.com and cis454.com. Instead of setting up 2 servers, you can set up a single machine that serves both domains. Virtual hosting saves on machinery and allows for a lot of flexibility in setting up web servers

Setting Up Virtual Hosting If your network uses a name server for DNS, modify it so that the domain name points to your web server for each domain you’ll host Use the ifconfig command to set up the IP address for each domain on your server –ifconfig eth0:1 xxx.xxx.xxx.xxx

Setting Up Virtual Hosting (con’t) Add the route to the network configuration using the route command –route add –host xxx.xxx.xxx.xxx dev eth0:1 Edit the Apache httpd.conf file to set up virtual hosting – DocumentRoot /usr/www/cis454/htdocs TransferLog /usr/www/cis454/logs/access ErrorLog /usr/www/cis454/logs/errors

Setting Up Virtual Hosting (con’t) The previous step defines the virtual host for cis454.com and specifies its DocumentRoot, since each virtual host will have different web directories If more than one virtual host is defined, the entries are to be repeated for each

End of Module

Apache Web Server Resources The Apache Software Foundation This is the official Apache web site where you can find Apache Web Server documentation, the latest release for download, installation and setup instructions and much more.

END OF PRESENTATION