Main configuration¶
The main framework configuration file is locate in $prefix/etc/oph_configuration. This file has to be changed according to the MySQL server used for the OphidiaDB and the oph_dimension database. Parameters WEB_SERVER and WEB_SERVER_LOCATION must be equal to the same parameters set for oph-server in server.conf.
An example of configuration file is given below:
OPHDB_NAME=ophidiadb
OPHDB_HOST=mysql.hostname
OPHDB_PORT=3306
OPHDB_LOGIN=root
OPHDB_PWD=abcd
DIMDB_NAME=oph_dimensions
DIMDB_HOST=mysql.hostname
DIMDB_PORT=3306
DIMDB_LOGIN=root
DIMDB_PWD=abcd
WEB_SERVER=http://server.hostname/site ← Use *protocol://hostname/subfolders*
WEB_SERVER_LOCATION=/var/www/html/site
MEMORY=2048
BASE_SRC_PATH=/data/repository
USER_SPACE=no
B2DROP_WEBDAV=https://b2drop.endpoint/remote.php/webdav/
mysql.hostname is the hostname of MySQL node. You can set it to 127.0.0.1 for an all-in-one instance of Ophidia platform.
server.hostname is the hostname of Ophidia Server node. You can set it to 127.0.0.1 for an all-in-one instance of Ophidia platform.
Description of the parameters:
OPHDB_NAME ← name of DB used as OphidiaDB
OPHDB_HOST ← hostname (or IP address) of MySQL server used for the OphidiaDB
OPHDB_PORT ← port of MySQL server used for the OphidiaDB
OPHDB_LOGIN ← username to access the OphidiaDB on MySQL server
OPHDB_PWD ← password to access the OphidiaDB on MySQL server
DIMDB_NAME ← name of DB used for the dimensions
DIMDB_HOST ← hostname (or IP address) of MySQL server used for the dimensions DB
DIMDB_PORT ← port of MySQL server used for the dimensions DB
DIMDB_LOGIN ← username to access the dimensions DB on MySQL server
DIMDB_PWD ← password to access the dimensions DB on MySQL server
WEB_SERVER ← prefix of the URL used in sessionid and DOI (*protocol://hostname/subfolders*)
WEB_SERVER_LOCATION ← position of web server root on FS
MEMORY ← maximum size (in MB) of memory that can be used to transpose data during import
BASE_SRC_PATH ← the mount point (or folder) containing the local files that users are allowed to import
USER_SPACE ← a flag used for multi-user features (enabled with "yes")
B2DROP_WEBDAV ← Webdav URL (with https) to a B2DROP endpoint
A folder sessions must be created manually in WEB_SERVER_LOCATION assigning it the appropriate permission in order to enable the framework to write into it.
BASE_SRC_PATH specifies the base path for importing into Ophidia (provided that access permissions are granted). Files can be also stored in its subfolders. Files in other folders cannot be imported. It represents the root folder of the file system that can be browsed by means of the operator OPH_FS.
Additional information about multi-user features (USER_SPACE parameter) are provided in server configuration.
The SOAP configuration file for the framework-server interaction is located in $prefix/etc/oph_soap_configuration. This file has to be changed according to gSOAP configuration: port number and IP address as well as DNS name of Ophidia Server node, username, password, request/response timeout, etc.
SOAP_HOST=server.hostname
SOAP_PORT=11732
SOAP_USERNAME=framework
SOAP_PASSWORD=abcd
SOAP_TIMEOUT=60
SOAP_RECV_TIMEOUT=3600
server.hostname is the hostname of Ophidia Server node. You can set it to 127.0.0.1 for an all-in-one instance of Ophidia platform.
Description of the parameters:
SOAP_HOST ← IP address/DNS name of the host where oph-server is running
SOAP_PORT ← port number of oph-server
SOAP_USERNAME ← username used by framework to send the notifications
SOAP_PASSWORD ← password used to access oph-server
SOAP_TIMEOUT ← request timeout
SOAP_RECV_TIMEOUT ← receive timeout
The parameter SOAP_PORT must be equal to parameter PORT of oph-server configuration set in file server.conf.
The parameter SOAP_USERNAME must be equal to parameter NOTIFIER of oph-server configuration set in file server.conf.
The credentials [SOAP_USERNAME, SOAP_PASSWORD] must be registered in authorization data of oph-server stored in $prefix/authz/users.dat.