2019-08-09 05:21:21 +07:00
2019-08-09 05:20:27 +07:00
2019-08-09 05:21:21 +07:00
2019-08-09 05:20:27 +07:00
2019-08-09 05:20:27 +07:00
2019-08-09 05:20:27 +07:00
2019-08-09 05:20:27 +07:00
2019-08-09 05:20:27 +07:00
2019-07-31 22:06:15 +07:00
2019-08-09 05:20:27 +07:00
2019-06-16 23:39:02 +07:00
2019-08-09 05:20:27 +07:00

[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

Features

  • 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).

Usage

Install Nginx, PHP & MariaDB

sudo apt-get install git
git clone -q https://github.com/joglomedia/LEMPer.git; cd LEMPer; sudo ./lemper.sh --install

Uninstall Nginx, PHP & MariaDB

sudo ./lemper.sh --uninstall

LEMPer Command Line Administration Tool

LEMPer comes with two handy command line tools which will make your LEMP stack administration more easier. These two command line tools are lempervh for adding new virtual host and lempercp for managing existing virtual host.

lempervh Usage

sudo lempervh -u username -d example.com -f default -w /home/username/Webs/example.com

Lempervh Parameters:

  • -u username, system user name (DO NOT use root login)
  • -d domain name, your website domain or sub-domain name
  • -f framework type, available options: default, codeigniter, laravel, phalcon, wordpress, wordpress-ms (multisite)
  • -w web root, absolute path to your website directory containing the index file (we recommend you to use user home directory)

for more info

sudo lempervh --help

Note: Lempervh 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

http://YOUR_IP_ADDRESS/tools/

Adminer (SQL database management tool)

http://YOUR_DOMAIN_NAME:8082/

FileRun (File management tool)

http://YOUR_DOMAIN_NAME:8083/

TODO

  • 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.

Contribution

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

TLDR;

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

DONATION

Buy Me a Bottle of Milk !!

(c) 2014-2019

Description
LEMPer Stack is terminal-based LEMP / LNMP ( Linux, Nginx, MariaDB, PostgreSQL, MongoDB, Redis, Memcache, PHP, Secure FTP ) auto installer and virtual host manager for Debian & Ubuntu cloud or virtual server (vps) and on-premise (bare metal).
Readme 2.7 MiB
Languages
Shell 91.4%
Perl 4.9%
HTML 3.7%