Configuration of local.h

The header file DA/local/local.h contains all of the information about the layout of your directory structure, locations of programs and files, and other tweakable properties of the programs. A template for local.h can be copied from DA/local/local.h.sample.

The things that need to be configured in local.h are broken into three parts:

#define {CONFIG_NAME} {VALUE}

DO NOT CHANGE THE FIRST TWO PARTS! The only part you can modify is the right hand side -- the value of the configuration item. The following are explanations of all of the configurations:

NOTE: The full paths to directories should end with a slash, the paths to files and executables should not.

WEB_DOC_ROOT
Modify this to be the full path (on the server machine) to the document root directory of your web server. This is the top level directory where web documents can be found. Example /opt/da_atlases/.

WEB_URL_ROOT
This is the URL to the top level root of your docs directory. Normally does not need to be modified. Default is "http:/".

CGI_PATH
This should be the full path (on local server machine) to the directory that holds all your executable CGI programs. NOTE: For the CGI programs and FrameBuilder to work correctly, this directory must be accessible directly from the document root URL as the directory named: /cgi-bin/DA. This can be configured from da.conf. This should be the same as the CGIBIN option in Makefile.local.

CGI_URL_ROOT
The URL to the CGI directory that has your executable programs. Default "/cgi-bin/".

TMP_DIR
This should be the full path (on local server machine) to a scratch directory that the programs have write permission to. It will be used for temporary files. Don't worry, the Digital Anatomist CGI Package is trained to clean up after itself. (In most cases anyway.) Default is "/usr/tmp".

INDEX_URL
This should be the URL (relative to the server) to the page that you wish to go to when the user clicks the "TOP" button on the NAVBAR. (the arrow with the bar over it). This will most likely be da.html, which will be a link to local/da.html. See /local/da.html.
SERV_ADM
This should be the name and email address of the local server administrator.

IMG_MSG
This should be the string that you wish to appear as a link to the image copyright page: IMG_URL.

RUN_NICE
This defines how much 'nicer' the atlas runs than the other programs on your system. This means that the higher the number, the lower the priority for CPU scheduling, thus reducing the slowdown felt by other users of the computer. Value must be between 0 and 20.


brinkley@u.washington.edu
Last modified: Mon Apr 19 13:13:15 PDT 1999