How To Install Linux, Apache, MySQL, PHP (LAMP) Stack on Debian 9 Stretch

LAMP is an acronym for four open source software frequently used to develop the web applications (such as forums, blogs, and business sites). This tutorial shows you how to install LAMP (Apache version 2, PHP version 7, MariaDB version 10.2) stack on a Debian 9 Linux server along with firewall settings to open tcp port 80, 22, and 443.