What is a LAMP stack ?

Mihir SuratwalaMihir Suratwala
2 min read

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 ?

  1. 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

  2. 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.

  1. 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.

  2. 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

  3. The data which is retrieved/updated or not required is stored in the MySQL database.

  4. 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 -

  1. Installing Apache -

     sudo apt-get install apache2
    
  2. Installing MySQL -

     sudo apt-get install mysql-server
    
  3. Installing PHP -

     sudo apt-get install php5 libapache2-mod-php5
    
  4. Check PHP installation -

     php -r 'echo "\nYour PHP installation is working fine.\n\n\n";'
    

Advantage of LAMP Stack -

  1. Free and Open Source - As all the technologies in the LAMP Stack are open source, so you can download without any subscription.

  2. 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.

💡
That’s a wrap for today’s post! I hope this has given you some valuable insights. Be sure to explore more articles on our blog for further tips and advice. See you in the next post!

Image Credit → https://share.google/images/o1B1FnBTIEGbAcUzJ

0
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.