Installing NGINX, PHP, MariaDB or MySQL on Ubuntu (LEMP stack)

48 views

The LEMP (Linux, NGINX(pronounced “Engine-X”), MySQL, & PHP) is a group software package commonly used for web page or web application, NGINX is a web server, MySQL is a Database for storing data in the backend. PHP (Hypertext Preprocessor) is an Open Source server-side scripting language used for Web development.

Step 1: Update Ubuntu Package

To get the latest version of Ubuntu package use theapt by typing the command below:

sudo apt update&&upgrade

Step 2: Install NGINX Web Server

To get the latest version of Ubuntu package use theapt by typing the command below:

sudo apt install nginx

Once installed, check to see if the Nginx service is running.

sudo service nginx status