Installing LAMP stack
LAMP Stack (also called Web Stack) is suitable for building dynamic web sites and web applications.
The LAMP software stack is composed of
Acr. | Expansion | Software type | Purpose | Alternatives |
---|---|---|---|---|
L | Linux | Operating System | ||
A | Apache | HTTP Server | Web Server | Ngnix |
M | MySQL | RDBMS | Database | MariaDB and MongoDB |
P | PHP | Programming Language | To serve dynamic web content via CGI scripting | Perl and Python |
Stack is a container of components(objects) which can be inserted/removed. A software stack(or solution stack) is a set of components required to make a complete platform.

Each component provides a layer for their compatibility, and bundling them makes them easier to download and deploy all at once.
Architechture

The modularity of a LAMP stack may vary, but this particular software combination has become popular because it is entirely free and open-source software.
This means that each component can be interchanged and adapted without overt vendor lock-in, and that the complete software stack is available free of cost. The components of the LAMP stack are present in the software repositories of most Linux distributions, providing a LAMP stack with some automation
Installation
sudo apt-get install synaptic apache2 apache2-mpm-itk php5 php5-curl php5-dev php5-intl php5-mcrypt php5-mysql php5-sqlite php5-xdebug mysql-server phpmyadmin git ssh
LAMP variants
- For Windows It's just the L(Linux) in LAMP is replaced with W(Windows)
- Click here for variants of AMP Packages