Coder Social home page Coder Social logo

michaeljhopkins / quick-lemp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jbradach/quick-lemp

0.0 1.0 0.0 422 KB

Lightweight scripts to quickly install a LEMP stack with Nginx, PHP5 (PHP-FPM), uWSGI, and MariaDB on Ubuntu and perform initial server configuration. Deploys a sample Flask app.

License: MIT License

Shell 100.00%

quick-lemp's Introduction

quick-lemp

Scripts to quickly install a LEMP Stack and perform basic configuration of new Ubuntu 12.04, 13.04, 14.04, and 15.04 servers.

Components include a recent stable version of Nginx (1.8.0) using configurations from the HTML 5 Boilerplate team, uWSGI, and MariaDB 10.0 (drop-in replacement for MySQL), PHP5, and Python.

Deploys a sample Flask app and creates a PHP page for testing.

Scripts

Setup - Basic setup for new Ubuntu server.

  • Intended only for new Ubuntu installations.
  • Adds new user with sudo access and disables remote root logins.
  • Changes sshd settings to enhance security.
  • Uses UFW to apply iptables rules to limit traffic to approved ports.

Stack - Installs and configures LEMP stack with support for PHP and Python applications.

  • Installs and configures Nginx and MariaDB.
  • Installs PHP-FPM for PHP5 and uWSGI in Emperor Mode for Python.
  • Includes virtualenv and pip.
  • MariaDB 10.0 can easily switched to 5.5 or substituted for PostgreSQL.
  • Adds repositories for the latest stable versions of Nginx and MariaDB..
  • Supports IPv6 by default .
  • Optional self-signed SSL cert configuration.

Quick Start

You should read these scripts before running them so you know what they're doing. Changes may be necessary to meet your needs. The generic Ubuntu files are intended to be cmpatible with Ubuntu 12.04, 13.04, 14.04, and 15.04.

Setup should be run as root on a fresh Ubuntu installation. Stack should be run on a server without any existing LEMP or LAMP components.

If components are already installed, the core packages can be removed with:

apt-get purge apache mysql apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common \
libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libnet-daemon-perl \
libplrpc-perl libpq5 mysql-client-5.5 mysql-common mysql-server mysql-server-5.5 php5-common \ 
php5-mysql
apt-get autoclean
apt-get autoremove

Setup - Basic setup for new Ubuntu server:

12.04, 13.04, 14.04, and 15.04
curl -LO https://raw.github.com/jbradach/quick-lemp/master/quicklemp-ubuntu-setup.sh
chmod +x quicklemp-ubuntu-setup.sh
./quicklemp-ubuntu-setup.sh
14.04 only
curl -LO https://raw.github.com/jbradach/quick-lemp/master/quicklemp-trusty-setup.sh
chmod +x quicklemp-trusty-setup.sh
./quicklemp-trusty-setup.sh

Stack - Installs and configures LEMP stack:

12.04, 13.04, 14.04, and 15.04
curl -LO https://raw.github.com/jbradach/quick-lemp/master/quicklemp-ubuntu-stack.sh
chmod +x quicklemp-ubuntu-stack.sh
./quicklemp-ubuntu-stack.sh
14.04 only
curl -LO https://raw.github.com/jbradach/quick-lemp/master/quicklemp-trusty-stack.sh
chmod +x quicklemp-trusty-stack.sh
./quicklemp-trusty-stack.sh

quick-lemp's People

Contributors

jbradach avatar

Watchers

Michael Hopkins avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.