Git Product home page Git Product logo

lemp's Introduction

Pinch

Intelligent Stack Scripts for CentOS Linux See http://drewsymo.com/web-servers/baller-nginx-php-fpm-apc-mysql-install-script/ for more information.

Installation

Pinch is a pinch to install, simply execute the following commands to get started:

$ yum install -y git
$ git clone git://github.com/drewsymo/Pinch.git
$ cd Pinch/vanilla-lemp && bash install.sh

If you're on Linode, you can simply rebuild your instance with the Pinch-installer stackscript.

Features

  • Installs a LEMP stack (PHP-FPM, MariaDB, APC, Nging) via Yum
  • Sets your hostname, timezone and installs essential tools
  • Uses GoogleDNS with Level3 tertiary resolver
  • Intelligentelly configures Nginx based on CPU cores
  • Retrieves MariaDB server.cnf based on total memory
  • Sets MariaDB root password and removes testing user / tables
  • Creates a daily cron with email notifications for available Yum updates
  • Secures your system via the following methods:
    • Creates privledged sudo user
    • Disable SSH root logins
    • Disables UseDNS
    • Change default SSH port
    • Enables SElinux
    • Firewall via CSF / iptables
    • Sets common network security parameters
    • Disables IPv6
    • Creates unprivledged www-data user for lemp components

Documentation

Example Nginx Configuration with PHP-FPM

You can find an example default.conf file in the root of this repository.

What are the PHP-FPM, Nginx and MariaDB Locations?

The locations for each of the Pinch components are as follows:

  • Nginx: /etc/nginx
  • PHP-FPM: /etc/php-fpm.d/
  • MariaDB: /etc/my.cnf.d/

What is the Username and Password of my system?

Pinch creates a new privledged user for your system and disables root SSH logins for security. Additionally, it will set a root password for your MariaDB server.

  • Hostname Option: host.domain.com
  • Timezone Option: Australia/NSW
  • New SSH Port: 3636
  • New Root Username: sudoninja
  • New Root Password: sudoninjapassword
  • MariaDB Root Password: mariadbpassword

For example, you can now login using ssh -p 3636 [email protected] with the password sudoninjapassword.

You can adjust the defaults by modifying the parameters in the install.sh script, located in the vanilla-lemp folder. Alternatively, if you are using the Linode stack-script, you will be prompted to enter these options on rebuild.

Author

Drew Morris

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.