Single User Setup
The default instructions place the cgi-bin and html documents beneath the root
web server directory. This means that only one set of DA cgi programs may be
executing at a time on a given server - generally accesible from the URL,
/cgi-bin/DA/.
However, it may be that more than one person wants to have a running copy of the
DA software, say for testing changes to the code. In this case each user might
like to install the software in his or her own home directory, then install new
production versions in the top level directory.
The mechanism for accomplishing this is the use of the public_html and
user script feature of
httpd, that allows a user to place html documents in a subdirectory of their
home directory called public_html, and cgi scripts in a directory
called cgi-bin.
The following assumes that the public_html and user cgi-bin mechanisms
are turned on at your
server. We also assume that you
have read the default installation instructions for the DA atlas software.
Assume the user name is jones, whose home directory is
/usr/people/jones/, jones has sub-directories public_html and
cgi-bin under his home directory, and the above features are turned on
in the Web server.
- Create subdirectories cgi-bin and public_html under ~jones.
- Install DA-5.2 in ~jones/public_html, modify files in that directory.
- In DA-5.2/local/local.h:
- WEB_DOC_ROOT "/usr/people/jones/public_html/"
- WEB_URL_ROOT "http:/~jones/"
- CGI_PATH "/usr/people/jones/cgi-bin/"
- CGI_URL_ROOT "/~jones/cgi-bin/"
- INDEX_URL "http:/~jones/DA/index.html"
- In DA-5.2/local/Makefile.local
- CGIBIN=/usr/people/jones/cgi-bin/"
- DOCSDIR=/usr/people/jones/public_html/"
- In DA-5.2/framebuilder.html
- Server and port as in default instructions
- URL to update script: change to "/~jones/cgi-bin/DA/atlasUpdater"
- URL to GIF upload: change to "/~jones/cgi-bin/DA/fupload"
- In DA-5.2/index.html
- Reference to Test atlas, change to /~jones/cgi-bin/DA/PageMaster?atlas:Test+ffpathIndex/Dalogo+2
- Reference to Framebuilder, change to
/~jones/DA/framebuilder.html