0% found this document useful (0 votes)
12 views17 pages

Chapter 2 Can 2.4

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1/ 17

+

Campus Area Network


Server Configuration
+
2.4 Web Server in LINUX
Objectives:

1. Define LAMP in Web Development.


2. Identify the components of LAMP server and its functions
within a LAMP system.
+
What is Web Server?

 A web server generally hosts the web content, and


responds to requests for this content from web browsers
such as Internet explorer, Google chrome and Firefox.
 The example of web server are apache web server, IIS
web server, Nginx (pronounced engine X) webserver and
litespeed web server.
 It uses HTTPs (Hypertext Transfer Protocol - secure) to
serve the files that form Web pages to users, in response
to their requests, which are forwarded by their computers'
HTTP clients.
+
What is Web Server?

 All computers that host Web sites must have Web server
programs.
 A web server must be physically connected to a TCP/IP-
based network
 It runs on a host computer and delivers files over the
Internet.
 It lets you publish Hypertext Markup Language (HTML)
documents and it can also distribute many other types of
files.
+
LAMP server

LAMP is a commonly used open source Web development


platform (also called a Web stack, or LAMP stack because the
platform has four layers) to run dynamic web sites and servers.

Linux as operating system,


Apache as the Web server,
MySQL as the relational database management system and
PHP as the object-oriented scripting language. Perl or Python is
often substituted for PHP.
+
LAMP server

 LAMP has become a de facto development standard for


web development in Linux.
 The products that make up the LAMP stack are included
by default in nearly all Linux distributions, and together
they make a powerful web application platform.
+
LAMP Component and its function.

LINUX
Linux is the software on a computer that enables
applications and the computer operator to access the
devices on the computer to perform desired functions.
The operating system (OS) relays instructions from an
application to, for instance, the computer's processor. The
processor performs the instructed task, then sends the
results back to the application via the operating system.
+
LAMP Component and its function.

LINUX
Linux is the most popular operating system used in web
servers, primarily because many free Linux distributions
are available.
This means Linux-based servers are typically cheaper to
set up and maintain than Windows servers.
+
LAMP Component and its function.

APACHE
Apache is among a popular Linux-based Web server
application in use, once the DNS correctly setup and your
server has access to the Internet, you'll need to configure
Apache to access your Web site.
It provides the service which listens for requests from the
computer for web pages (and associated requests) from
user's browsers, and answers those requests with the
appropriate data content.
+
LAMP Component and its function.

APACHE
It
is an open source server application that runs on many
UNIX-based systems as well as Microsoft Windows.
It is released under its own open source license and it is
available for a free download and comes with most major
Linux distributions.
The combination of Linux and the Apache webserver
account for over 60 percent of the servers on the Internet.
+
+
LAMP Component and its function.

MYSQL
MySQL is a Structured Query Language where it provides
databases on the server in which much of the content is
typically stored these days.
SQL is actually a language with a well defined syntax
whose purpose is to provide a way for clients to ask servers
for data.
The major commercial competitors are Oracle and
Microsoft SQL server.
+
LAMP Component and its function.

MYSQL
MySQL is pre installed on Linux and OSX and Windows
users can download a free easy-to-use installer from
www.mysql.org. and when installed a small icon on the task
bar gives you access to a control panel for the server.
+
LAMP Component and its function.

PHP
PHP is a computer language, or a scripting language.
It provides the programming layer which links the requests
made to Apache server to the MySQL database and funnels
the data from the database back to the user.
PHP is pre installed on most Linux systems and on OSX. It
is available for Windows also and anyone can download it
for free at www.zend.com
+
LAMP Component and its function.

PHP
PHPs success compared to commercial alternatives due to
its
 speed of execution,
 small size and overhead,
 cross platform support,
 clean and flexible syntax,
 effortless interface with web servers and
 relentless development by Zend.
+
LAMP VARIANT

There are a number of LAMP variants that replace parts of


the system.
WAMP: Windows replaces Linux.
MAMP: Mac OS replaces Linux.
AMP: Apache, MySQL and Perl/PHP running on any
operating system.
LAPP: PostgreSQL replaces MySQL.
LAMJ: JSP replaces Perl/PHP.
+
LAMP server advantages
The LAMP stack offers a great number of advantages for
developers:

 Easy to code: Novices can build something and get it up and


running very quickly with PHP and MySQL.
 Easy to deploy: There are no issue of the programming language
cannot be easily integrated with the server and database. Since
PHP is a standard Apache module, it is easy to deploy LAMP web
applications by uploading .php files to an Apache server and
connecting to a MySQL database.
 Local development: LAMP can be set up so an application can
be built locally, then deployed to the Web.
 Cheap and everywhere hosting: Many inexpensive web
hosts provide PHP and MySQL services.

You might also like