2017-10-20 22:11:07 +07:00
2017-10-20 22:07:58 +07:00
2017-08-30 22:15:00 +07:00
2017-10-20 22:11:07 +07:00
2017-08-31 00:19:55 +07:00
2017-08-30 23:29:24 +07:00
2017-08-31 00:24:55 +07:00

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

LEMPer stands for Linux, Engine-X (Nginx), MariaDB and PHP installer. This is just a small tool set (a bunch collection of scripts) that usually I use to deploy and manage Ubuntu-LEMP stack. LEMPer is ServerPilot alternative and EasyEngine alternative for crazy sysadmin ✌️

Features

  • Nginx 1.10 custom build from RtCamp repository
  • Nginx with FastCGI cache enable & disable feature
  • Nginx pre-configured optimization for low-end VPS
  • Nginx vhost configuration optimized for WordPress, Laravel, and Phalcon PHP Framework
  • MariaDB 10 (MySQL drop-in replacement)
  • PHP 5.6, 7.0, 7.1 from Ondrej's repository
  • PHP-FPM sets as user running the PHP script (pool), Feel the faster Nginx like a trully shared hosting
  • Zend OPcache
  • Memcached 1.4
  • ionCube PHP Loader
  • SourceGuardian PHP Loader
  • Adminer (PhpMyAdmin replacement)

Usage

Install Nginx, PHP 5 / 7 & MariaDB

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

Uninstall Nginx, PHP 5 / 7 & MariaDB

sudo ./uninstall.sh

Nginx vHost Configuration Tool (Ngxvhost)

This script also include Nginx Virtual Host (vHost) configuration tool to help you add new website (domain) easily. Feel the faster Nginx like a trully shared hosting. The Ngxvhost must be run as root (recommended using sudo).

Ngxvhost Usage

sudo ngxvhost -u username -s example.com -t default -d /home/username/Webs/example.com

Ngxvhost Parameters:

  • -u your username (DO NOT use root login)
  • -s your website domain name
  • -t website type, available options: default, laravel, phalcon, wordpress, wordpress-ms (multisite)
  • -d absolute path to your site directory containing the index file

for more helps

sudo ngxvhost --help

Note: Ngxvhost will automagically add new FPM user's pool configuration file if it doesn't exists.

Web-based Administration

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

http://YOUR_IP_ADDRESS/tools/

or

http://YOUR_DOMAIN_NAME:8082/tools/

TODO

  • Custom build latest Nginx
  • Add Let's Encrypt SSL
  • Add security hardening (iptable rules, firewall, else?)
  • Add server monitoring (nagios, monit, 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) 2015-2017 MasEDI.Net

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%