Install LEMP (Linux, Nginx, MySQL And PHP) Stack On Linux

Exported on 28-Aug-2021 14:12:40

Install LEMP (Linux, Nginx, MySQL and PHP) On Linux Servers

This Blueprint Install LEMP Stack Components On Linux Systems Mentioned Below
Pre-Blueprint Attune setup
  1. On the Inputs tab, create a Linux node for the host you wish to install the stack on.
  2. On the Inputs tab, create Linux credentials to connect to the host you wish to install the stack on.
Supported Operating Systems:
  • Arch
  • Debian
  • Linux mint
  • Raspbian

Parameters

Name Type Script Reference Default Value Comment
server_credential Linux OS Credential server_credential
server_host Linux / Unix Server server_host

1 - Download Installation Script

This step uses a community supported open-source installation script from : https://github.com/thamaraiselvam/LEMP-Installer

Begin by downloading the installer with git.

The connection details have changed from the last step.

Login as user on node

Connect via SSH
ssh user@hostname
This is a Bash Script make sure you run it with bash -l from a terminal session
# Clone LEMP installer script
git clone https://github.com/thamaraiselvam/LEMP-Installer.git

2 - Launch Lemp Installer

Once the download has finished, this will launch the installation of LEMP stack software components.

Login as user on node

Connect via SSH
ssh user@hostname
This is a Bash Script make sure you run it with bash -l from a terminal session
# Change directory
cd LEMP-Installer

# Launch installer
sudo bash lemp.sh

3 - Restart Nginx

Installation has complete, this will restart Nginx server so the configurations take effect.

Fresh LEMP stack installation is ready, visit your_ip/info.php to verify the installation.

Login as user on node

Connect via SSH
ssh user@hostname
This is a Bash Script make sure you run it with bash -l from a terminal session
# Restart nginx server
sudo service nginx restart