
To complete the installation of the LAMP stack, we need a Debian 10 based server. For example, without PHP your plain HTML page could not access a MySQL database. PHP offers a lot of functionality that is much needed to build dynamic websites. As a so called hypertext preprocessor, the PHP code embedded into HTML executes on the server itself, before the HTTP server sends the resulting web page to the web browser. PHP is a scripting language that can be embedded into HTML. PHP forms the last component of the LAMP stack. As opposed to MySQL, MariaDB is community developed and therefore preferred by most open source enthusiasts. MariaDB offers a drop-in replacement with full MySQL compatibility. Although in this article, we will install MariaDB instead of the MySQL software.

Sometimes a website needs access to an online database for data storage and retrieval. Apache provides the HTTP server functionality, which makes it possible to serve web pages, when someone accesses the server through their web browser. Linux is the underlying operating system, where we install the remainder of the LAMP stack. In this article you’ll learn how to install all the components of the LAMP stack step-by-step on a Debian 10 based server. For example, if you plan on installing a WordPress based website, you need a LAMP stack to run it.

These components form the basic building blocks for pretty much any Linux based web server. The acronym LAMP stands for Linux, Apache, MySQL and PHP. One of the first tasks when setting up a Linux web server is the installation of a LAMP stack.
