
Install Moodle on ubuntu 22.04
$sudo apt update -y && sudo apt upgrade -y
$sudo apt install nginx mariadb-server -y
$sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https -y
$sudo add-apt-repository ppa:ondrej/php
$sudo apt update -y && sudo apt upgrade -y
$sudo apt install php7.4 php7.4-fpm php7.4-common php7.4-mysql