This article covers a step-by-step procedure of how you can install LAMP stack on the Debian 11 Bullseye server. In fact, LAMP is a popular opensource stack that stands for Linux Apache MySQL/MariaDB and PHP. It’s mostly used by front-end and back-end developers to test and host a website. The stack comprises of 3 components. First, we have Apache, which is a web server. Then we have Mariadb, which is a fork of MySQL and PHP which is a server-side scripting language. All the components are absolutely free and opensource.
How to Install Apache webserver on your Linux system ?
1. To get started, log into your server instance and update the package lists with the below command:
$ sudo apt update
2. Once your packages are up to date, install the Apache webserver with the below command:
$ sudo apt install apache2 apache2-utils
3. Once installed, verify the status of apache to see if it is running, by executing the command:
$ sudo systemctl status apache2
4. If apache is not running, you can start and enable it on boot using the commands:
$ sudo systemctl start apache2
$ sudo systemctl enable apache2