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 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 web applications with "LEMP", a LAMP-like stack using nginx, MySQL, and PHP

LEMP server on CentOS 7 with FastCGI

Install "LEMP," an application stack using Nginx, MariaDB, and PHP with fastcgi for CentOS 7

LEMP Server on Debian 8

Installing a LEMP stack on Debian 8

LEMP Server on Ubuntu 12.04 (Precise Pangolin)

Install web applications with "LEMP," a LAMP-like stack using nginx, MySQL, and PHP.

LEMP Server on CentOS 6

Install web applications with "LEMP," a LAMP-like stack using nginx, PostgreSQL/MySQL, and Perl/Python/PHP.