-
-
Notifications
You must be signed in to change notification settings - Fork 60
Installation
LEMP/LNMP is an open-source web application stack used to develop web applications. The term LEMP/LNMP is an acronym that represents L for the GNU/Linux operating system, Nginx (pronounced as engine-x, hence the E in the acronym) web server, M for MariaDB/MySQL database, and P for PHP scripting language.
Every component of the LEMP/LNMP stack communicates with each other and required to install and run correctly. Meanwhile, installing each component manually is time-consuming and error-prone.
One of the easiest ways to install LEMP/LNMP Stack is to use an automatic installer such as LEMPer Stack. Follow this step by step guide to install LEMPer Stack on your machine.
Before you start, you need to clone the LEMPer Stack repository. To do this, open a terminal and run the following command:
git clone https://github.com/joglomedia/LEMPer.git
Then, you can change to the LEMPer directory:
cd LEMPer && \
git checkout v2.4.0
If you are not familiar with Git or doesn't have Git installed, you can download the repository as a zip file from the releases page. We recommend you to download the zip file from the latest version, then extract it to a directory on your machine.
mkdir -p /path/to/directory
cd /path/to/directory
wget -O lemper-stack.tar.gz https://github.com/joglomedia/LEMPer/archive/refs/tags/v2.4.0.tar.gz
tar -xvf lemper-stack.tar.gz
After those operations, you should have a directory named LEMPer-v2.4.0
in your current directory. The version number of LEMPer Stack is v2.4.0
, its number depend on the version that you have downloaded. Now, cd
to the LEMPer-v2.4.0
directory.
cd LEMPer-v2.4.0
Please consider making changes to the default configuration before running LEMPer Stack installer by executing the following command:
cp .env.dist .env
Edit the .env
file with your favorite editor. The .env
file contains all of the configuration parameters for LEMPer Stack installer.
vim .env
Adjust all the parameters to your needs.
The .env
file contains configuration parameters (environment variables) used during installation. Each of environment variables are grouped in a section. The section names represents the software stack names.
Please, read the full configuration parameters list in the Configuration Parameters section of this Wiki.