What is a LAMP stack ?


Last Blog Review →
In the last blog we understood, how to write a shell script to display system’s multiple information, where we are displaying multiple information.
What is a LAMP Stack ?
LAMP is nothing but a acronym for the free and open source software’s which are available to use for various purpose
L - Linux for Operating System
A - Apache for Web server
M - MySQL as Database system
P - PHP as programming language
The LAMP stack build an environment that helps you build, deploy and maintain the web content to render information
How LAMP Stack works ?
Consider we want an information related to a product from e-commerce website & we type the e-commerce website name on our browser.
So, the request goes to the Apache Server which handles the web server content, if it’s a static data the web page stored in the Apache Server will be sent from the Apache Server to the browser page.
If its a dynamic content then the request will be rendered by the PHP and deliver the the functions handling the content which will be sent to the Apache webserver that will be displaying the data on browser
The data which is retrieved/updated or not required is stored in the MySQL database.
All this software’s run’s on the OS which is Linux and one of the most fast and secure OS.
Installing LAMP Stack on Ubuntu -
Installing Apache -
sudo apt-get install apache2
Installing MySQL -
sudo apt-get install mysql-server
Installing PHP -
sudo apt-get install php5 libapache2-mod-php5
Check PHP installation -
php -r 'echo "\nYour PHP installation is working fine.\n\n\n";'
Advantage of LAMP Stack -
Free and Open Source - As all the technologies in the LAMP Stack are open source, so you can download without any subscription.
Support - As it’s a free and maintained by open source contribution the support for this technologies is high.
Conclusion →
In the this blog we understood, what is a LAMP Stack & how does it work, how do you install on Linux distribution and advantage of using this Stack.
Image Credit → https://share.google/images/o1B1FnBTIEGbAcUzJ
Subscribe to my newsletter
Read articles from Mihir Suratwala directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Mihir Suratwala
Mihir Suratwala
Hi, How are you !! Hope you doing good.... I got introduced to Cloud initially. As I went ahead learning what is cloud and how it works, then got to know a field which is DevOps that makes Cloud model more effective. So, as I started working & got good experience on AWS. I have been learning the DevOps tool and technologies on how to use it with the Cloud, which will give me good understanding on how Cloud and DevOps go hand in hand to deploy my applications.