Skip to content
LEMPer stands for Linux, Engine-X (Nginx), MariaDB and PHP installer written in Bash script. LEMPer is terminal-based LEMP stack manager for Debian/Ubuntu-based cloud or virtual server (vps) and on-premise (bare metal).
Shell Perl HTML
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin enhance lemper cli Sep 3, 2019
etc fix nginx config error Sep 15, 2019
share custom 401 error Sep 8, 2019
shunit2 updated Nginx source Aug 14, 2019
.env.dist enhance removal scripts Sep 7, 2019
.gitignore minor fix Aug 31, 2019
.travis.yml update shunit2 test Jul 31, 2019 Add license file Jun 16, 2019 readme 1.3.0 Sep 1, 2019
favicon.ico add favicon Aug 29, 2019 enhancement Sep 14, 2019

[L]inux [E]ngine-X [M]ariaDB [P]HP Install[ER]

LEMPer stands for Linux, Engine-X (Nginx), MariaDB and PHP installer written in Bash script. This is just a small tool set (a bunch collection of scripts) that usually I use to deploy and manage Debian-based/Ubuntu LEMP stack. LEMPer is ServerPilot, CloudWays, RunCloud, and EasyEngine alternative for wide range PHP framework.

Build Status


  • Nginx from custom repository & build from source.
  • Nginx with FastCGI cache enable & disable feature.
  • Nginx pre-configured optimization for low-end VPS/cloud server. Need reliable VPS/cloud server? Get one here or here.
  • Nginx virtual host (vhost) configuration optimized for WordPress, and several PHP Framework (CodeIgniter, Symfony, Laravel, Phalcon).
  • MariaDB 10 (MySQL drop-in replacement).
  • In-memory database with Redis.
  • Memory cache with Memcached.
  • PHP 5.6, 7.0, 7.1, 7.2, 7.3 from Ondrej's repository.
  • PHP-FPM sets as user running the PHP script (pool), Feel the faster Nginx with multi-user FPM like a top-notch shared hosting.
  • Zend OPcache.
  • ionCube PHP Loader.
  • SourceGuardian PHP Loader.
  • Adminer for MySQL database administration (PhpMyAdmin replacement).

Setting Up

  • Ensure you have git installed.
  • Make a copy of .env.dist to .env in the LEMPer base directory and replace the values.
  • Enter LEMPer directory.
  • Execute file.

Install Nginx, PHP & MariaDB

sudo apt-get install git
git clone -q; cd LEMPer; cp -f .env.dist .env; sudo ./ --install

Uninstall Nginx, PHP & MariaDB

sudo ./ --remove

LEMPer Command Line Administration Tool

LEMPer comes with friendly command line tool which will make your LEMP stack administration much more easier. These command line tool called Lemper CLI (lemper-cli) for creating new virtual host and managing existing LEMP stack.

lemper-cli Usage

Add/create new virtual host

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

Manage/update existing virtual host

sudo lemper-cli manage --enable-fastcgi-cache

for more help

sudo lemper-cli --help

Note: Lemper CLI will automagically add new PHP-FPM user's pool configuration if it doesn't exists.

Web-based Administration

You can access pre-installed web-based administration tools here


Adminer (SQL database management tool)


FileRun (File management tool)



  • Custom build latest Nginx from source
  • Add Let's Encrypt SSL
  • Add network security (iptable rules, firewall configurator, else?)
  • Add enhanced security (AppArmor, cgroups, jailkit (chrooted/jail users), else?)
  • Add file backup tool (Restic, Borg, Rsnapshot, else?)
  • Add database backup tool (Mariabackup, Percona Xtrabackup, else?)
  • Add server monitoring (Amplify, Monit, Nagios, else?)
  • Add your feature request here.


Please send your PR on the Github repository to help improve this script.


Do not use this script if you're looking for feature rich and advanced tool like premium service.


Buy Me a Bottle of Milk !!


(c) 2014-2019

You can’t perform that action at this time.