Deploying a LEMP Stack through the Linode Marketplace

Traducciones al Español
Estamos traduciendo nuestros guías y tutoriales al Español. Es posible que usted esté viendo una traducción generada automáticamente. Estamos trabajando con traductores profesionales para verificar las traducciones de nuestro sitio web. Este proyecto es un trabajo en curso.
Create a Linode account to try this guide with a $100 credit.
This credit will be applied to any valid services used during your first 60 days.

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.

Deploying the LEMP Stack Marketplace App

The Linode Marketplace allows you to easily deploy software on a Linode using the Linode Cloud Manager.

  1. Log in to the Cloud Manager and select the Marketplace link from the left navigation menu. This displays the Linode Compute Create page with the Marketplace tab pre-selected.

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

  3. Fill out all required Options for the selected app as well as any desired Advanced Options (which are optional). See the Configuration Options section for details.

  4. Complete the rest of the form as discussed within the Getting Started > Create a Linode.

  5. Click the Create Linode button. Once the Linode has provisioned and has fully powered on, wait for the software installation to complete. If the Linode is powered off or restarted before this time, the software installation will likely fail. To determine if the installation has completed, open the Linode’s Lish console and wait for the system login prompt to appear.

  6. Follow the instructions within the Getting Started After Deployment section.

Software installation should complete within 2-3 minutes after the Linode has finished provisioning.

Configuration Options

LEMP Stack Options

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

General Options

For advice on filling out the remaining options on the Create a Linode form, see Getting Started > Create a Linode. That said, some options may be limited or recommended based on this Marketplace App:

  • Supported distributions: Debian 9
  • Recommended plan: 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 1GB Linode (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.

Getting Started After Deployment

After your LEMP stack has finished deploying, you can:

  1. Connect to your Linode via SSH as your root or limited user. You will need your Linode’s root and/or user password to proceed. Note that your Linode’s web root will be located in the /var/www/html directory.

  2. Navigate to the public IP address of your Linode in a browser. You will see the PHP settings that are active for your Linode.

  3. Consult the following guides to learn more about working with the various components of the LEMP stack:

  4. Upload files to your web root directory with an SFTP application like FileZilla. Use the same root credentials that you would use for SSH.

  5. Assign a domain name to your Linode’s IP address. Review the DNS Manager guide for instructions on setting up your DNS records in the Cloud Manager, and read through DNS Records: An Introduction for general information about how DNS works.

Software Included

The LEMP Stack Marketplace App will install the following software on your Linode:

SoftwareDescription
NGINXWeb server that can be used to serve your site or web application.
MySQL ServerRelational database.
PHP 7General 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 Marketplace 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.

This page was originally published on


Your Feedback Is Important

Let us know if this guide made it easy to get the answer you needed.


Join the conversation.
Read other comments or post your own below. Comments must be respectful, constructive, and relevant to the topic of the guide. Do not post external links or advertisements. Before posting, consider if your comment would be better addressed by contacting our Support team or asking on our Community Site.