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
- 9.1Static vs Dynamic and How PHP Runs
- 9.2Installing PHP on Amazon Linux 2023 and Ubuntu
- 9.3LAMP on Amazon Linux 2023
- 9.4LAMP on Ubuntu
- 9.5LEMP on Amazon Linux 2023
- 9.6LEMP on Ubuntu
- 9.7A PHP + MySQL Application with Prepared Statements
- 9.8Secure PHP Settings
The chapter recap is at the end of the last concept page.