Prepare your Ubuntu server (you are required to be a sudoer)

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install apache2 libapache2-mod-php5 postgresql php5-pgsql git-core
$ sudo a2enmod rewrite
$ sudo a2enmod authnz_ldap
$ sudo a2enmod headers

Install Argos

$ cd /var/www/
$ sudo git clone git://argos-viewpoint.git.sourceforge.net/gitroot/argos-viewpoint/argos-viewpoint
$ cd argos-viewpoint
$ sudo touch config.inc.php 
$ sudo chown www-data .htaccess
$ sudo chown www-data config.inc.php

Change Apache settings with:

AllowOverride All
AllowEncodedSlashes On

Reload Apache settings

$ sudo /etc/init.d/apache2 force-reload

Configure Argos database

$ sudo -u postgres createdb -E utf8 argos
$ sudo -u postgres createuser --no-superuser --no-createdb --no-createrole www-data
$ sudo -u postgres createuser --no-superuser --no-createdb --no-createrole --pwprompt argos
$ sudo -u postgres psql argos -f scripts/hypertopic_pgsql.sql
$ sudo -u postgres psql argos
  # GRANT SELECT ON actors TO PUBLIC;
  # GRANT SELECT ON actors_viewpoints TO PUBLIC;
  # GRANT SELECT ON attributes TO PUBLIC;
  # GRANT SELECT ON ht_logs TO PUBLIC;   
  # GRANT SELECT ON operations TO PUBLIC;
  # GRANT SELECT ON resources TO PUBLIC;
  # GRANT SELECT ON topics TO PUBLIC;
  # GRANT SELECT ON topics_entities TO PUBLIC;
  # GRANT SELECT ON topics_history TO PUBLIC;
  # GRANT SELECT ON topics_topics TO PUBLIC;
  # GRANT SELECT ON viewpoints TO PUBLIC;
  # GRANT SELECT ON entities_entities TO PUBLIC;
  # GRANT ALL ON actors TO argos;
  # GRANT ALL ON actors_viewpoints TO argos;
  # GRANT ALL ON attributes TO argos;
  # GRANT ALL ON ht_logs TO argos;
  # GRANT ALL ON operations TO argos;
  # GRANT ALL ON resources TO argos;
  # GRANT ALL ON topics TO argos;
  # GRANT ALL ON topics_entities TO argos;
  # GRANT ALL ON topics_history TO argos;
  # GRANT ALL ON topics_topics TO argos;
  # GRANT ALL ON viewpoints TO argos;
  # GRANT ALL ON entities_entities TO argos;
  # GRANT ALL ON topics_topicid_seq TO argos;
  # GRANT ALL ON viewpoints_viewpointid_seq TO argos;

Change Argos settings ('config.inc.php') with:

<?php
 define('SERVICE', 'URL GOES HERE -- WITHOUT TRAILING SLASH');
 //Don't enable the validator, it doesn't work.
 define('VALIDATOR', ' ');
 
 define('HT_DB_USER', 'argos');
 define('HT_DB_PASS', 'PASSWORD GOES HERE');
 define('HT_DB_READONLY_USER', 'www-data');
 define('HT_DB_READONLY_PASS', null);
 define('HT_DB_PCONNECT', true);
 define('HT_DB_TYPE', 'pgsql');
 
 //PostgreSQL database connection string
 define('HT_DB_CONNECTSTRING','pgsql:host=localhost;dbname=argos');
 define('TIMESTAMP', 'NOW()');
?>

Protect your Argos database password:

$ sudo chown www-data config.inc.php
$ sudo chmod 644 config.inc.php

Setup LDAP authentification if you need it.


Contact Aurélien Bénel if you need some help.

Powered by MediaWiki