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 LEMP stack on Debian/Ubuntu. LEMPer is CloudWays, Ploi, RunCloud, and ServerPilot free alternative crafted to support wide-range PHP framework (not only WordPress).
- Nginx from Ondrej's repository.
- Nginx build from source with Mod PageSpeed module.
- Nginx with FastCGI cache enable & disable feature (via LEMPer CLI).
- Nginx pre-configured optimization for low-end VPS/cloud server. Need reliable VPS/cloud server? Get one from UpCloud or DigitalOcean.
- Nginx virtual host (vhost) configuration optimized for WordPress, and several PHP Frameworks.
- Support HTTP/2 natively for your secure website.
- Free SSL certificates from Let's Encrypt.
- Get an A+ grade on several SSL Security Test (Qualys SSL Labs, ImmuniWeb, and Wormly).
- Multiple PHP versions 5.6 [EOL], 7.0 [EOL], 7.1 [EOL], 7.2 [EOL], 7.3 [SFO], 7.4, 8.0 from Ondrej's repository.
- Run PHP as user who own the file (Multi-user isolation via FPM pool). Feel the faster Nginx with secure multi-user environment like a top-notch shared hosting.
- Supported PHP Framework and CMS:
- Vanilla PHP: default,
- Framework: codeigniter, laravel, lumen, phalcon, symfony,
- CMS: drupal, mautic, roundcube, sendy, wordpress, wordpress-ms (multi-site), and
- more coming soon.
- PHP Zend OPcache.
- PHP Loader, ionCube & SourceGuardian.
- SQL database with MariaDB 10, MySQL drop-in replacement.
- NoSQL database with MongoDB NEW.
- In-memory database with Redis.
- Memory cache with Memcached.
- Adminer web-based SQL & MongoDB database manager (PhpMyAdmin replacement).
- phpRedisAdmin web-based Redis database manager.
- phpMemcachedAdmin web-based Memcached manager.
- TinyFileManager alternative web-based filemanager (Experimental).
- 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
.
sudo apt install git && git clone -q https://github.com/joglomedia/LEMPer.git && cd LEMPer && cp -f .env.dist .env && sudo ./install.sh
sudo ./remove.sh
LEMPer comes with friendly command line tool which will make your LEMP stack administration much easier. These command line tool called Lemper CLI (lemper-cli) for creating new virtual host and managing existing LEMP stack.
Here are some examples of using LEMPer CLI.
sudo lemper-cli create -u username -d example.app -f default -w /home/username/Webs/example.app
Example, enable SSL
sudo lemper-cli manage --enable-ssl example.app
Example, enable FastCGI cache
sudo lemper-cli manage --enable-fastcgi-cache example.app
sudo lemper-cli --help
Note: Lemper CLI will automagically add a new PHP-FPM user's pool configuration if it doesn't exists. You must add the user account first.
You can access pre-installed web-based administration tools here
http://YOUR_IP_ADDRESS:8082/lcp/
Adminer (Web-based SQL database managemer)
http://YOUR_DOMAIN_NAME:8082/lcp/dbadmin
TinyFilemanage (Web-based file managemer)
http://YOUR_DOMAIN_NAME:8082/lcp/filemanager
Custom build latest Nginx from sourceAdd Let's Encrypt SSLAdd network security (iptable rules, firewall configurator, else?)- Add enhanced security (AppArmor, cgroups, jailkit (chrooted/jail users), fail2ban, else?)
- Add file backup tool (Borg, Duplicati, Rclone, Restic, Rsnapshot, else?)
Add database backup tool (Mariabackup, Percona Xtrabackup, else?)- Add server monitoring (Amplify, Monit, Nagios, else?)
- Add user account & hosting package management.
- Add your feature request here.
- Fork it (https://github.com/joglomedia/LEMPer/fork)
- Create your feature branch (git checkout -b my-new-feature) or fix issue (git checkout -b fix-some-issue)
- Commit your changes (git commit -am 'Add some feature') or (git commit -am 'Fix some issue')
- Push to the branch (git push origin my-new-feature) or (git push origin fix-some-issue)
- Create a new Pull Request
- Travis unit tests will be run to make sure that your changes does not have errors or warning
If you're looking for mature, feature rich, advanced services with 24/7 premium support, please don't use this script.
Buy Me a Bottle of Milk or a Cup of Coffee !!
Be the first one!
(c) 2014-2020 | MasEDI.Net