Skip to content
Conal Tuohy edited this page May 13, 2017 · 14 revisions

Installation:

add site name as alias for localhost

in /etc/hosts: 127.0.0.1 localhost oceania.digital

install necessary packages

apt-get install unzip curl apache2 openjdk-8-jdk-headless tomcat7 sudo tomcat7-admin git ant

edit /etc/default/tomcat7 to set -XmX to 2G

install Fuseki SPARQL store

mkdir -p /etc/fuseki/configuration chown -R tomcat7:tomcat7 /etc/fuseki

create /etc/fuseki/config.ttl with owner tomcat7

download jena tarball, unzip fuseki.war and copy to /var/lib/tomcat7/webapps

install jOAI OAI-PMH harvester

wget http://downloads.sourceforge.net/project/dlsciences/jOAI%20-%20OAI%20Provider_Harvester/v3.1.1.4/joai_v3.1.1.4.zip?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fdlsciences%2Ffiles%2FjOAI%2520-%2520OAI%2520Provider_Harvester%2F&ts=1483257030&use_mirror=internode

unzip joai* mv joai_v3.1.1.4/oai.war /var/lib/tomcat7/webapps/

edit /etc/tomcat7/server.xml to add proxyName and proxyPort attributes to the port 8080 Connector:

<Connector port="8080" protocol="HTTP/1.1"
           connectionTimeout="20000"
           URIEncoding="UTF-8"
           redirectPort="8443"
           proxyName="oceania.digital"
           proxyPort="80" />

install xproc-z web application server

wget --output-document=/var/lib/tomcat7/webapps/xproc-z.war https://github.com/Conal-Tuohy/XProc-Z/releases/download/1.0c/xproc-z.war

install xproc pipelines

mkdir /etc/xproc-z

configure website including proxy to tomcat, CORS

a2enmod proxy_http headers nano /etc/apache2/sites-available/000-default.conf service apache2 restart

TODO