Coder Social home page Coder Social logo

simplyjarod / server Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 183 KB

CentOS server installations and configurations

License: GNU General Public License v3.0

Shell 44.02% PHP 2.84% C++ 6.17% HTML 46.96%
nginx mysql-installation mysql iptables lamp lamp-server lamp-setup lemp lemp-server lemp-automation

server's Introduction

Ubuntu (and CentOS 6/7/8) server installation and configuration

Please, download all files before executing any script. There are several dependencies between them.

Ubuntu

apt update -y && apt upgrade -y
git clone https://github.com/simplyjarod/server && cd server
chmod u+x *.sh -R

CentOS

sudo yum install wget unzip -y
wget https://github.com/simplyjarod/server/archive/master.zip
unzip master.zip && cd server-master && rm -rf ../master.zip
chmod u+x *.sh -R

What you can do with these scripts

Elements with link are updated for Ubuntu compatibility.

LAMP server: Linux + apache + MySQL + php

Run ./lamp-install.sh as root from the folder this file is placed. This will run the following scripts: Install apache, Install MariaDB, Install PHP, Add apache virtual host and Manage HTTP traffic with IPTABLES.

LEMP server: Linux + NGINX + MySQL + php

Run ./lemp-install.sh as root from the folder this file is placed. This will run the following scripts: Install NGINX, Install MariaDB, Install PHP, Add NGINX virtual host and Manage HTTP traffic with IPTABLES.

Install apache

Run ./apache-install.sh as root from the folder this file is placed. This will install apache2 and some basic setup.

Install NGINX

Run ./nginx-install.sh as root from the folder this file is placed. This will install NGINX and some basic setup.

Add apache virtual host

Run ./apache-add-virtual-host.sh as root from the folder this file is placed.
This will create a new user (if not created previously) and virtual host in apache2 in interactive mode: the script will ask you for system username and domain.

Add NGINX virtual host

Run ./nginx-add-virtual-host.sh as root from the folder this file is placed.
It is mandatory to have NGINX installed previously. This will create a new user (if not created previously) and virtual host in NGINX in interactive mode: the script will ask you for system username and domain.

Manage HTTP traffic with IPTABLES

Run ./iptables-accept-http.sh as root from the folder this file is placed.
It is mandatory to have IPTABLES installed previously (you can run iptables.sh from my system repository). This will insert into IPTABLES a new rule for port 80 (HTTP traffic) binded to an IP or to all IPs (unrestricted).

Manage MySQL traffic with IPTABLES

Run ./iptables-accept-mysql.sh as root from the folder this file is placed.
It is mandatory to have IPTABLES installed previously (you can run iptables.sh from my system repository). This will insert into IPTABLES a new rule for port 3306 (MySQL traffic) binded to an IP or to all IPs (unrestricted).

Install PHP

Run ./php-install.sh as root from the folder this file is placed. This will install PHP latest available version. In CentOS, PHP is not available on latest version, so php-update.sh is executed right after the default installation. Some "basic" libraries and modules are also installed.

Install NodeJS, NPM and PM2

Run ./nodejs-install.sh as root from the folder this file is placed. This will install NodeJS and NPM latest LTS version directly from nodesource.com.

Install MariaDB

Run ./mariadb-install.sh as root from the folder this file is placed. This will install MariaDB (MySQL), mysql_secure_installation (interactive mode) and some basic setup.

Create MySQL DB and user

Run ./mysql-create-db-and-user.sh from the folder this file is placed. You will be asked for mysql's root password.
It is mandatory to have MySQL or MariaDB installed previously.

Remove MySQL DB and user

Run ./mysql-remove-db-and-user.sh from the folder this file is placed. You will be asked for mysql's root password.
It is mandatory to have MySQL or MariaDB installed previously.

Install WordPress

Run ./wordpress-install.sh as root from the folder this file is placed. This will download a new WordPress copy and install it in the folder you specify, configuring (or creating if not exists) database, user and password (random names or the ones you provide).

server's People

Contributors

simplyjarod avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

balbuto swipswaps

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.