Deploying a LEMP Stack through the Linode Marketplace
Traducciones al EspañolEstamos 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.
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.
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.
Under the Select App section, select the app you would like to deploy.
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.
Complete the rest of the form as discussed within the Getting Started > Create a Linode.
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.
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
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. |
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:
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.Navigate to the public IP address of your Linode in a browser. You will see the PHP settings that are active for your Linode.
Consult the following guides to learn more about working with the various components of the LEMP stack:
Upload files to your web root directory with an SFTP application like FileZilla. Use the same root credentials that you would use for SSH.
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:
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. |
NoteCurrently, 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