Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Owain Jones
gliders-webserver
Commits
048b92c7
Commit
048b92c7
authored
9 years ago
by
Owain Jones
Browse files
Options
Download
Email Patches
Plain Diff
Updated install.sh
parent
6f63bf36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
install.sh
install.sh
+52
-0
No files found.
install.sh
View file @
048b92c7
#!/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
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment