Apache, PHP, MySQL Installation and configuration Web Programming with PHP,TITAS PROJECTIICT,BUET.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Web Server Onno W. Purbo Web server.
Dan Fleck.  WAMP – Windows Apache MySQL PHP -  LAMP – Linux Apache MySQL PHP ◦ There are.
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.
Initial web server configuration 1WUCM1. Overview Planning Testing the OS/Environment – IP setup Installation Configuration – Simple minimum details Testing.
PHP Programming with MySQL Slide 2-1 CHAPTER 2 Getting Started with PHP.
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.
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,
Web Server Setup WEB SERVER SETUP.
APACHE SERVER By Innovationframes.com »
Securing LAMP: Linux, Apache, MySQL and PHP Track 2 Workshop PacNOG 7 July 1, 2010 Pago Pago, American Samoa.
SquirrelMail for Webmail AfNOG 2013 Scalable Internet Services (SS-E) Presented by Michuki Mwangi Lusaka, Zambia (Original Materials by Joelja)
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
Web Technology – Web Server Setup : Chris Uriarte ITI-520: Web Technology Web Server Setup Meeting 2: Apache Installation and Initial Configuration Rutgers.
Setting up Greenstone for your organization Course material prepared by Greenstone Digital Library Project University of Waikato, New Zealand andNational.
Appendix: Installing AMP (Apache + MySQL + PHP). Training Course, CS, NCTU 2 AMP  AMP A – Apache Web Server M – MySQL Database Server P – PHP Language.
Web Server Configuration Alokes Chattopadhyay Computer & Informatics Centre IIT Kharagpur.
The Linux Operating System Lecture 5: Apache Tonga Institute of Higher Education.
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
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.
Installation of Apache, PHP & MySQL Tutor: Zhang lidan Office: 312 Chow Yei Ching
Setting up NIS and HTTP. Network Information Service Reading: 1. Linux NIS HOWTO: howto/HOWTOhttp://
Apache + Tomcat. Apache + Tomcat Download mod_webapp.so:
Web Services CSCI N321 – System and Network Administration Copyright © 2007,2008 by Scott Orr and the Trustees of Indiana University.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess AFNOG 11 Kigali, Rwanda May 2010 Dorcas Muthoni Courtesy: Hervey Allen.
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.
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.
1 Session 1: Introduction to PHP & MySQL iNET Academy Open Source Web Development.
Multi-Domain Hosting Hosting multiple domains on one server using Apache John Beckett 1/16/2013.
Apache with SSL and php Apache with ssl support should be the basic platform for providing web services... There are several different implementations.
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.
Web Technology – Web Server Setup : Chris Uriarte Meeting 4: Advanced Topics, Continued: Securing the Apache Server and Apache Performance Tuning Rutgers.
Installation of PHP5 Objectives –Install PHP5 with support for Apache and MySQL Contents –Installing latest dependencies LibXML & LibSLT –Compiling and.
Linux Operations and Administration
Web Server Administration Chapter 6 Configuring a Web Server.
CITA 310 Section 5 Virtual Hosts and Virtual Directories (Selected Topics from Textbook Chapter 6)
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.
IBM Http Server Basic Administration. CONTENTS Web server IHS How does IHS differ from Apache Basic configurations Advanced Configurations Performance.
Web Technology – Web Server Setup : Chris Uriarte WMB-520: Web Technology Web Server Setup Meeting 2: Apache Installation and Initial Configuration Rutgers.
Free Powerpoint Templates Page 1 Free Powerpoint Templates Chapter 4- Server Configuration.
CITA 310 Section 4 Apache Configuration (Selected Topics from Textbook Chapter 6)
Institute for Visualization and Perception Research 1 © Copyright 1998 Haim Levkowitz Setting up a Web server Setting up basic services... Web server maintenance...
Multi-Domain Hosting CPTE 212 “Missing Slides” for 1/22/2015 John Beckett.
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.
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.
COP 4343 Unix System Administration
Apache and... Virtual Hosts ---- aliases mod_rewrite ---- htaccess
Unix System Administration
Chapter 2 Getting Started with PHP PHP Programming with MySQL
Unit-5 Chap-1 Configuring Web Server
Apache Web Server
APACHE WEB SERVER.
Presentation transcript:

Apache, PHP, MySQL Installation and configuration Web Programming with PHP,TITAS PROJECTIICT,BUET

Operating Systems Author:Sayeef Salahuddin Operating Systems Windows InstallationConfiguration Linux InstallationConfiguration

I nstallation The Apache web-server is by default installed in most of the modern day linux systems. Apache web server is available in rpm format from which automatic installation will be performed Apache web-server is also available in both source and binary distribution format. Apache Web Server(Linux)

I nstallation For the source distribution we follow the following steps edit the Configuration file ( AddModule ) configure ( EXTRA_CFLAGS, LIBS, LDFLAGS, INCLUDES ) make copying and configuration ( to be discussed ) For the binary distribution only the 4 th step of the previous point is necessary. Apache Web Server(Linux)

I nstallation The Apache is available in.msi format The installation is quite straight forward. Apache is best suited for Windows NT and Windows2000-when used as a service Apache is best suited when used from the console window for Windows95/98 Apache Web Server(Windows)

I nstallation In most of the today’s linux systems PHP is by default installed. Lots of RPM packages are available which will automatically install PHP. Binary and Source distributions are also available. PHP(Linux)

I nstallation For a source distribution a typical configure option for installing with MySQl and apache will look like./configure --with-mysql –with-apxs=/www/bin/apxs make make install PHP(Linux)

I nstallation Key things to remember edit the php.ini file for options. The php.ini file is normaly located in /usr/local/lib/php.ini. Add the following lines to the httpd.conf or srm.conf if not already present AddType application/x-httpd-php.php LoadModule php4_module libexec/libphp4.so PHP(Linux)

I nstallation There are two ways to install PHP for windows As a CGI As a module To install as a CGI the following things should be present in the httpd.conf  ScriptAlias /php/ "c:/php/"  AddType application/x-httpd-php.php.phtml  Action application/x-httpd-php "/php/php.exe" It is assumed here that the package is for this particular case is in the c:\php directory. PHP(Windows)

I nstallation To install as a module the following things should be taken care of php4ts.dll should be copied to windows\system directory replacing any older file The following should be added to the httpd.conf file LoadModule php4_module c:/php/sapi/php4apache.dll AddType application/x-httpd-php.php.phtml It is assumed here that the package is for this particular case is in the c:\php directory. PHP(Windows)

I nstallation The recommended way to install MySQL on Linux is by using an RPM file The RPM files you may want to use are:  MySQL-VERSION.i386.rpm The MySQL server.  MySQL-client-VERSION.i386.rpm The standard MySQL client programs.  MySQL-bench-VERSION.i386.rpm Tests and benchmarks.  MySQL-devel-VERSION.i386.rpm Libraries and include files.  MySQL-VERSION.src.rpm This contains the source code for all of the above packages. MySQL(Linux)

I nstallation The recommended way to install MySQL on Windows is to use the precompiled binary distributions. The installation procedure is quite straight forward. The MySQL is by default set up to run from c:\mysql If connecting to MySQL from some other programs is necessary MyODBC driver will be required. MySQL(Windows)

Configuring Apache The Apache web server has 3 configuration files httpd.conf srm.conf access.conf Linux

Configuring Apache httpd.conf This is used to set the general settings such as the port number as well as to load modules. srm.conf This file sets the root documents, rules and other general settings access.conf This file deals with the access control of the server. Linux

Configuring Apache The parameters 1.ServerType standalone Inetd 2. Port normally 80 Any free port can be used Linux

Configuring Apache The parameters 3.User & Group user nobody group nobody Normally the httpd process is fired by the root but this does not listen for connections. This launches one or more child processes as the user and the group indicated with these configuration directives. Linux

Configuring Apache The parameters 4.ServerRoot base directory for the configuration files--- normally /etc/httpd 5. ServerName the name of the Web Server for example Linux

Configuring Apache The parameters 6.ServerAdmin this indicates the address of the administrator of the site. Linux

Configuring Apache Linux

Configuring Apache Linux

Configuring Apache Linux 7.DocumentRoot this identifies the directory where the root directory is located. 8.DirectoryIndex the index file name which will be accessed by the user.The normal entries for this is index.html,index.htm, index.shtml,index.php

Configuring Apache Linux 9.AccessFileName This specifies the file name for the access control of the server. The typical entry is AccessFileName.htaccess

Configuring Apache Linux 10.ScriptAlias This specifies the directory name where the scripts will be saved. A typical entry is like ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/

Configuring Apache Linux 11. Alias This specifies the directory name which can be accessed by the name specified. Atypical entry will be Alias /icons/ etc/httpd/icons/

Configuring Apache Linux 12. AddHandler and Addtype The AddHandler directive allows a file with a specific extension to be mapped to a particular action in the server or an external action. AddType creates a new MIME type for a specific extension. A typical entry is AddType text/html.shtml AddHandler server-parsed.shtml

Configuring Apache Linux A typical home directory configuration Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all

Configuring Apache Linux Directives in brief Allowoveride Order allow Options

Configuring Apache Linux Access Control A typical.htaccess file has the follwing entries AuthName Students Only AuthUserFile /home/users AuthGroupFile /home/groups require group students

Configuring Apache Linux AuthName this will prompt the specified value. in this case Students Only AuthUserFile path of the user file AuthGroupFile path of the group file Require this is used to restrict access. In this case only students group is allowed. the syntax is require user user1,user2… or require group grou1,group2…

Configuring Apache Linux Virtual Hosting There are two types of virtual hosting The name based virtual hosting The IP based vitual hosting A typical name-based virtual hosting could be performed by adding the following lines to httpd.conf Listen 9000 ##the host parameters and rules and directives

Refences [1] The Apache User’s Manual ( [2] The MySQL User’s Maunual (ww.mysql.org) [3] The PHP user’s Manual ( [4] Mastering Linux By Arman Danesh,Cybex [5] Linux Unleashed By David Pitts & Bill Boll,Tech Media Authored By -Sayeef Salahuddin Student No: