-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
haarli edited this page Apr 19, 2024
·
37 revisions
- Installed Java 17 or newer, e.g. Temurin OpenJDK or Oracle OpenJDK
- Installed Apache Tomcat 9
- Installed Elasticsearch 8.13
- Current release of imeji.war.
- Current imeji.properties file
- Optional, but recommended for thumbnail generation: ImageMagick 6
-
Rename
imeji-x.x.x.wartoimeji.warand put it into Tomcat'swebappsdirectory -
Put
imeji.propertiesinto Tomcat'sconfdirectory -
Edit
imeji.properties:- imeji.instance.url Set to the URL on which imeji will run
- elastic.url Set to the URL on which your elasticsearch REST interface runs (e.g. http://localhost:9200 for default installations)
- imeji.tdb.path Set to a writeable directory where imeji can store its database (Apache Jena)
- imeji.storage.path Set to a writeable directory where imeji can store the binary files
- imeji.imagemagick.installpath If ImageMagick 6 is installed (recommended), set to the directory where the ImageMagick binaries (convert etc.) are installed
- imeji.imagemagick.enable If ImageMagick 6 is installed (recommended), set to true
-
Add a file
vocabulary.propertiesto 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=
- Startup Elasticsearch and wait until it is completely available (e.g. by checking http://localhost:9200)
- 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
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- Access imeji in browser, e.g. via http://localhost:8080/imeji for a local installation
- Install/update new Elasticsearch version
- Replace imeji.war file with new one
- Reindex required: After successful startup, login as admin, go to Admin -> Tools -> Reindex
- Install/update new Java, Elasticsearch and Apache Tomcat versions
- Replace imeji.war file with new one
- Add new property 'elastic.url' to imeji.properties
- Reindex required: After successful startup, login as admin, go to Admin -> Tools -> Reindex
Can be found in the Installation Archive
Deprecated ! - Installation via Package Manager is not supported any more
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