08 Server Technologies
08 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
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
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
WAMP = Windows+Apache+MySql+PHP
Management Portals
PHPmyadmin
SQLitemanager
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.