INSTALLATION
Compilation of the WWW Server component is performed together with the DICOM component - see
installation instructions for the dcmtk source code. However, it is not possible to "automatically" install
the WWW server component with "make install".
1. ACCESS RIGHTS
A WWW server usually runs under a seperate user ID (e.g. user "www"). You must make sure that
both wlmscpfs and the WWW server are able to read and write to files in the worklist storage
areas. We recommend to have both WWW server and wlmscpfs running under the same user ID.
2. CREATE DIRECTORIES
You must create three directories for the WWW application:
a) a directory under which the CGI scripts can be installed, e.g. ~www/cgi-bin/worklist.
This directory must be recognised by the WWW server as a CGI script directory. Refer to the
WWW server documentation for details.
b) a directory under which the HTML/GIF components can be installed, e.g.
~www/htdocs/worklist. This directory must be recognised by the WWW server as a HTML
data directory. Refer to the WWW server documentation for details.
c) a directory for the storage areas. This can be an arbitrary directory, e.g. /home/www/wlist.
Please remember that both wlmscpfs and the WWW server need read/write access to this
directory and all files and subdirectories (e.g. if WWW server and wlmscpfs work under
different user IDs, check if the umasks are appropriate to ensure read/write access for newly
created files).
3. INSTALL FILES
a) Copy all files from dcmtk/dcmwlm/perl to the CGI script directory you have created (e.g.
~www/cgi-bin/worklist). All files with file name extension ".pl" must have access right
"755" (executable). If your perl interpreter is not installed as /usr/local/bin/perl, you
must edit all .pl files and change the first line to point to the correct path to the perl interpreter
(e.g. change to #!/usr/share/perl).
b) Then copy all executables from dcmtk/dcmwlm/wwwapps to the same directory: preplock,
readoviw, readwlst and writwlst.
c) Finally, copy all files from dcmtk/dcmwlm/images to the HTML/GIF directory you have
created (e.g. ~www/htdocs/worklist).
4. CONFIGURE PERL SCRIPTS
You have to edit the file "prefs.ph" in the CGI directory (e.g. ~www/cgi-bin/worklist), using a text
editor:
a) Define the relative path to the CGI script directory as it is seen from the WWW server when
resolving URLs (e.g. /cgi-bin/worklist instead of ~www/cgi-bin/worklist). Refer to
your WWW server documentation for details of URL resolution. The configuration line will look
like this:
$prefs{'cgi_path'} = '/cgi-bin/worklist';