Setting up Nginx with PHP and Let’s Encrypt in Ubuntu Linux – a beginner-friendly guide

I decided to write a complete guide myself on how to set up an Nginx web server on Linux, with Let’s Encrypt TLS (SSL) and PHP enabled. Nginx is a lightweight but full-featured webserver that can perform much better than Apache and other alternatives. This means you get more performance with less resources. If you don’t need the advanced features that Apache can give you, Nginx is a splendid choice!