Giter Site home page Giter Site logo

fairy's Introduction

Fairy

An automated Nginx, PHP FPM Web Server Installer for Cloud Services such as DigitalOcean

Features

  • Written for Ubuntu 16.04 LTS
  • Installs Nginx
  • Create virtual server block for nginx
  • Installs PHP, PHP APC, PHP Curl etc.
  • Supports PHP Fast Process Manager (php-fpm)
  • Installs Memcached
  • Installs Database (MariaDB / MySQL)
  • Optionally Installs PHP Composer and Laravel
  • Configures and Strengthens SSH
  • Activates Firewall
  • Optionally enables SWAP space in DO server and fixes a locale issue

How to use Fairy

Specify the values for the following variables to customize how the program should configure the webserver

  • SITENAME - Specify the site name of the first (default) website (e.g. SITENAME='example.com')
  • SITEUSER - Specify the username of the default website (e.g., SITEUSER='example')
  • PHP_SESSION_HANDLER - Whether the PHP session data should be stored in files or in memcached location. Currently it does not support database. (e.g. PHP_SESSION_HANDLER="files")
  • MEMCACHED_TCP_PORT - The TCP port that memcached should use for communication. (e.g., MEMCACHED_TCP_PORT="29216"). Leave this variable blank if you wish memcached to use Unix domain socket
  • SESSION_SAVE_PATH - Specify PHP session.save_path when PHP_SESSION_HANDLER is neither files or memcached. This can be left empty if PHP_SESSION_HANDLER is files or memcached.
  • SSH_PORT - specify an SSH connection port. Leave this blank if you want to continue with the default port (22)

How to Execute Fairy

Login as root and execute the following commands

# curl -O https://raw.githubusercontent.com/akash-mitra/fairy/master/fairy.sh
# chmod +x fairy.sh
# ./fairy.sh

How to see the result

Once fairy execution is complete, it will generate following files under /root/ directory

  1. /root/you_must_read_me.txt
  2. /root/system_change_log

Please read the file you_must_read_me.txt for further valuable information

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.