OSF Installer

From OSF Wiki
Jump to: navigation, search

The Open Semantic Framework Installer script is used to install and deploy a OSF stack on a Ubuntu server. It can also be used to install, upgrade and configure parts of the stack, or related external tools such as the Datasets Management Tool, the Ontologies Management Tool, the OSF Web Service-PHP-API, etc.

Requirements

  • Ubuntu 12.10
  • PHP 5.3 or higher
  • 64 Bits Operating System
  • Access to internet from your server
  • 5 GB of disk space on the partition where you are installing OSF

Installing the Open Semantic Framework

Screencast Tutorial

0.jpg

Install the Open Semantic Framework stack using the following command lines:









mkdir -p /usr/share/osf-installer/

cd /usr/share/osf-installer/

wget https://raw.github.com/structureddynamics/Open-Semantic-Framework-Installer/3.0/install.sh

chmod 755 install.sh

./install.sh

./osf-installer --install-osf -v

Installing OSF for Drupal

Screencast Tutorial

0.jpg

You can install OSF for Drupal on any server. You do not require to have the OSF stack installed on the server where you will be installing OSF for Drupal. Because OSF is a distributed system, as long as you have access to an operational OSF Web Services instance, you will be able to install, and configure, OSF for Drupal anywhere.







./osf-installer --install-osf-drupal

Upgrading the Open Semantic Framework

Screencast Tutorial

0.jpg

The OSF Installer can also be used to upgrade the software that compose the stack. Here is the list of commands that can be used to upgrade different pieces of the stack using the latest 3.0 development code:









; Upgrade Ubuntu
apt-get update
apt-get upgrade

; Upgrade the OSF Installer script
cd /usr/share/osf-installer
rm upgrade.sh
wget https://raw.githubusercontent.com/structureddynamics/Open-Semantic-Framework-Installer/3.0/upgrade.sh
chmod 755 upgrade.sh
./upgrade.sh

; Upgrade the OSF Web Services PHP API
./osf-installer --upgrade-osf-ws-php-api="3.0"

; Upgrade the OSF
./osf-installer --upgrade-osf-web-services-code-base

; Upgrade the Datasets Management Tool
./osf-installer --upgrade-osf-datasets-management-tool="3.0"

; Upgrade the Ontologies Management Tool
./osf-installer --upgrade-osf-ontologies-management-tool="3.0"

; Upgrade the Permissions Management Tool
./osf-installer --upgrade-osf-permissions-management-tool="3.0"

; Upgrade OSF for Drupal
cd /usr/share/drupal/
drush dl osf-7.x-3.x-dev -y
drush cc all

; Upgrade to a specific version of Drupal
drush pm-update projects drupal-7.27

Usage

Usage: osf-install [OPTIONS]


General Options:
-h, --help                              Show this help section
-v, --verbose                           Make this insaller verbose
-c, --configure-installer               Configure the options used by this installer
--list-configurations                   List the current configuration used by the installer tool

Installation Options:
Note: the [VERSION] parameter is optional.
      If no version is specified, the latest DEV version will be used
--install-osf                           Install the Open Semantic Framework
--install-apache2                       Install Apache2
--install-mysql                         Install MySQL
--install-phpmyadmin                    Install PhpMyAdmin
--install-virtuoso                      Install Virtuoso
--install-solr                          Install Solr
--install-php5                          Install PHP5
--install-structwsf-php-api="[VERSION]"             Install the OSF Web Service-PHP-API library
--install-structwsf-tests-suites="[VERSION]"        Install the OSF Web Service tests suites
--install-datasets-management-tool="[VERSION]"      Install the Datasets Management Tool
--install-data-validator-tool="[VERSION]"      Install the Data Validator Tool
--install-ontologies-management-tool="[VERSION]"    Install the Ontologies Management Tool

Upgrade Options:
Note: the [VERSION] parameter is optional.
      If no version is specified, the latest DEV version will be used
--upgrade-structwsf="[VERSION]"                     Upgrade OSF Web Service
--upgrade-structwsf-php-api="[VERSION]"             Upgrade the OSF Web Service-PHP-API library
--upgrade-structwsf-tests-suites="[VERSION]"        Upgrade the OSF Web Service tests suites
--upgrade-datasets-management-tool="[VERSION]"      Upgrade the Datasets Management Tool
--upgrade-data-validator-tool="[VERSION]"      Upgrade the Data Validator Tool
--upgrade-ontologies-management-tool="[VERSION]"    Upgrade the Ontologies Management Tool