Update apt repository source list
sudo apt-get install software-properties-common dirmngr
sudo apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc'
sudo add-apt-repository 'deb [arch=amd64] http://mariadb.nethub.com.hk/repo/10.5/debian buster main'
Install
sudo apt update
sudo apt install mariadb-server mariadb-client
Source Info: https://computingforgeeks.com/how-to-install-latest-php-on-debian/
Update apt repository source list
sudo apt -y install lsb-release apt-transport-https ca-certificates
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
Install
sudo apt update
sudo apt install -y php7.4 php7.4-{bcmath,mbstring,curl,xml,json}
Source Info: