Basics of LAMP - How it Works?

Discussion in 'Web Development' started by lionaneesh, Feb 21, 2011.

  1. lionaneesh

    lionaneesh Active Member

    Joined:
    Mar 21, 2010
    Messages:
    848
    Likes Received:
    224
    Trophy Points:
    43
    Occupation:
    Student
    Location:
    India
    LAMP is acronym for Linux , Apache , MySql , PHP/Perl/Python(CGI)..Its a solution stack of opensource programmes and its a platform Wherein each component plays a specific and important role..

    Components


    • Linux - Linux Provides the basic Operating System and Environments
    • Apache - Apache replies to HTTP Requests or passes them to PHP interpretter..
    • MySQL - It serves as a data storage functionality
    • PHP - PHP interpreter parses PHP Code and executes..

    How it works



    When user requests for a page like :-

    http://localhost/index.php

    The request is received by the Operating System I.e Linux and then the request is handed over to apache..

    Apache handling the request check if the url requested is a PHP or a CGI page.. If yes it hands over the request to the PHP interpreter.. Now it replies with the requested resource eg :- index.html etc..

    The PHP interpreter parses the requested file , executes the PHP Code .. If the code includes database queries the request is handed over to MySQL … Mysql deals with the requests received and executes them...

    Once the script interpreter has completed executing the program it returns the result to the browser..

    The figure below will give a better understanding :-

    Code:
    	 _______________
    	/ Client       /
           / Web-Browser  / 
          /______________/
               ||
    Initiates  || http://go4expert.com/index.php
    request	   ||
           __________			    ___________	               ________
          /		/  Hands over to apache	   /          / ------------->/       /
         / Linux   / =======================> /   Apache / PHP Parsing   /  PHP  /
        /_________/ <------------------------/__________/ <-------------/_______/
    	           HTTP RESPONSE				     ||
    								     ||SQL QUERY
    						                 _________
    								/        /
    							       / MySql  /
     							      /________/	
    Thats all for this article...Stay tuned for more..
     
  2. lionaneesh

    lionaneesh Active Member

    Joined:
    Mar 21, 2010
    Messages:
    848
    Likes Received:
    224
    Trophy Points:
    43
    Occupation:
    Student
    Location:
    India
    Thanks for accepting and i hope the Viewers like it!!!
     
  3. kumarmannu

    kumarmannu Banned

    Joined:
    Feb 2, 2011
    Messages:
    51
    Likes Received:
    0
    Trophy Points:
    0
    Thanks dear great.......................
     
  4. lionaneesh

    lionaneesh Active Member

    Joined:
    Mar 21, 2010
    Messages:
    848
    Likes Received:
    224
    Trophy Points:
    43
    Occupation:
    Student
    Location:
    India
    My Pleasure
     
  5. alexsmth114

    alexsmth114 New Member

    Joined:
    Mar 7, 2011
    Messages:
    19
    Likes Received:
    1
    Trophy Points:
    0
    Great post, keep them coming!!..
     
  6. Ana_Campos

    Ana_Campos New Member

    Joined:
    Jan 31, 2011
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    0
    10x for the info. Also like a lot the diagram.
     
  7. lionaneesh

    lionaneesh Active Member

    Joined:
    Mar 21, 2010
    Messages:
    848
    Likes Received:
    224
    Trophy Points:
    43
    Occupation:
    Student
    Location:
    India
    Thanks...and if you want to thank this article..
    You can add ro my reputation by clicking the thanks button at the bottom of article..
     
  8. seangtz

    seangtz New Member

    Joined:
    Jun 6, 2008
    Messages:
    126
    Likes Received:
    3
    Trophy Points:
    0
    Cool article !!!!!!!!!!!
     
  9. amrithaa2011

    amrithaa2011 Banned

    Joined:
    May 23, 2011
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    http://www.amrithaa.com
    hi,

    how the Dmoz free users getting benefits...???
     
  10. alexander007

    alexander007 New Member

    Joined:
    Sep 14, 2011
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    India
    Home Page:
    http://www.sem-n-seo.com
    I'm new to this, on going through your article got clear understanding about lamp.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice