Difference between revisions of "Imeji install"

From MPDLMediaWiki
Jump to navigation Jump to search
m (fixed broken link)
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Imeji_Tech}}
'''Please note:''' Content was moved to http://imeji.org/install/ and http://imeji.org/install/server-setup/
This page describes how to install the imeji software.  




= Operating system =
[[Category:Imeji_Content_moved|Install]]
As a Java software, imeji works on all operating system where Java is installed. Nevertheless, we recommend using http://www.opensuse.org (or SUSE Linux Enterprise Server) which is used for the development and testing of imeji
 
= Install Java=
imeji supports Java 6. Compatibility with Java 7 is not guaranteed:
* [http://www.java.com/de/download/manual_v6.jsp Download Java 6]
 
= Install application server =
imeji supports both JBoss 7.x and Tomcat 7.x:
*[http://tomcat.apache.org/download-70.cgi Download Tomcat] (Recommended)
OR
*[http://www.jboss.org/jbossas/downloads Download JBoss]
 
== Versions before 1.1.0.0 ==
Versions of imeji  before 1.1.0.0 only support JBoss 4.2.x:
* [http://sourceforge.net/projects/jboss/files/JBoss/JBoss-4.2.3.GA/ Download JBoss 4.2.3]
 
= Download imeji =
The latest stable version of imeji is always available at this location:
# [http://rd.mpdl.mpg.de/nexus/content/groups/public/org/imeji/imeji/ Download imeji] : choose the latest version, and click on the war file (imeji-x.x.x.x.war)
# rename the file imeji.war
 
= Install imeji=
# Copy the imeji war file (from [http://colab.mpdl.mpg.de/mediawiki/Imeji_install#Download_imeji here]) in your server:
#* JBoss: JBoss_Home_Path/standalone/deployments
#* Tomcat: Tomcat_home/webapps
# Create, and edit the properties files (as defined here: [[Imeji_properties]])
 
= (Optional) Install Apache Server =
Download and install [http://httpd.apache.org/]
* Recommended configuration:
<pre>
# Add the following lines at the end of your proxypass rules. Change the port if needed.
ProxyPass /imeji http://localhost:8080/imeji
ProxyPassReverse /imeji http://localhost:8080/imeji
ProxyPass / http://localhost:8080/imeji
ProxyPassReverse / http://localhost:8080/imeji
</pre>
* Important: the follwing modules must be loaded:
** proxy_module
** proxy_http_module
 
= (Optional) Install ImageMagick =
imeji uses http://www.imagemagick.org/ (from imeji version 1.3.0.0) to support not only more image formats, but also videos and audio formats. Therefore we strongly recommend to install it:
* Follow the installation instruction according to your operating system
* Set the ImageMagick properties in [[Imeji_properties]]
 
= (Optional) Fledged Data Service =
If you want to use the Fledged Data Service (for the OAI interface) you can download it here:
 
* Put fledgeddata.war file in webapps folder
* Put [[File:Fds.properties | fds.properties]] in conf folder (please adapt).
* Put [[File:Imeji2oai_dc.xslt | imeji2oai.xslt]] in conf folder
 
= (Optional) Digilib =
If you want to use Digilib (from imeji version 1.3.0.0), follow installation here: [[Imeji_digilib]]
 
=Start imeji=
#run
#* JBoss: JBoss_Home_Path/bin/run.xx
#* Tomcat: Tomcat_home/bin/startup.xx
# imeji runs under your_server:port/imeji
# Change admin password: the administrator account is created on first start. The credentials are admin@imeji.org with password admin. '''PLEASE CHANGE THIS IMMEDIATELY!!!'''
Eventually an Apache Server can be installed.
* Note: before a start, it is recommanded to clean the work and temp directories.
 
=Stop imeji=
#run
#* JBoss: ?
#* Tomcat: Tomcat_home/bin/shutdown.xx
# Check with ps aux| grep java whether Tomcat has been really stopped. If not, kill it! (If tomcat is not stopped, you won't be able to start it...)
 
= Install eSciDoc (Optional)=
Download and install [https://www.escidoc.org/JSPWiki/en/DownloadForRelease1.4 escidoc]
=== Note ===
eSciDoc is only optional. It is needed when the eSciDoc is used as the storage (see [[Imeji_storage]]). This is defined in the imeji properties (see [[Imeji_properties]]). The default is the internal storage setting for which you do not need eSciDoc.
 
=Performance tuning=
==Hardware==
*imeji performace are widely influenced (more than any other hardware component) by the amount of RAM installed. The minimum needed is $GB, but we recommand 16 GB for good scalability (which means, that we recommand usage of 64 bits system).
==Java virtual Machine==
*We recommand the following to set the following parameters:
** with 16GB RAM and more: -Xms4096m -Xmx4096m -XX:MaxPermSize=512m  -Djava.awt.headless=true
** with 8GB RAM : -Xms2048m -Xmx2048m -XX:MaxPermSize=256m  -Djava.awt.headless=true
** with 4GB RAM : -Xms1024m -Xmx1024m -XX:MaxPermSize=256m  -Djava.awt.headless=true
==Page Compression==
* We recommand to enable compression of html pages. This can be done via:
** Tomcat: Edit server.xml with:
<pre>
<Connector URIEncoding="UTF-8" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"
    compression="on" compressableMimeType="text/html,text/xml,text/plain,text/css,application/x-javascript,application/xml,application/javascript,application/json,application/xhtml+xml"/>
</pre>
** Apache wich: http://httpd.apache.org/docs/2.0/mod/mod_deflate.html
==Tomcat ==
* Choose best connector according to your priorities:
'''Requirement  Connectors in preference order'''
<pre>
Stability          BIO        NIO/APR
SSL                APR    NIO        BIO
Low concurrency    BIO    APR        NIO
High concurrency
No Keep-Alive      BIO    APR        NIO
High concurrency
Keep-Alive        APR    NIO        BIO
</pre>
 
If you send a request to tomcat then with all of the connectors you will use tomcat thread to process that request<br>
BIO is Blocking IO Connectors and NIO and APR are Non-Blocking IO Connectors. <br>
BIO means if you use http with keep-alive parameter then you will continue to use that thread in order to maintain keep-alive connection while with Non-Blocking IO Connectors you don't need to use thread to maintain keep-alive requests, so you can make efficient use of threads here <br>
 
=License=
The imeji software is developed by the open source imeji community. The code is distributed under the [http://opensource.org/licenses/CDDL-1.0 Common Development and Distribution License (CDDL)].
 
[[Category:Imeji|Install]]
[[Category:Imeji_Technical_Specification|Install]]

Latest revision as of 12:51, 6 February 2014