This post shows students and new users the steps to install and use the LEMP stack on Ubuntu Linux.
LEMP is an acronym for Linux (Ubuntu), me Nginx [engine x], SUBWAYariaDB or SUBWAYySQL and PHP Scripting Language. It is a group of open source software and building blocks for many of the web applications and most content management systems (CMS) in use today.
Many of the popular content management systems in use today use some combinations of this open source framework. From WordPress to Drupal to Joomla and many others, everyone is using the LEMP stack to power their applications.
If you are developing PHP-based applications or websites, you will probably also use the LEMP stack. Next, we will show you how to get the stack up and running on Ubuntu Linux.
If you are a student or a new user learning Linux, the easiest place to start learning is on Ubuntu Linux. Ubuntu is the modern open source Linux operating system for desktops, servers, and other devices.
To start installing the LEMP stack on Ubuntu Linux, follow the steps below:
How to install Ubuntu Linux
L in LEMP it means Linux, in this case Ubuntu. This post chooses Ubuntu Linux because it is easy to use and basically for beginners. Whether you are a new student or new user, Ubuntu Linux is a great place to start with Linux.
Your first task to configure LEMP is a Linux machine. If you haven’t installed Ubuntu before, read this post to learn how to install it.
Once Ubuntu is installed, run the following commands to update it.
sudo apt update sudo apt dist-upgrade sudo apt autoremove
There are many other settings and configurations to apply that apply to Ubuntu, however the post only refers to the LEMP installation.
How to install Nginx on Ubuntu Linux
Nginx (engine-x) represents the me in LEMP and is the most popular open source web server and a key component of the LEMP stack. Nginx is available in the Ubuntu repositories. Update the package index and install Nginx with the following commands.
sudo apt update sudo apt install nginx
After installing Nginx, the following commands can be used to stop, start and enable The Nginx service is always started when the server starts.
sudo systemctl stop nginx sudo systemctl start nginx sudo systemctl enable nginx
To see if Nginx is installed, open a web browser and look for the server’s hostname or IP address.
http: // localhost