Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Web Development (http://www.go4expert.com/articles/web-development/)
-   -   Basics of LAMP - How it Works? (http://www.go4expert.com/articles/basics-lamp-t25038/)

lionaneesh 21Feb2011 17:17

Basics of LAMP - How it Works?
 
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..

lionaneesh 22Feb2011 12:28

Re: Basics of LAMP - How it Works?
 
Thanks for accepting and i hope the Viewers like it!!!

kumarmannu 22Feb2011 16:27

Re: Basics of LAMP - How it Works?
 
Thanks dear great.......................

lionaneesh 22Feb2011 16:47

Re: Basics of LAMP - How it Works?
 
Quote:

Originally Posted by kumarmannu (Post 79713)
Thanks dear great.......................

My Pleasure

alexsmth114 21Mar2011 11:22

Re: Basics of LAMP - How it Works?
 
Great post, keep them coming!!..

Ana_Campos 21Mar2011 16:48

Re: Basics of LAMP - How it Works?
 
10x for the info. Also like a lot the diagram.

lionaneesh 22Mar2011 12:59

Re: Basics of LAMP - How it Works?
 
Quote:

Originally Posted by Ana_Campos (Post 80902)
10x for the info. Also like a lot the diagram.

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

seangtz 28Mar2011 10:41

Re: Basics of LAMP - How it Works?
 
Cool article !!!!!!!!!!!

amrithaa2011 21Jul2011 12:49

Re: Basics of LAMP - How it Works?
 
hi,

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

alexander007 14Sep2011 08:11

Re: Basics of LAMP - How it Works?
 
I'm new to this, on going through your article got clear understanding about lamp.


All times are GMT +5.5. The time now is 00:28.