Commit 048b92c7 authored by Owain Jones's avatar Owain Jones
Browse files

Updated install.sh

parent 6f63bf36
#!/bin/sh
# Install the packages we need to set up our gliders website + backend.
# This file doubles up as notes/instructions.
# Based on a clean CentOS 7 minimal x64 installation
# (CentOS-7-x86_64-Minimal-1503-01)
# Installed on a VirtualBox VM with 512mb RAM, 1 CPU, 8gb storage
# All configuration during CentOS install process was left as defaults
# Base installation chosen.
# One user added: gliders, pw: gliders9876
# As root:
yum check-update
yum update
# Install needed tools
yum install git rsync wget
# And development tools (needed to compile python libs from pip)
yum groupinstall "Development Tools"
# Install python libraries
yum install python-inotify numpy python-matplotlib python-virtualenv
python -m easy_install pip
pip install pandas
# Install (& configure) sendmail
yum install sendmail
# Install & config MariaDB (MySQL)
yum install mariadb mariadb-server
# Install a relevant python ORM library
# TODO: Pick one we like the most!
# Big ones like SQLAlchemy?
# owanes quite likes the look of https://storm.canonical.com/ :)
# Install PHP
yum install php php-fpm php-pecl-apcu
# As for the webserver -- either apache or nginx...
# nginx is nice and fast, apache gets better support from
# CentOS etc.
# FOR NGINX
# Based on https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7
yum install epel-release # enables another software repo
yum check-update
yum install nginx
# Allow web through the firewall
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment