Another Linux server stack installer scripts.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Linux Stack Made Easy.

The LEMP / LAMP software stack is a group of software that can be used to serve dynamic web pages and web applications. This is an acronym that describes a Linux operating system, with an Nginx or Apache web server. The backend data is stored in the MySQL/MariaDB database and or PostgreSQL as optional, and the dynamic processing is handled by PHP, Python, Nodejs, etc.


  • Fresh installation of Ubuntu 16.04 or 18.04 LTS.
  • Domain with already pointed IP address to that server.

If you prefer to use Debian, you can check debian branch.

Quick Start

Run this command as root and follow the wizard:

# Stable channel
bash <(curl -sLo- || wget -qO-

# Master branch
bash <(curl -sLo- || wget -qO- --dev

Manual Installation

If you prefer to run installation manually, you can follow this step:

  1. Clone this repo or download latest release from release page.
  2. Extract downloaded file and make all *.sh and snippets files executable.
  3. Install basic dependencies: apt -y install sudo git curl crudini openssl figlet perl
  4. Start installation process by executing file.
  5. Follow the installation wizard as usual.

You can also configure the config.ini file manually if you don't want to use the installation wizard.

Change ready=no to ready=yes in config.ini file, then execute file.

Some Useful Snippets

Command Description Example Usage
set-php Set default PHP version sudo set-php 7.2
set-python Set default Python version sudo set-python 3.5
vhost-create Create Nginx VirtualHost for PHP-FPM backend sudo vhost-create domain.tld
vhost-python Create Nginx VirtualHost for Python backend sudo vhost-python domain.tld
vhost-ghost Create or uninstall Ghost blogging platform sudo vhost-ghost domain.tld
------------------- --------------------------------------------------- sudo vhost-ghost domain.tld --uninstall
fix-permission Fix directory and file permission sudo fix-permission /my/path user:group
ssl-create Generate Let's Encrypt SSL certificate sudo ssl-create domain.tld
ssl-wildcard Generate wildcard Let's Encrypt SSL certificate sudo ssl-wildcard domain.tld
ssl-revoke Revoke Let's Encrypt SSL certificate sudo ssl-revoke domain.tld
mysql-create Create new MySQL database sudo mysql-create mydatabase
mysql-drop Drop MySQL database and user
create-sudoer Create new user with sudo privileges Run with sudo and follow the wizard
create-buddy Create new user for act as deployer bot


This project is open-sourced software licensed under the MIT license.