How to Setup the LAMP (Linux Apache, MySQL, PHP) Stack on Ubuntu 18.04 LTS (Bionic Beaver)

The LAMP Stack, which is short for the Linux, Apache, MySQL, and PHP web technology stack is currently the most popular web hosting environment for the PHP based application.

The LAMP stack powers over 70% of all web technologies according to W3Techs, the independent web technologies usages statistics engine. In the LAMP stack, Linux is an operating system, which in this case we will be using the Ubuntu flavor of Linux, Apache is the web server developed by Apache Foundation, the latest version is version 2.0, MySQL is relational database management system used for storing data which is currently replaceable with MariaDB and PHP is the programming language, the latest version is PHP 7.