The Debian Linux distro makes for a great LAMP server, the software stack that has powered internet websites for decades.
What You’ll Need:
The only things you’ll need for this are a running instance of Debian with a network connection (I’m using version 12, “Bookworm“) and a user with sudo privileges.
Commands:
su –
usermod -aG sudo USER
sudo apt-get install apache2 -y
sudo apt-get install ufw -y
sudo ufw allow in “WWW Full”
sudo apt-get install mariadb-server -y
sudo mysql_secure_installation
sudo apt-get install php libapache2-mod-php php-mysql -y
sudo nano /var/www/html/info.php
Chapters:
0:00 Intro
1:00 Installing Apache
1:26 Install Uncomplicated Firewall
2:24 Install MariaDB
4:00 Installing PHP
5:53 End screen
What you will learn:
1. Sudo Privileges
a. How to give a standard user sudo privileges
b. How to change to the root user
c. How to add your user to the sudo group
d. How to install the LAMP stack
2. Installing Apache
a. How to install Apache
3. Install Uncomplicated Firewall
a. How to install UFW
b. How to allow HTTP traffic
c. How to see the Apache welcome page
4. Install MariaDB
a. How to install the database of the stack
b. How to secure the installation of the database
5. Installing PHP
a. How to install PHP
b. How to verify PHP if installed and working
c. How to create a new file
6. How to build your first LAMP server using Debian
Song: Peyruis – Finesse (Vlog No Copyright Music)
Music promoted by Vlog No Copyright Music.
Video Link: https://www.youtube.com/watch?v=bdy0m2C-lXQ&t=0s
Song: LiQWYD – Vibes (Vlog No Copyright Music)
Music provided by Vlog No Copyright Music.
Video Link: https://www.youtube.com/watch?v=FOkBLrUkNfQ&t=0s
#computereverywhere #install #full #lamp #stack #debian #server
Leave a Reply