Adapted from here
- Install all packages
sudo apt-get update
sudo apt-get install php7.3 php7.3-cli php7.3-curl php7.3-mbstring php7.3-json php7.3-intl php7.3-gd php7.3-pgsql php7.3-xml php7.3-opcache php-apcu postgresql nginx git
- Configure PostgresSQL