This type of web server is mainly used to run PHP-based content management systems, such as WordPress, Joomla, etc., and web applications. It has been gaining popularity since the invention of the Nginx web server in 2011.
For this tutorial I will use an Ubuntu 20.04 Virtual Private Server (VPS) server where Ubuntu 20.04 was pre-installed. We will install Nginx, MySQL and PHP one by one on this VPS server.
Finally, I will show you how to install phpMyAdmin alongside LEMP on this server for administering MariaDB/MySQL database server.
In this tutorial, I used an Ubuntu 20.04 based VPS which I bought from RamNode. You may install it on a VirtualBox and use it.
UFW is a straight-forward, uncomplicated fireward which comes preinstalled on Ubuntu. After installing Nginx, you must allow Nginx to go through the firewall. Otherwise, your web server will not be able to send page requests to the browser.
If you inspect the “Nginx Full” profile, you should see that it uses both 80 and 443 ports to pass its request to the browser.