Configure CentOS Server

From USYVL Development Wiki
Jump to navigation Jump to search


Introduction

2012-08

Getting a local CentOS server configured for the USYVL utilities.

2012-09

Cas repurposes an older box and installs CentOS.

Aaron locks down remote access using iptables. Iyum nstalls the various yum packages needed for web services:

yum -y install http php php-gd php-mbstring php-xml php-pdo
chkconfig --levels 235 httpd on

Git install config

yum -y install git
git config --global user.name "Aaron Martin"
git config --global user.email aaron@eri.ucsb.edu
git config --global color.ui true

Install USYVL code

u=/var/www/html
vi /etc/resolv.conf    # modify search line to include eri.ucsb.edu
cd /usr/local/lib
git clone root@repo:/home/git/repos/phplib.git site-php
cd $u
scp aaron@fablio-mpro:Sites/sites/usyvl/Index.php .
scp aaron@fablio-mpro:Sites/sites/usyvl/usyvllogo.jpg .
# pull over scheduling and workflow to start
git clone aaron@fablio-mpro:Sites/sites/usyvl/scheduling.git scheduling
git clone aaron@fablio-mpro:Sites/sites/usyvl/workflow.git workflow

The basic websites exist now, but we need to setup local structures and dbs. Should likely provide a default access.db for a clean install...

cd $u/workflow
rsync -av aaron@fablio-mpro:Sites/sites/usyvl/workflow/io .
bin/fixperms
cd $u/scheduling
rsync -av aaron@fablio-mpro:Sites/sites/usyvl/scheduling/io-data .  # get some basic data/sample data
bin/fixperms

Testing HTTP via Tunnel

# run the following on your local system  and then pull up http://localhost:8080
ssh -N  root@66.80.56.210 -L 8080:localhost:80