sudo su
apt update
apt install apache2
service apache2 start
(if you have firewall activated)
ufw allow in "Apache Full"
ufw allow 80/tcp
ufw allow 443/tcp
ufw reload
apt update
apt install mysql-server
service mysql start
sudo mysql
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
#or
sudo mysql_secure_installation
hostname -I
apt update
apt install php libapache2-mod-php
apt install openssl php-common php-bcmath php-curl php-json php-mbstring php-mysql php-tokenizer php-xml php-zip php-mbstring php-dom php-cli php-gd php-xml php-json php-mcrypt
apt update
apt install phpmyadmin
phpenmod mbstring
service apache2 restart
# to the /etc/apache2/apache2.conf file and restarting the service.
#Include /etc/phpmyadmin/apache.conf