Ravindra BagaleCourses & study guides

9. PHP, LAMP and LEMP Step by Step

Chala mitrano, static site madhe pratyek visitor la ekach page disto. Pan Instagram, bank, shopping – tithe pratyek user la vegla data disto, login asto, form asto. Tyasathi server var code chalava lagto aani database lagto – yalach dynamic hosting mhantat. Aaj aapan PHP, LAMP (Linux + Apache + MySQL + PHP) aani LEMP (Nginx sobat) dogha OS var step by step banavnar aahot. Lakshat theva – DVWA aani barech vulnerable lab apps LAMP varach chaltat, mhanun ha stack samjla ki SQL injection pan lavkar samjel.

What you will learn in this chapter

  • Static vs dynamic websites, and how PHP runs behind Apache (mod_php / PHP-FPM) and Nginx (PHP-FPM)
  • Installing PHP on Amazon Linux 2023 and Ubuntu
  • Full LAMP installation on both OSes
  • Full LEMP installation on both OSes, with a PHP server block
  • A small PHP + MySQL application using prepared statements
  • Secure PHP settings every server should have

Concepts in this chapter

  1. 9.1Static vs Dynamic and How PHP Runs
  2. 9.2Installing PHP on Amazon Linux 2023 and Ubuntu
  3. 9.3LAMP on Amazon Linux 2023
  4. 9.4LAMP on Ubuntu
  5. 9.5LEMP on Amazon Linux 2023
  6. 9.6LEMP on Ubuntu
  7. 9.7A PHP + MySQL Application with Prepared Statements
  8. 9.8Secure PHP Settings

The chapter recap is at the end of the last concept page.