annotate docu/installation.html @ 163:7a237ba63a3d

New version with Windows installation from Martin.
author robcast
date Tue, 16 Sep 2003 21:02:48 +0200
parents 28e449fa185c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
37eae12d4148 Initial revision
robcast
parents:
diff changeset
2 <html>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
3 <head>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
4 <title>Installation of alcatraz/digilib</title>
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
5 </head>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
6
37eae12d4148 Initial revision
robcast
parents:
diff changeset
7 <body>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
8 <h1>What you need to install digilib</h1>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
9
37eae12d4148 Initial revision
robcast
parents:
diff changeset
10 <ul>
163
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
11 <li><a href="http://java.sun.com/downloads/index.html" >Java JDK</a> &gt;1.2 (preferred 1.4 and up)</li>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
12
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
13 <li><a href="http://jakarta.apache.org/tomcat/index.html" >Jakarta
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
14 Tomcat</a> version 4 or later (preferred 4.1 and up) from
27
dd49040ae5a5 Update links to developer.berlios.de
robcast
parents: 22
diff changeset
15 <a href="http://jakarta.apache.org<" >http://jakarta.apache.org</a></li>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
16
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
17 <li>The digilib distribution packages (from
27
dd49040ae5a5 Update links to developer.berlios.de
robcast
parents: 22
diff changeset
18 <a href="http://developer.berlios.de" >http://developer.berlios.de</a>)
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
19 <ul>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
20 <li>alcatraz/digilib scripts and servlets package
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
21 <a href="http://download.berlios.de/digilib/alcatraz-core-0.3.zip"><code>alcatraz-core.zip</code></a></li>
163
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
22 <li>digilib configuration files for tomcat 4 package on Linux/Unix
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
23 <a href="http://download.berlios.de/digilib/digilib-tomconf-1.0.zip"><code>digilib-tomconf.zip</code></a> (Not essential)</li>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
24 <li>digilib configuration files for tomcat 4 package on Windows
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
25 <a href="http://download.berlios.de/digilib/digilib-win-conf-1.0.zip"><code>digilib-win-conf.zip</code></a> (Not essential)</li>
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
26 </ul>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
27 </li>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
28 </ul>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
29
37eae12d4148 Initial revision
robcast
parents:
diff changeset
30 <h1>Installation</h1>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
31
163
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
32 <h2>On Linux/Unix</h2>
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
33
37eae12d4148 Initial revision
robcast
parents:
diff changeset
34 <ol>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
35 <li>Make shure the Java JDK is installed (a JRE won't do).</li>
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
36
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
37 <li>Create a base directory for docuserver (the default used here is
37eae12d4148 Initial revision
robcast
parents:
diff changeset
38 <code>/docuserver</code>) and for the web interface
37eae12d4148 Initial revision
robcast
parents:
diff changeset
39 (<code>/docuserver/www</code>).</li>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
40
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
41 <li>Unpack the <code>alcatraz-core</code> package in the web
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
42 interface directory (<code>/docuserver/www</code>). This will create
37eae12d4148 Initial revision
robcast
parents:
diff changeset
43 the digilib directory <code>digitallibrary</code>.</li>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
44
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
45 <li>Unpack Jakarta Tomcat 4.1.24 in <code>/docuserver</code> This should
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
46 produce a directory <code>/docuserver/jakarta-tomcat-4.1.24</code>. Create a
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
47 link <code>/docuserver/tomcat</code> to the new directory.</li>
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
48
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
49 <li>(optional) Unpack the configuration files package
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
50 <code>digilib-tomconf</code> in the tomcat directory.</li>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
51
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
52 <li>Create a link from the digilib directory into the Tomcat webapps
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
53 directory <code>/docuserver/tomcat/webapps</code> (type <code>ln -s
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
54 /docuserver/www/digitallibrary /docuserver/tomcat/webapps</code>) This is
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
55 the default installation running on port 8080 as
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
56 <code>http://myserver:8080/digitallibrary/</code>.</li>
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
57
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
58 <li>Adjust the path to the JDK and its options in
37eae12d4148 Initial revision
robcast
parents:
diff changeset
59 <code>catalina.sh</code> (in the directory
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
60 <code>/docuserver/tomcat/bin</code>, see below for details)</li>
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
61
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
62 <li>(optional) For SuSE Linux you can use the startup skript
37eae12d4148 Initial revision
robcast
parents:
diff changeset
63 <code>tomcat/bin/rctomcat</code>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
64 to start and stop the tomcat server. Copy the script into
37eae12d4148 Initial revision
robcast
parents:
diff changeset
65 <code>/etc/init.d</code> as <code>tomcat</code> and set runlevel
37eae12d4148 Initial revision
robcast
parents:
diff changeset
66 links accordingly.</li>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
67
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
68 <li>(optional) Set the tomcat directory and all files to be owned by
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
69 the user <code>wwwrun</code> (or whatever your webserver runs) and
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
70 use this account to start the tomcat server.</li>
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
71
112
28e449fa185c small updates
robcast
parents: 108
diff changeset
72 <li>(optional) To use Mozilla-XUL functionality Alcatraz users have
28e449fa185c small updates
robcast
parents: 108
diff changeset
73 to open the page
28e449fa185c small updates
robcast
parents: 108
diff changeset
74 <code>http://myserver:8080/docuserver/digitallibrary/xul/install.html</code>
28e449fa185c small updates
robcast
parents: 108
diff changeset
75 in a Mozilla compatible browser. There the users can find
28e449fa185c small updates
robcast
parents: 108
diff changeset
76 instructions to install XUL-Components into their browser. </li>
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
77
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
78 </ol>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
79
37eae12d4148 Initial revision
robcast
parents:
diff changeset
80
37eae12d4148 Initial revision
robcast
parents:
diff changeset
81 <!--
37eae12d4148 Initial revision
robcast
parents:
diff changeset
82 <h2>Apache connector module</h2>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
83
37eae12d4148 Initial revision
robcast
parents:
diff changeset
84 <p>digilib currently needs to be accessed through the Apache
37eae12d4148 Initial revision
robcast
parents:
diff changeset
85 webserver. There are two possible connectors for Apache and Tomcat4:
37eae12d4148 Initial revision
robcast
parents:
diff changeset
86 <code>mod_webapp</code> and <code>mod_jk</code>. Only
37eae12d4148 Initial revision
robcast
parents:
diff changeset
87 <code>mod_webapp</code> has been tested so far.</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
88
37eae12d4148 Initial revision
robcast
parents:
diff changeset
89 <ol>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
90 <li>Get the sources for <code>mod_webapp</code></li>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
91 </ol>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
92 -->
37eae12d4148 Initial revision
robcast
parents:
diff changeset
93
163
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
94 <h2>On Windows (quick install)</h2>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
95
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
96 <p>Set the following Environment Variables:<br />
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
97 <code>CATALINA_HOME = C:\jakarta-tomcat-4.1.24</code> (or similar)<br />
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
98 <code>JAVA_HOME = C:\j2sdk</code> (or similar)
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
99 </p>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
100
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
101 <p>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
102 Start Tomcat server: Open a console window (start <code>cmd.exe</code>).<br />
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
103 Type: <code>%CATALINA_HOME%\bin\startup</code>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
104 </p>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
105
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
106 <p>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
107 Try the following URL in your browser:
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
108 <code>http://localhost:8080</code> or
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
109 <code>http://127.0.0.1:8080</code>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
110 </p>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
111
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
112 <p>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
113 You should now be able to see the Tomcat opening screen: <em>If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!</em>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
114 </p>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
115
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
116 <p>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
117 Shut it down again: In the console window type <code>%CATALINA_HOME%\bin\shutdown</code>.
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
118
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
119 <p>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
120 Extract the &quot;Alcatraz&quot; distribution, possibly to <code>C:\docuserver</code>. Modify the following configuration files according to your paths (as in the &quot;On Linux&quot; section):
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
121 </p>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
122
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
123 <p>For tomcat</p>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
124 <ul>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
125 <li><code>C:\jakarta-tomcat-4.1.24\conf\server.xml</code></li>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
126 <li><code>C:\jakarta-tomcat-4.1.24\conf\tomcat-users.xml</code></li>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
127 </ul>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
128
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
129
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
130 <p>For digilib</p>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
131 <ul>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
132 <li><code>C:\docuserver\digitallibrary\WEB-INF\web.xml</code></li>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
133 <li><code>C:\docuserver\digitallibrary\WEB-INF\digilib-config.xml</code></li>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
134 <li><code>C:\docuserver\digitallibrary\WEB-INF\digilib-auth.xml</code></li>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
135 </ul>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
136
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
137 <p>In the <code>alcatraz-win-conf.zip</code> package you can find
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
138 prepared configuration files with the following default values:
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
139
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
140 <ul>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
141 <li>The image file directory is <code>C:\bilder</code>. </li>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
142 <li>The username for viewing image files is <code>digilib</code>.</li>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
143 <li>The password for viewing image files is <code>digilib</code>.</li>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
144 <li>The digilib server runs on Port <code>9090</code>.</li>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
145 </ul>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
146
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
147 <p>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
148 Now you can restart the Tomcat server: <code>http://localhost:9090</code> or
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
149 <code>http://127.0.0.1:9090</code>.</p>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
150
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
151 <p>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
152 Watch the images:
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
153 <code>http://localhost:9090/docuserver/digitallibrary/digilib.jsp?&lv=2</code>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
154 </p>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
155
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
156
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
157 <h1>Configuration</h1>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
158
37eae12d4148 Initial revision
robcast
parents:
diff changeset
159 <h2>Tomcat</h2>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
160
163
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
161 <h3>catalina.sh / catalina.bat</h3>
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
162
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
163 <p>The file <code>catalina.sh</code> (in <code>/docuserver/tomcat/bin</code>
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
164 can be modified to provide the path to the JDK and runtime options
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
165 for the Java VM. Somewhere at the beginning of the file you can put two lines
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
166 like this:</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
167
37eae12d4148 Initial revision
robcast
parents:
diff changeset
168 <pre>
112
28e449fa185c small updates
robcast
parents: 108
diff changeset
169 export JAVA_HOME=/usr/local/lib/IBMJava2-14
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
170 export CATALINA_OPTS="-mx512m"
37eae12d4148 Initial revision
robcast
parents:
diff changeset
171 </pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
172
163
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
173 <p>or, on Windows<p>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
174
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
175 <pre>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
176 set CATALINA_HOME=C:\jakarta-tomcat-4.1.24
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
177 set JAVA_HOME=C:\j2sdk
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
178 </pre>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
179
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
180 <p>Adjust the <code>JAVA_HOME</code> path to point to your Java JDK
37eae12d4148 Initial revision
robcast
parents:
diff changeset
181 installation directory. You can adjust the memory used by the Java VM
112
28e449fa185c small updates
robcast
parents: 108
diff changeset
182 with the <code>-mx</code> option.</p>
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
183
37eae12d4148 Initial revision
robcast
parents:
diff changeset
184 <p>You can delete those two lines if you set these variables in your
37eae12d4148 Initial revision
robcast
parents:
diff changeset
185 shell before starting tomcat in that same shell. These lines are
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
186 needed if you want to use the startup script mentioned above under
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
187 linux .</p>
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
188
37eae12d4148 Initial revision
robcast
parents:
diff changeset
189
37eae12d4148 Initial revision
robcast
parents:
diff changeset
190 <h3>tomcat-users.xml</h3>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
191
37eae12d4148 Initial revision
robcast
parents:
diff changeset
192 <p>All passwords and usernames have to be set up in the file
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
193 <code>tomcat-users.xml</code> in <code>/docuserver/tomcat/conf</code> if you
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
194 want to use authentication in digilib. The file looks like this:</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
195
37eae12d4148 Initial revision
robcast
parents:
diff changeset
196 <pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
197 &lt;tomcat-users&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
198 &lt;user name="tomcat" password="tomcat" roles="tomcat" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
199 &lt;user name="role1" password="tomcat" roles="role1" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
200 &lt;user name="both" password="tomcat" roles="tomcat,role1" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
201 &lt;/tomcat-users&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
202 </pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
203
37eae12d4148 Initial revision
robcast
parents:
diff changeset
204 <p>A user is identified by a <code>name</code> and
37eae12d4148 Initial revision
robcast
parents:
diff changeset
205 <code>password</code>. These two elements have to be entered in a
37eae12d4148 Initial revision
robcast
parents:
diff changeset
206 authentication form presented by the browser when accessing a
37eae12d4148 Initial revision
robcast
parents:
diff changeset
207 restricted resource. A user can have one or more
37eae12d4148 Initial revision
robcast
parents:
diff changeset
208 <code>roles</code>. These roles will be used by digilib to decide if
37eae12d4148 Initial revision
robcast
parents:
diff changeset
209 an authenticated user is allowed to access a document (see
37eae12d4148 Initial revision
robcast
parents:
diff changeset
210 <code>digilib-auth.xml</code> below).</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
211
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
212 <p>If you want to use the webinterface to configure Tomcat, you have to
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
213 add administrational account with the roles <code>admin</code> and
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
214 <code>manager</code>.</p>
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
215
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
216 <p>tomcat has to be restarted before changes to
37eae12d4148 Initial revision
robcast
parents:
diff changeset
217 <code>tomcat-users.xml</code> have effect!</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
218
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
219
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
220 <h2>Digilib</h2>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
221
37eae12d4148 Initial revision
robcast
parents:
diff changeset
222 <h3>web.xml</h3>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
223
37eae12d4148 Initial revision
robcast
parents:
diff changeset
224 <p>The deployment of the digilib servlets and JSPs is defined in the
37eae12d4148 Initial revision
robcast
parents:
diff changeset
225 file <code>web.xml</code> in the <code>WEB-INF</code> subdirectory of
37eae12d4148 Initial revision
robcast
parents:
diff changeset
226 the digilib directory
37eae12d4148 Initial revision
robcast
parents:
diff changeset
227 (<code>/docuserver/www/digitallibrary/WEB-INF</code>).</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
228
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
229 <p>The only parameter you will have to adjust is the position of the
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
230 digilib configuration file. The parameter occurs twice in the file and
37eae12d4148 Initial revision
robcast
parents:
diff changeset
231 looks like this:</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
232
37eae12d4148 Initial revision
robcast
parents:
diff changeset
233 <pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
234 &lt;!-- parameters to the servlet --&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
235 &lt;init-param&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
236 &lt;param-name&gt;config-file&lt;/param-name&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
237 &lt;param-value&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
238 <b>/docuserver/www/digitallibrary/WEB-INF/digilib-config.xml</b>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
239 &lt;/param-value&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
240 &lt;/init-param&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
241 </pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
242
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
243 <p>Change the path to point where you installed the configuration files.</p>
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
244
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
245 <p>Make shure to change the parameter in both places in the config
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
246 file! It is needed both for the servlet and the JSP pages!</p>
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
247
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
248
37eae12d4148 Initial revision
robcast
parents:
diff changeset
249 <h3>digilib-config.xml</h3>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
250
37eae12d4148 Initial revision
robcast
parents:
diff changeset
251 <p>The main configuration for digilib is
37eae12d4148 Initial revision
robcast
parents:
diff changeset
252 <code>digilib-config.xml</code>. It's position is defined by the
37eae12d4148 Initial revision
robcast
parents:
diff changeset
253 <code>config-file</code> init-parameter to the servlets (see
37eae12d4148 Initial revision
robcast
parents:
diff changeset
254 above).</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
255
37eae12d4148 Initial revision
robcast
parents:
diff changeset
256 <p>In the configuration file you can set several paths and
37eae12d4148 Initial revision
robcast
parents:
diff changeset
257 options. The file looks like this:</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
258
37eae12d4148 Initial revision
robcast
parents:
diff changeset
259 <pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
260 &lt;!-- Digilib servlet config file --&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
261
37eae12d4148 Initial revision
robcast
parents:
diff changeset
262 &lt;digilib-config&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
263 &lt;parameter name="debug-level" value="0" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
264
37eae12d4148 Initial revision
robcast
parents:
diff changeset
265 &lt;!-- Image to be sent to indicate general failure. --&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
266 &lt;parameter name="error-image" value=<b>"/docuserver/images/icons/broken.gif"</b> /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
267
37eae12d4148 Initial revision
robcast
parents:
diff changeset
268 &lt;!-- Image to be sent to indicate authorization failure. --&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
269 &lt;parameter name="denied-image" value=<b>"/docuserver/images/icons/alert.red.gif"</b> /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
270
37eae12d4148 Initial revision
robcast
parents:
diff changeset
271 &lt;!-- List of directories where images are searched.
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
272 The authoritative directory with the high-resolution images
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
273 is first in list. --&gt;
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
274 &lt;parameter name="basedir-list" value=<b>"/docuserver/images:/docuserver/scaled/small"</b> /&gt;
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
275
112
28e449fa185c small updates
robcast
parents: 108
diff changeset
276 &lt;!-- Java class to use for image operations --&gt;
28e449fa185c small updates
robcast
parents: 108
diff changeset
277 &lt;parameter name="docuimage-class" value="digilib.image.JAIDocuImage" /&gt;
28e449fa185c small updates
robcast
parents: 108
diff changeset
278
28e449fa185c small updates
robcast
parents: 108
diff changeset
279 &lt;!-- is sending whole image files with mo=file allowed? --&gt;
28e449fa185c small updates
robcast
parents: 108
diff changeset
280 &lt;parameter name="sendfile-allowed" value="true" /&gt;
28e449fa185c small updates
robcast
parents: 108
diff changeset
281
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
282 &lt;!-- Restrict access to authorized users.
37eae12d4148 Initial revision
robcast
parents:
diff changeset
283 User authentication and roles are provided by the servlet container
37eae12d4148 Initial revision
robcast
parents:
diff changeset
284 (see tomcat-users.xml).
37eae12d4148 Initial revision
robcast
parents:
diff changeset
285 Authorization for resources (directories) is evaluated by the servlet
37eae12d4148 Initial revision
robcast
parents:
diff changeset
286 (see auth-file). --&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
287 &lt;parameter name="use-authorization" value="true" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
288
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
289 &lt;!-- Location of XML file with authorization requirements. --&gt;
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
290 &lt;parameter name="auth-file" value=<b>"/docuserver/www/digitallibrary/WEB-INF/digilib-auth.xml"</b> /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
291
37eae12d4148 Initial revision
robcast
parents:
diff changeset
292 &lt;!-- Part of URL to indicate authenticated access to Tomcat. --&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
293 &lt;parameter name="auth-url-path" value="authenticated/" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
294 &lt;/digilib-config&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
295 </pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
296
37eae12d4148 Initial revision
robcast
parents:
diff changeset
297 <p>You have to adjust the <code>basedir-list</code> parameter to the
37eae12d4148 Initial revision
robcast
parents:
diff changeset
298 directories where your images are installed. You need only one
37eae12d4148 Initial revision
robcast
parents:
diff changeset
299 directory if you do not have prescaled low resolution versions of your
108
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
300 images. The directory with the high-resolution versions must be the
ffc7d9138397 Updated for alcatraz/digilib 1.3 and up.
robcast
parents: 27
diff changeset
301 first entry in the list.</p>
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
302
37eae12d4148 Initial revision
robcast
parents:
diff changeset
303 <p>You can supply your own images for the &quot;error&quot; and
37eae12d4148 Initial revision
robcast
parents:
diff changeset
304 &quot;access denied&quot; messages by the servlet. Standard images
37eae12d4148 Initial revision
robcast
parents:
diff changeset
305 will be used if these parameters are undefined.</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
306
37eae12d4148 Initial revision
robcast
parents:
diff changeset
307 <p>The <code>auth-file</code> parameter has to point to the
37eae12d4148 Initial revision
robcast
parents:
diff changeset
308 authorization configuration file (see below).</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
309
112
28e449fa185c small updates
robcast
parents: 108
diff changeset
310 <p>You can specify the Java toolkit implementation with the
28e449fa185c small updates
robcast
parents: 108
diff changeset
311 <code>docuimage-class</code> parameter. The
28e449fa185c small updates
robcast
parents: 108
diff changeset
312 <code>ImageLoaderDocuImage</code> might give best performance but
28e449fa185c small updates
robcast
parents: 108
diff changeset
313 works only with JDK 1.4 and up. <code>JAIDocuImage</code> works with
28e449fa185c small updates
robcast
parents: 108
diff changeset
314 JDK 1.3 and up.</p>
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
315
37eae12d4148 Initial revision
robcast
parents:
diff changeset
316 <h3>digilib-auth.xml</h3>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
317
37eae12d4148 Initial revision
robcast
parents:
diff changeset
318 <p>The digilib access authorization is defined in the file defined by
37eae12d4148 Initial revision
robcast
parents:
diff changeset
319 the <code>auth-file</code> parameter (usually
37eae12d4148 Initial revision
robcast
parents:
diff changeset
320 <code>digilib-auth.xml</code> in <code>WEB-INF</code>). </p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
321
37eae12d4148 Initial revision
robcast
parents:
diff changeset
322 <p>The file has two parts <code>diglib-paths</code> and
37eae12d4148 Initial revision
robcast
parents:
diff changeset
323 <code>diglib-addresses</code>. It looks like this:</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
324
37eae12d4148 Initial revision
robcast
parents:
diff changeset
325 <pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
326 &lt;auth-config&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
327
37eae12d4148 Initial revision
robcast
parents:
diff changeset
328 &lt;digilib-paths&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
329 &lt;!--
37eae12d4148 Initial revision
robcast
parents:
diff changeset
330 A user must supply one of the roles under "role"
37eae12d4148 Initial revision
robcast
parents:
diff changeset
331 to access the directory "name".
37eae12d4148 Initial revision
robcast
parents:
diff changeset
332 Roles under "role" must be separated by comma only (no spaces).
37eae12d4148 Initial revision
robcast
parents:
diff changeset
333 --&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
334 &lt;path name="histast/eastwood-collection" role="eastwood-coll" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
335 &lt;path name="ptolemaios_geo" role="ptolemaios-geo" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
336 &lt;/digilib-paths&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
337
37eae12d4148 Initial revision
robcast
parents:
diff changeset
338 &lt;digilib-addresses&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
339 &lt;!--
37eae12d4148 Initial revision
robcast
parents:
diff changeset
340 A computer with an ip address that matches "ip"
37eae12d4148 Initial revision
robcast
parents:
diff changeset
341 is automatically granted all roles under "role".
37eae12d4148 Initial revision
robcast
parents:
diff changeset
342 The ip address is matched from the left (in full quads).
37eae12d4148 Initial revision
robcast
parents:
diff changeset
343 Roles under "role" must be separated by comma only (no spaces).
37eae12d4148 Initial revision
robcast
parents:
diff changeset
344 --&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
345 &lt;address ip="127" role="local" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
346 &lt;address ip="130.92.68" role="eastwood-coll,ptolemaios-geo" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
347 &lt;address ip="130.92.151" role="ALL" /&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
348 &lt;/digilib-addresses&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
349
37eae12d4148 Initial revision
robcast
parents:
diff changeset
350 &lt;/auth-config&gt;
37eae12d4148 Initial revision
robcast
parents:
diff changeset
351 </pre>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
352
37eae12d4148 Initial revision
robcast
parents:
diff changeset
353 <p><code>diglib-paths</code> defines restricted directories and
37eae12d4148 Initial revision
robcast
parents:
diff changeset
354 the roles needed for access. The roles are defined with the users in
37eae12d4148 Initial revision
robcast
parents:
diff changeset
355 <code>tomcat-users.xml</code> (see above). All subdirectories of the
37eae12d4148 Initial revision
robcast
parents:
diff changeset
356 given directories have the same restrictions. All directories not
37eae12d4148 Initial revision
robcast
parents:
diff changeset
357 listed here (and not subdirectories of listed directories) are freely
37eae12d4148 Initial revision
robcast
parents:
diff changeset
358 accessible.</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
359
37eae12d4148 Initial revision
robcast
parents:
diff changeset
360 <p><code>diglib-addresses</code> defines hosts or networks of
37eae12d4148 Initial revision
robcast
parents:
diff changeset
361 computers that are automatically authenticated without username and
37eae12d4148 Initial revision
robcast
parents:
diff changeset
362 password. Hosts can be assigned roles. The special keyword <code>ALL</code>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
363 authorizes for everything. If the role assigned to the computer is not
37eae12d4148 Initial revision
robcast
parents:
diff changeset
364 sufficient to access a resource the user will be asked for username
37eae12d4148 Initial revision
robcast
parents:
diff changeset
365 and password.</p>
37eae12d4148 Initial revision
robcast
parents:
diff changeset
366
37eae12d4148 Initial revision
robcast
parents:
diff changeset
367
37eae12d4148 Initial revision
robcast
parents:
diff changeset
368
37eae12d4148 Initial revision
robcast
parents:
diff changeset
369 <hr>
163
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
370 <address>robert.casties@philo.unibe.ch</address>
7a237ba63a3d New version with Windows installation from Martin.
robcast
parents: 112
diff changeset
371 <!-- hhmts start -->Last modified: Tue Sep 16 20:37:12 CEST 2003 <!-- hhmts end -->
22
37eae12d4148 Initial revision
robcast
parents:
diff changeset
372 </body> </html>