This tutorial is going to show you how to install Apache, MariaDB and PHP7 (LAMP stack) on Debian 9 stretch. LAMP is the most common web service stack for building dynamic websites and web applications. It’s made up of four components — Linux, Apache, MySQL/MariaDB, PHP — Linux is the operating system; Apache is the web server; MySQL/MariaDB is database; PHP is a server-side scripting language.
All of the four components are free and open-source. However, since MySQL is now owned by Oracle and there’s a chance that Oracle turns it to a closed-source product, we will choose MariaDB instead of MySQL. You can follow this tutorial on a VPS (Virtual Private Server) or on a local Debian 9 computer.
Read full story here: https://www.linuxbabe.com/debian/install-lamp-stack-debian-9-stretch