Code Monkey home page Code Monkey logo

serverinstall's Introduction

serverinstall

Install NginX, PHP 7.1, MySQL 5.7, Varnish and Fail2Ban on CentOS 7+, RedHat 7+ servers

The only thing you might need to change is in line 44! Change the network interface name in the file "InitNewServer" if yours it not ETH0!

Adviced to run this script on VPS right after buying, first entering with root.

This scripts installs basically a webserver ready to use with the followings installed:

  • NginX - Webserver
  • PHP-FPM - for PHP websites
  • MySQL 5.7 - Database
  • Varnish - For faster website service
  • Composer - For easier installation of Laravel 5+ websites
  • Memcached - For better memory useage
  • Fail2Ban - Intruder Prevention System
  • NodeJS - Server Framework

Install steps:

What the script does:

  • Updates the system
  • installs vim, mc wget and epel-release
  • fetches and installs latest Mysql repository and mysql-community-server
  • starts and enables mysqld
  • installs remi repository
  • installs nginx repository
  • installs PHP-FPM 7.1 and latest NginX
  • starts and enables php-fpm and nginx
  • changes nginx configuration to use /etc/nginx/sites-enabled for config files
  • restarts nginx
  • installs git npm memcached httpd-tools nodejs and libpng-devel
  • starts and enables memcached
  • installs firewalld fail2ban and varnish
  • sets up fail2ban to watch for ssh connections
  • starts and enables fail2ban, varnish and firewalld
  • copies the included varnish files into varnish configurations while saving the originals
  • restarts varnish and nginx
  • sets up firewall to allow http and https connections
  • saves firewall configuration and lists all the zones and their settings
  • installs composer from remi repo
  • makes directories for proper nginx use
  • lists out all the services and their status
  • shows remaining tasks that needs to be done

serverinstall's People

Contributors

bertalanimre avatar

Watchers

 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.