sudo apt update
sudo apt upgrade
sudo apt install apache2 apache2-utils mariadb-server mariadb-client php7.4 libapache2-mod-php7.4 php7.4-mysql php-common php7.4-zip php7.4-cli php7.4-common php7.4-json php7.4-gmp php7.4-bcmath php-imagick php7.4-intl php7.4-opcache php7.4-readline phpmyadmin
sudo systemctl enable apache2
apache2 -v
sudo systemctl enable mariadb
sudo mysql_secure_installation
mariadb --version
sudo mysql -uroot -p
grant all on *.* to root@localhost identified by '123456';
sudo a2enmod php7.4
sudo systemctl restart apache2
php --version
sudo ufw status
sudo ufw default allow outgoing
sudo ufw default deny incoming
;sudo ufw allow ssh
sudo ufw enable