Install nginx.
sudo apt-get install nginx
Install required packages.
sudo apt install ca-certificates apt-transport-https lsb-release
Import signing key and enable the PPA
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sudo echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php7.3.list
Update packages.
sudo apt update
Install php 7.3 with common extensions.
sudo apt install php7.3 php7.3-cli php7.3-common php7.3-opcache php7.3-curl php7.3-mbstring php7.3-mysql php7.3-zip php7.3-xml
Configure MySQL PPA
wget http://repo.mysql.com/mysql-apt-config_0.8.9-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.9-1_all.deb
Install MySQL
sudo apt update
sudo apt install mysql-server
Secure MySQL Installation
sudo systemctl restart mysql
sudo mysql_secure_installation