AMP Module in PHP Stand for Apache, MySQL, and PHP. AMP module in PHP is can be characterized into three component Apache MySQL, and PHP. 

Below figure shows the relationship between the Apache, MySQL, and PHP

Relationship of Apache, MySQL and PHP

Apache 
  • In AMP module, Apache act as a web server on which your web application are hosted.
  • Its main job is to parse the file which requested by the web browser and display correct result according to the code within that file. 
PHP

  • PHP stands for Hypertext Preprocessor. 
  • PHP is a widely-used open source server-side scripting language.
  • Using PHP user can built a dynamic web application that host on the apache web server. 

MySQL

  • MySQL is the relational database management system. 
  • MySQL is the database that required when we want to create dynamic web application.
  • In MySQL database the data stored in tabular form. 
  • MySQL enables PHP and Apache to work together to access and display data in a readable format to a web browser.

How Its Work? 

  • First user request for the web page through the web browser.
  • If the requested page is found on the server then the server will process on that page and execute the scripting code(PHP code). 

After the execution of the scripting code(PHP code), the server sends the output  to the user in the form of HTML.
The users browser process on this page that send by the web server and display to the user. 

If You have any query related this then you can mention it in comment box.