Install LAMP (Linux, Apache, MariaDB or MySQL and PHP) Stack on Debian 9

Debian powers a large percentage of web servers all over the world, in this article we will explain how to install the LAMP stack in Debian 9 Stretch. This will allow system administrators to set up brand new web servers on top of Stretch using the recent updates to the distribution’s official repositories.