This article covers how to Install a LEMP Stack on Ubuntu 20.04 LTS. LEMP stack is a group of open-source software that is typically installed together to enable a server to host dynamic websites and web apps. LEMP stands for Linux OS, with the Nginx (pronounced like "Engine-X") web server, Data store in a MySQL database, and dynamic content is processed by PHP.
To install Nginx Web Server:
1. Run the commands below to install Nginx.
$ sudo apt update
$ sudo apt install nginx
2. Allow traffic on port 80.
$ sudo ufw allow 'Nginx HTTP'
You can verify the change by running:
$ sudo ufw status