Complete LAMP Webserver Setup In Linux Mint

Published: 25 August 2021
on channel: DeAndre Queary
7,695
like

A few years ago, I did a video on how to install LAMP in Linux Mint. Here's an updated version where I show you how to install Apache, PHP 7 and 8, and MariaDB. I'll also show you how to install database manager Dbeaver, how to configure virtualhosts, and how to make your webserver accessible to the public, over the internet.

Chapters:
00:00 Intro
00:28 Adding PPA for PHP 8
00:50 Installing LAMP
02:21 Creating Database Admin Account
03:36 Installing Database Manager
05:05 Starting and Stopping Webserver
07:18 Setting Up Virtualhosts
11:02 Accessing Webserver From The Internet

Add This PPA To List PHP 8 In Synaptic
sudo add-apt-repository ppa:ondrej/php
apt update

Creating Database Admin Account
mysql -u root
CREATE USER 'your_username_here'@'%' IDENTIFIED BY 'your_password_here';
GRANT ALL PRIVILEGES ON . TO 'your_username_here'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;

Login To Database
mysql -u username -p

Dropping Default Root Account
DROP USER 'root'@'localhost';

Starting And Stopping Apache and Database Server
service apache2 start
service apache2 stop
service apache2 restart
service apache2 status

systemctl start apache2
systemctl stop apache2
systemctl restart apache2
systemctl reload apache2
systemctl status apache2

systemctl start mariadb
systemctl stop mariadb

Disable Default Virtualhost Conf and Enable Your Own
sudo a2dissite 000-default
sudo a2ensite main (Or whatever you called your conf)


Watch video Complete LAMP Webserver Setup In Linux Mint online without registration, duration hours minute second in high quality. This video was added by user DeAndre Queary 25 August 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 7,695 once and liked it like people.