Skip to content

Installation

Daniel Ramsay edited this page Dec 24, 2019 · 3 revisions

Required debian packages

  • php-mysql
  • php-pdo
  • php-mbstring
  • php-gd
  • php-xml
  • php-yaml
  • php-json
  • unzip

Installation

Download composer from https://getcomposer.org/installer to /root/composer-setup.php Run composer-setup.php Delete composer-setup.php

Clone https://github.com/openrightsgroup/alidade.git into /var/www/html cd /var/www/html Run php -f composer.phar to install PHP library dependencies

Create /var/www/html/config/local.php:

<?php

    /** Local Environment Setup **/

    /** system status: can be development or production **/
    define( 'SYSTEM_STATUS', 'production');

    /** Application Name **/
    define( 'APPNAME',  'Tool Selection Platform');
    
    /** PLEASE NOTE that this is used for encryption. It is important that it is changed. **/
    define( 'APPKEY',   'yourrandomstringhere');        // should be a random string. 
    
    /** Application Email **/
    define( 'APPEMAIL', '[email protected]');
    
    /** Secret! **/
    define( 'SECRET',   strrev(md5(APPKEY)));

    /** session keys **/
    define('SESSIONKEY', md5(APPKEY));
    define('SESSIONNAME', md5(APPKEY . SESSIONKEY));
    define('SESSIONSALT', strrev(SESSIONKEY));

    /** Database connection params **/
    define('DBTYPE', 'mysql');      //PDO Driver
    define('DBUSER', 'alidade_user');       //User 
    define('DBPASS', 'yourpasswordhere');   //Password
    define('DBNAME', 'alidade');   //Database name
    define('DBHOST', 'localhost');  //Database server ip/name
    

Using web browser, go to http://server-ip/install.php and follow onscreen prompts

Remove (or prohibit access to) install.php

Clone this wiki locally