Bibliography

LEMP installation:

LAMP installation:

I mostly used the digitalocean technique, but took some hints from lamphowto.com. These are assuming you want Apache (the 'a' in LAMP) but the info re MySQL and PHP is valid for a LEMP stack too.

PHP installation:

(Same as for LAMP installation)

NGINX installation:

 

The first is very detailed wrt config and was followed through as it is Drupal specific..

The second was followed for the basic installation

The last was a Ubuntu/Debian based guide, so not necessarily cut-and-paste commands

Drush:

LetsEncrypt SSL: