The LEMP software stack is a group of software that can be used to serve dynamic web pages and web applications written in PHP.
Step 1 – Installing the Nginx Web Server
Nginx, a high-performance web server. We’ll use the apt
package manager to obtain this software.
Since this is our first time using apt
for this session, start off by updating your server’s package index. Following that, you can use apt install
to get Nginx installed:
sudo apt update
sudo apt install nginx
When prompted, enter Y
to confirm that you want to install Nginx. Once the installation is finished, the Nginx web server will be active and running on your Ubuntu 20.04 server.
If you have the ufw
firewall enabled, as recommended in our initial server setup guide, you will need to allow connections to Nginx. Nginx registers a few different UFW application profiles upon installation. To check which UFW profiles are available, run: