How to install LEMP and run Drupal on Ubuntu 16.04

On the 21th of April, Canonical (the company behind Ubuntu) released Ubuntu 16.04 LTS (Xenial Xerus). So, what’s new in Ubuntu 16.04? The bulletin points below show the main new features that were implemented in Xenial:

Systemd is now the default init system for Xenial. More info on systemd can be found here.
Xenial is built on the 4.4 Linux kernel and uses the SSH protocol 2.0 that is OpenSSH 7.2p2.
The PHP packages of Ubuntu 16.04 are shipped with PHP 7 as the default version to install from. PHP 7 offers major performance improvement over it’s predecessors.
Python 3.5 is installed by default.
MySQL 5.7 is installed by default with the Ubuntu apt package manager

But let’s not dwell into the specifics further because we have a job to do. If you want to know more about Xenial’s new features, you can check the official release notes.

Today’s article is all about installing Drupal with LEMP (Linux, Nginx, MySQL and PHP-FPM) on an Ubuntu 16.04 VPS. A LEMP stack is a synonym of LEMP server or LEMP web server. It refers to a set-up which includes Linux, Nginx, MySQL (MariaDB) and PHP.