Installation

haarli edited this page Jun 25, 2018 · 16 revisions

Manual Installation / Installation on other platforms

Requirements

Configuration

  • Rename imeji-x.x.x.war to imeji.war and put it into Tomcat's webapp directory

  • Put imeji.properties into Tomcat's conf directory

  • Edit imeji.properties:

    • imeji.instance.url Set to the URL on which imeji will run
    • elastic.cluster.name must be set to the same value as your cluster.name property in elasticsearch.yml configuration
    • elastic.cluster.home Set to a writeable directory where imeji will store its search index
    • elastic.analyser Set to ducet_sort when ICU plugin is installed
    • imeji.tdb.path Set to a writeable directory where imeji can store its database
    • imeji.storage.path Set to a writeable directory where imeji can store the binary files
  • Add a file vocabulary.properties to the Tomcat's conf directory. It can be empty or contain links to interfaces of external vocabulary APIs, e.g. MPDL's CoNE service:

google_geo_api=https://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=
cone_CreativeCommons_licenses=http://api.creativecommons.org/rest/1.5/simple/chooser?locale=
cone_authors=http://pubman.mpdl.mpg.de/cone/persons/query?format=json&n=10&m=full&q=
cone_journals=http://pubman.mpdl.mpg.de/cone/journals/query?format=json&n=10&m=full&q=
cone_Languages_(iso639-3)=http://pubman.mpdl.mpg.de/cone/iso639-3/query?format=json&n=10&m=full&q=
cone_IANA_Mimetypes=http://pubman.mpdl.mpg.de/cone/mimetypes/query?format=json&n=10&m=full&q=
cone_DDC_Subjects=http://pubman.mpdl.mpg.de/cone/mpipks/query?format=json&n=10&m=full&q=

Running imeji

  • Startup Elasticsearch
  • Startup Tomcat
  • During the first startup, an admin user will be automatically created. The credentials can be found in the imeji.log file in Tomcat's log directory
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    
    CREATING NEW SYSADMIN
    Use this user to recover your system
    
    EMAIL: ***********@imeji.org
    PASSWORD: *****
    
    Created admin user successfully!
    
    PLEASE CHANGE USER AND PASSWORD IMMEDIATELY
    
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Installation for Debian Server

Supported Debian version: 8 (Jessie)

Install Elasticsearch

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" >> /etc/apt/sources.list.d/elastic-2.x.list

apt-get update
apt-get install elasticsearch=2.3.2

Add MPDL repository

wget -qO - http://repository.mpdl.mpg.de/MPDL.gpg.key | apt-key add -
echo "deb http://repository.mpdl.mpg.de/ Jessie main" >> /etc/apt/sources.list.d/mpdl-repo.list

Install imeji

apt-get update
apt-get install imeji

Note: imeji will check if Java 1.8 from Oracle is installed on the server. If not, you will get "No valid Java version found: Please install Oracle JRE 1.8". Just follow the instructions and rerun apt-get install imeji

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.