LEMP Stack Deep Dive

By Tom Dean

Learn how to install a LEMP stack on both RHEL and Ubuntu Linux, perform basic configuration of NGINX, secure MariaDB, and more.

10 hours
  • 38 Lessons
  • 9 Hands-On Labs

About the course

In this course, you will gain a better understanding of the LEMP stack through lessons and hands-on labs. You will learn how to install a LEMP stack on both RHEL and Ubuntu Linux, perform basic configuration of NGINX, secure MariaDB, and even deploy a PHP application on a LEMP stack. When you have finished the course, you will have the skills necessary to build your own LEMP stack.

LEMP Stack Deep Dive Git Repository

Feel free to explore the configurations and code from the course at: GitHub – linuxacademy/content-lemp-deep-dive

What Is the LEMP Stack?

  • Linux
  • NGINX (eNGINeX – the ""E"")
  • MariaDB
  • PHP

LEMP Stack Deep Dive – Objectives

  • What is the LEMP stack? How does it compare to a LAMP stack?
  • How do you install a LEMP stack on RHEL/Ubuntu Linux?
  • How do you configure NGINX?
  • How do you configure and secure MariaDB?
  • How do you deploy PHP applications using php-fpm?
  • Deploy phpMyAdmin on Ubuntu Linux

LEMP Stack Deep Dive — Prerequisites

  • Beginner to intermediate Linux command line skills
  • Experience with configuring web servers on Linux is a plus
  • Experience with web development is a plus, but not required
  • No DBA skills required
  • No programming skills required

LEMP Stack Deep Dive — Labs

  • Install LEMP Stack on RHEL/Ubuntu Linux
  • Basic Configuration of NGINX
  • Generate SSL Certificates
  • Advanced Configuration of NGINX
  • Customize Logging in NGINX
  • Configure and Secure MariaDB
  • Configure php-fpm
  • Deploy phpMyAdmin
  • Chapter 1 4 Lessons Getting Started 9:18

    An Important Note About A Cloud Guru and Linux Academy Courses

    1:19

    About the Course / Prerequisites

    3:52

    About the Training Architect

    1:04

    Big State College - A Case Study

    3:03
  • Chapter 2 4 Lessons Introduction to the LEMP Stack 20:57

    What is the LEMP Stack?

    7:06

    NGINX - The Engine of the Stack

    4:13

    Why MariaDB?

    4:35

    PHP - Follow the Script

    5:03
  • Chapter 3 4 Lessons Installing a LEMP Stack on Linux 1:49:54

    Installing LEMP on RHEL 8

    9:54

    Installing LEMP on Ubuntu Linux

    10:00

    Installing a LEMP Stack on RHEL 8

    45:00 Hands-On Lab

    Installing a LEMP Stack on Ubuntu Linux

    45:00 Hands-On Lab
  • Chapter 4 14 Lessons Configuring the NGINX Server 3:41:38

    NGINX - Resources and Documentation

    2:53

    Basic NGINX Server Configuration

    8:09

    NGINX - Configuring Virtual Hosts

    6:35

    Configuring Custom Error Pages in NGINX

    6:09

    NGINX - Directives - Upstream / Location / Return

    8:55

    NGINX - Rewrites - An Introduction

    5:07

    NGINX - Load Balancing - An Introduction

    5:07

    Blocking Access by IP with NGINX

    3:28

    Creating SSL Certificates Using OpenSSL

    4:00

    NGINX - Securing Virtual Hosts - HTTPS

    3:56

    Optimizing Your NGINX Configuration

    17:19

    Configuring the NGINX Server - HTTP Virtual Hosts / Rewrites / Custom Error Pages / Directives

    1:00:00 Hands-On Lab

    NGINX - Managing SSL Certificates Using OpenSSL

    45:00 Hands-On Lab

    Configuring the NGINX Server - HTTPS Virtual Hosts / Load Balancing / IP Access Restrictions

    45:00 Hands-On Lab
  • Chapter 5 2 Lessons NGINX - Configuring and Customizing Log Files 1:06:30

    NGINX - Configuring / Customizing Logging

    6:30

    NGINX - Customizing Logging to Fit Your Needs

    1:00:00 Hands-On Lab
  • Chapter 6 3 Lessons MariaDB Basics 1:21:53

    MariaDB - Resources and Documentation

    4:30

    Configuring and Securing MariaDB

    17:23

    Configuring and Securing MariaDB

    1:00:00 Hands-On Lab
  • Chapter 7 5 Lessons Working With PHP on the LEMP Stack 1:41:58

    PHP - Resources and Documentation

    1:25

    PHP - An Introduction

    3:35

    Installing and Configuring PHP-FPM

    6:58

    Installing and Configuring PHP-FPM on Ubuntu Linux

    30:00 Hands-On Lab

    Deploying phpMyAdmin on the LEMP Stack on Ubuntu Linux

    1:00:00 Hands-On Lab
  • Chapter 8 2 Lessons Final Words 4:47

    LEMP - A Review

    2:38

    LEMP - More Resources on Linux Academy

    2:09

What you will need

  • In order to get the most out of this course, the student should have beginner to intermediate Linux command-line skills. Experience with configuring web servers on Linux and/or web development is a plus, but not required. No programming or DBA skills are required, but are welcome!

What are Hands-on Labs

What's the difference between theoretical knowledge and real skills? Practical real-world experience. That's where Hands-on Labs come in! Hands-on Labs are guided, interactive experiences that help you learn and practice real-world scenarios in real cloud environments. Hands-on Labs are seamlessly integrated in courses, so you can learn by doing.

Get Started
Who’s going to be learning?
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!