How to Install and Configure LEMP stack ( Nginx – MySQL/MariaDB – PHP ) on Ubuntu/Debian



How to Install and Configure LEMP stack ( Nginx – MySQL/MariaDB – PHP ) on Ubuntu/Debian

How to  Install and Configure LEMP stack ( Nginx - MySQL/MariaDB - PHP ) on Ubuntu/Debian

How to Install and Configure LEMP stack ( Nginx – MySQL/MariaDB – PHP ) on Ubuntu 22.04 LTS Ubuntu 20.04 | Ubuntu 18.04 LTS | Debian 11 | Debian 10

👉 Code in this video : https://github.com/totatca/Install-LEMP-stack-on-Ubuntu-Debian.git

📌 Similar tutorials

👉 How to Install LAMP stack (Apache MariaDB/MySQL PHP ) on Rocky Linux/AlmaLinux : https://youtu.be/1OkaG86m4No

👉 How to Install and Configure PHP on Windows | LAMP (Apache PHP MySQL) on Windows : https://youtu.be/vKTgJv8g48w

👉 How to Install and Configure Apache on Windows | LAMP (Apache PHP MySQL) on Windows : https://youtu.be/rOaDmOATnjI

👉 How to Install LAMP on CentOS 8/7 / RHEL 8 : https://youtu.be/BnxoH9ToflY

👉 How to Install LAMP ( Apache2 MariaDB10 PHP7 ) on Ubuntu 18/19/20 LTS : https://youtu.be/i8ZRdxUrRT0

👉 How to Install LAMP on CentOS 7 | Linux – Apache – MariaDB – PHP : https://youtu.be/ecr7zFprdpU

📌 LEMP is an open-source web application stack used to develop web applications. The term LEMP is an acronym that represents L for the Linux Operating system, Nginx (pronounced as engine-x, hence the E in the acronym) web server, M for MySQL database, and P for PHP scripting language.

📌 LEMP Stands For:

• L- Linux Operating System
• E- Nginx Server
• M- MySQL Database
• P- PHP
LEMP enjoys good community support and is used around the world in many highly scaled web applications. Nginx is the second most widely used web server in the world following Apache.

📌 Components of LEMP Stack
Every component of a stack communicates with each other. Let us discuss all the components in detail-

1. N stands for Nginx: It is a web server that follows an event-driven approach and handles multiple requests within one thread. Nginx supports all Unix-like OS and also supports windows partially.
When a web browser requests a web page that request is handled by the web server, here that web server is Nginx. Then the webserver passes that request to server-side technologies used in the LEMP stack for instance as a server-side scripting language like PHP to communicate with server and database.

📌 Why use Nginx?

Simple installations and configurations.
Load balancing support.
More concurrent connections can be handled compared to Apache.
Fastest for serving static files.
Compatible with commonly-used applications.
📌 2. P stands for PHP: It stands for Hypertext Preprocessor and is a scripting language that works on the server-side and communicates with the database MySQL and does all operations which user requests like fetching data, adding data, or manipulating data, or processing the data.

Why use PHP?

Large community support.
More options for database connectivity.
Inexpensive web hosting.
Open-source and free.
The most popular CMS WordPress runs on PHP.
📌 3. M stands for MySQL: It is an open-source SQL-based database that is used to store data and manipulate data while maintaining data consistency and integrity. It organizes data in tabular form in rows and columns. It is also ACID-compliant.

Why use MySQL?

It is Open-source.
Strong data protection.
Highly extensible
High performance.
Scalability and Flexibility
📌 4. L stands for Linux: The web server runs on Linux operating system. It is free and open-source and well known to be highly secure and less vulnerable to malware and viruses even if compared to Windows or macOS.

Why use Linux?

Highly secure.
Highly stable.
Free and open-source.
Strong community support.
Flexible in customization.

📌 Advantages Of LEMP:

One of the benefits of using LEMP is its widespread community support.
PHP and MySQL in the backend together are very powerful also with large community support and several hosting providers support.
LEMP is open-source.
Another benefit of LEMP is that Nginx is faster and is capable of handling a good amount of load.

📌 Disadvantages of LEMP:

If configurations are considered Nginx does not allow additional configurations which is a downside unlike Apache as it is more flexible in this case.
Not flexible enough to support dynamic modules and loading.

📌 Song: Elektronomia – Limitless [NCS Release]
👉 Music provided by NoCopyrightSounds
Free Download/Stream: http://ncs.io/Limitless
Watch: http://youtu.be/cNcy3J4x62M

📌 Song: Elektronomia – Sky High pt.II [NCS Release]
👉 Music provided by NoCopyrightSounds
👉 Free Download/Stream: http://NCS.io/SkyHigh2
👉 Watch: http://youtu.be/lG6HVrrXup8