Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Year End Gift for Ubuntu lovers: How to easily install & manage LEMP stack with LEMPer

LEMPer stands for Linux, Engine-X (Nginx), MariaDB and PHP installer. This is just a small toolkit written in Bash script that usually I use for managing Ubuntu (.deb based) LEMP stack. Our goal is to be the next CloudWays, Forge, Ploi, RunCloud, and ServerPilot free alternative which support a wide range of PHP framework (not only WordPress).

Features

  • Ubuntu 16.04 & 18.04 (Also supports Linux Mint specifically crafted for my local development box, Debian? still on the way).
  • Nginx latest mainline and stable version.
  • Multiple PHP versions (Currently supports 5.6 [EOL], 7.0 [EOL], 7.1, 7.2, 7.3, 7.4).
  • Run PHP as user who own the file (Multi-user via FPM's pool).
  • PHP Zend OPcache.
  • PHP Loader (ionCube & SourceGuardian).
  • Supported PHP Framework and CMS:

    1. default (vanilla PHP),
    2. framework (codeigniter, laravel, lumen, phalcon, symfony),
    3. CMS (drupal, mautic, roundcube, sendy, wordpress, wordpress-ms), and
    4. more coming soon.
  • SQL database with MariaDB 10 (MySQL & PostgreSQL maybe added soon).

  • NoSQL database with MongoDB.
  • In-memory database with Redis.
  • Memory caching with Memcached.
  • Basic SSH hardening (custom port, password-less login with public key).
  • Basic iptables-based firewall (UFW, CSF, or APF).
  • Fail2ban for intrusion detection and IP address banning.
  • Lemper CLI (simple command line wrapper for managing vhost & stack).
  • No advanced GUI panel, everything terminal.

Setting Up

  • Ensure that you have git installed.
  • Clone LEMPer Git repositroy, git clone https://github.com/joglomedia/LEMPer.git.
  • Enter LEMPer directory.
  • Make a copy of .env.dist to .env cp .env.dist .env and replace the values.
  • Execute lemper.sh file, sudo ./lemper.sh --install.

Install LEMPer stack

sudo apt-get install git && git clone -q https://github.com/joglomedia/LEMPer.git && cd LEMPer && cp -f .env.dist .env && sudo ./lemper.sh --install

Uninstall LEMPer stack

sudo ./lemper.sh --remove

LEMPer CLI Usage

Here are some examples of using LEMPer CLI.

LEMPer CLI add new vhost / website

sudo lemper-cli create -u username -d example.app -f default -w /home/username/Webs/example.app

LEMPer CLI manage vhost / website

Example, enable SSL

sudo lemper-cli manage --enable-ssl example.app

Example, enable FastCGI cache

sudo lemper-cli manage --enable-fastcgi-cache example.app

for more help

sudo lemper-cli --help

.
.
.
Love to hear your suggestions... ^.^

Send your PR or issue here https://github.com/joglomedia/LEMPer/issues

Comments

  • mantap bang, lanjutkan! :smile:

    Thanked by 1masedi
  • Great features! Specially that fpm isolation.

    Thanked by 1masedi
  • @andiklive @Matt247 thanks for your appreciation

  • masedimasedi Member

    LEMPer Stack v3.0.0 (2021)

    LEMPer stands for Linux, Engine-X (Nginx), MariaDB and PHP installer written in Bash script. This is just a small toolset (a bunch collection of scripts) that usually I use to deploy and manage LEMP stack on Debian/Ubuntu server. LEMPer is crafted to support wide-range PHP framework & CMS. It is available as Free Alternative to control panel such as cPanel, Plesk, CloudWays, Ploi, RunCloud, ServerPilot, etc.

    LEMPer adalah Linux, Engine-X (Nginx), MariaDB dan PHP stack installer yang ditulis dalam Bash script. Ini hanyalah sekumpulan perangkat kecil yang biasanya saya gunakan untuk mengelola LEMP stack pada server Debian/Ubuntu. LEMPer dibuat untuk mendukung berbagai macam framework PHP & CMS. Tersedia sebagai Alternatif Gratis untuk panel kontrol seperti cPanel, Plesk, CloudWays, Ploi, RunCloud, ServerPilot, dll.

    Installation

    sudo apt-get install git && git clone -q https://github.com/joglomedia/LEMPer.git && cd LEMPer && cp -f .env.dist .env && sudo ./install.sh
    

    Add new website

    sudo lemper-cli create -u username -d example.test -f wordpress  -w /home/username/webapps/example.test
    

    More CLI tools

    sudo lemper-cli --help
    

    Contribution

    LEMPer Stack

    Thank you :)

Sign In or Register to comment.