LEMP Guides

The LEMP stack configured in these documents is established in contrast to the popular LAMP Stack used to power many popular web applications. "LAMP" refers to a Linux-based operating system, the Apache web server, the MySQL database server, and the PHP programing language. It is common to substitute other programing languages like Python, Perl, and even Ruby for PHP. The "LEMP" configuration replaces the Apache web server component with nginx (pronounced "engine x," providing the "E" in LEMP) to increase the ability of the server to scale in response to demand. Furthermore, these guides provide instructions for deploying applications written in Python and Perl in addition to PHP, and for configuring the PostgreSQL database as an alternative to MySQL if your applications support this database server.

These guides provide quick and straightforward instruction for deploying your server from a fresh install with a root prompt (see Getting Started for prerequisite steps) to a fully functional LEMP stack. LEMP provides a platform for applications that is compatible with the LAMP stack for nearly all applications; however, because nginx is able to serve more pages at once with a more predictable memory usage profile, it may be more suited to high demand situations.

LEMP Server on Debian 7 (Wheezy)

Install a LEMP stack to serve websites and applications on Debian 7

Install a LEMP (Linux, Nginx, MariaDB, PHP) Stack on Debian 8

This tutorial will teach you how to install a LEMP stack to serve websites and applications on Debian 8.

How to Install a LEMP (Linux, Nginx, MySQL, PHP) Stack on Ubuntu 16.04

This guide will teach you basic setup and configuration of Linux, Nginx, MySQL and PHP on Ubuntu 16.04

Install a LEMP Stack on CentOS 7 with FastCGI

This guide will teach you how to install a LEMP stack (Linux, Nginx, MariaDB, and PHP) with fastcgi on CentOS 7.

LEMP Server on CentOS 6

Install a LEMP stack to serve websites and applications on CentOS 6