You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Requirements:

curl -sS https://getcomposer.org/installer | php
cp composer.phar /usr/local/bin/composer
  • mysql > 5.1 (it should work with postgres etc but not tested)
  • PHP >= 5.5.x with modules: php-apc, php5-cli, php5-curl, php5-mysql, php5-mcrypt, php5-memcached
  • Apache >= 2.2 with enabled modules: rewrite, unique_id
  • Shibboleth-SP >= 2.4 - optional needed for federated access
  • Codeigniter framework 3.1.5
  • Doctrine >= 2.4.x http://www.doctrine-project.org
NoteDoctrine it will be installed with composer
  • Zend-ACL Framework
NoteZend-ACL it will be installed with composer
  • Memcached server on the same host
  • gearman-php, gearnam-job-server - allows to enable additional features in JAGGER

Download JAGGER Entities Managment and Codeigniter

Notewe will be using CodeIgniter 3.1.5 available from https://github.com/bcit-ci/CodeIgniter/archive/3.1.5.zip

Download codeigniter and unpack into /opt and rename to “codeigniter”

JAGGER (Entity managment tool) is published on repo

git clone repo /opt/rr3
cd /opt/rr3

Install required third parties libraries with composer tool. Go to application folder and run
composer install

Set index.php file

cp /opt/codeigniter/index.php /opt/rr3/

and modify it. You need to change default path to system folder. Open /opt/rr3/index.php file and find

$system_path = 'system';

You may also want to set production environment. To do it find line

define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');

and before that line add
$_SERVER['CI_ENV'] = 'production';


Apache Configuration

Alias /rr3 /opt/rr3
  <Directory /opt/rr3>

        #  you may need to uncomment next line
        #  Require all granted

          RewriteEngine On
          RewriteBase /rr3
          RewriteCond $1 !^(Shibboleth\.sso|index\.php|logos|signedmetadata|flags|images|app|schemas|fonts|styles|images|js|robots\.txt|pub|includes)
          RewriteRule  ^(.*)$ /rr3/index.php?/$1 [L]
  </Directory>
  <Directory /opt/rr3/application>
          Order allow,deny
          Deny from all
  </Directory>


MySQL Configuration

mysql> create database rr3 CHARACTER SET utf8 COLLATE utf8_general_ci;
mysql> grant all on rr3.* to rr3user@'localhost' identified by 'rr3pass';
mysql> flush privileges;


install.sh script

Now it’s time to run install.sh script. Go to /opt/rr3/

./install.sh
  • No labels