Installing DLXS

From DLXS Documentation

(Difference between revisions)
Jump to: navigation, search
m (Installing Other Binaries)
Line 50: Line 50:
===Installing Other Binaries===
===Installing Other Binaries===
-
<p>There are several other binaries that you may need.</p>
+
<p>There are several other binaries that you may need:</p>
 +
 
* <b>c42pdf</b> (required for TextClass pageviewer)
* <b>c42pdf</b> (required for TextClass pageviewer)
* <b>tif2web</b> (required for TextClass pageviewer)
* <b>tif2web</b> (required for TextClass pageviewer)
Line 65: Line 66:
<p>Install these on your system as required for the Classes you plan to install (note the list above for which binaries are required for which classes) and include them in $PATH. Adding them to $PATH is not required but if you add them, the installer will be able to offer you their actual locations when it prompts.</p>
<p>Install these on your system as required for the Classes you plan to install (note the list above for which binaries are required for which classes) and include them in $PATH. Adding them to $PATH is not required but if you add them, the installer will be able to offer you their actual locations when it prompts.</p>
-
==Required Perl modules==
+
===Required Perl modules===
<p>We recommend you use the version of <b>Perl</b> mentioned in our [[Systems Requirements]] page.</p>
<p>We recommend you use the version of <b>Perl</b> mentioned in our [[Systems Requirements]] page.</p>
Line 82: Line 83:
mysql</tt> (you will be prompted for the MySQL system password).
mysql</tt> (you will be prompted for the MySQL system password).
# Create the DLXS database with the command <tt>create database
# Create the DLXS database with the command <tt>create database
-
dlxs;</tt>. Note that you should use the database name you chose when prompted for the name of the database during DLXS middleware installation rather than simply <tt>dlxs</tt>.  We suggest you should choose a name that reflects the version number of the database delivered with the middleware release or perhaps the release number of the middleware.</li>
+
dlxs;</tt>. Note that you should use the database name you chose when prompted for the name of the database during DLXS middleware installation rather than simply <tt>dlxs</tt>.  We suggest you should choose a name that reflects the version number of the database delivered with the middleware release or perhaps the release number of the middleware.
-
          <li>Create the <tt>dlxsadm</tt> (administrative) account and grant full
+
# Create the <tt>dlxsadm</tt> (administrative) account and grant full
-
      privileges to it with the command <tt>grant all privileges on
+
privileges to it with the command <tt>grant all privileges on
dlxs.* to dlxsadm identified by '<i>password</i>';</tt>, where
dlxs.* to dlxsadm identified by '<i>password</i>';</tt>, where
-
      <i>password</i> is the password to be used for DLXS database
+
<i>password</i> is the password to be used for DLXS database
-
      administration.</li>
+
administration.
-
 
+
# Grant FILE privilege to the <tt>dlxsadm</tt> account with the
-
          <li>Grant FILE privilege to the <tt>dlxsadm</tt> account with the
+
command <tt>grant file on *.* to dlxsadm;</tt>.
-
      command <tt>grant file on *.* to dlxsadm;</tt>.</li>
+
# Create the <tt>dlxs</tt> account and grant basic privileges to it
-
          <li>Create the <tt>dlxs</tt> account and grant basic privileges to it
+
with the command <tt>grant
-
      with the command <tt>grant
+
select,insert,update,delete,references on dlxs.* to dlxs identified by
select,insert,update,delete,references on dlxs.* to dlxs identified by
'<i>password</i>';</tt>, where <i>password</i> is the password to be
'<i>password</i>';</tt>, where <i>password</i> is the password to be
-
      used for general DLXS database usage (such as from within the
+
used for general DLXS database usage (such as from within the
-
      DLXS middleware).</li>
+
DLXS middleware).
 +
# Activate the changes with the command <tt>flush privileges;</tt>.
 +
# Exit the SQL monitor with the command <tt>quit</tt>.
-
          <li>Activate the changes with the command <tt>flush privileges;</tt>.</li>
+
           
-
          <li>Exit the SQL monitor with the command <tt>quit</tt>.</li>
+
===Decide where to install DLXS Middleware===
-
        </ol>
+
<p>You may want to give some consideration to how you will manage the installation of a subsequent DLXS release.  The main consideration is where you want a later release to reside in your file system, i.e. what its DLXSROOT should be.  A detailed discussion of installing multiple releases can be found in <a href="../intro/multiplereleases.html">Multiple DLXS Releases</a></p>
-
     
+
-
     
+
-
     
+
-
        <h2>Decide where to install DLXS Middleware</h2>
+
-
        <p>You may want to give some consideration to how you will manage the installation of a subsequent DLXS release.  The main consideration is where you want a later release to reside in your file system, i.e. what its DLXSROOT should be.  A detailed discussion of installing multiple releases can be found in <a href="../intro/multiplereleases.html">Multiple DLXS Releases</a></p>
+
-
        <p>The Installer will ask for a path to a directory that initially should not yet exist,  
+
<p>The Installer will ask for a path to a directory that initially should not yet exist,  
-
          e.g. <i>/usr/local/dlxs</i>. The installer will create <i>dlxs</i>  under  
+
e.g. <i>/usr/local/dlxs</i>. The installer will create <i>dlxs</i>  under  
-
          <i>/usr/local</i> and populate it. This path will be referred to as <b>$DLXSROOT</b>
+
<i>/usr/local</i> and populate it. This path will be referred to as <b>$DLXSROOT</b>
-
          and is accessed by the middleware as an environment variable. You should set
+
and is accessed by the middleware as an environment variable. You should set
-
          the <a href="../intro/dirstruct.html#dlxsrootenv">DLXSROOT environment variable</a>:</p>
+
the <a href="../intro/dirstruct.html#dlxsrootenv">DLXSROOT environment variable</a>:</p>
-
        <ul><li> in your unix shell (setting DLXSROOT in the shell is necessary when running  some DLXS command line scripts)</li>
+
* in your unix shell (setting DLXSROOT in the shell is necessary when running  some DLXS command line scripts)
-
          <li>in the Apache web server (<a href="#apacheconfig">web server configuration</a>  info below). </li>
+
* in the Apache web server (<a href="#apacheconfig">web server configuration</a>  info below).
-
        </ul>
+
 
-
        <p>We recommend you install as a normal user with a <b>umask</b> of 002, which  creates files that are group-writable.</p>
+
<p>We recommend you install as a normal user with a <b>umask</b> of 002, which  creates files that are group-writable.</p>
        
        
-
   
+
==Installation Script: Outline==
-
    <h1><a name="script"></a>Installation Script: Outline</h1>
+
-
      <p>A general outline of the interactive installation script follows. This installation  script will first confirm the location of various resources, install the middleware  and some sample data, and then configure the middleware.</p>
+
-
      <ol><li>create needed subdirectories under $DLXSROOT</li>
+
-
        <li>check dependencies
+
-
          <ol>   
+
-
            <li>Perl</li>
+
-
            <li>installation locations of required and optional binaries</li>
+
-
          </ol>
+
<p>A general outline of the interactive installation script follows. This installation  script will first confirm the location of various resources, install the middleware and some sample data, and then configure the middleware.</p>
-
        </li>
+
-
        <li>install middleware</li>
+
-
        <li>install sample HTML and HTML template files</li>
+
-
        <li>install sample data</li>
+
-
        <li>change variables in configuration files </li>
+
-
        <li>replace Perl "hash bang" strings in certain utility programs with local Perl path. </li>
+
-
        <li>substitute local value of DLXSROOT environment variable in sample data indexes. </li>
+
# create needed subdirectories under $DLXSROOT
-
        <li>run processing scripts on installed sample data. </li>
+
# check dependencies   
-
        <li>generate snippets of text that should be added, by the Sysadmin, to several  non-DLXS configuration files, e.g.,  <ol><li>Apache virtual host directives</li>
+
## Perl
-
            <li>Unix cron job commands to manage session expiration</li>
+
## installation locations of required and optional binaries
-
          </ol></li>
+
# install middleware
-
      </ol>
+
# install sample HTML and HTML template files
 +
# install sample data
 +
# change variables in configuration files
 +
# replace Perl "hash bang" strings in certain utility programs with local Perl path.
 +
# substitute local value of DLXSROOT environment variable in sample data indexes.  
 +
# run processing scripts on installed sample data.  
 +
# generate snippets of text that should be added, by the Sysadmin, to several  non-DLXS configuration files, e.g.,   
 +
## Apache virtual host directives
 +
## Unix cron job commands to manage session expiration
      
      
      
      
-
    <h1><a name="stepbystep"></a>Step-by-Step Installation Instructions</h1>
+
==Step-by-Step Installation Instructions==
       <p>Click here to see <a href="stepbystep.html">step-by-step instructions</a> on running the installation program.</p>
       <p>Click here to see <a href="stepbystep.html">step-by-step instructions</a> on running the installation program.</p>
      
      
-
   
+
==First Time Installation vs. Update==
-
      <h1><a name="firstvsupdate"></a>First Time Installation vs. Update</h1>
+
<p>If this is a first time installation of the DLXS middleware at your site, little
-
      <p>If this is a first time installation of the DLXS middleware at your site, little
+
will be required beyond following the installation script and having your Sysadmin   
-
  will be required beyond following the installation script and having your Sysadmin   
+
do the tasks requested by the installation script outline (for example, insert configuration snippets into the Apache server conf file, create and make "nobody"  
do the tasks requested by the installation script outline (for example, insert configuration snippets into the Apache server conf file, create and make "nobody"  
the owner of the DLXSROOT/web/cache directory, install sample database data, etc.).</p>
the owner of the DLXSROOT/web/cache directory, install sample database data, etc.).</p>
-
      <p>However, if this is not your first time installing DLXS middleware, some or  all of the following additional steps may be necesary:</p>
 
-
      <ul><li>if the middleware requires database format changes, instructions will be given to run the programs required to convert the collection database.  This includes the possibility that you are running a CSV database for DLXS.</li>
+
<p>However, if this is not your first time installing DLXS middleware, some or all of the following additional steps may be necesary:</p>
-
        <li>Although changes to the middleware are made to be backward-compatible, you should check any program files you have changed to see whether they will work  with the new version. A simple UNIX diff can be helpful. A version control system (at DLPS, we use CVS) can help with comparing and merging code. </li>
+
* if the middleware requires database format changes, instructions will be  given to run the programs required to convert the collection databaseThis includes the possibility that you are running a CSV database for DLXS.
-
          </ul>
+
-
      </li>
+
-
      </ul>
+
* Although changes to the middleware are made to be backward-compatible, you  should check any program files you have changed to see whether they will work  with the new version. A simple UNIX diff can be helpful. A version control  system (at DLPS, we use CVS) can help with comparing and merging code.
-
   
+
      
      
      
      
-
    <h1><a name="postinstallsteps"></a>Post-Installation Steps</h1>
+
==Post-Installation Steps==
-
 
+
<p> After these post-installation steps are complete you can test you installation by visiting the URLs below in your browser.  Substitute your actual virtual host for the string "YOURVIRTUALHOST" below.</p>
-
    <p> After these post-installation steps are complete you can test you installation by visiting the URLs below in your browser.  Substitute your actual virtual host for the string "YOURVIRTUALHOST" below.</p>
+
     <table border="1" width="50%" align="CENTER">
     <table border="1" width="50%" align="CENTER">
Line 192: Line 178:
 +
===Change directory and file permissions===
-
     
+
<p>The <tt>$DLXSROOT/web/<b>cache</b></tt> is  created by the Install program with <tt>777</tt> permissions.  Alternatively, you may want to change permissions on this directory to make  it writeable only to the UID of the web server.</p>
-
      <h2><a name="permissions"></a>Change directory and file permissions</h2>   
+
-
        <p>The <tt>$DLXSROOT/web/<b>cache</b></tt> is  created by the Install program with <tt>777</tt> permissions.  Alternatively, you may want to change permissions on this directory to make  it writeable only to the UID of the web server.</p>
+
-
       
+
-
        <h2><a name="apacheconfig"></a>Apache config sample files</h2>   
+
-
        <p>Examine <tt>$DLXSROOT/bin/installer/config-examples/httpd.conf.dlxs</tt>.  You may integrate this segment into your Apache configuration file, adapting  as necessary. It assumes you want to run your DLXS installation on a virtual  host called <i>dlxs.</i></p>
+
-
       
+
===Apache config sample files===
-
        <p>If you would like to run your DLXS installation on a different virtual host, please consult your Apache documentation.</p>
+
 
-
        <p>You <i>may</i> comment out the section in <tt>httpd.conf.dlxs</tt> which implements  
+
<p>Examine <tt>$DLXSROOT/bin/installer/config-examples/httpd.conf.dlxs</tt>.  You may integrate this segment into your Apache configuration file, adapting  as necessary. It assumes you want to run your DLXS installation on a virtual  host called <i>dlxs.</i></p>
 +
 
 +
<p>If you would like to run your DLXS installation on a different virtual host, please consult your Apache documentation.</p>
 +
 
 +
<p>You <i>may</i> comment out the section in <tt>httpd.conf.dlxs</tt> which implements  
           basic authentication for the collmgr. If you disable this be aware that the collmgr  
           basic authentication for the collmgr. If you disable this be aware that the collmgr  
           requires some form of authentication that sets the REMOTE_USER environment variable  
           requires some form of authentication that sets the REMOTE_USER environment variable  
Line 210: Line 196:
           for more information.</p>
           for more information.</p>
          
          
-
        <p>The file <tt>$DLXSROOT/bin/installer/config-examples/htpasswd.dlxs</tt>  codes the administrative password <b>dlxsadm</b> for the collmgr with the password  <b><i>collmgr. </i></b>You will probably also want to change the password to  a different value using the Apache program:</p>
+
<p>The file <tt>$DLXSROOT/bin/installer/config-examples/htpasswd.dlxs</tt>  codes the administrative password <b>dlxsadm</b> for the collmgr with the password  <b><i>collmgr. </i></b>You will probably also want to change the password to  a different value using the Apache program:</p>
         <pre> % htpasswd passwordfile username </pre>
         <pre> % htpasswd passwordfile username </pre>
-
        <p>where <tt>passwordfile</tt> is <tt>APACHE/conf/htpasswd.dlxs</tt>  and <tt>username</tt> is <tt>dlxsadm</tt>.  Note <tt>htpasswd.dlxs</tt> will then need to be placed  in the <tt>conf</tt> subdirectory of your Apache installation. For more information, see<a href="http://www.apache.org">the Apache Web Site</a></p>
+
 
 +
<p>where <tt>passwordfile</tt> is <tt>APACHE/conf/htpasswd.dlxs</tt>  and <tt>username</tt> is <tt>dlxsadm</tt>.  Note <tt>htpasswd.dlxs</tt> will then need to be placed  in the <tt>conf</tt> subdirectory of your Apache installation. For more information, see [http://www.apache.org the Apache Web Site].
        
        
        
        
-
     
+
===Database conversion and migration following installation</h2>     
-
        <h2><a name="dbconversion"></a>Database conversion and migration following installation</h2>     
+
          
          
-
        <p>If you have a DLXS installation that is Release 9 or
+
<p>If you have a DLXS installation that is Release 9 or
later, you will need to run the <tt>upgrade_<i>N_N+1</i></tt> utilities (one or
later, you will need to run the <tt>upgrade_<i>N_N+1</i></tt> utilities (one or
-
more) that are delivered with the DLXS software. This should be done following a successful installation. These will migrate
+
more) that are delivered with the DLXS software. This should be done following a successful installation. These will migrate your data from one version of the database to another. For example, if you are currently running Release 12 of the software, which uses
-
your data from one version of the database to another. For example, if
+
-
you are currently running Release 12 of the software, which uses
+
version 5 of the database, and are installing Release 13, which uses
version 5 of the database, and are installing Release 13, which uses
database version 6, you should run <tt>upgrade_5_6</tt> to move your
database version 6, you should run <tt>upgrade_5_6</tt> to move your
Line 230: Line 214:
<a href="../collmeta/upgrade.html">upgrade documentation</a> for more information</p>
<a href="../collmeta/upgrade.html">upgrade documentation</a> for more information</p>
          
          
-
        <p>For first-time installations, your database will be MySQL.  You will have created an empty database as described <a href="#mysqlconfig">above</a>.  The next step is to install the sample database data contained in  <tt> $DLXSROOT/misc/db/db-dump-v6.0-release.sql</tt> as follows.  Let <b>dlxs_v6</b> be the database name you chose for this installtion.  Load the dump via the <b>mysql</b> command line client like this:<br/><br/><center> <code>% mysql -u dlxsadm -p dlxs_v6 &lt; $DLXSROOT/misc/db/db-dump-v6.0-release.sql</code></center></p>
+
<p>For first-time installations, your database will be MySQL.  You will have created an empty database as described <a href="#mysqlconfig">above</a>.  The next step is to install the sample database data contained in  <tt> $DLXSROOT/misc/db/db-dump-v6.0-release.sql</tt> as follows.  Let <b>dlxs_v6</b> be the database name you chose for this installtion.  Load the dump via the <b>mysql</b> command line client like this:<br/><br/><center> <code>% mysql -u dlxsadm -p dlxs_v6 &lt; $DLXSROOT/misc/db/db-dump-v6.0-release.sql</code></center></p>
          
          
-
        <h2>Configuration Example Files</h2>
+
===Configuration Example Files===
-
        <p>The configuration example files generated by the
+
 
 +
<p>The configuration example files generated by the
installation script will be found in the <tt>$DLXSROOT/bin/installer/config-examples</tt> directory. The Sysadmin should be notified  of these and s/he should use them to make the changes necessary, e.g., the web  server configuration file, <a href="../intro/cronjobs.html">crontab</a>.</p>
installation script will be found in the <tt>$DLXSROOT/bin/installer/config-examples</tt> directory. The Sysadmin should be notified  of these and s/he should use them to make the changes necessary, e.g., the web  server configuration file, <a href="../intro/cronjobs.html">crontab</a>.</p>
-
        <h2>Sysadmin tasks</h2>
 
-
        <p>The $DLXSROOT/bin/installer/config-examples directory will also contain a file called README-postinstall that will contain a set of instructions that someone with sysadmin rights will need to follow. These include setting specific permissions on special directories:</p>
 
-
        <ul>
+
===Sysadmin tasks===
-
          <li> Permissions on <tt>$DLXSROOT/web/cache</tt>: this directory too will need  to be owned by the runner of the web server processes, again, often "nobody".</li>
+
-
      <li>Configure crontab:
+
-
The DLXSROOT/bin/managesessions.pl, DLXSROOT/bin/manageportfolios.pl and DLXSROOT/bin/managecache.sh scripts are typically run by a cron job to periodically expire user sessions, remove temporary ImageClass portfolios and maintain DLXSROOT/web/cache at the desired size. An example crontab can be found in DLXSROOT/bin/installer/config-examples/crontab.dlxs.</li>
+
<p>The $DLXSROOT/bin/installer/config-examples directory will also contain a file called README-postinstall that will contain a set of instructions that someone with sysadmin rights will need to follow. These include setting specific permissions on special directories:</p>
-
        </ul>
+
* Permissions on <tt>$DLXSROOT/web/cache</tt>: this directory too will need  to be owned by the runner of the web server processes, again, often "nobody".
-
       
+
* Configure crontab:
-
        <p>If you are running the web server on one machine and the data resides on another  you will have to <a href="../intro/daemoninstall.html">install the daemons</a> that allow for the two hosts to communicate. This requires root access.</p>
+
 
 +
The DLXSROOT/bin/managesessions.pl, DLXSROOT/bin/manageportfolios.pl and DLXSROOT/bin/managecache.sh scripts are typically run by a cron job to periodically expire user sessions, remove temporary ImageClass portfolios and maintain DLXSROOT/web/cache at the desired size. An example crontab can be found in DLXSROOT/bin/installer/config-examples/crontab.dlxs.
 +
 
 +
<p>If you are running the web server on one machine and the data resides on another  you will have to <a href="../intro/daemoninstall.html">install the daemons</a> that allow for the two hosts to communicate. This requires root access.</p>
          
          
-
        <h2>Collection Manager Authorization</h2>
+
===Collection Manager Authorization===
-
        <p>The <a href="../collmeta/collmgr.html">DLXS collection manager</a> requires  user authentication (i.e., access by username and password) to be able to check  in, check out, and release changes. If you do not wish to use these functions,  then at a bare minimum, it requires access by username and password as the administrator  user, dlxsadm.</p>
+
 
-
        <p>For your convenience, DLXS is installed with this minimum configuration using  standard HTTP Basic Authentication. When you access the collection manager,  you will be prompted for a username and password; enter "dlxsadm" with  the password "collmgr", and you will be given access.</p>
+
<p>The [[Working with the Collection Manager|DLXS collection manager]] requires  user authentication (i.e., access by username and password) to be able to check  in, check out, and release changes. If you do not wish to use these functions,  then at a bare minimum, it requires access by username and password as the administrator  user, dlxsadm.</p>
-
        <p> DLXS recommends that you change the default password after installation with  the following command, which will prompt you for a new password:</p>
+
 
 +
<p>For your convenience, DLXS is installed with this minimum configuration using  standard HTTP Basic Authentication. When you access the collection manager,  you will be prompted for a username and password; enter "dlxsadm" with  the password "collmgr", and you will be given access.</p>
 +
 
 +
<p> DLXS recommends that you change the default password after installation with  the following command, which will prompt you for a new password:</p>
 +
 
         <p><code>&lt;apache&gt;/bin/htpasswd &lt;apache&gt;/conf/htpasswd.dlxs dlxsadm</code></p>
         <p><code>&lt;apache&gt;/bin/htpasswd &lt;apache&gt;/conf/htpasswd.dlxs dlxsadm</code></p>
-
        <p> where <code>&lt;apache&gt;</code> is the directory in which Apache is installed  on your system.</p>
+
<p> where <code>&lt;apache&gt;</code> is the directory in which Apache is installed  on your system.</p>
-
        <p>You may permit other users to the collection manager, collmgr, using this mechanism;
+
 
 +
<p>You may permit other users to the collection manager, collmgr, using this mechanism;
           see your Apache documentation for more information on configuring Basic Authentication.
           see your Apache documentation for more information on configuring Basic Authentication.
           You may also replace the authentication method entirely, so long as it provides
           You may also replace the authentication method entirely, so long as it provides

Revision as of 10:43, 9 August 2007

This document explains how to install the DLXS middleware and XPAT software. After reading and following instructions here, there may be class specific installation issues, in which case there will be a link to those specific instructions

Contents

Overview of the DLXS Installation Process

The installation of DLXS software can be broken into three parts:

  • Pre-install steps

Deciding where to install, extracting XPAT, binaries, and getting Perl modules.

  • Running the Installation Script

Create an initial working system that can function using the sample collection data.

  • Post-install steps

Change permissions of a few directories, configure Apache web server, install database sample data.

There are two main pieces of software that need to be installed: XPAT and other binaries and the middleware. You will need to install MySQL unless you plan to run a CSV database. We do not recommend the CSV database option and will deliver the sample database as a MySQL dump in release 13. Further, the database upgrade program will no longer offer the option of CSV.

  • XPAT, and a few related binary files, are to be installed by a sysadmin (or someone with root access to the machine). The sysadmin will decide where the XPAT binaries should go and install them there.
  • The Middleware files will be installed under one directory (whose name should be set up as the <a href="../intro/dirstruct.html#dlxsrootenv">DLXSROOT environment variable</a>). The installation script does not require root access, just write access to the $DLXSROOT directory which it will create during the installation process.


Pre-install Steps

Extracting/Installing XPAT / tif2web / mrsid_retrieve / kdu_expand / cjpeg

NOTE: tif2web is a program used by the middleware (<a href="../class/text/pageviewer.html">Pageviewer</a>) to convert TIFF files to GIF and PNG formats. The installation of tif2web will closely follow the steps for installing XPAT.

NOTE: mrsid_retrieve is a program used by the ImageClass middleware to decompress MrSID files generating JPEG output for delivery to browsers. As with tif2web, the installation of mrsid_retrieve will closely follow the steps for installing XPAT.

NOTE: kdu_expand is a program used by the ImageClass middleware to decompress jpeg2000 files generating JPEG output for delivery to browsers. As with tif2web, the installation of kdu_expand will closely follow the steps for installing XPAT.

NOTE: cjpeg used in conjunction with kdu_expand for JPEG2000 web delivery. As with tif2web, the installation of kdu_expand will closely follow the steps for installing XPAT.

Uncompress and untar the XPAT tarfile where you would like to store the XPAT executables. For example, at many sites, this is /usr/local/. You would typically use the following command, replacing all items in curly braces (i.e., { }) with appropriate values:

Local CD, local destination

    cd {path-to-XPATinstall}
    tar xf {cdrom-mount-point}/{path-to-tarfile}/XPAT-{version}.tar 

Unlink any previous symlink from a version-specific directory of XPAT to an XPAT directory (i.e., one without a specific version name). For example:

    cd {path-to-XPATinstall}
    rm xpat 

Create a symlink from the new version-specific directory of XPAT to an XPAT directory (i.e., without version name). For example:

    cd {path-to-XPATinstall} 
    ln -s xpat-{version} {path-to-XPATinstall}/xpat

Installing Other Binaries

There are several other binaries that you may need:

  • c42pdf (required for TextClass pageviewer)
  • tif2web (required for TextClass pageviewer)
  • mrsid_retrieve (required for ImageClass)
  • kdu_expand (required for ImageClass)
  • cjpeg (required for ImageClass)

In addition you will need standard unix utilities installed and present in $PATH: make, mkdir, ln, cat, chmod.

xpat, mrsid_retrieve, kdu_expand, cjpeg and tif2web are part of the DLXS distribution. Obtain:

Install these on your system as required for the Classes you plan to install (note the list above for which binaries are required for which classes) and include them in $PATH. Adding them to $PATH is not required but if you add them, the installer will be able to offer you their actual locations when it prompts.

Required Perl modules

We recommend you use the version of Perl mentioned in our Systems Requirements page.

In addition you will need to install additional Perl modules. The list of these additional Perl modules can be found in our Systems Requirements page. These modules are checked for existence by the Installer. You may install them after you install DLXS.

During DLXS middleware installation, you may see Installer complain about an already installed Perl module due to dependencies it has on other not yet installed Perl modules. These will go away when all reported Perl modules are installed in your Perl distribution.


MySQL configuration

For DLXS installations you will use MySQL as your data store. You should execute the following commands to create an empty database, user accounts, and access permissions required for use with DLXS middleware.

  1. Start the SQL monitor with the command mysql -u root -p

mysql (you will be prompted for the MySQL system password).

  1. Create the DLXS database with the command create database

dlxs;. Note that you should use the database name you chose when prompted for the name of the database during DLXS middleware installation rather than simply dlxs. We suggest you should choose a name that reflects the version number of the database delivered with the middleware release or perhaps the release number of the middleware.

  1. Create the dlxsadm (administrative) account and grant full

privileges to it with the command grant all privileges on dlxs.* to dlxsadm identified by 'password';, where password is the password to be used for DLXS database administration.

  1. Grant FILE privilege to the dlxsadm account with the

command grant file on *.* to dlxsadm;.

  1. Create the dlxs account and grant basic privileges to it

with the command grant select,insert,update,delete,references on dlxs.* to dlxs identified by 'password';, where password is the password to be used for general DLXS database usage (such as from within the DLXS middleware).

  1. Activate the changes with the command flush privileges;.
  2. Exit the SQL monitor with the command quit.


Decide where to install DLXS Middleware

You may want to give some consideration to how you will manage the installation of a subsequent DLXS release. The main consideration is where you want a later release to reside in your file system, i.e. what its DLXSROOT should be. A detailed discussion of installing multiple releases can be found in <a href="../intro/multiplereleases.html">Multiple DLXS Releases</a>

The Installer will ask for a path to a directory that initially should not yet exist, e.g. /usr/local/dlxs. The installer will create dlxs under /usr/local and populate it. This path will be referred to as $DLXSROOT and is accessed by the middleware as an environment variable. You should set the <a href="../intro/dirstruct.html#dlxsrootenv">DLXSROOT environment variable</a>:

  • in your unix shell (setting DLXSROOT in the shell is necessary when running some DLXS command line scripts)
  • in the Apache web server (<a href="#apacheconfig">web server configuration</a> info below).

We recommend you install as a normal user with a umask of 002, which creates files that are group-writable.


Installation Script: Outline

A general outline of the interactive installation script follows. This installation script will first confirm the location of various resources, install the middleware and some sample data, and then configure the middleware.

  1. create needed subdirectories under $DLXSROOT
  2. check dependencies
    1. Perl
    2. installation locations of required and optional binaries
  3. install middleware
  4. install sample HTML and HTML template files
  5. install sample data
  6. change variables in configuration files
  7. replace Perl "hash bang" strings in certain utility programs with local Perl path.
  8. substitute local value of DLXSROOT environment variable in sample data indexes.
  9. run processing scripts on installed sample data.
  10. generate snippets of text that should be added, by the Sysadmin, to several non-DLXS configuration files, e.g.,
    1. Apache virtual host directives
    2. Unix cron job commands to manage session expiration


Step-by-Step Installation Instructions

Click here to see <a href="stepbystep.html">step-by-step instructions</a> on running the installation program.

First Time Installation vs. Update

If this is a first time installation of the DLXS middleware at your site, little will be required beyond following the installation script and having your Sysadmin do the tasks requested by the installation script outline (for example, insert configuration snippets into the Apache server conf file, create and make "nobody" the owner of the DLXSROOT/web/cache directory, install sample database data, etc.).

However, if this is not your first time installing DLXS middleware, some or all of the following additional steps may be necesary:

  • if the middleware requires database format changes, instructions will be given to run the programs required to convert the collection database. This includes the possibility that you are running a CSV database for DLXS.
  • Although changes to the middleware are made to be backward-compatible, you should check any program files you have changed to see whether they will work with the new version. A simple UNIX diff can be helpful. A version control system (at DLPS, we use CVS) can help with comparing and merging code.


Post-Installation Steps

After these post-installation steps are complete you can test you installation by visiting the URLs below in your browser. Substitute your actual virtual host for the string "YOURVIRTUALHOST" below.

Collmgr: http://YOURVIRTUALHOST/cgi/c/collmgr/collmgr
BibClass: http://YOURVIRTUALHOST/cgi/b/bib/bib-idx
FindaidClass: http://YOURVIRTUALHOST/cgi/f/findaid/findaid-idx
ImageClass: http://YOURVIRTUALHOST/cgi/i/image/image-idx
TextClass: http://YOURVIRTUALHOST/cgi/t/text/text-idx


Change directory and file permissions

The $DLXSROOT/web/cache is created by the Install program with 777 permissions. Alternatively, you may want to change permissions on this directory to make it writeable only to the UID of the web server.

Apache config sample files

Examine $DLXSROOT/bin/installer/config-examples/httpd.conf.dlxs. You may integrate this segment into your Apache configuration file, adapting as necessary. It assumes you want to run your DLXS installation on a virtual host called dlxs.

If you would like to run your DLXS installation on a different virtual host, please consult your Apache documentation.

You may comment out the section in httpd.conf.dlxs which implements basic authentication for the collmgr. If you disable this be aware that the collmgr requires some form of authentication that sets the REMOTE_USER environment variable for proper operation. So, to run "out of the box," the easiest thing to do is to use the "Basic Auth" sample configuration. See <a href="../auth/index.html">DLXS Authentication and Authorization</a> for more information.

The file $DLXSROOT/bin/installer/config-examples/htpasswd.dlxs codes the administrative password dlxsadm for the collmgr with the password collmgr. You will probably also want to change the password to a different value using the Apache program:

 % htpasswd passwordfile username 

where passwordfile is APACHE/conf/htpasswd.dlxs and username is dlxsadm. Note htpasswd.dlxs will then need to be placed in the conf subdirectory of your Apache installation. For more information, see the Apache Web Site. ===Database conversion and migration following installation</h2> <p>If you have a DLXS installation that is Release 9 or later, you will need to run the upgrade_N_N+1 utilities (one or more) that are delivered with the DLXS software. This should be done following a successful installation. These will migrate your data from one version of the database to another. For example, if you are currently running Release 12 of the software, which uses version 5 of the database, and are installing Release 13, which uses database version 6, you should run upgrade_5_6 to move your current data into the new format. See the <a href="../collmeta/upgrade.html">upgrade documentation</a> for more information

For first-time installations, your database will be MySQL. You will have created an empty database as described <a href="#mysqlconfig">above</a>. The next step is to install the sample database data contained in $DLXSROOT/misc/db/db-dump-v6.0-release.sql as follows. Let dlxs_v6 be the database name you chose for this installtion. Load the dump via the mysql command line client like this:

% mysql -u dlxsadm -p dlxs_v6 < $DLXSROOT/misc/db/db-dump-v6.0-release.sql


Configuration Example Files

The configuration example files generated by the installation script will be found in the $DLXSROOT/bin/installer/config-examples directory. The Sysadmin should be notified of these and s/he should use them to make the changes necessary, e.g., the web server configuration file, <a href="../intro/cronjobs.html">crontab</a>.

Sysadmin tasks

The $DLXSROOT/bin/installer/config-examples directory will also contain a file called README-postinstall that will contain a set of instructions that someone with sysadmin rights will need to follow. These include setting specific permissions on special directories:

  • Permissions on $DLXSROOT/web/cache: this directory too will need to be owned by the runner of the web server processes, again, often "nobody".
  • Configure crontab:

The DLXSROOT/bin/managesessions.pl, DLXSROOT/bin/manageportfolios.pl and DLXSROOT/bin/managecache.sh scripts are typically run by a cron job to periodically expire user sessions, remove temporary ImageClass portfolios and maintain DLXSROOT/web/cache at the desired size. An example crontab can be found in DLXSROOT/bin/installer/config-examples/crontab.dlxs.

If you are running the web server on one machine and the data resides on another you will have to <a href="../intro/daemoninstall.html">install the daemons</a> that allow for the two hosts to communicate. This requires root access.


Collection Manager Authorization

The DLXS collection manager requires user authentication (i.e., access by username and password) to be able to check in, check out, and release changes. If you do not wish to use these functions, then at a bare minimum, it requires access by username and password as the administrator user, dlxsadm.

For your convenience, DLXS is installed with this minimum configuration using standard HTTP Basic Authentication. When you access the collection manager, you will be prompted for a username and password; enter "dlxsadm" with the password "collmgr", and you will be given access.

DLXS recommends that you change the default password after installation with the following command, which will prompt you for a new password:

<apache>/bin/htpasswd <apache>/conf/htpasswd.dlxs dlxsadm

where <apache> is the directory in which Apache is installed on your system.

You may permit other users to the collection manager, collmgr, using this mechanism; see your Apache documentation for more information on configuring Basic Authentication. You may also replace the authentication method entirely, so long as it provides the name of the authenticated user in the environment variable <a href="../collmeta/collmgr.html#remoteuserenv">REMOTE_USER</a>. Also see <a href="../auth/index.html">DLXS Authentication and Authorization</a> for more information.

Personal tools