GithubHelp home page GithubHelp logo

virtubox / wo-nginx-setup Goto Github PK

View Code? Open in Web Editor NEW
16.0 5.0 4.0 33 KB

Bash script to setup optimized WordOps

Home Page: https://virtubox.github.io/wo-nginx-setup/

License: MIT License

Shell 100.00%
nginx bash-script automation install-script lemp-stack wordpress nginx-configuration

wo-nginx-setup's Introduction

Bash script to automate optimized WordOps setup


⚠️ Not maintained


commits


Server Stack

  • Nginx 1.16.x/1.15 with nginx-ee
  • PHP-FPM 7.2/7.3
  • MariaDB 10.1/10.2/10.3
  • REDIS 5.0
  • Fail2ban
  • UFW Firewall
  • ClamAV Antivirus
  • Netdata
  • Proftpd

Documentation available here : Ubuntu-Nginx-Web-Server

Features

  • Automated MariaDB server or client installation (10.1/10.2/10.3)
  • Linux server tweaks
  • WordOps automated installation
  • Latest Nginx release compiled with nginx-ee
  • UFW configuration with custom SSH port
  • Fail2ban Installation & Configuration
  • Cloudflare visitor real IP configuration
  • WordOps-Dashboard installation
  • Proftpd installation & configuration

Compatibility

  • Ubuntu 16.04 LTS
  • Ubuntu 18.04 LTS

Requirements

  • login as root
  • ssh connection with ssh keys (Recommended SSH software on Windows : Mobaxterm)
  • VPS or dedicated server with at least 2GB RAM (Recommended Proviers : Hetzner, OVH, DigitalOcean, Linode, Vultr, Scaleway)

Usage

Interactive install in a single command

bash <(wget -O - vtb.cx/wo-nginx-setup || curl -sL vtb.cx/wo-nginx-setup) -i

Alternative method : Clone the repository

git clone https://github.com/VirtuBox/wo-nginx-setup.git $HOME/wo-nginx-setup
cd $HOME/wo-nginx-setup

Make wo-nginx-setup executable

chmod +x $HOME/wo-nginx-setup

Launch install

$HOME/wo-nginx-setup <options>

Set configuration with config.inc file

Clone the repository

git clone https://github.com/VirtuBox/wo-nginx-setup.git $HOME/wo-nginx-setup
cd $HOME/wo-nginx-setup

Copy config.inc.example into config.inc and edit it

cp config.inc.example config.inc
nano config.inc

Set "y" or "n" to enable or disable features and then run the script

chmod +x wo-nginx-setup.sh && ./wo-nginx-setup.sh

Published & maintained by VirtuBox

wo-nginx-setup's People

Contributors

adsoncicilioti avatar virtubox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

wo-nginx-setup's Issues

errors execution script

hello @VirtuBox I know that you are working at this moment in this project, we are happy with your commitment.

To test the script some errors that may help you.

#wo stack install:
not install phpmyadmin
,adminer not install
#Downloading Adminer Unable to download file, /var/www/22222/htdocs/db/adminer/index.php

#directory not create
##########################################
Configuring Nginx
##########################################
cp: target '/etc/nginx/common/' is not a directory

####################################
Checking Nginx configuration
####################################
####################################
Reloading Nginx
####################################
####################################
Reloading UFW
####################################
Firewall not enabled (skipping reload)
[master 6a4d25e] update nginx.conf and setup cloudflare visitor real IP restore
2 files changed, 190 insertions(+), 142 deletions(-)
rewrite nginx.conf (83%)
grep: /etc/nginx/sites-available/22222: No such file or directory

root@vultr:/wo-nginx-setup# wo --version
WordOps v3.9.2
Copyright (c) 2018 WordOps.
root@vultr:
/wo-nginx-setup#

the lack of common folder is impossible to create redis sites

unary operator expected

Used the script on Newly Ubuntu 18.04 LTS.

Got this in the log:

create mode 100644 7.2/mods-available/bz2.ini
create mode 100644 7.2/mods-available/intl.ini
./wo-nginx-setup.sh: line 656: [: =: unary operator expected
./wo-nginx-setup.sh: line 662: [: =: unary operator expected
./wo-nginx-setup.sh: line 668: [: =: unary operator expected
##########################################

mariadb

in your script mariadb is installed before wordOps, does it have any difference in relation to mariadb installed by wordOPs?

running script with root

@VirtuBox all right ?!

I need to run the wo-nginx-setup script without these lines:

##################################

SSH Keys check

##################################

if [-d $ HOME / .ssh]; then
     ecdsa_keys_check = $ (grep "ecdsa-sha2" -r $ HOME / .ssh)
     rsa_keys_check = $ (grep "ssh-rsa" -r $ HOME / .ssh)
     ed25519_keys_check = $ (grep "ssh-ed25519" -r $ HOME / .ssh)
     if [-z "$ ecdsa_keys_check"] && [-z "$ rsa_keys_check"] && [-z "$ ed25519_keys_check"]; then
         echo "This script requires to use ssh keys authentification. Please make sure you have properly added your public ssh keys into .ssh / authorized_keys"
         exit 1
     fi
else
     echo "This script requires to use ssh keys authentification. Please make sure you have properly added your public ssh keys into .ssh / authorized_keys"
     exit 1
fi

I removed the same from the script, however when the installation and finished wordops is not installed.
Do I need to remove any others to succeed in the root installation?

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.