
LAMP is a popular open-source web development stack consisting of Linux, Apache, MySQL or MariaDB, and PHP. This guide explains how to install a LAMP stack on Debian 11.
Install Apache and related utilities.
Enable the Apache service to start at system boot.
Start the Apache service.
Check the status of the Apache service.
Install the database server.
Start the MariaDB service and enable it to start at system boot.
Check the status of the MariaDB service.
Secure the database with the mysql_secure_installation script and answer Y to all questions.
Install PHP and common extensions.
Allow SSH, HTTP, and HTTPS in the firewall.
See our UFW Quickstart Guide for more information.
Create a test PHP file in Apache's document root folder.
Open the location in your browser. Replace example.com with your server's IP address or domain name.
You should see a PHP information page with details about your configuration.
0 Comments
Be the first to comment and share your perspective with the community.