SOWN Admin System Installation

From SOWNWiki
Jump to: navigation, search

logo-yellow.png

Work in Progress
This page is a work in progress.

Installation of a new SOWN admin system is not yet complete so neither is this documentation and that which is complete is subject to revision.

This work has been allocated to User:DavidNewman.

This page will document how to install a development copy of the current SOWN admin site onto a Ubuntu 16.04 LTS server.

Installing Composer

Instructions based on https://www.digitalocean.com/community/tutorials/how-to-install-and-use-composer-on-ubuntu-16-04

  • This assumes a clean install of Ubuntu 16.04, if not check and remove any php packages.
  • Kohana 3.3 can not run on php7.0 so use php5.6.
add-apt-repository ppa:ondrej/php
apt-get update
  • Even now, if we install composer it will attempt php7.0, so install composer manually.
apt-get install curl php5.6-cli php5.6-xml php5.6-mbstring git unzip
  • Install composer
cd ~
curl -sS https://getcomposer.org/installer -o composer-setup.php
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
  • Test composer
composer


Install Doctrine 2.6.1

mkdir -p /opt/sown/doctrine
cd /opt/sown/doctrine
git clone https://github.com/doctrine/common.git
cd common
git reset --hard a579557bc689580c19fee4e27487a67fe60defc0


Install Kohana 3.3

Instructions based on http://www.andrewault.net/2013/10/31/use-composer-with-kohana-3-3/

  • Checkout release version 3.3.5 of kohana
makedir /opt/sown
cd /opt/sown
git clone https://github.com/kohana/kohana.git
cd kohana
git reset --hard 284024b4972f069dea7ceeacbd8be0ffa4a2dbcf
git submodule init
git submodule update
curl -sS https://getcomposer.org/installer | php
php composer.phar install
  • Install Apache and MySQL
apt-get install apache2 libapache2-mod-php5.6 mysql-client mysql-server
  • Symlink /etc/apache2/sites_available/default.conf to node_control.apache
  • Create database and import
create database sown_data;
create user sown@localhost identified by 'PASSWORD';
grant all privileges on sown_data.* to sown@localhost;


Getting Admin System Application Working

  • Install some required packages:
apt-get install php-seclib
  • Clone phpipaddress and kohana-doctrine modules to /opt/sown/kohana/modules/
cd /opt/sown/kohana/modules/
git clone https://github.com/leth/PHP-IPAddress.git php-ipaddress
git clone https://github.com/seyfer/kohana-doctrine.git 
cd kohana-doctrine
git checkout 3.3/master
  • Unpack jpgraph.tar.gz to /usr/local/share/
tar -xzvf jpgraph.tar.gz /usr/local/share/
Allocated toUser:DavidNewman +
Has reasonInstallation of a new SOWN admin system is not yet complete so neither is this documentation and that which is complete is subject to revision. +