annotate doc/src/site/markdown/install-digilib.md @ 1662:4ad90af7a242

updated version numbers.
author Robert Casties <r0bcas7@gmail.com>
date Tue, 21 Nov 2017 17:57:34 +0100
parents 28df291d4e26
children a243eb5cc480
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1273
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
1 # Installing digilib
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
2
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
3 To run digilib you need:
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
4
1658
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
5 * [Java JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html) (7 or higher)
1273
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
6 * a Servlet Container like [Tomcat](http://tomcat.apache.org/) (version 7 or
1658
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
7 later) or [Jetty](http://www.eclipse.org/jetty/) (version 8 or later)
1273
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
8 * the digilib web application as a WAR file or application directory
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
9
1658
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
10 ## Start the Servlet Container
1273
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
11
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
12 Install and run the Servlet Container of your choice:
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
13 [Tomcat](http://tomcat.apache.org/tomcat-7.0-doc/setup.html) or
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
14 [Jetty](http://wiki.eclipse.org/Jetty/Howto/Run_Jetty).
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
15
1658
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
16 When the Servlet Container runs you should be able to access the start page on
1273
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
17 <http://localhost:8080/>
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
18
1658
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
19 ## Deploy via WAR file or web application directory?
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
20
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
21 A web application can be deployed either as a WAR file or a web application directory (aka "exploded web application").
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
22
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
23 The advantage of the WAR file is that it is easy to handle because it is just one file.
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
24
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
25 The disadvantage of the WAR file is that it is not easy to change the [digilib configuration](digilib-config.html)
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
26 file or any of the HTML or Javascript files because they are hidden in the WAR file.
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
27
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
28 It is possible to unpack a WAR file into a web application directory to be able to change its contents (see below).
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
29
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
30 ## Where to get a WAR file or web application directory?
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
31
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
32 The preferred way is to [build your own](build-maven.html) WAR file or web application directory using the digilib sources.
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
33 In this way you can change the configuration files in the source directory and create a new WAR file
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
34 or web application directory any time you need.
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
35 Also you get the chance to always use the latest digilib version by updating the source code.
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
36
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
37 You can also download a digilib WAR file with a default configuration from the
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
38 [SourceForge download page](https://sourceforge.net/projects/digilib/files/)
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
39 or the latest digilib build from the
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
40 [daily build page](https://it-dev.mpiwg-berlin.mpg.de/downloads/digilib/daily-build/).
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
41 The default configuration will only show a set of sample images. If you want to show your own images
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
42 you will need to change the [digilib configuration](digilib-config.html) to point to your image directories.
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
43
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
44
1273
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
45 ## Install a digilib WAR file
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
46
1658
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
47 1. Get a digilib WAR file.
1273
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
48 2. Rename the WAR file to `digilib.war`.
1658
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
49 3. Deploy the WAR file by copying it into the `webapps` directory of your
1273
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
50 Servlet Container.
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
51 4. Restart your Servlet Container (this may not be necessary).
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
52 5. Access your digilib instance at <http://localhost:8080/digilib/digilib.html>.
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
53
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
54 You will now be able to see the sample images provided with the digilib
1658
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
55 installation in the default configuration yor your own images
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
56 if you have updated the [configuration](digilib-config.html).
1273
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
57
1658
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
58 In digilib you can view images by providing the directory and file
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
59 name as the `fn` parameter to `digilib.html`, e.g. if your file is called
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
60 `ruler.jpg` and it is in the base directory you can now access the URL
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
61
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
62 <http://localhost:8080/digilib/digilib.html?fn=ruler>
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
63
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
64 Read more about the layout of image files and directories
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
65 [here](image-directories.html).
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
66
1273
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
67
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
68 ## Install digilib as a web application directory
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
69
1658
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
70 1. Get a digilib web application directory.
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
71 2. Rename the WAR file to `digilib.war`.
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
72 3. Deploy the WAR file by copying it into the `webapps` directory of your
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
73 Servlet Container.
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
74 4. Restart your Servlet Container (this may not be necessary).
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
75 5. Access your digilib instance at <http://localhost:8080/digilib/digilib.html>
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
76
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
77 You will now be able to see the sample images provided with the digilib
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
78 installation in the default configuration yor your own images
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
79 if you have updated the [configuration](digilib-config.html).
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
80
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
81 In digilib you can view images by providing the directory and file
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
82 name as the `fn` parameter to `digilib.html`, e.g. if your file is called
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
83 `ruler.jpg` and it is in the base directory you can now access the URL
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
84
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
85 <http://localhost:8080/digilib/digilib.html?fn=ruler>
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
86
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
87 Read more about the layout of image files and directories
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
88 [here](image-directories.html).
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
89
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
90
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
91 ## Unpack a WAR file into a web application directory
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
92
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
93 You can unpack the WAR file into a directory called `digilib` using
1273
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
94 an unzip tool or the `jar -xf` Java command.
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
95
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
96 Alternatively you can look into the `webapps` directory of your Servlet
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
97 Container (when its not running) to see if it created an unpacked web
1658
28df291d4e26 Updated documentation.
Robert Casties <r0bcas7@gmail.com>
parents: 1279
diff changeset
98 application directory called `digilib`. Then:
1273
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
99
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
100 1. Make sure that your Servlet Container is not running and remove any
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
101 `digilib.war` files from the `webapps` directory.
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
102 2. Copy your `digilib` directory into the `webapps` directory of the
30ec52034355 added some forgotten docs.
robcast
parents:
diff changeset
103 Servlet Container.