0% found this document useful (0 votes)
32 views

08 Server Technologies

The document discusses the LAMP stack and its components. The LAMP stack is made up of Linux, Apache, MySQL, and PHP/Perl/Python. It enables rapid development of web and database applications using open source software. Installing LAMP involves installing each individual component. WAMP provides an easy way to install LAMP on Windows.

Uploaded by

Amey Vartak
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

08 Server Technologies

The document discusses the LAMP stack and its components. The LAMP stack is made up of Linux, Apache, MySQL, and PHP/Perl/Python. It enables rapid development of web and database applications using open source software. Installing LAMP involves installing each individual component. WAMP provides an easy way to install LAMP on Windows.

Uploaded by

Amey Vartak
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 28

Server Technologies

LAMP- WAMP
LAMP Overview

2
The LAMP Stack
LAMP comes from
L = Linux
A = Apache
M = MySQL
P = Perl/PHP/Python
The LAMP stack is open source
software that enables rapid
development of web-based and
database-based applications

3 INFO 321
original four open-source components: the Linuxoperating
system, the Apache HTTP Server, theMySQL 
relational database management system(RDBMS), and
the PHP programming language.
WAMP, "Windows, Apache, MySQL, and PHP", an
application server platform.
 MAMP (OS X), SAMP (Solaris), FAMP (FreeBSD),
iAMP (iSeries) and XAMPP (cross-platform).
Installing LAMP
To install the LAMP stack you will need to install
Linux
Apache
MySQL
PHP or Perl or Python
Linux is presumably already installed

5
Installing LAMP
There’s a sneaky way to install LAMP all at once on
Windows, Linux, and other platforms
WAMP (as in Windows, Apache, MySQL, PHP)
See also here for other options, e.g. MAMP for Mac OS
X, XAMPP for Linux/UNIX, etc.

6
PHP
“PHP is a widely-used general-purpose scripting
language that is especially suited for Web development
and can be embedded into HTML”
PHP is a recursive acronym (!) for
PHP: Hypertext Preprocessor
PHP is available from http://www.php.net
PHP is on version 5.3.5 as of 6 Jan 2011

7 Weeks 7-8 INFO 321


PHP Platforms
PHP can be used on all major operating systems,
including
Linux
Many Unix variants (e.g. HP-UX, Solaris and
OpenBSD)
Microsoft Windows
Mac OS X (should this be under Unix variants?)
RISC OS

8
PHP Web Servers
PHP has support for most web servers
Apache
Microsoft IIS and PWS
Netscape and iPlanet servers
O’Reilly Website Pro server
Caudium, Xitami, OmniHTTPd, and others

9
PHP database support
PHP can communicate with almost any database
management system
Adabas D, dBase, Empress, FilePro (read-only),
Hyperwave, IBM DB2, Informix, Ingres, InterBase,
FrontBase, mSQL, Direct MS-SQL, MySQL, ODBC,
Oracle (OCI7 and OCI8), Ovrimos, PostgreSQL, SQLite,
Solid, Sybase, Velocis, Unix dbm

10
What can PHP do?
PHP is mainly focused on server-side scripting, so you
can do anything any other CGI program can do
Collect form data, generate dynamic page content, send
and receive cookies, etc.
But PHP can do much more

Summarized from http://www.php.net/manual/en/intro-whatcando.php

11
What can PHP do?
Command line scripting
You can make a PHP script and run it without any server
or browser
You only need the PHP parser
This type of usage is ideal for scripts regularly executed
using cron (on Unix or Linux) or Task Scheduler (on
Windows)
Scripts can also be used for simple text processing tasks

12
What can PHP do?
Server-side scripting is the most traditional and main
target field for PHP
You need three things to make this work, a PHP parser
(CGI or server module), a web server and a web
browser
You need to run the web server, with a connected PHP
installation
You can access the PHP program output with a web
browser, viewing the PHP page through the server

13 Weeks 7-8 INFO 321


PHP output types
A PHP server often outputs HTML, but it can also
output
Images
PDF files
Flash movies
Any text, such as XHTML or other XML file

14 Weeks 7-8 INFO 321


PHP is server interpreted

15 Weeks 7-8 INFO 321


Installing MySQL

16 Weeks 7-8 INFO 321


Install MySQL
MySQL is an open source, enterprise class, database
management system
It is fully compliant with the SQL standard although,
unlike products like Oracle that have opted for a rich
base of features, MySQL has opted for simplicity
All basic functionality is available – with perhaps a bit
less “slickness” than other products

17 Weeks 7-8 INFO 321


Getting MySQL

MySQL is available from http://www.mysql.com/


The MySQL Community Server is the free version
The MySQL Enterprise Subscription is about
$600/year per server

18 Weeks 7-8 INFO 321


MySQL Installation
When you install MySQL, an All Programs menu
option is added to start the command line client

19 Weeks 7-8 INFO 321


MySQL Basics
mySQL structure
mySQL is running on a host, which may be different
from the client host you’re using to access it
mySQL contains databases
Each database typically includes many tables
 A table has one or more fields (columns)
 Every data entry in a table is a record (row)
What is WAMP?

WAMP = Windows+Apache+MySql+PHP

Note:WAMP5 does not work with Windows 98,Me


WAMP Installation

A single installation file downloaded from


http://www.wampserver.com/en/download.php
After Installation
Application Service
Apache
wampapache
PHP
MySQL database
wampmysql
WAMP’s Menu

Management Portals
PHPmyadmin
SQLitemanager

Note: A user has to click


on the icon tray to access
WAMP's menu.
WAMP’s Menu

Configuration and
Settings
Loaded Modules
Directory Access Shortcut
WAMP’s Menu

Services
Apache
MySQL

Note:
The icon tray reflects
the status of your
server.
Overall
WAMP is easy to install and it is free to use.
Migration from IIS/PHP/MsSQL to WAMP is
practical.
The cost of migration is mainly to review queries and
change them based on the SQL extension of MySQL.

You might also like