This gist provides all the commands needed to install and configure Lighttpd with PHP-FPM, enable HTTPS with a self-signed certificate, and redirect HTTP traffic to HTTPS.
apt install lighttpd php-cgi php-fpm
lighty-enable-mod fastcgi
lighty-enable-mod fastcgi-php
lighty-enable-mod ssl