sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install nginx php-fpm
Verified for laravel 7.x applications
sudo apt install php7.4-cli php-mysql php-pear php7.4-bcmath php7.4-gd php7.4-curl php7.4-xml php7.4-zip php7.4-dev php7.4-mbstring php-sqlite3 -y