Deploying a LEMP Stack with One-Click Apps

Updated by Linode Contributed by Linode

Contribute on GitHub

Report an Issue | View File | Edit File

LEMP Stack One-Click App

A LEMP (Linux, NGINX, MySQL, PHP) stack is a popular, free, and open-source web software bundle used for hosting websites on the Linux operating system. While similar to a LAMP Stack, a LEMP stack uses the NGINX web server as opposed to Apache. NGINX may be a preference for many reasons, however many will choose it due to it’s speed and ability to perform under high load.

Deploy a LEMP Stack with One-Click Apps

Linode’s One-Click App Marketplace allow you to easily deploy software on a Linode using the Linode Cloud Manager. To access Linode’s One-Click App Marketplace:

  1. Log in to your Linode Cloud Manager account.

  2. From the Linode dashboard, click on the Marketplace button in the left-hand navigation menu.

  3. The Linode creation page will appear, with the One-Click and Marketplace tabs pre-selected.

  4. Under the Select App section, select the app you would like to deploy:

    Select a One-Click App to deploy
  5. Once you have selected the app, proceed to the app’s Options section and provide values for the required fields.

The LEMP Stack Options section of this guide provides details on all available configuration options for this app.

LEMP Stack Options

Field Description
New User The username for a new non-root sudo user. Required.
New User Password The Password for the new user. Required.
MySQL Root Password The root password for your LEMP stack’s MySQL database. This is not the same as your Linode’s root password. Required.

Linode Options

After providing the app-specific options, enter configuration values for your Linode server:

Configuration Description
Select an Image Debian 9 is currently the only image supported by the LEMP One-Click App, and it is pre-selected on the Linode creation page. Required.
Region The region where you would like your Linode to reside. In general, it’s best to choose a location that’s closest to you. For more information on choosing a DC, review the How to Choose a Data Center guide. You can also generate MTR reports for a deeper look at the network routes between you and each of our data centers. Required.
Linode Plan Your Linode’s hardware resources. The Linode plan you deploy your LEMP stack on should account for the estimated workload. If you are standing up a simple web page, you can use a Nanode or 2GB Linode. If you are standing up a larger or more robust web app, then consider a plan with higher RAM and CPU allocations. If you decide that you need more or fewer hardware resources after you deploy your app, you can always resize your Linode to a different plan. Required.
Linode Label The name for your Linode, which must be unique between all of the Linodes on your account. This name will be how you identify your server in the Cloud Manager’s Dashboard. Required.
Root Password The primary administrative password for your Linode instance. This password must be provided when you log in to your Linode via SSH. It must be at least 6 characters long and contain characters from two of the following categories: lowercase and uppercase case letters, numbers, and punctuation characters. Your root password can be used to perform any action on your server, so make it long, complex, and unique. Required.

When you’ve provided all required Linode Options, click on the Create button. Your LEMP Stack app will complete installation anywhere between 2-3 minutes after your Linode has finished provisioning.

Getting Started After Deployment

After your LEMP stack has finished deploying, you can:

Software Included

The LEMP Stack One-Click App will install the following software on your Linode:

Software Description
NGINX Web server that can be used to serve your site or web application.
MySQL Server Relational database.
PHP 7 General purpose programming language.
UFW (Uncomplicated Firewall) Firewall utility. Ports 22/tcp and 80/tcp for IPv4 and IPv6 will allow outgoing and incoming traffic.
Note
Currently, Linode does not manage software and systems updates for One-Click Apps. It is up to the user to perform routine maintenance on software deployed in this fashion.

More Information

You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.

Join our Community

Find answers, ask questions, and help others.

This guide is published under a CC BY-ND 4.0 license.