All articles
Everything on LEMP Field Notes, organised by topic.
Stack Guides
- How to Install a LEMP Stack on Ubuntu 24.04 (Step by Step) — To install a LEMP stack on Ubuntu 24.04, run sudo apt update, then install each component from the default repositories: sudo apt install nginx, sudo apt…
- How to Install WordPress on a LEMP Stack (Ubuntu 24.04) — To install WordPress on a LEMP stack, install the PHP extensions WordPress needs (mysql, curl, gd, mbstring, xml, zip), create a dedicated MySQL database…
- Nginx vs Apache: Performance, Config, and When to Use Each — Nginx and Apache are both mature, production-grade web servers; the core difference is architecture.
Nginx & PHP
- Nginx 502 Bad Gateway with PHP-FPM: 6 Causes and Fixes — A 502 Bad Gateway on Nginx with PHP-FPM means Nginx received the request but got no valid response from PHP-FPM.
- Nginx Server Blocks: Host Multiple Sites on One Server — Nginx server blocks are configuration sections — each a server { } block — that let one Nginx instance host multiple websites on a single server.
Security & TLS
- How to Secure Nginx with Let's Encrypt (Certbot Tutorial) — To secure Nginx with Let's Encrypt, install Certbot (sudo snap install --classic certbot on Ubuntu), then run sudo certbot --nginx -d yourdomain.com.
- UFW Firewall Setup for Nginx on Ubuntu: 5 Essential Rules — To set up a UFW firewall for Nginx on Ubuntu, run five commands: sudo ufw default deny incoming, sudo ufw default allow outgoing, sudo ufw allow OpenSSH,…