Skip to content

Installing and configuring

Alessandro Gubitosi edited this page May 12, 2015 · 21 revisions

In order to install this interface you need before to install MongoDB, the Ontology Wrapper and all the php5 packages listed below:

  • Required dependancies
  • Service definitions repository
    Clone the repo in your root folder, then edit the site.js file and insert the full path definitions_dir section (default value is /Service/Library/definitions)
  • PHP5+
    • php5-curl
    • php5-json
    • php5-mongo

If you want to manage your own database, you need also other packages listed below:

Installation step by step

1. Clone the repo in your favourite folder.

git clone https://github.com/bioversity/PGRDG.git .

2. Create the RSA keys for encrypt client and web interface communications

Make sure to have right root permissions with these commands.

$ cd common/include/conf/.rsa_keys
$ openssl genrsa -out rsa_2048_priv.pem 2048
$ openssl rsa -pubout -in rsa_2048_priv.pem -out rsa_2048_pub.pem

3. Associate the interface to the OntologyWrapper

In order to let the interface working, you must download at least the variables definitions.
Such definitions are synchronized with the OntologyWrapper queries and responses, in other word the interface must speak the OntolologyWrapper language.
In this way, the PGRDG interface and the OntologyWrapper can be placed in different machines, so you could use the definitions package as Proxy between them.

Open the common/include/conf/interface/site.js configuration file, and change the value of url key and of definitions_dir key.
The url key expects an "http" host value and the definitions_dir key expects a local path value.
Consider the sshfs remote mounting if you want to use a remote Proxy definitions files.

Clone this wiki locally