So you want to install LEMP in your server. In my experience, when I want to set up server for my web app I always install LEMP stack. Sometimes it will consume a lot of your time.
So I created a simple script that we can run to install all packages required for our server.
Login to your Ubuntu server using SSH
Download the file and make it runnable
Make the file runnable
chmod +x install.sh
Run the script