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


    About the Course / Prerequisites


    About the Training Architect


    Big State College - A Case Study

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

    What is the LEMP Stack?


    NGINX - The Engine of the Stack


    Why MariaDB?


    PHP - Follow the Script

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

    Installing LEMP on RHEL 8


    Installing LEMP on Ubuntu Linux


    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


    Basic NGINX Server Configuration


    NGINX - Configuring Virtual Hosts


    Configuring Custom Error Pages in NGINX


    NGINX - Directives - Upstream / Location / Return


    NGINX - Rewrites - An Introduction


    NGINX - Load Balancing - An Introduction


    Blocking Access by IP with NGINX


    Creating SSL Certificates Using OpenSSL


    NGINX - Securing Virtual Hosts - HTTPS


    Optimizing Your NGINX Configuration


    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


    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


    Configuring and Securing MariaDB


    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


    PHP - An Introduction


    Installing and Configuring PHP-FPM


    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


    LEMP - More Resources on Linux Academy


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!