Index: openacs-4/packages/acs-core-docs/www/acs-admin.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/acs-admin.html,v diff -u -r1.11 -r1.12 --- openacs-4/packages/acs-core-docs/www/acs-admin.html 24 Jun 2003 03:58:11 -0000 1.11 +++ openacs-4/packages/acs-core-docs/www/acs-admin.html 28 Jun 2003 05:07:01 -0000 1.12 @@ -1,2 +1,2 @@ -Part�II.�Administrator's Guide

Administrator's Guide

Table of Contents

2. Prerequisite Software
Compatibility Matrix
Individual Programs
3. Installing on Unix/Linux
Overview
Install Linux and supporting software
Install Oracle 8.1.7
Install PostGreSQL 7.2.4
Install AOLserver 3.3oacs1
Install OpenACS 5.0.0
Credits
4. Installing on Windows
OpenACS Installation Guide for Windows2000
5. Installing on a Macintosh
OpenACS Installation Guide for Mac OS X
6. Configuring a New Service
7. Upgrading
Support for upgrades.
Upgrading OpenACS 4.5 to 4.6
8. Maintenance
Hosting Web Sites
Database Management
Backup and Recovery
A. Install Red Hat 8.0
B. Install additional supporting software
Unpack the OpenACS tarball
Initialize CVS (OPTIONAL)
Add PSGML commands to emacs init file (OPTIONAL)
Install Daemontools (OPTIONAL)
Install qmail (OPTIONAL)
Install nsopenssl
View comments on this page at openacs.org
+Part�II.�Administrator's Guide

Administrator's Guide

Table of Contents

2. Quick Install
3. Prerequisite Software
Compatibility Matrix
Individual Programs
4. Installing on Unix/Linux
Overview
Install Linux and supporting software
Install Oracle 8.1.7
Install PostGreSQL
Install AOLserver 3.3oacs1
Install OpenACS 4.7.0d
Credits
5. Installing on Windows
OpenACS Installation Guide for Windows2000
6. Installing on a Macintosh
OpenACS Installation Guide for Mac OS X
7. Configuring a New Service
8. Upgrading
Support for upgrades.
Upgrading OpenACS 4.5 to 4.6
9. Maintenance
Hosting Web Sites
Database Management
Backup and Recovery
A. Install Red Hat 8.0
B. Install additional supporting software
Unpack the OpenACS tarball
Initialize CVS (OPTIONAL)
Add PSGML commands to emacs init file (OPTIONAL)
Install Daemontools (OPTIONAL)
Install qmail (OPTIONAL)
Install Analog web file analyzer
Install nsopenssl
View comments on this page at openacs.org
Index: openacs-4/packages/acs-core-docs/www/acs-package-dev.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/acs-package-dev.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-core-docs/www/acs-package-dev.html 24 Jun 2003 03:58:11 -0000 1.1 +++ openacs-4/packages/acs-core-docs/www/acs-package-dev.html 28 Jun 2003 05:07:01 -0000 1.2 @@ -1,6 +1,6 @@ -Part�III.�For OpenACS Package Developers

For OpenACS Package Developers

+Part�III.�For OpenACS Package Developers

View comments on this page at openacs.org
+

View comments on this page at openacs.org
Index: openacs-4/packages/acs-core-docs/www/acs-plat-dev.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/acs-plat-dev.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-core-docs/www/acs-plat-dev.html 24 Jun 2003 03:58:11 -0000 1.1 +++ openacs-4/packages/acs-core-docs/www/acs-plat-dev.html 28 Jun 2003 05:07:01 -0000 1.2 @@ -1,2 +1,2 @@ -Part�IV.�For OpenACS Platform Developers

For OpenACS Platform Developers

Table of Contents

12. Kernel Documentation
Overview
OpenACS 4 Object Model Requirements
OpenACS 4 Object Model Design
OpenACS 4 Permissions Requirements
OpenACS 4 Permissions Design
OpenACS 4 Groups Requirements
OpenACS 4 Groups Design
OpenACS 4 Subsites Requirements
OpenACS 4 Subsites Design Document
OpenACS 5.0.0 Package Manager Requirements
OpenACS 5.0.0 Package Manager Design
Database Access API
OpenACS 4 Security Requirements
OpenACS 4 Security Design
OpenACS 4 Security Notes
OpenACS 4 Request Processor Requirements
OpenACS 4 Request Processor Design
Documenting Tcl Files: Page Contracts and Libraries
Bootstrapping OpenACS
View comments on this page at openacs.org
+Part�IV.�For OpenACS Platform Developers

For OpenACS Platform Developers

Table of Contents

13. Kernel Documentation
Overview
OpenACS 4 Object Model Requirements
OpenACS 4 Object Model Design
OpenACS 4 Permissions Requirements
OpenACS 4 Permissions Design
OpenACS 4 Groups Requirements
OpenACS 4 Groups Design
OpenACS 4 Subsites Requirements
OpenACS 4 Subsites Design Document
OpenACS 4.7.0d Package Manager Requirements
OpenACS 4.7.0d Package Manager Design
Database Access API
OpenACS 4 Security Requirements
OpenACS 4 Security Design
OpenACS 4 Security Notes
OpenACS 4 Request Processor Requirements
OpenACS 4 Request Processor Design
Documenting Tcl Files: Page Contracts and Libraries
Bootstrapping OpenACS
View comments on this page at openacs.org
Index: openacs-4/packages/acs-core-docs/www/aolserver.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/aolserver.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/aolserver.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/aolserver.html 28 Jun 2003 05:07:01 -0000 1.11 @@ -1,20 +1,16 @@ -Install AOLserver 3.3oacs1

Install AOLserver 3.3oacs1

+Install AOLserver 3.3oacs1

Install AOLserver 3.3oacs1

by Vinod Kurup
OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

This page assumes you have downloaded aolserver to to -/tmp/aolserver3.3oacs1.tar.gz. If not, -get it. It also assumes you are following the 5.0.0-P or 5.0.0-O Reference Platform installation, using Red Hat 8.0. Places where other systems are different are noted.

  1. - As root, untar +

  1. Unpack the Aolserver tarball.�Download the aolserver tarball to /tmp/aolserver3.3oacs1.tar.gz. As root, untar aolserver3.3oacs1.tar.gz into /usr/local/src. -

    [root@yourserver root]# cd /usr/local/src
     [root@yourserver src]# tar xzf /tmp/aolserver3.3oacs1.tar.gz
     [root@yourserver src]#
     
    cd /usr/local/src
    -tar xzf /tmp/aolserver3.3oacs1.tar.gz
  2. Compile and install AOLserver. First, prepare the installation directory and the source code. The message about BUILD-MODULES can be ignored.

    root@yourserver root]# mkdir -p /usr/local/aolserver
    +tar xzf /tmp/aolserver3.3oacs1.tar.gz
  3. Compile AOLserver.�Compile and install AOLserver. First, prepare the installation directory and the source code. The message about BUILD-MODULES can be ignored.

    root@yourserver root]# mkdir -p /usr/local/aolserver
     [root@yourserver root]# cd /usr/local/src/aolserver
     [root@yourserver aolserver]# ./conf-clean
     cat: BUILD-MODULES: No such file or directory
    @@ -65,25 +61,64 @@
     ==================================================================
     Done Building Sat Mar  8 10:31:35 PST 2003
     [root@yourserver aolserver]# 

    - This takes about 5 minutes. It builds aolserver, several modules, and the database driver. (Upgraders, note that the postgres database driver has changed from postgres.so to nspostgres.so). All of the results are logged to files in /usr/local/src/aolserver/log. If you run into problems running AOLserver, check these files for build errors.

  4. Add a database-specific wrapper script. This script + This takes about 5 minutes. It builds aolserver, several modules, and the database driver. (Upgraders, note that the postgres database driver has changed from postgres.so to nspostgres.so). All of the results are logged to files in /usr/local/src/aolserver/log. If you run into problems running AOLserver, check these files for build errors.

  5. Add a database-specific wrapper script.�This script sets database environment variables before starting AOLserver; this allows the AOLserver instance can communicate with the database. There is one script each for Oracle and PostGreSQL. They don't conflict, so if you plan to use both databases, install both.

    • Oracle

      [root@yourserver aolserver]# cd /usr/local/aolserver/bin
      -[root@yourserver bin]# cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/nsd-oracle.txt ./nsd-oracle
      +[root@yourserver bin]# cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/nsd-oracle.txt ./nsd-oracle
       [root@yourserver bin]# chmod 750 nsd-oracle
       [root@yourserver bin]#
       
      cd /usr/local/aolserver/bin
      -cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/nsd-oracle.txt ./nsd-oracle
      +cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/nsd-oracle.txt ./nsd-oracle
       chmod 750 nsd-oracle
    • PostGreSQL

      [root@yourserver aolserver]# cd /usr/local/aolserver/bin
      -[root@yourserver bin]# cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/nsd-postgres.txt ./nsd-postgres
      +[root@yourserver bin]# cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/nsd-postgres.txt ./nsd-postgres
       [root@yourserver bin]# chmod 755 nsd-postgres
       [root@yourserver bin]#
       
      cd /usr/local/aolserver/bin
      -cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/nsd-postgres.txt ./nsd-postgres
      -chmod 755 nsd-postgres
  6. Install nsopenssl - (OPTIONAL)

  7. Install Full Text Search with OpenFTS (OPTIONAL)

  8. In order to test AOLserver, we'll run it using the +cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/nsd-postgres.txt ./nsd-postgres +chmod 755 nsd-postgres

  • Install tDOM.�Download the tDOM + tarball to + /tmp/tDOM-0.7.7.tar.gz, + unpack it, adjust the configuration file to match our patched + distribution of aolserver, and compile it.

    [root@yourserver root]# cd /usr/local/src
    +[root@yourserver src]# tar xzf /tmp/tDOM-0.7.7.tar.gz
    +[root@yourserver src]# cd tDOM-0.7.7/unix
    +[root@yourserver unix]#
    +
    cd /usr/local/src
    +tar xzf /tmp/tDOM-0.7.7.tar.gz
    +cd unix

    Edit the file CONFIG and change this section: +

    # ----------------------------------------------------
    +# aolsrc="/usr/src/aolserver-3.4"
    +# ../configure --enable-threads --disable-tdomalloc \
    +#   --with-aolserver=$aolsrc \
    +#   --with-tcl=$aolsrc/tcl8.3.4/unix 

    +

    to

    +

    # ----------------------------------------------------
    +aolsrc="/usr/local/src/aolserver/aolserver"
    +../configure --enable-threads --disable-tdomalloc \
    +  --with-aolserver=$aolsrc
    +  --with-tcl=$aolsrc/tcl8.3.2/unix

    +

    And configure and compile:

    +

    [root@yourserver unix]# sh CONFIG
    +creating cache ./config.cache
    +checking for memmove... yes
    +  (many lines omitted)
    +creating Makefile
    +creating tdomConfig.sh
    +[root@yourserver unix]# make
    +gcc -pipe -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DTCL_THREADS=1
    +-DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 
    +  (many lines omitted)
    +          -Wl,-rpath,/usr/local/lib -o tcldomsh;\
    +fi
    +[root@yourserver unix]# cp libtdom0.7.7.so /usr/local/aolserver/bin/
    +
    sh CONFIG
    +make
    +cp libtdom0.7.7.so /usr/local/aolserver/bin/

    +

  • Install nsopenssl + (OPTIONAL)

  • Install Full Text Search with OpenFTS (OPTIONAL)

  • Test AOLserver.�In order to test AOLserver, we'll run it using the sample-config.tcl file provided in the AOLserver distribution, under the nobody user and web group. The sample-config.tcl configuration writes to the @@ -143,12 +178,11 @@ but clearly this is not a good tool to use for managing your services in general. We cover this topic in the Keep AOLServer alive section. -

  • Troubleshooting.

    If you can't view the welcome page, it's likely there's a +

  • Troubleshooting.�If you can't view the welcome page, it's likely there's a problem with your server configuration. Start by viewing your AOLserver log, which is in /usr/local/aolserver/log/server.log. You should also try to find lines of the form: -

     [01/Jun/2000:12:11:20][5914.2051][-nssock-] Notice: nssock: listening on http://localhost.localdomain:8000 (127.0.0.1:8000)
     [01/Jun/2000:12:11:20][5914.2051][-nssock-] Notice: accepting connections

    @@ -177,5 +211,5 @@

     set hostname        [ns_info hostname]
     #set address         [ns_info address]
    -set address 0.0.0.0
  • Install - Analog web file analyzer. (OPTIONAL)

  • ($Id$)
    View comments on this page at openacs.org
    +set address 0.0.0.0
  • Install + Analog web file analyzer. (OPTIONAL)

  • ($Id$)
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/apm-design.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/apm-design.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/apm-design.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/apm-design.html 28 Jun 2003 05:07:01 -0000 1.10 @@ -1,9 +1,9 @@ -OpenACS 5.0.0 Package Manager Design

    OpenACS 5.0.0 Package Manager Design

    +OpenACS 4.7.0d Package Manager Design

    OpenACS 4.7.0d Package Manager Design

    by Bryan Quinn
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

    Essentials

    Revision History

    Document Revision #Action Taken, NotesWhen?By Whom?
    0.1Creation9/25/2000Bryan Quinn
    0.8Ready for QA9/29/2000Bryan Quinn
    0.9Edited for ACS 4 Beta release10/02/2000Kai Wu
    1.0Edited for OpenACS 4.7.0d Beta release03/02/2002Roberto Mello
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/apm-requirements.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/apm-requirements.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/apm-requirements.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/apm-requirements.html 28 Jun 2003 05:07:01 -0000 1.10 @@ -1,5 +1,5 @@ -OpenACS 5.0.0 Package Manager Requirements

    OpenACS 5.0.0 Package Manager Requirements

    +OpenACS 4.7.0d Package Manager Requirements

    OpenACS 4.7.0d Package Manager Requirements

    by Bryan Quinn and Todd Nightingale
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. @@ -155,7 +155,7 @@ adding new files, by scanning the file system for new files automatically, and allowing the developer to confirm adding them.

    20.10 The developer cannot add files to a given package via the UI that do not exist in the file system already.

    20.15 Package file structure must follow a specified -convention. Please see the design +convention. Please see the design document for what we do currently.

  • 30.0 Remove files from a package

    The developer must be able to remove files from a package. This can be done in two ways.

    • 30.1 Access the APM UI, browse the file list, and remove files.

      30.1.1If a file is removed from the package list, but not @@ -293,4 +293,4 @@ are set using the acs_attribute_values table. The automatic web interface for setting package parameters should be one and the same with the interface for setting acs object attribute values. Consequently, the implementation of -these features should be quite straightforward.

    Revision History

    Document Revision #Action Taken, NotesWhen?By Whom?
    0.1Creation8/10/2000Bryan Quinn, Todd Nightingale
    Reviewed8/11/2000John Prevost, Mark Thomas, and Pete Su
    0.2Revised and updated8/12/2000Bryan Quinn
    0.3Reviewed, revised, and updated - conforms to requirements template.8/18/2000Kai Wu
    0.4Minor edits before ACS 4 Beta.9/30/2000Kai Wu
  • View comments on this page at openacs.org
    +these features should be quite straightforward.

    Revision History

    Document Revision #Action Taken, NotesWhen?By Whom?
    0.1Creation8/10/2000Bryan Quinn, Todd Nightingale
    Reviewed8/11/2000John Prevost, Mark Thomas, and Pete Su
    0.2Revised and updated8/12/2000Bryan Quinn
    0.3Reviewed, revised, and updated - conforms to requirements template.8/18/2000Kai Wu
    0.4Minor edits before ACS 4 Beta.9/30/2000Kai Wu
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/backup-recovery.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/backup-recovery.html,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/backup-recovery.html 24 Jun 2003 03:58:11 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/backup-recovery.html 28 Jun 2003 05:07:01 -0000 1.3 @@ -1,5 +1,5 @@ -Backup and Recovery

    Backup and Recovery

    +Backup and Recovery

    Backup and Recovery

    by Don Baccus with additions by Joel Aufrecht
    @@ -42,7 +42,7 @@

    Snapshot backup and recovery

    This section describes how to make a one-time backup of the files and database. This is useful for rolling back to known-good versions of a service, such as at initial - installation and just before a backup.

    • PostGreSQL.�Create a backup file and verify that it was created and has a reasonable size (several megabytes).

      [root@localhost root]# su - service0
      +      installation and just before an upgrade.

      • PostGreSQL.�Create a backup file and verify that it was created and has a reasonable size (several megabytes).

        [root@localhost root]# su - service0
         [service0@localhost service0]$ pg_dump -f /web/service0/database-backup/before_upgrade_to_4.6.dmp service0
         [service0@localhost service0]$ ls -al /web/service0/database-backup/before_upgrade_to_4.6.dmp 
         -rw-rw-r-x    1 service0  service0   4005995 Feb 21 18:28 /web/service0/database-backup/before_upgrade_to_4.6.dmp
        @@ -54,7 +54,7 @@
         exit
    • File tree with CVS.�If you are already using CVS, you probably don't need to do anything to back up your data. Just make sure that your current work is checked into the system. - You can then roll back based on date - just note the + You can then roll back based on date - note the current system time, down to the minute. For maximum safety, you can apply a tag to your current files. Note that, if you did the CVS options in this document, the /web/service0/etc directory is not included in cvs and you may want to add it.

      [root@localhost root]# su - service0
      @@ -112,9 +112,7 @@
       psql -f /web/service0/packages/acs-kernel/sql/postgresql/postgresql.sql service0
       psql service0 < /web/service0/database-backup/before_upgrade_to_4.6.dmp
       svc -u /service/service0
      -exit

    Set up Automated Backup - OPTIONAL

    Backup can encompass all files in /web/service0. For a development server, putting the files in cvs is sufficient. (It's important then to back up the cvs repository!)

    A quick way to automate database backup is a cron job. This is not recommended for production and is not part of the Reference Platform, because it is not cross-platform and can fail silently. More thorough methods are documented in the section called “Backup Strategy”

    [service0@yourserver service0]$ export EDITOR=emacs;crontab -e

    Add this line to the file. The numbers and stars at the beginning are cron columns that specify when the program should be run - in this case, whenever the minute is 0 and the hour is 1, i.e., 1:00 am every day.

    0 1 * * * /usr/local/pgsql/bin/pg_dump -f /web/service0/database-backup/service0_$(date +%Y-%m-%d).dmp service0

    If you plan to back up the whole /web/service0 directory, then it would be redundant to keep a history of database backups. In that case, set up the cron job to overwrite the previous backup each time:

    0 1 * * * /usr/local/pgsql/bin/pg_dump -f /web/service0/database-backup/service0_nightly.dmp service0

    Set up Nightly Postgres Exports

    A quick way to automate database backup is a cron job. - (This should moved into OpenACS's scheduled task project so that - it's integrated with OpenACS's alerts and such.)

    [service0@yourserver service0]$ export EDITOR=emacs;crontab -e

    Add this line to the file. The numbers and stars at the beginning are cron columns that specify when the program should be run - in this case, whenever the minute is 0 and the hour is 1, i.e., 1:00 am every day.

    0 1 * * * /usr/local/pgsql/bin/pg_dump -f /web/service0/database-backup/service0_$(date +%Y-%m-%d).dmp service0

    Back up the file system

    Here's a quick manual way to back up a reference install - +exit

    Back up the file system

    Here's a quick manual way to back up a reference install - it should be replaced by an automated script within OpenACS. The command excludes the auto-generated supervise directory, which is @@ -133,7 +131,20 @@ recursive backup.

    [root@yourserver root]# su - service0
     [service0@yourserver service0]$ tar -cpsj --exclude /web/service0/etc/daemontools/supervise --file /tmp/service0-backup.tar.bz2 /web/service0/ 
     tar: Removing leading `/' from member names
    -[service0@yourserver service0]$

    Testing

    On a test service, make sure that your backup-recovery process work. After backing up the database and file system, delete the service as detailed below and then recover it.

    [root@yourserver root]# svc -d /service/service0
    +[service0@yourserver service0]$

    Automated Backup (OPTIONAL)

    Backup can encompass all files in + /web/service0. For a development + server, putting the files in cvs, and backing up the database nightly, is sufficient. (It's important then to back up the cvs repository!)

    Postgres automatic backup

    Backing up the database consists of creating a file + which is a picture of the database at a particular moment. + Postgres can be backed up while running. A quick way to automate database backup is a cron job. This + is not recommended for production and is not part of the Reference + Platform, because it is not cross-platform and can fail silently. + A more thorough solution using the cronjob OpenACS package is + planned.

    Depending on your overall backup strategy, you can + create a series of database backup files, or you can create a + single nightly backup file which is then collected into a + bigger backup file that includes the other parts of the + service (web pages, content, code). To make a new file every + night, edit the crontab file for service0:

    [service0@yourserver service0]$ export EDITOR=emacs;crontab -e

    Add this line to the file. The numbers and stars at the beginning are cron columns that specify when the program should be run - in this case, whenever the minute is 0 and the hour is 1, i.e., 1:00 am every day.

    0 1 * * * /usr/local/pgsql/bin/pg_dump -f /web/service0/database-backup/service0_$(date +%Y-%m-%d).dmp service0

    If you plan to back up the whole /web/service0 directory, then it would be redundant to keep a history of database backups. In that case, set up the cron job to overwrite the previous backup each time:

    0 1 * * * /usr/local/pgsql/bin/pg_dump -f /web/service0/database-backup/service0_nightly.dmp service0

    A full Backup/Recovery cycle

    On a test service, make sure that your backup-recovery process work. After backing up the database and file system, delete the service as detailed below and then recover it.

    Delete the Service

    [root@yourserver root]# svc -d /service/service0
     [root@yourserver root]# mv /web/service0/ /web/service0.lost
     [root@yourserver root]# rm /service/service0
     rm: remove symbolic link `/service/service0'? y
    @@ -148,7 +159,7 @@
     DROP USER
     [postgres@yourserver pgsql]$ exit
     logout
    -[root@yourserver root]#

    Recovery

    1. Restore the operating system and required software. +[root@yourserver root]#

    Recovery

    1. Restore the operating system and required software. You can do this with standard backup processes or by keeping copies of the install material (OS CDs, OpenACS tarball and supporting software) and repeating the install guide.

    2. Restore the OpenACS service. Assuming the user already exists, restore the database and files from backup and restore the daemontools link. (Because of a bug in Postgres backup-recovery, not all database objects are created in the correct order. To compensate, pre-creating some objects usually work.)

      [root@yourserver root]# su - postgres
      @@ -173,7 +184,7 @@
       [root@yourserver root]# ln -s /web/service0/etc/daemontools /service/service0
       [root@yourserver root]# sleep 10
       [root@yourserver root]# svgroup web /service/service0
      -[root@yourserver root]#

    Other Backup Strategies

    Earlier strategies, included here because this section +[root@yourserver root]#

    Other Backup Strategies

    Earlier strategies, included here because this section hasn't been fully updated yet.

    Set Up Nightly Oracle Exports

    (This has not yet been updated to fit with the Reference install. To do so, edit the backup script to save the backup @@ -265,8 +276,7 @@ root:~# crontab -l | grep export-oracle 0 23 * * * /usr/sbin/export-oracle root:~# exit -; Logout

    If you see the line, go ahead and log out.

    Set up nightly Postgres exports

    - (This is not required for the Reference install.) +; Logout

    If you see the line, go ahead and log out.

    Set up nightly Postgres exports

    This is an alternate method to the crontab backup. Dowload this script to /tmp. At the top of the script are several variables that you'll need to customize: Index: openacs-4/packages/acs-core-docs/www/bootstrap-acs.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/bootstrap-acs.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/bootstrap-acs.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/bootstrap-acs.html 28 Jun 2003 05:07:01 -0000 1.11 @@ -1,5 +1,5 @@ -Bootstrapping OpenACS

    Bootstrapping OpenACS

    +Bootstrapping OpenACS

    Bootstrapping OpenACS

    by Jon Salz
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. Index: openacs-4/packages/acs-core-docs/www/compatibility-matrix.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/Attic/compatibility-matrix.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-core-docs/www/compatibility-matrix.html 24 Jun 2003 03:58:11 -0000 1.1 +++ openacs-4/packages/acs-core-docs/www/compatibility-matrix.html 28 Jun 2003 05:07:01 -0000 1.2 @@ -1,6 +1,6 @@ -Compatibility Matrix

    Compatibility Matrix

    +Compatibility Matrix

    Compatibility Matrix

    by Joel Aufrecht
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

    Figure�2.1.�Compatibility Matrix

    OpenACS Version3.2.54.54.64.6.14.6.24.6.3
    AolServer3Verified
    3.3+ad13Verified
    3.3oacs1Verified
    PostGreSQL7.0Verified
    7.2.xVerified
    7.3.2Not compatibleUntested
    Oracle8.1.6
    8.1.7
    9i
    View comments on this page at openacs.org
    +

    Figure�3.1.�Compatibility Matrix

    OpenACS Version3.2.54.54.64.6.14.6.24.6.3
    AolServer3Verified
    3.3+ad13Verified
    3.3oacs1Verified
    PostGreSQL7.0Verified
    7.2.xVerified
    7.3.2Not compatibleUntested
    Oracle8.1.6Verified
    8.1.7Verified
    9iNo
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/configure.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/Attic/configure.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-core-docs/www/configure.html 24 Jun 2003 03:58:11 -0000 1.1 +++ openacs-4/packages/acs-core-docs/www/configure.html 28 Jun 2003 05:07:01 -0000 1.2 @@ -1,2 +1,2 @@ -Chapter�6.�Configuring a New Service

    Chapter�6.�Configuring a New Service

    Placeholder

    View comments on this page at openacs.org
    +Chapter�7.�Configuring a New Service

    Chapter�7.�Configuring a New Service

    Placeholder

    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/credits.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/credits.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/credits.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/credits.html 28 Jun 2003 05:07:01 -0000 1.11 @@ -1,5 +1,5 @@ -Credits

    Credits

    +Credits

    Credits

    by Vinod Kurup
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. @@ -34,4 +34,4 @@

    All questions and comments regarding this guide should be posted on the OpenACS bboards. -

    ($Id$)
    View comments on this page at openacs.org
    +

    ($Id$)
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/cvs-service-import.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/Attic/cvs-service-import.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-core-docs/www/cvs-service-import.html 24 Jun 2003 03:58:11 -0000 1.1 +++ openacs-4/packages/acs-core-docs/www/cvs-service-import.html 28 Jun 2003 05:07:01 -0000 1.2 @@ -1,5 +1,5 @@ -Add the Service to CVS - OPTIONAL

    Add the Service to CVS - OPTIONAL

    These steps take an existing OpenACS directory and add +Add the Service to CVS - OPTIONAL

    Add the Service to CVS - OPTIONAL

    These steps take an existing OpenACS directory and add it to a CVS repository..

    1. Create and set permissions on a subdirectory in the local cvs repository.

      [root@yourserver root]# mkdir /cvsroot/service0
       [root@yourserver root]# chown service0.web /cvsroot/service0
      @@ -18,11 +18,11 @@
                   plus this string,
                   i.e.
                   /cvsroot/service0.
      -            "OpenACS" is the vendor tag, and "openacs-5-0-0" is the
      +            "OpenACS" is the vendor tag, and "openacs-4-7-0d" is the
                   release tag.  These tags will be useful in upgrading and
                   branching.  -m sets the version comment.

      [root@yourserver root]# su - service0
       [service0@yourserver service0]$ cd /web/service0
      -[service0@yourserver service0]$ cvs import -m "initial install" service0 OpenACS openacs-5-0-0
      +[service0@yourserver service0]$ cvs import -m "initial install" service0 OpenACS openacs-4-7-0d
       N service0/license.txt
       N service0/readme.txt
       (many lines omitted)
      @@ -33,7 +33,7 @@
       [service0@yourserver service0]$
       
      su - service0
       cd /web/service0
      -cvs import -m "initial install" service0 OpenACS openacs-5-0-0

      Move the original directory to a temporary location, and check out the cvs repository in its place. If the service starts correctly, come back and remove the temporary copy of the uploaded files.

      [service0@yourserver service0]$ cd ..
      +cvs import -m "initial install" service0 OpenACS openacs-4-7-0d

      Move the original directory to a temporary location, and check out the cvs repository in its place. If the service starts correctly, come back and remove the temporary copy of the uploaded files.

      [service0@yourserver service0]$ cd ..
       [service0@yourserver web]$ mv service0 service0.orig
       [service0@yourserver web]$ cvs checkout service0
       cvs checkout: Updating service0
      @@ -48,4 +48,4 @@
       
      cd ..
       mv service0 service0.orig
       cvs checkout service0
      -exit
    View comments on this page at openacs.org
    +exit
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/cvs-tips.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/cvs-tips.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-core-docs/www/cvs-tips.html 24 Jun 2003 03:58:11 -0000 1.1 +++ openacs-4/packages/acs-core-docs/www/cvs-tips.html 28 Jun 2003 05:07:01 -0000 1.2 @@ -1,5 +1,5 @@ -Appendix�C.�Install Red Hat 8.0

    Appendix�C.�Install Red Hat 8.0

    +Appendix�C.�Using CVS with an OpenACS Site

    Appendix�C.�Using CVS with an OpenACS Site

    by Joel Aufrecht
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. Index: openacs-4/packages/acs-core-docs/www/database-management.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/database-management.html,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/database-management.html 24 Jun 2003 03:58:11 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/database-management.html 28 Jun 2003 05:07:01 -0000 1.3 @@ -1,5 +1,5 @@ -Database Management

    Database Management

    +Database Management

    Database Management

    by Joel Aufrecht
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. Index: openacs-4/packages/acs-core-docs/www/db-api-detailed.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/db-api-detailed.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/db-api-detailed.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/db-api-detailed.html 28 Jun 2003 05:07:01 -0000 1.11 @@ -1,5 +1,5 @@ -Database Access API

    Database Access API

    +Database Access API

    Database Access API

    by Jon Salz. Revised and expanded by Roberto Mello (rmello at fslc dot usu dot edu), July 2002.
    @@ -731,4 +731,4 @@ The nsv containing the list is initialized by the bootstrap script and should never be referenced directly by user code. Returns the current rdbms type and version. -

    ($Id$)
    View comments on this page at openacs.org
    +

    ($Id$)
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/db-api.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/db-api.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/db-api.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/db-api.html 28 Jun 2003 05:07:01 -0000 1.11 @@ -1,5 +1,5 @@ -The OpenACS Database Access API

    The OpenACS Database Access API

    +The OpenACS Database Access API

    The OpenACS Database Access API

    By Pete Su and Jon Salz. Modified by Roberto Mello. @@ -685,4 +685,4 @@

    ($Id$)

    -

    View comments on this page at openacs.org
    +

    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/dev-guide.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/dev-guide.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/dev-guide.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/dev-guide.html 28 Jun 2003 05:07:01 -0000 1.11 @@ -1,2 +1,2 @@ -Chapter�10.�Development Reference
    View comments on this page at openacs.org
    +Chapter�11.�Development Reference
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/docbook-primer.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/docbook-primer.html,v diff -u -r1.11 -r1.12 --- openacs-4/packages/acs-core-docs/www/docbook-primer.html 24 Jun 2003 03:58:11 -0000 1.11 +++ openacs-4/packages/acs-core-docs/www/docbook-primer.html 28 Jun 2003 05:07:01 -0000 1.12 @@ -1,9 +1,9 @@ -OpenACS Documentation Guide

    OpenACS Documentation Guide

    +OpenACS Documentation Guide

    OpenACS Documentation Guide

    By claus@arsdigita.com, with additions by Roberto Mello and the OpenACS Community -

    Overview of OpenACS 5.0.0 Documentation

    +

    Overview of OpenACS 4.7.0d Documentation

    ArsDigita created a good documentation ground for us to build upon. Some sections of the documentation, however, lack details and examples; others are simply nonexistant. Our goal is to give @@ -32,7 +32,7 @@ In order to separate content and presentation, all OpenACS documentation will be marked up to conform to the DocBook XML DTD - + This enables us to publish in a variety of formats and relieves each contributor of the burden of presentation, freeing him to focus on content and sharing knowledge. @@ -53,7 +53,7 @@ list of elements and use more exotic features in your documents. The list is made up of SGML-elements but basically the same elements are valid in the XML DTD as long as you remember to: - +

    • Always close your tags with corresponding end-tags and to not use other tag minimization @@ -99,7 +99,7 @@ The documentation for each package will make up a little "book" that is structured like this - examples are emphasized: - +

           book                        : Docs for one package - templating
      @@ -123,20 +123,20 @@
             sources of these DocBook documents
             to get an idea of how they are tied together.
           

    Headlines, Sections

    - + Given that your job starts at the sect1-level, all your documents should open with a <sect1>-tag and end with the corresponding </sect1>.

    - + You need to feed every <sect1> two attributes. The first attribute, id, is standard and can be used with all elements. It comes in very handy when interlinking between documents (more about this when talking about links in the section called “Links”). The value of id has to be unique throughout the book you're making since the id's in your sect1's will turn into filenames when the book is parsed into HTML.

    - + The other attribute is xreflabel. The value of this is the text that will appear as the link when referring to this sect1.

    @@ -151,7 +151,7 @@ </sect1>

    - + Inside this container your document will be split up into <sect2>'s, each with the same requirements - id and xreflabel @@ -160,7 +160,7 @@ When it comes to naming your sect2's and below, prefix them with some abbreviation of the id in the sect1 such as requirements-overview.

    Code

    - + For displaying a snippet of code, a filename or anything else you just want to appear as a part of a sentence, we will use the tag <computeroutput>. @@ -170,12 +170,12 @@ <programlisting> is used. Just wrap your code block in it; mono-spacing, indents and all that stuff is taken care of automatically.

    Links

    - + Linking falls into two different categories: inside the book you're making and outside:

    1. Inside linking, cross-referencing other parts of your book

    By having unique id's you can cross-reference any part of your book with a simple tag, regardless of where that part is. -

    Check out how I link to a subsection of the Developer's Guide:

    +	  

    Check out how I link to a subsection of the Developer's Guide:

     
     	    Put this in your XML:
     
    @@ -213,7 +213,7 @@
     	    packages-looks, the
     	    parser will try its best to explain where the link takes you.
     	  

    2. Linking outside the documentation

    - + If you're hyper-linking out of the documentation, it works almost the same way as HTML - the tag is just a little different @@ -234,7 +234,7 @@ do it, so if you want to start converting your documents right away, start out with the ones without graphics ;)

    - + To insert a graphic we use the elements <mediaobject>, <imageobject>, @@ -260,7 +260,7 @@ Put your graphics in a separate directory ("images") and link to them only with relative paths.

    Lists

    - + Here's how you make the DocBook equivalent of the three usual HTML-lists:

    1. How to make an <ul>

    Making an unordered list is pretty much like doing the same thing in HTML - if you close your <li>, that is. The only differences are that each list item has to be wrapped in something more, such as @@ -305,7 +305,7 @@ </variablelist>

    Tables

    - + DocBook supports several types of tables, but in most cases, the <informaltable> is enough: @@ -342,7 +342,7 @@ <table> for an example.

    Emphasis

    - + Our documentation uses two flavors of emphasis - italics and bold type. DocBook uses one - <emphasis>.

    @@ -421,4 +421,4 @@ 8/3/2002Vinod Kurup0.3 Added OpenACS information, updated tools, added extra links and added info to the Publishing section. - 12/24/2001Roberto Mello0.2Changed recommendation from <phrase> to <emphasis role="strong">01/19/2000Claus Rasmussen0.1Creation12/2000Claus Rasmussen

    View comments on this page at openacs.org
    + 12/24/2001Roberto Mello0.2Changed recommendation from <phrase> to <emphasis role="strong">01/19/2000Claus Rasmussen0.1Creation12/2000Claus Rasmussen
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/eng-standards-constraint-naming.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/eng-standards-constraint-naming.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/eng-standards-constraint-naming.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/eng-standards-constraint-naming.html 28 Jun 2003 05:07:01 -0000 1.11 @@ -1,5 +1,5 @@ -Constraint naming standard

    Constraint naming standard

    By mbryzek@arsdigita.com


    +Constraint naming standard

    Constraint naming standard

    By mbryzek@arsdigita.com


    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff.

    The Big Picture

    Index: openacs-4/packages/acs-core-docs/www/eng-standards-filenaming.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/eng-standards-filenaming.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/eng-standards-filenaming.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/eng-standards-filenaming.html 28 Jun 2003 05:07:01 -0000 1.11 @@ -1,5 +1,5 @@ -ACS File Naming and Formatting Standards

    ACS File Naming and Formatting Standards

    By michael@arsdigita.com and +ACS File Naming and Formatting Standards

    ACS File Naming and Formatting Standards

    By michael@arsdigita.com and aure@arsdigita.com


    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. Index: openacs-4/packages/acs-core-docs/www/eng-standards-plsql.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/eng-standards-plsql.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/eng-standards-plsql.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/eng-standards-plsql.html 28 Jun 2003 05:07:01 -0000 1.11 @@ -1,5 +1,5 @@ -PL/SQL Standards

    PL/SQL Standards

    +PL/SQL Standards

    PL/SQL Standards

    By richardl@arsdigita.com and yon@arsdigita.com


    @@ -153,4 +153,4 @@ as possible to all source code readers.

  • Lowercase everything, with the exception of %TYPE and %ROWTYPE. -

  • ($Id$)
    View comments on this page at openacs.org
    +

    ($Id$)
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/eng-standards-versioning.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/eng-standards-versioning.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/eng-standards-versioning.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/eng-standards-versioning.html 28 Jun 2003 05:07:01 -0000 1.11 @@ -1,5 +1,5 @@ -Release Version Numbering

    Release Version Numbering

    By Ron Henderson


    +Release Version Numbering

    Release Version Numbering

    By Ron Henderson


    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff.

    Index: openacs-4/packages/acs-core-docs/www/eng-standards.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/eng-standards.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/eng-standards.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/eng-standards.html 28 Jun 2003 05:07:01 -0000 1.10 @@ -1,2 +1,2 @@ -Chapter�11.�Engineering Standards

    View comments on this page at openacs.org
    +Chapter�12.�Engineering Standards
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/filename.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/filename.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/filename.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/filename.html 28 Jun 2003 05:07:01 -0000 1.11 @@ -1,5 +1,5 @@ -Detailed Design Documentation Template

    Detailed Design Documentation Template

    By You

    Start Note

    +Detailed Design Documentation Template

    Detailed Design Documentation Template

    By You

    Start Note

    NOTE: Some of the sections of this template may not apply to your package, e.g. there may be no user-visible UI elements for a component of the OpenACS Core. Furthermore, it may be easier in some circumstances @@ -115,7 +115,7 @@ within the OpenACS, this section's details are likely to shift from UI specifics to template interface specifics.

    Configuration/Parameters

    - Under OpenACS 5.0.0, parameters are set at two levels: at the global level by + Under OpenACS 4.7.0d, parameters are set at two levels: at the global level by the OpenACS-admin, and at the subsite level by a sub-admin. In this section, list and discuss both levels of parameters.

    Future Improvements/Areas of Likely Change

    Index: openacs-4/packages/acs-core-docs/www/groups-design.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/groups-design.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/groups-design.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/groups-design.html 28 Jun 2003 05:07:01 -0000 1.10 @@ -1,5 +1,5 @@ -OpenACS 4 Groups Design

    OpenACS 4 Groups Design

    +OpenACS 4 Groups Design

    OpenACS 4 Groups Design

    by Rafael H. Schloming and Mark Thomas
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. Index: openacs-4/packages/acs-core-docs/www/groups-requirements.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/groups-requirements.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/groups-requirements.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/groups-requirements.html 28 Jun 2003 05:07:01 -0000 1.10 @@ -1,5 +1,5 @@ -OpenACS 4 Groups Requirements

    OpenACS 4 Groups Requirements

    +OpenACS 4 Groups Requirements

    OpenACS 4 Groups Requirements

    by Rafael H. Schloming, Mark Thomas
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. Index: openacs-4/packages/acs-core-docs/www/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/index.adp,v diff -u -r1.11 -r1.12 --- openacs-4/packages/acs-core-docs/www/index.adp 24 Jun 2003 03:58:11 -0000 1.11 +++ openacs-4/packages/acs-core-docs/www/index.adp 28 Jun 2003 05:07:01 -0000 1.12 @@ -54,7 +54,7 @@ - Help improve OpenACS documentation Archive - - Documentation for Earlier Versions of OpenACS + - Documentation for Earlier Versions of OpenACS Index: openacs-4/packages/acs-core-docs/www/index.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/index.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/index.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/index.html 28 Jun 2003 05:07:01 -0000 1.10 @@ -1,2 +1,2 @@ -OpenACS Documentation

    OpenACS Documentation


    Table of Contents

    I. OpenACS For Everyone
    1. High level information: What is OpenACS?
    Overview
    OpenACS Release Notes
    II. Administrator's Guide
    2. Prerequisite Software
    Compatibility Matrix
    Individual Programs
    3. Installing on Unix/Linux
    Overview
    Install Linux and supporting software
    Install Oracle 8.1.7
    Install PostGreSQL 7.2.4
    Install AOLserver 3.3oacs1
    Install OpenACS 5.0.0
    Credits
    4. Installing on Windows
    OpenACS Installation Guide for Windows2000
    5. Installing on a Macintosh
    OpenACS Installation Guide for Mac OS X
    6. Configuring a New Service
    7. Upgrading
    Support for upgrades.
    Upgrading OpenACS 4.5 to 4.6
    8. Maintenance
    Hosting Web Sites
    Database Management
    Backup and Recovery
    A. Install Red Hat 8.0
    B. Install additional supporting software
    Unpack the OpenACS tarball
    Initialize CVS (OPTIONAL)
    Add PSGML commands to emacs init file (OPTIONAL)
    Install Daemontools (OPTIONAL)
    Install qmail (OPTIONAL)
    Install nsopenssl
    III. For OpenACS Package Developers
    9. Development Tutorial
    Creating a Package
    Setting Up Database Objects
    Creating Web Pages
    Debugging and Automated Testing
    Advanced Topics
    10. Development Reference
    OpenACS 5.0.0 Packages
    OpenACS Data Models and the Object System
    The Request Processor
    The OpenACS Database Access API
    Using Templates in OpenACS 5.0.0
    Groups, Context, Permissions
    Writing OpenACS 5.0.0 Application Pages
    Parties in OpenACS 5.0.0
    OpenACS 4.x Permissions Tediously Explained
    Object Identity
    Programming with AOLserver
    11. Engineering Standards
    OpenACS Documentation Guide
    Using PSGML mode in Emacs
    Detailed Design Documentation Template
    System/Application Requirements Template
    Release Version Numbering
    Constraint naming standard
    ACS File Naming and Formatting Standards
    PL/SQL Standards
    C. Install Red Hat 8.0
    Add the Service to CVS - OPTIONAL
    IV. For OpenACS Platform Developers
    12. Kernel Documentation
    Overview
    OpenACS 4 Object Model Requirements
    OpenACS 4 Object Model Design
    OpenACS 4 Permissions Requirements
    OpenACS 4 Permissions Design
    OpenACS 4 Groups Requirements
    OpenACS 4 Groups Design
    OpenACS 4 Subsites Requirements
    OpenACS 4 Subsites Design Document
    OpenACS 5.0.0 Package Manager Requirements
    OpenACS 5.0.0 Package Manager Design
    Database Access API
    OpenACS 4 Security Requirements
    OpenACS 4 Security Design
    OpenACS 4 Security Notes
    OpenACS 4 Request Processor Requirements
    OpenACS 4 Request Processor Design
    Documenting Tcl Files: Page Contracts and Libraries
    Bootstrapping OpenACS

    List of Tables

    10.1.
    10.2.
    10.3.
    10.4.
    10.5.
    10.6.
    10.7.
    10.8.
    10.9.
    10.10.
    10.11.
    10.12.
    View comments on this page at openacs.org
    +OpenACS Documentation

    OpenACS Documentation


    Table of Contents

    I. OpenACS For Everyone
    1. High level information: What is OpenACS?
    Overview
    OpenACS Release Notes
    II. Administrator's Guide
    2. Quick Install
    3. Prerequisite Software
    Compatibility Matrix
    Individual Programs
    4. Installing on Unix/Linux
    Overview
    Install Linux and supporting software
    Install Oracle 8.1.7
    Install PostGreSQL
    Install AOLserver 3.3oacs1
    Install OpenACS 4.7.0d
    Credits
    5. Installing on Windows
    OpenACS Installation Guide for Windows2000
    6. Installing on a Macintosh
    OpenACS Installation Guide for Mac OS X
    7. Configuring a New Service
    8. Upgrading
    Support for upgrades.
    Upgrading OpenACS 4.5 to 4.6
    9. Maintenance
    Hosting Web Sites
    Database Management
    Backup and Recovery
    A. Install Red Hat 8.0
    B. Install additional supporting software
    Unpack the OpenACS tarball
    Initialize CVS (OPTIONAL)
    Add PSGML commands to emacs init file (OPTIONAL)
    Install Daemontools (OPTIONAL)
    Install qmail (OPTIONAL)
    Install Analog web file analyzer
    Install nsopenssl
    III. For OpenACS Package Developers
    10. Development Tutorial
    Creating a Package
    Setting Up Database Objects
    Creating Web Pages
    Debugging and Automated Testing
    Advanced Topics
    11. Development Reference
    OpenACS 4.7.0d Packages
    OpenACS Data Models and the Object System
    The Request Processor
    The OpenACS Database Access API
    Using Templates in OpenACS 4.7.0d
    Groups, Context, Permissions
    Writing OpenACS 4.7.0d Application Pages
    Parties in OpenACS 4.7.0d
    OpenACS 4.x Permissions Tediously Explained
    Object Identity
    Programming with AOLserver
    12. Engineering Standards
    OpenACS Documentation Guide
    Using PSGML mode in Emacs
    Detailed Design Documentation Template
    System/Application Requirements Template
    Release Version Numbering
    Constraint naming standard
    ACS File Naming and Formatting Standards
    PL/SQL Standards
    C. Using CVS with an OpenACS Site
    Add the Service to CVS - OPTIONAL
    IV. For OpenACS Platform Developers
    13. Kernel Documentation
    Overview
    OpenACS 4 Object Model Requirements
    OpenACS 4 Object Model Design
    OpenACS 4 Permissions Requirements
    OpenACS 4 Permissions Design
    OpenACS 4 Groups Requirements
    OpenACS 4 Groups Design
    OpenACS 4 Subsites Requirements
    OpenACS 4 Subsites Design Document
    OpenACS 4.7.0d Package Manager Requirements
    OpenACS 4.7.0d Package Manager Design
    Database Access API
    OpenACS 4 Security Requirements
    OpenACS 4 Security Design
    OpenACS 4 Security Notes
    OpenACS 4 Request Processor Requirements
    OpenACS 4 Request Processor Design
    Documenting Tcl Files: Page Contracts and Libraries
    Bootstrapping OpenACS

    List of Tables

    11.1.
    11.2.
    11.3.
    11.4.
    11.5.
    11.6.
    11.7.
    11.8.
    11.9.
    11.10.
    11.11.
    11.12.
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/individual-programs.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/individual-programs.html,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/individual-programs.html 24 Jun 2003 03:58:11 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/individual-programs.html 28 Jun 2003 05:07:01 -0000 1.3 @@ -1,5 +1,5 @@ -Individual Programs

    Individual Programs

    • OpenACS 5.0.0.�The OpenACS tarball comprises the core packages and +Individual Programs

      Individual Programs

      • OpenACS 4.7.0d.�The OpenACS tarball comprises the core packages and many useful additional packages. This includes a full set of documentation. The tarball works with both PostGreSQL and Oracle.

      • Operating System.�OpenACS is designed for a Unix-like system. It is @@ -31,20 +31,17 @@ distributions.

      • TCL 8.3 development headers and libraries, OPTIONAL.� The site-wide-search service, OpenFTS, requires these to compile. (Debian users: apt-get install tcl8.3-dev). You need this - to install OpenFTS.

    • libxml2 and libxml2-devel, REQUIRED.� OpenACS 5.0.0 stores + to install OpenFTS.

  • tDOM, REQUIRED.�OpenACS 4.7.0d stores queries in XML files, so we use an AOLserver module called - nsxml to parse these files. libxml2-devel is required to - compile nsxml. Libxml2 is available from http://xmlsoft.org). On Debian, - this can be installed by doing apt-get install - libxml2-dev. Users of other distributions can - download rpms from rpmfind.net.

  • Web Server.�The web server handles incoming HTTP requests, provides + tDOM to parse these files. (This replaces libxml2, which + was used prior to 4.6.4.) tDOM is available from http://tdom.org).

  • Web Server.�The web server handles incoming HTTP requests, provides a runtime environment for OpenACS's tcl code, connects to the database, sends out HTTP responses, and logs requests and errors. OpenACS uses AOLserver; some people have had success running Apache with mod_nsd - see this post.

    • AOLserver 3.3oacs1, REQUIRED.�Mat Kovach's source distribution of AOLserver, including all of the patches listed below.

      Mat Kovach is graciously maintaining an AOLserver distribution that - includes all the patches and modules needed to run OpenACS 5.0.0. These + includes all the patches and modules needed to run OpenACS 4.7.0d. These instructions will describe how to install using his source distribution. He also has binaries for SuSE 7.3 and OpenBSD 2.8 (and perhaps more to come), currently located at uptime.openacs.org. @@ -66,8 +63,6 @@ (i.e. postgres.so)

    • - nsxml is available at http://acs-misc.sourceforge.net. -

    • The patch that makes exec work on BSD is available at sourceforge.net

    • @@ -107,14 +102,14 @@ Agent) if you want your webserver to send and receive email.

    • ucspi-tcp 0.88, OPTIONAL.�This program listens for incoming TCP connections and hands them to a program. We use it instead of inetd, - which is insecure. You need this if you are running qmail.

  • DocBook, OPTIONAL.�(docbook-xml v4.2, docbook-xsl v1.56, libxslt 1.0.21, + which is insecure. You need this if you are running qmail.

  • DocBook, OPTIONAL.�(docbook-xml v4.2, docbook-xsl v1.56, libxslt 1.0.21, xsltproc 1.0.21). You need this to write or edit documentation.

  • Source Control.�A Source Control system keeps track of all of the old versions of your files. It lets you recover old files, compare versions of file, and identify specific versions of files. You can use any source control system; the Reference Platform and the OpenACS.org repository (where you can - get patched and development code in between releases) use cvs.

    • cvs 1.11.2, OPTIONAL.�cvs is included in most unix distributions. You + get patched and development code in between releases) use cvs.

      • cvs 1.11.2, OPTIONAL.�cvs is included in most unix distributions. You need this if you want to track old versions of your files, do controlled deployment of code from development - to production, or get or contribute development code from openacs.org.

  • View comments on this page at openacs.org
    + to production, or get or contribute development code from openacs.org.

    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/install-cvs.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/install-cvs.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-core-docs/www/install-cvs.html 24 Jun 2003 03:58:11 -0000 1.1 +++ openacs-4/packages/acs-core-docs/www/install-cvs.html 28 Jun 2003 05:07:01 -0000 1.2 @@ -1,5 +1,5 @@ -Initialize CVS (OPTIONAL)

    Initialize CVS (OPTIONAL)

    CVS is a source control system. Create and initialize a +Initialize CVS (OPTIONAL)

    Initialize CVS (OPTIONAL)

    CVS is a source control system. Create and initialize a directory for a local cvs repository.

    [root@yourserver tmp]# mkdir /cvsroot
     [root@yourserver tmp]# cvs -d /cvsroot init
     [root@yourserver tmp]#
    Index: openacs-4/packages/acs-core-docs/www/install-daemontools.html
    ===================================================================
    RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/install-daemontools.html,v
    diff -u -r1.1 -r1.2
    --- openacs-4/packages/acs-core-docs/www/install-daemontools.html	24 Jun 2003 03:58:11 -0000	1.1
    +++ openacs-4/packages/acs-core-docs/www/install-daemontools.html	28 Jun 2003 05:07:01 -0000	1.2
    @@ -4,10 +4,11 @@
           installed in /package.  These commands install daemontools and
           svgroup.  svgroup is a script for granting permissions, to allow
           users other than root to use daemontools for specific
    -      services.

    1. Install Daemontools

      • Red Hat

        Make sure you have the source tarball in + services.

        1. Install Daemontools

          • Red Hat

            Make sure you have the source tarball in /tmp, or download it. (The -p flag in mkdir causes all implied directories in the path - to be made as well.)

            (If you are using Red Hat 9.0, you need to put #include <errno.h> as the first line of /package/admin/daemontools-0.76/src/error.h. More information)

            [root@yourserver root]# mkdir -p /package
            +              to be made as well.)

            (Red Hat 9.0: put +

            #include <errno.h>

            as the first line of /package/admin/daemontools-0.76/src/error.h. More information)

            [root@yourserver root]# mkdir -p /package
             [root@yourserver root]# chmod 1755 /package/
             [root@yourserver root]# cd /package/
             [root@yourserver package]# tar xzf /tmp/daemontools-0.76.tar.gz
            @@ -24,13 +25,13 @@
             cd /package 
             tar xzf /tmp/daemontools-0.76.tar.gz 
             cd admin/daemontools-0.76 
            -package/install
          • Debian

            root:~# apt-get install daemontools-installer
            -root:~# build-daemontools
        2. Verify that svscan is running. If it is, you should see +package/install

  • Debian

    root:~# apt-get install daemontools-installer
    +root:~# build-daemontools
  • Verify that svscan is running. If it is, you should see these two processes running:

    [root@yourserver root]# ps -auxw | grep service
     root     13294  0.0  0.1  1352  272 ?        S    09:51   0:00 svscan /service
     root     13295  0.0  0.0  1304  208 ?        S    09:51   0:00 readproctitle service errors: .......................................
     [root@yourserver root]#
  • Install a script to grant non-root users permission to - control daemontools services.

    [root@yourserver root]# cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/svgroup.txt /usr/local/bin/svgroup
    +        control daemontools services.

    [root@yourserver root]# cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/svgroup.txt /usr/local/bin/svgroup
     [root@yourserver root]# chmod 755 /usr/local/bin/svgroup
    -
    cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/svgroup.txt /usr/local/bin/svgroup 
    +
    cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/svgroup.txt /usr/local/bin/svgroup 
     chmod 755 /usr/local/bin/svgroup
  • View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/install-full-text-search.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/Attic/install-full-text-search.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-core-docs/www/install-full-text-search.html 24 Jun 2003 03:58:11 -0000 1.1 +++ openacs-4/packages/acs-core-docs/www/install-full-text-search.html 28 Jun 2003 05:07:01 -0000 1.2 @@ -1,5 +1,5 @@ -

    Install OpenFTS module

    If you want full text search, and you are running PostGreSQL, install this module to support FTS. Do this step after you have installed both PostGreSQL and +

    Install OpenFTS module

    If you want full text search, and you are running PostGreSQL, install this module to support FTS. Do this step after you have installed both PostGreSQL and Aolserver. You will need the openfts tarball in /tmp.

    1. Install Tsearch. This is a PostGreSQL module that OpenFTS requires.

      [root@yourserver root]# su - postgres
      @@ -75,7 +75,7 @@
       make
       su postgres
       make install
      -exit

    Install OpenFTS prerequisites in PostGreSQL instance

    If you are installing Full Text Search, add required +exit

    Install OpenFTS prerequisites in PostGreSQL instance

    If you are installing Full Text Search, add required packages to the new database. (In order for full text search to work, you must also install the PostGreSQL OpenFTS module and prerequisites.)

    [service0@yourserver service0]$ /usr/local/pgsql/bin/psql service0 -f /usr/local/src/postgresql-7.2.4/contrib/tsearch/tsearch.sql
    @@ -114,4 +114,4 @@
     line, click
     Install.
     

  • Restart the service.

    [service0@yourserver service0]$ svc -t /service/service0
    -[service0@yourserver service0]$
  • Test FTS. (INCOMPLETE). Add a package that supports search,like "note," add some content, and search for it.

  • View comments on this page at openacs.org
    +[service0@yourserver service0]$
  • Test FTS. (INCOMPLETE). Add a package that supports search,like "note," add some content, and search for it.

  • View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/install-more-software.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/install-more-software.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-core-docs/www/install-more-software.html 24 Jun 2003 03:58:11 -0000 1.1 +++ openacs-4/packages/acs-core-docs/www/install-more-software.html 28 Jun 2003 05:07:01 -0000 1.2 @@ -1,5 +1,5 @@ -Appendix�B.�Install additional supporting software

    Appendix�B.�Install additional supporting software

    +Appendix�B.�Install additional supporting software

    Appendix�B.�Install additional supporting software

    by Joel Aufrecht
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. Index: openacs-4/packages/acs-core-docs/www/install-nsopenssl.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/install-nsopenssl.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-core-docs/www/install-nsopenssl.html 24 Jun 2003 03:58:11 -0000 1.1 +++ openacs-4/packages/acs-core-docs/www/install-nsopenssl.html 28 Jun 2003 05:07:01 -0000 1.2 @@ -7,7 +7,7 @@ later. You will need the unpacked Aolserver tarball in /usr/local/src/aolserver and the nsopenssl tarball in - /tmp.

    (Red Hat 9 note: see this + /tmp.

    Red Hat 9 note: see this thread for details on compiling nsopenssl.)

    [root@yourserver bin]# cd /usr/local/src/aolserver
     [root@yourserver aolserver]# tar xzf /tmp/nsopenssl-2.1.tar.gz
     [root@yourserver aolserver]# cd nsopenssl-2.1
    @@ -25,4 +25,9 @@
     cp nsopenssl.so /usr/local/aolserver/bin 
     cp https.tcl /usr/local/aolserver/modules/tcl/

    For Debian (more information):

    apt-get install libssl-dev
    -make OPENSSL=/usr/lib/ssl
    View comments on this page at openacs.org
    +cd /usr/local/src/aolserver +tar xzf /tmp/nsopenssl-2.1.tar.gz +cd nsopenssl-2.1 +make OPENSSL=/usr/lib/ssl +cp nsopenssl.so /usr/local/aolserver/bin +cp https.tcl /usr/local/aolserver/modules/tcl/
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/install-overview.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/install-overview.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/install-overview.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/install-overview.html 28 Jun 2003 05:07:01 -0000 1.10 @@ -1,22 +1,22 @@ -Overview

    Overview

    +Overview

    Overview

    by Vinod Kurup
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff.

    Purpose of this document

    This document will describe how to install, configure, and - maintain an installation of OpenACS 5.0.0 on a Unix-like + maintain an installation of OpenACS 4.7.0d on a Unix-like system, including all supporting software. All examples - in this chapter are part of the OpenACS 5.0.0-P or - OpenACS 5.0.0-O Reference Platform, which use Red + in this chapter are part of the OpenACS 4.7.0d-P or + OpenACS 4.7.0d-O Reference Platform, which use Red Hat 8.0. Differences between the Reference Platform - and common alternate platforms are noted where known. + and common alternate platforms (Red Hat 9, Debian) are noted where known.

    Requirements

    You will need a PC (or equivalent) with at least these minimum requirements:

    • Pentium processor

    • 128 MB RAM - (much more if you want Oracle)

    • 4 GB hard drive

    You will need all of the the section called “Individual Programs” marked REQUIRED.

    + (much more if you want Oracle)

  • 4 GB hard drive

  • You will need all everthing marked REQUIRED in the section called “Individual Programs”.

    If you want to serve pages to people outside of your machine, you'll need a network connection of some type.

    @@ -44,8 +44,8 @@ development purposes. This is described in the Acquire Oracle section.

    Steps involved

    The basic steps to getting OpenACS up and running are: -

    1. Install an OS

    2. Install a webserver (AOLServer)

    3. Install a database (Oracle or - PostgreSQL)

    4. Copy the OpenACS files into place and start the OpenACS installer, which will configure a database instance.

    How to use this guide

    • This is text you will see on +

      1. Install an OS

      2. Install a database (Oracle or + PostgreSQL)

      3. Install a webserver (AOLServer)

      4. Copy the OpenACS files into place and start the OpenACS installer, which will configure a database instance.

    How to use this guide

    • This is text you will see on screen, such as a Button or link in a radio button list or menu.

    • This is text that you will type.

    • This is text from a program or file which you may need to examine or edit:

      if {$database == "oracle"} {
      @@ -108,7 +108,7 @@
             better way. Well, not quite. Jonathan Marsden has created RPMs (at
             http://www.xc.org)
             for OpenACS 4.5 but there are not yet any for version
      -      5.0.0. There has been talk about automating the install process,
      +      4.7.0d. There has been talk about automating the install process,
             but that hasn't happened yet. Stay tuned!
       
           

    Where did this document come from?

    @@ -230,4 +230,4 @@ IBM developerworks on basic and intermediate Linux skills (requires registration) -

    ($Id$)
    View comments on this page at openacs.org
    +

    ($Id$)
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/install-qmail.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/install-qmail.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-core-docs/www/install-qmail.html 24 Jun 2003 03:58:11 -0000 1.1 +++ openacs-4/packages/acs-core-docs/www/install-qmail.html 28 Jun 2003 05:07:01 -0000 1.2 @@ -1,6 +1,6 @@ -Install qmail (OPTIONAL)

    Install qmail (OPTIONAL)

    Qmail is a Mail Transfer Agent. It handles incoming and outgoing mail. Install qmail if you want your OpenACS server to send and receive mail, and you don't want to use an alternate MTA.

    1. Install ucspi.�This program handles incoming tcp connections. - Download ucspi and install it.

      [root@yourserver root]# cd /usr/local/src
      +Install qmail (OPTIONAL)

      Install qmail (OPTIONAL)

      Qmail is a Mail Transfer Agent. It handles incoming and outgoing mail. Install qmail if you want your OpenACS server to send and receive mail, and you don't want to use an alternate MTA.

      1. Install ucspi.�This program handles incoming tcp connections. + Download ucspi and install it.

        Red Hat 9.0: put

        #include <errno.h>

        as the first line of error.h. More information)

        [root@yourserver root]# cd /usr/local/src
         [root@yourserver src]# tar xzf /tmp/ucspi-tcp-0.88.tar.gz
         [root@yourserver src]# cd ucspi-tcp-0.88
         [root@yourserver ucspi-tcp-0.88]# make
        @@ -22,7 +22,7 @@
         tcpserver: usage: tcpserver [ -1UXpPhHrRoOdDqQv ] [ -c limit ] [ -x rules.cdb ] [ -B banner ] [ -g gid ] [ -u uid
         ] [ -b backlog ] [ -l localname ] [ -t timeout ] host port program
         [root@yourserver ucspi-tcp-0.88]#
        -

        +

      (I'm not sure if this next step is 100% necessary, but when I skip it I get problems. If you get the error 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) then you need to do this.) AOLServer sends outgoing mail via the ns_sendmail command, which pipes a command to the sendmail executable. Or, in our @@ -33,11 +33,16 @@ Unless this mail is addressed to the same machine, qmail thinks that it's an attempt to relay mail, and rejects it. So these two commands set up an exception so that any mail sent from 127.0.0.1 is allowed to -send outgoing mail.

      [root@yourserver ucspi-tcp-0.88]# cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/tcp.smtp.txt /etc/tcp.smtp
      +send outgoing mail.

      [root@yourserver ucspi-tcp-0.88]# cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/tcp.smtp.txt /etc/tcp.smtp
       [root@yourserver ucspi-tcp-0.88]# tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
      -
      cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/tcp.smtp.txt /etc/tcp.smtp 
      -tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp 
    2. Install Qmail.�

      Download qmail, - set up the standard supporting users and build the binaries:

      (If you are using Red Hat 9.0, you need to put #include <errno.h> as the first line of /usr/local/src/qmail-1.03/error.h. More information)

      [root@yourserver root]# cd /usr/local/src
      +
      cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/tcp.smtp.txt /etc/tcp.smtp 
      +tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp 
    3. Install Qmail.�

      Download qmail, + set up the standard supporting users and build the binaries:

      Red Hat 9.0: Put +

      #include <errno.h>

      +as the first line of + /usr/local/src/qmail-1.03/error.h. + More + information

      [root@yourserver root]# cd /usr/local/src
       [root@yourserver src]# tar xzf /tmp/qmail-1.03.tar.gz
       [root@yourserver src]# mkdir /var/qmail
       [root@yourserver src]# groupadd nofiles
      @@ -70,10 +75,10 @@
       useradd -g qmail -d /var/qmail qmailr 
       useradd -g qmail -d /var/qmail qmails
       cd qmail-1.03 
      -make setup check

      Replace sendmail with qmail's wrapper.

      [root@yourserver qmail-1.03]# rm -f /usr/bin/sendmail
      +make setup check

      Replace sendmail with qmail's wrapper.

      [root@yourserver qmail-1.03]# rm -f /usr/bin/sendmail /usr/sbin/sendmail
       [root@yourserver qmail-1.03]# ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
       [root@yourserver qmail-1.03]#
      -
      rm -f /usr/bin/sendmail 
      +
      rm -f /usr/bin/sendmail /usr/sbin/sendmail
       ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail

      Configure qmail - specifically, run the config script to set up files in /var/qmail/control specifying the computer's identity and which addresses it should accept mail for. This command will automatically set up qmail correctly if you have correctly set a valid host nome. If not, you'll want to read /var/qmail/doc/INSTALL.ctl to find out how to configure qmail.

      [root@yourserver qmail-1.03]# ./config-fast yourserver.test
       Your fully qualified host name is yourserver.test.
       Putting yourserver.test into control/me...
      @@ -92,61 +97,58 @@
       
      cd ~alias; touch .qmail-postmaster .qmail-mailer-daemon .qmail-root 
       chmod 644 ~alias/.qmail* 
       /var/qmail/bin/maildirmake ~alias/Maildir/ 
      -chown -R alias.nofiles /var/qmail/alias/Maildir

      Configure qmail to use the Maildir delivery format +chown -R alias.nofiles /var/qmail/alias/Maildir

      Configure qmail to use the Maildir delivery format (instead of mbox), and install a version of the qmail startup script modified to use Maildir.

      [root@yourserver alias]# echo "./Maildir" > /var/qmail/bin/.qmail
      -[root@yourserver alias]# cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/qmail.rc.txt /var/qmail/rc
      +[root@yourserver alias]# cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/qmail.rc.txt /var/qmail/rc
       [root@yourserver alias]# chmod 755 /var/qmail/rc
       [root@yourserver alias]# 
       
      echo "./Maildir" > /var/qmail/bin/.qmail 
      -cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/qmail.rc.txt /var/qmail/rc 
      +cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/qmail.rc.txt /var/qmail/rc 
       chmod 755 /var/qmail/rc 
       

      Set up the skeleton directory so that new users will - be configured for qmail.

      [root@localhost root]# /var/qmail/bin/maildirmake /etc/skel/Maildir
      -[root@localhost root]# echo "./Maildir/" > /etc/skel/.qmail
      -[root@localhost root]# 
      +          be configured for qmail.

      [root@yourserver root]# /var/qmail/bin/maildirmake /etc/skel/Maildir
      +[root@yourserver root]# echo "./Maildir/" > /etc/skel/.qmail
      +[root@yourserver root]# 
       
      /var/qmail/bin/maildirmake /etc/skel/Maildir
      -echo "./Maildir/" > /etc/skel/.qmail

      Qmail runs in two parts. First, several different - qmail daemons are started by the qmail rc file. Second, a - process is started in within tcpserver to listen for incoming smtp traffic. Run both of these commands to start qmail. Be very careful about line breaks - there should be a total of two commands here. Note also that the tcpserver command takes the uid and guid of qmaild, which will only be 502 and 501 if you have followed all of these instructions exactly and in order. Otherwise, grep qmaild /etc/passwd to find uid and guid, in that order.

      [root@yourserver alias]# /usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -v -u 502 -g 501 0 smtp /var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd 3 &
      -[1] 15863
      -[root@yourserver alias]# csh -cf '/var/qmail/rc &'
      -[1] 15865
      -[root@yourserver alias]#
      -
      /usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -v -u 502 -g 501 0 smtp /var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd 3 & 
      -csh -cf '/var/qmail/rc &'

      Verify that seven different qmail threads are running:

      [root@yourserver alias]# ps -auxw | grep
      -          qmail
      -qmaild    4269  0.0  0.3  1384  452 pts/0    S    21:21   0:00 [tcpserver]
      -root      4270  0.0  0.3  1340  412 pts/0    S    21:21   0:00 /var/qmail/bin/splogger smtpd 3
      -qmails    4272  0.1  0.2  1364  320 pts/0    S    21:21   0:00 [qmail-send]
      -qmaill    4273  0.0  0.3  1332  408 pts/0    S    21:21   0:00 [splogger]
      -root      4274  0.0  0.2  1332  272 pts/0    S    21:21   0:00 qmail-lspawn ./Maildir/
      -qmailr    4275  0.0  0.2  1328  272 pts/0    S    21:21   0:00 [qmail-rspawn]
      -qmailq    4276  0.0  0.2  1324  280 pts/0    S    21:21   0:00 [qmail-clean]
      -root      4278  0.0  0.5  3280  632 pts/0    S    21:21   0:00 grep qmail
      -[root@yourserver alias]#

      Further verify by sending and receiving email. Incoming mail for root is stored in /var/qmail/alias/Maildir. If it worked, make it permanent by putting the same commands in your startup scripts. (These instructions put the commands in rc.local, which means that they'll be run once, on boot. There will be no monitoring and no interface to start and stop and check status. We ought instead to either use full init scripts or daemontools.)

      [root@yourserver alias]# echo "/usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -v -u 502 -g 501 0 smtp /var/qmail/bin/qmail-smtpd \ " >> /etc/rc.local
      -[root@yourserver alias]# echo "2>&1 | /var/qmail/bin/splogger smtpd 3 &  " >> /etc/rc.local
      -[root@yourserver alias]# echo "csh -cf '/var/qmail/rc &' " >> /etc/rc.local
      -[root@yourserver alias]# 
      -
      echo "/usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -v -u 502 -g 501 0 smtp /var/qmail/bin/qmail-smtpd \ " >> /etc/rc.local
      -echo "2>&1 | /var/qmail/bin/splogger smtpd 3 &  " >> /etc/rc.local
      -echo "csh -cf '/var/qmail/rc &' " >> /etc/rc.local
    4. Analog web file analyser. You should -have the source tarball in -/tmp. Unpack, compile, and install analog.

      [root@yourserver aolserver]# cd /usr/local/src
      -[root@yourserver src]# tar xzf /tmp/analog-5.31.tar.gz
      -[root@yourserver src]# cd analog-5.31
      -[root@yourserver analog-5.31]# make
      -cd src && make
      -make[1]: Entering directory `/usr/local/src/analog-5.31/src'
      -(many lines omitted)
      -***IMPORTANT: You must read the licence before using analog
      -***
      -make[1]: Leaving directory `/usr/local/src/analog-5.31/src'
      -[root@yourserver analog-5.31]# cd ..
      -[root@yourserver src]# mv analog-5.31 /usr/share/
      -[root@yourserver src]#
      -
      cd /usr/local/src
      -tar xzf /tmp/analog-5.31.tar.gz
      -cd analog-5.31
      -make
      -cd ..
      -mv analog-5.31 /usr/share/

      See also the section called “Set up Log Analysis Reports - OPTIONAL”

    View comments on this page at openacs.org
    +echo "./Maildir/" > /etc/skel/.qmail

    As recommended, we will run qmail with daemontools + control files. Create daemontools control directories, set up a daemontools control script, copy the supervise control files, and set permissions. The last line links the control directories to /service, which will cause supervise to detect them and execute the run files, causing qmail to start.

    [root@yourserver root]# mkdir -p /var/qmail/supervise/qmail-send/log
    +[root@yourserver root]# mkdir -p /var/qmail/supervise/qmail-smtpd/log
    +[root@yourserver root]# mkdir /var/log/qmail
    +[root@yourserver root]# chown qmaill /var/log/qmail
    +[root@yourserver root]# cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/qmailctl.txt /var/qmail/bin/qmailctl
    +[root@yourserver root]# chmod 755 /var/qmail/bin/qmailctl
    +[root@yourserver root]# ln -s /var/qmail/bin/qmailctl /usr/bin
    +[root@yourserver root]# cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/qmail-send-run.txt /var/qmail/supervise/qmail-send/run 
    +[root@yourserver root]# cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/qmail-send-log-run.txt /var/qmail/supervise/qmail-send/log/run
    +[root@yourserver root]# cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/qmail-smtpd-run.txt /var/qmail/supervise/qmail-smtpd/run
    +[root@yourserver root]# cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/qmail-smtpd-log-run.txt /var/qmail/supervise/qmail-smtpd/log/run
    +[root@yourserver root]# chmod 755 /var/qmail/supervise/qmail-send/run
    +[root@yourserver root]# chmod 755 /var/qmail/supervise/qmail-send/log/run
    +[root@yourserver root]# chmod 755 /var/qmail/supervise/qmail-smtpd/run
    +[root@yourserver root]# chmod 755 /var/qmail/supervise/qmail-smtpd/log/run
    +[root@yourserver root]# ln -s /var/qmail/supervise/qmail-send /var/qmail/supervise/qmail-smtpd /service
    +[root@yourserver root]# ln -s /var/qmail/supervise/qmail-send /var/qmail/supervise/qmail-smtpd /service
    +
    mkdir -p /var/qmail/supervise/qmail-send/log
    +mkdir -p /var/qmail/supervise/qmail-smtpd/log
    +mkdir /var/log/qmail
    +chown qmaill /var/log/qmail
    +cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/qmailctl.txt /var/qmail/bin/qmailctl
    +chmod 755 /var/qmail/bin/qmailctl
    +ln -s /var/qmail/bin/qmailctl /usr/bin
    +cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/qmail-send-run.txt /var/qmail/supervise/qmail-send/run
    +cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/qmail-send-log-run.txt /var/qmail/supervise/qmail-send/log/run
    +cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/qmail-smtpd-run.txt /var/qmail/supervise/qmail-smtpd/run
    +cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/qmail-smtpd-log-run.txt /var/qmail/supervise/qmail-smtpd/log/run
    +chmod 755 /var/qmail/supervise/qmail-send/run
    +chmod 755 /var/qmail/supervise/qmail-send/log/run
    +chmod 755 /var/qmail/supervise/qmail-smtpd/run
    +chmod 755 /var/qmail/supervise/qmail-smtpd/log/run
    +ln -s /var/qmail/supervise/qmail-send /var/qmail/supervise/qmail-smtpd /service
    +

    Wait ten seconds or so, and then verify that that the four qmail processes are running. If uptimes are 1 second, this may indicate broken scripts that are continuously restarting. In that case, start debugging by checking permissions.

    [root@yourserver root]# qmailctl stat
    +/service/qmail-send: up (pid 32700) 430 seconds
    +/service/qmail-send/log: up (pid 32701) 430 seconds
    +/service/qmail-smtpd: up (pid 32704) 430 seconds
    +/service/qmail-smtpd/log: up (pid 32705) 430 seconds
    +messages in queue: 0
    +messages in queue but not yet preprocessed: 0
    +[root@yourserver root]#

    Further verify by sending and receiving email. Incoming mail for root is stored in /var/qmail/alias/Maildir.

    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/install-redhat.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/install-redhat.html,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/install-redhat.html 24 Jun 2003 03:58:11 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/install-redhat.html 28 Jun 2003 05:07:01 -0000 1.3 @@ -12,7 +12,7 @@ of these packages installed independently.)

    1. Unplug the network cable from your computer. We don't want to connect to the network until we're sure the computer is secure. - + (Wherever you see the word secure, you should always read it as, "secure enough for our purposes, given the amount of work we're @@ -40,7 +40,7 @@ Review (and modify if needed) the partitions created and click Next

    2. On the pop-up window asking "Are you sure you want to do this?" click Yes - IF YOU ARE WIPING YOUR HARD DRIVE.

    3. Click Next on the boot loader screen

  • Configure Networking. + IF YOU ARE WIPING YOUR HARD DRIVE.

  • Click Next on the boot loader screen

  • Configure Networking. Again, if you know what you're doing, do this step yourself, being sure to note the firewall holes. Otherwise, follow the instructions in this step to set up a computer directly connected to the internet with a dedicated IP address.

    1. DHCP is a system by which a computer that @@ -61,7 +61,7 @@ Mail (SMTP). In the Other ports box, enter 443, 8000, 8443. Click Next. -Port 443 is for https (http over ssl), and 8000 and 8443 are http and https access to the development server we'll be setting up.

  • Select any additional languages you want the +Port 443 is for https (http over ssl), and 8000 and 8443 are http and https access to the development server we'll be setting up.

  • Select any additional languages you want the computer to support and then click Next

  • Choose your time zone and click Next.

  • Type in a root password, twice. To @@ -82,9 +82,9 @@ risk that's still screened by the firewall, or a resource hog. Just don't install a database or web server, because that would conflict with the database and web server we'll install later. -

    check�Editors�(this�installs�emacs),
    +

    check�Editors�(this�installs�emacs),
    click�Details�next�to�Text-based�Internet,�check�lynx,�and�click�OK;
    -check�Authoring�and�Publishing�(this�installs�docbook),
    +check�Authoring�and�Publishing�(this�installs�docbook),
    uncheck�Server�Configuration�Tools,
    uncheck�Web�Server,
    uncheck�Windows�File�Server,
    @@ -97,7 +97,7 @@ Flat View and wait. In a minute, a list of packages will appear.

    uncheck�apmd�(monitors�power,�not�very�useful�for�servers),�
    -check�ImageMagick�(required�for�the�photo-album�packages,�
    +check�ImageMagick�(required�for�the�photo-album�packages,�
    uncheckisdn4k-utils�(unless�you�are�using�isdn,�this�installs�a�useless�daemon),�
    check�mutt�(a�mail�program�that�reads�Maildir),
    uncheck�nfs-utils�(nfs�is�a�major�security�risk),�
    @@ -125,7 +125,7 @@

  • After it finishes rebooting and shows the login prompt, log in:

    yourserver login: root
     Password:
    -[root@yourserver root]#
  • Lock down SSH

    1. +[root@yourserver root]#

    2. Lock down SSH

      1. SSH is the protocol we use to connect securely to the computer (replacing telnet, which is insecure). sshd is the daemon that listens for incoming Index: openacs-4/packages/acs-core-docs/www/kernel-doc.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/kernel-doc.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/kernel-doc.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/kernel-doc.html 28 Jun 2003 05:07:01 -0000 1.10 @@ -1,2 +1,2 @@ -Chapter�12.�Kernel Documentation

        View comments on this page at openacs.org
        +Chapter�13.�Kernel Documentation
        View comments on this page at openacs.org
        Index: openacs-4/packages/acs-core-docs/www/kernel-overview.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/kernel-overview.html,v diff -u -r1.6 -r1.7 --- openacs-4/packages/acs-core-docs/www/kernel-overview.html 24 Jun 2003 03:58:11 -0000 1.6 +++ openacs-4/packages/acs-core-docs/www/kernel-overview.html 28 Jun 2003 05:07:01 -0000 1.7 @@ -1,23 +1,23 @@ -Overview

        Overview

        - Compared to its predecessors, version 5.0.0 of OpenACS has a much +Overview

        Overview

        + Compared to its predecessors, version 4.7.0d of OpenACS has a much more structured organization, i.e. the most significant change is found at the system architecture level, reflected in the following hierarchy:

        • - The OpenACS 5.0.0 Kernel, which + The OpenACS 4.7.0d Kernel, which handles system-wide necessities such as metadata, security, users and groups, subsites, and package management and deployment.

        • - The OpenACS 5.0.0 Core, which + The OpenACS 4.7.0d Core, which comprises all the other packages that ship with the kernel and are most frequently needed by users, such as templating, bboard, and user registration/management. The packages tend to be developed and distributed with the kernel.

        • - OpenACS 5.0.0 Application + OpenACS 4.7.0d Application packages, which typically provide user-level web services built on top of the Kernel and Core. Such packages include those built by ArsDigita as well as @@ -28,4 +28,4 @@ This document provides a high level overview of the kernel package. Documentation for the other packages can be found elsewhere. -

        View comments on this page at openacs.org
        +

        View comments on this page at openacs.org
        Index: openacs-4/packages/acs-core-docs/www/linux-installation.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/Attic/linux-installation.html,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/linux-installation.html 24 Jun 2003 03:58:11 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/linux-installation.html 28 Jun 2003 05:07:01 -0000 1.3 @@ -1,11 +1,11 @@ -Install Linux and supporting software

        Install Linux and supporting software

        +Install Linux and supporting software

        Install Linux and supporting software

        by Joel Aufrecht
        OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

        Paths and Users

        Figure�3.1.�Assumptions in this section

        Fully qualified domain name of your serveryourserver.test
        name of administrative access accountremadmin
        OpenACS serviceservice0
        OpenACS service accountservice0
        OpenACS database nameservice0
        Root of OpenACS service file tree/web/service0
        Location of source code tarballs for new software/tmp
        The OpenACS tarball contains some files which +

        Paths and Users

        Figure�4.1.�Assumptions in this section

        Fully qualified domain name of your serveryourserver.test
        name of administrative access accountremadmin
        OpenACS serviceservice0
        OpenACS service accountservice0
        OpenACS database nameservice0
        Root of OpenACS service file tree/web/service0
        Location of source code tarballs for new software/tmp
        The OpenACS tarball contains some files which are useful while setting up other software. Those - files are located at:/tmp/openacs-5.0.0/packages/acs-core-docs/www/files
        Database backup directory/web/service0/database-backup
        Service config files/web/service0/etc
        Service log files/web/service0/log
        Compile directory/usr/local/src
        PostGreSQL directory/usr/local/pgsql
        AOLServer directory/usr/local/aolserver

        + files are located at:

        /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files
        Database backup directory/web/service0/database-backup
        Service config files/web/service0/etc
        Service log files/web/service0/log
        Compile directory/usr/local/src
        PostGreSQL directory/usr/local/pgsql
        AOLServer directory/usr/local/aolserver

        None of these locations are set in stone - they're simply the values that we've chosen. The values that you'll probably want to change, such as service name, are Index: openacs-4/packages/acs-core-docs/www/mac-install.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/Attic/mac-install.html,v diff -u -r1.4 -r1.5 --- openacs-4/packages/acs-core-docs/www/mac-install.html 24 Jun 2003 03:58:11 -0000 1.4 +++ openacs-4/packages/acs-core-docs/www/mac-install.html 28 Jun 2003 05:07:02 -0000 1.5 @@ -1,2 +1,2 @@ -Chapter�5.�Installing on a Macintosh

        Chapter�5.�Installing on a Macintosh

        View comments on this page at openacs.org
        +Chapter�6.�Installing on a Macintosh

        Chapter�6.�Installing on a Macintosh

        View comments on this page at openacs.org
        Index: openacs-4/packages/acs-core-docs/www/mac-installation.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/mac-installation.html,v diff -u -r1.5 -r1.6 --- openacs-4/packages/acs-core-docs/www/mac-installation.html 24 Jun 2003 03:58:11 -0000 1.5 +++ openacs-4/packages/acs-core-docs/www/mac-installation.html 28 Jun 2003 05:07:02 -0000 1.6 @@ -1,3 +1,3 @@ -OpenACS Installation Guide for Mac OS X

        OpenACS Installation Guide for Mac OS X

        There are several resources for installing on OS X.

        ($Id$)
        View comments on this page at openacs.org
        +OpenACS Installation Guide for Mac OS X

        OpenACS Installation Guide for Mac OS X

        There are several resources for installing on OS X.

        ($Id$)
        View comments on this page at openacs.org
        Index: openacs-4/packages/acs-core-docs/www/maintenance-web.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/maintenance-web.html,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/maintenance-web.html 24 Jun 2003 03:58:11 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/maintenance-web.html 28 Jun 2003 05:07:02 -0000 1.3 @@ -1,5 +1,5 @@ -Hosting Web Sites

        Hosting Web Sites

        +Hosting Web Sites

        Hosting Web Sites

        by Joel Aufrecht
        OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. @@ -44,7 +44,10 @@ exits immediately. If svc -t fails to fully kill AOLserver, use this option. This does not take the server out of keepalive mode, so it should still bounce back up immediately. -

    3. +

  • Install a script to automate the stopping and starting + of aolserver services via daemontools. You can then restart a service via restart-aolserver service0

    [root@yourserver root]# cp /web/service0/packages/acs-core-docs/www/files/restart-aolserver-daemontools.txt /usr/local/bin/restart-aolserver
    +[root@yourserver root]# chmod 755 /usr/local/bin/restart-aolserver
    +[root@yourserver root]#
  • At this point, these commands will work only for the root user. Grant permission for the web group to use svc commands on the service0 server.

    [root@yourserver root]# svgroup web /service/service0
     [root@yourserver root]#
  • Verify that the controls work. You may want to tail -f /web/service0/log/service0-error.log in another window, so you can see what happens when you type these commands. @@ -158,7 +161,7 @@ able to exploit your web server to execute a command on your server, they would not be able to gain root access.

  • Running multiple services on one machine

    Services on different ports.�To run a different service on another port but the same - ip, simply repeat Install OpenACS 5.0.0 replacing + ip, simply repeat Install OpenACS 4.7.0d replacing service0, and change the

    set httpport              8000
     set httpsport             8443 

    @@ -203,7 +206,7 @@ 1MU24SHLgdTfDJprEdxZOnxajnbxL420xNVc5RRXlJA8Xxhx/HBKTw== -----END RSA PRIVATE KEY-----

    Set up Log Analysis Reports - OPTIONAL

    Analog is a program with processes webserver access logs, performs DNS lookup, and outputs HTML reports. Analog should - already be + already be installed. A modified configuration file is included in the OpenACS tarball.

    1. [root@yourserver src]# su - service0
       [service0@yourserver service0]$ cd /web/service0
      @@ -232,4 +235,4 @@
       
       [root@yourserver root]# emacs /etc/cron.daily/analog

      Put this into the file:

      #!/bin/sh
       
      -/usr/share/analog-5.31/analog -G -g/web/service0/etc/analog.cfg
      [root@yourserver root]# chmod 755 /etc/cron.daily/analog

      Test it by running the script.

      [root@yourserver root]# sh /etc/cron.daily/analog

      Browse to http://yourserver.test/log/traffic.html

    ($Id$)
    View comments on this page at openacs.org
    +/usr/share/analog-5.31/analog -G -g/web/service0/etc/analog.cfg
    [root@yourserver root]# chmod 755 /etc/cron.daily/analog

    Test it by running the script.

    [root@yourserver root]# sh /etc/cron.daily/analog

    Browse to http://yourserver.test/log/traffic.html

    ($Id$)
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/maintenance.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/Attic/maintenance.html,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/maintenance.html 24 Jun 2003 03:58:11 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/maintenance.html 28 Jun 2003 05:07:02 -0000 1.3 @@ -1,2 +1,2 @@ -Chapter�8.�Maintenance

    Chapter�8.�Maintenance

    View comments on this page at openacs.org
    +Chapter�9.�Maintenance

    Chapter�9.�Maintenance

    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/object-identity.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/object-identity.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/object-identity.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/object-identity.html 28 Jun 2003 05:07:02 -0000 1.11 @@ -1,20 +1,20 @@ -Object Identity

    Object Identity

    +Object Identity

    Object Identity

    by Rafael H. Schloming
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

    One of the major design features of OpenACS 5.0.0 is the explicit representation +

    One of the major design features of OpenACS 4.7.0d is the explicit representation of object identity. The reason I say "explicit representation" is because the concept of object identity has been around forever. It is inherent to our problem domain. Consider the example of 3.x style scoping. The 3.x data models use the triple (user_id, group_id, -scope) to identify an object. In the 5.0.0 data model this +scope) to identify an object. In the 4.7.0d data model this object is explicitly represented by a single party_id.

    Another good example of this is can be found in the user groups data model. The 3.x user groups data model contains another example of an implied identity. Every mapping between a user and a group could have an arbitrary number of attached values (user_group_member_fields, etc.). In this case it is the pair (group_id, user_id) that implicitly refers to an -object (the person's membership in a group). In the 5.0.0 data model this +object (the person's membership in a group). In the 4.7.0d data model this object identity is made explicit by adding an integer primary key to the table that maps users to groups.

    Coming from a purely relational world, this might seem slightly weird at first. The pair (group_id, user_id) is sufficient to uniquely identify the Index: openacs-4/packages/acs-core-docs/www/object-system-design.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/object-system-design.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/object-system-design.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/object-system-design.html 28 Jun 2003 05:07:02 -0000 1.10 @@ -1,5 +1,5 @@ -OpenACS 4 Object Model Design

    OpenACS 4 Object Model Design

    +OpenACS 4 Object Model Design

    OpenACS 4 Object Model Design

    by Pete Su, Michael Yoon, Richard Li Index: openacs-4/packages/acs-core-docs/www/object-system-requirements.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/object-system-requirements.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/object-system-requirements.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/object-system-requirements.html 28 Jun 2003 05:07:02 -0000 1.10 @@ -1,5 +1,5 @@ -OpenACS 4 Object Model Requirements

    OpenACS 4 Object Model Requirements

    +OpenACS 4 Object Model Requirements

    OpenACS 4 Object Model Requirements

    By Pete Su
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. Index: openacs-4/packages/acs-core-docs/www/objects.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/objects.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/objects.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/objects.html 28 Jun 2003 05:07:02 -0000 1.11 @@ -1,11 +1,11 @@ -OpenACS Data Models and the Object System

    OpenACS Data Models and the Object System

    +OpenACS Data Models and the Object System

    OpenACS Data Models and the Object System

    By Pete Su
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff.

    Overview

    -Developing data models in OpenACS 5.0.0 is much like developing data models +Developing data models in OpenACS 4.7.0d is much like developing data models for OpenACS 3, save for the implementation. As usual, you need to examine how to model the information that the application must store and manipulate, and define a suitable set of SQL tables. In our Notes @@ -80,8 +80,8 @@

    Fire up your text editor and open the ROOT/packages/notes/sql/oracle/notes-create.sql (ROOT/packages/notes/sql/postgresql/notes-create.sql for the PG version) file created -when we created the package. Then, do the following: -

    Describe the new type to the type system

    +when we created the package. Then, do the following: +

    Describe the new type to the type system

    First, add an entry to the acs_object_types table with the following PL/SQL call:

     begin  
    @@ -141,7 +141,7 @@
     because the new type note is a subtype of
     acs_object, it will inherit these attributes, so there is
     no need for us to define them.
    -

    Define a table in which to store your objects

    +

    Define a table in which to store your objects

    The next thing we do is make a small modification to the data model to reflect the fact that each row in the notes table represents something that is not only an object of type @@ -166,7 +166,7 @@ use the acs_objects table to find objects will transparently find any objects that are instances of any subtype of acs_objects. -

    Define a package for type specific procedures

    +

    Define a package for type specific procedures

    The next step is to define a PL/SQL package for your new type, and write some basic procedures to create and delete objects. Here is a package definition for our new type: @@ -214,7 +214,7 @@ object OBJ was "read only", then any other object that used OBJ as its context would also be "read only" by default. We'll talk about this more later. -

    Define a package body for type specific procedures

    +

    Define a package body for type specific procedures

    The PL/SQL package body contains the implementations of the procedures defined above. The only subtle thing going on here is that we must use acs_object.new to insert a row into @@ -317,7 +317,7 @@ models that are meant to be integrated with the OpenACS object system.

    -There are two basic rules you should follow when designing OpenACS 5.0.0 data +There are two basic rules you should follow when designing OpenACS 4.7.0d data models: @@ -372,7 +372,7 @@ requires a good amount of thought at design time even for simple applications.

    Summary

    -Hooking into the OpenACS 5.0.0 object system brings the application developer +Hooking into the OpenACS 4.7.0d object system brings the application developer numerous benefits, and doing it involves only four easy steps: @@ -396,4 +396,4 @@ especially true for the context_id field.

    -

    ($Id$)
    View comments on this page at openacs.org
    +

    ($Id$)
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/openacs-overview.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/openacs-overview.html,v diff -u -r1.6 -r1.7 --- openacs-4/packages/acs-core-docs/www/openacs-overview.html 24 Jun 2003 03:58:11 -0000 1.6 +++ openacs-4/packages/acs-core-docs/www/openacs-overview.html 28 Jun 2003 05:07:02 -0000 1.7 @@ -40,10 +40,10 @@ to port ACS from Oracle to PostgreSQL, thus making it a fully open-source solution.

    - OpenACS 5.0.0 is the next generation of the web toolkit. It's based on + OpenACS 4.7.0d is the next generation of the web toolkit. It's based on ACS 4, but no longer follows ArsDigita development. Unlike ACS (which required Oracle) and OpenACS 3.x (which required PostgreSQL), - OpenACS 5.0.0 allows you to use either database. It's also built in such + OpenACS 4.7.0d allows you to use either database. It's also built in such a way to allow enterprising hackers (in the good sense of the word) to extend it to other databases. Don Baccus leads the development and numerous developers and non-developers Index: openacs-4/packages/acs-core-docs/www/openacs-unpack.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/openacs-unpack.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-core-docs/www/openacs-unpack.html 24 Jun 2003 03:58:11 -0000 1.1 +++ openacs-4/packages/acs-core-docs/www/openacs-unpack.html 28 Jun 2003 05:07:02 -0000 1.2 @@ -2,6 +2,6 @@ Unpack the OpenACS tarball

    Unpack the OpenACS tarball

    The OpenACS tarball contains sample configuration files for some of the packages listed below. In order to access those files, unpack the tarball now.

    [root@yourserver root]# cd /tmp
    -[root@yourserver tmp]# tar xzf openacs-5.0.0.tgz
    +[root@yourserver tmp]# tar xzf openacs-4.7.0d.tgz
     
    cd /tmp
    -tar xzf openacs-5.0.0.tgz
    View comments on this page at openacs.org
    +tar xzf openacs-4.7.0d.tgz
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/openacs.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/openacs.html,v diff -u -r1.8 -r1.9 --- openacs-4/packages/acs-core-docs/www/openacs.html 24 Jun 2003 03:58:11 -0000 1.8 +++ openacs-4/packages/acs-core-docs/www/openacs.html 28 Jun 2003 05:07:02 -0000 1.9 @@ -1,9 +1,9 @@ -Install OpenACS 5.0.0

    Install OpenACS 5.0.0

    +Install OpenACS 4.7.0d

    Install OpenACS 4.7.0d

    by Vinod Kurup
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

    Set up the file system for an OpenACS Service

    1. The reference install stores all OpenACS services in +

    Set up the file system for an OpenACS Service

    1. The reference install stores all OpenACS services in /web, with one subdirectory per service. The first time you install a service, you must create that directory and set its permissions:

      [root@yourserver root]# mkdir /web
      @@ -31,15 +31,15 @@
             of your site is one word, that would be a good choice. For
             example "service0" might be the service name for the
             service0.net
      -      community.

      For the 5.0.0-P and 5.0.0-O Reference Platform, + community.

      For the 4.7.0d-P and 4.7.0d-O Reference Platform, we'll use a server named service0 and a user named service0. We'll leave the password blank for increased security. The only way to log in will be with ssh certificates. The only people who should log in are developers for that specific instance. Add this user, and put it in the web group so that it can use database commands associated with that group. -

      [root@yourserver root]# useradd -g web service0
      +    

      [root@yourserver root]# useradd -g web service0 -d /home/service0
       [root@yourserver root]#

      Set up database environment variables. They are necessary for working with the database.

      [root@yourserver root]# su - service0
      @@ -70,10 +70,10 @@
       ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
      [service0@yourserver service0]$ exit
       logout
       
      -[root@yourserver root]#
    2. Unpack the OpenACS tarball and rename it to service0. Secure the directory so that only the owner can access it. Check the permissions by listing the directory.

      [root@yourserver root]# su - service0
      +[root@yourserver root]#
    3. Unpack the OpenACS tarball and rename it to service0. Secure the directory so that only the owner can access it. Check the permissions by listing the directory.

      [root@yourserver root]# su - service0
       [service0@yourserver service0]$ cd /web
      -[service0@yourserver web]$ tar xzf /tmp/openacs-5.0.0.tgz
      -[service0@yourserver web]$ mv openacs-5.0.0 service0
      +[service0@yourserver web]$ tar xzf /tmp/openacs-4.7.0d.tgz
      +[service0@yourserver web]$ mv openacs-4.7.0d service0
       [service0@yourserver web]$ chmod -R 700 service0
       [service0@yourserver web]$ ls -al
       total 3
      @@ -86,10 +86,11 @@
       [root@yourserver root]#
       
      su - service0
       cd /web
      -tar xzf /tmp/openacs-5.0.0.tgz
      -mv openacs-5.0.0 service0
      +tar xzf /tmp/openacs-4.7.0d.tgz
      +mv openacs-4.7.0d service0
       chmod -R 700 service0/
      -exit
    4. Add the Service to CVS (OPTIONAL)

    5. Set up several additional directories in the service root: +exit

    6. Add the Service to CVS (OPTIONAL)

    7. (This step should be obsoleted by the 5.0.0 tarball, as + these directories will be included in the tarball)Set up several additional directories in the service root: etc is for configuration and control files, log is for error and request (web page hit) log files, and database-backup is for database backup files. If you did the CVS step, note that these new directories are excluded from that step so that you can decide whether or not you want your logs and config files in source control.

      [root@yourserver root]# su - service0
       [service0@yourserver service0]$ mkdir /web/service0/etc /web/service0/log /web/service0/database-backup
       [service0@yourserver web]$ exit
      @@ -98,7 +99,7 @@
       [root@yourserver web]#
       
      su - service0
       mkdir /web/service0/etc /web/service0/log /web/service0/database-backup
      -exit

    Prepare Oracle for OpenACS

    If you won't be using Oracle, skip to Prepare PostgreSQL for OpenACS

    +exit

    Prepare Oracle for OpenACS

    If you won't be using Oracle, skip to the section called “Prepare PostgreSQL for an OpenACS Service”

    You should be sure that your user account (e.g. service0) is in the dba group. @@ -232,32 +233,34 @@ If you can't login, try redoing step 1 again. If the date is in the wrong format, make sure you followed the steps outlined in the section called “Troubleshooting Oracle Dates” -

    Prepare PostgreSQL for an OpenACS Service

    1. Create a user in the database matching the service name.

      [root@yourserver root]# su - postgres
      +		  

    Prepare PostgreSQL for an OpenACS Service

    1. Create a user in the database matching the service name.

      [root@yourserver root]# su - postgres
       [postgres@yourserver pgsql]$ createuser service0
       Shall the new user be allowed to create databases? (y/n) y
       Shall the new user be allowed to create more new users? (y/n) y
       CREATE USER
       [postgres@yourserver pgsql]$ exit
       logout
       
      -[root@yourserver root]#
    2. Create a database with the same name as our service name, service0.

      [root@yourserver root]# su - service0
      +[root@yourserver root]#
    3. Create a database with the same name as our service name, service0.

      [root@yourserver root]# su - service0
       [service0@yourserver service0]$ createdb service0
       CREATE DATABASE
       [service0@yourserver service0]$
       
      su - service0
      -createdb service0
    4. Automate daily database Vacuuming. This is a process which cleans out discarded data from the database. A quick way to automate vacuuming is to edit the cron file for the database user.

      [service0@yourserver service0]$ export EDITOR=emacs;crontab -e

      Add this line to the file. The numbers and stars at the beginning are cron columns that specify when the program should be run - in this case, whenever the minute is 0 and the hour is 1, i.e., 1:00 am every day.

      0 1 * * * /usr/local/pgsql/bin/vacuumdb --analyze service0
    5. Add Full Text Search Support (OPTIONAL)

    6. [service0@yourserver service0]$ exit
      +createdb service0
    7. Automate daily database Vacuuming. This is a process which cleans out discarded data from the database. A quick way to automate vacuuming is to edit the cron file for the database user.

      [service0@yourserver service0]$ export EDITOR=emacs;crontab -e

      Add this line to the file. The numbers and stars at the beginning are cron columns that specify when the program should be run - in this case, whenever the minute is 0 and the hour is 1, i.e., 1:00 am every day.

      0 1 * * * /usr/local/pgsql/bin/vacuumdb --analyze service0
    8. Add Full Text Search Support (OPTIONAL)

    9. [service0@yourserver service0]$ exit
       logout
       
      -[root@yourserver root]# 

    Configure an AOLserver Service for OpenACS

    1. +[root@yourserver root]#

    Configure an AOLserver Service for OpenACS

    1. The AOLserver architecture lets you run an arbitrary number of virtual servers. A virtual server is an HTTP service running on a specific port, e.g. port 80. In order for OpenACS to work, you - need to configure a virtual server. The Reference Platform uses a configuration file included in the OpenACS tarball. Copy it to the /web/service0/etc directory and open it in an editor to adjust the parameters.

      [root@yourserver root]# su - service0
      +	  need to configure a virtual server.  The Reference Platform
      +	  uses a configuration file included in the OpenACS tarball,
      +	  /web/service0/etc/config.tcl.
      +	   Open it in an editor to adjust the parameters.

      [root@yourserver root]# su - service0
       [service0@yourserver service0]$ cd /web/service0/etc
      -[service0@yourserver etc]# cp /web/service0/packages/acs-core-docs/www/files/config.tcl.txt config.tcl
       [service0@yourserver etc]# emacs config.tcl
       

      - You can continue without changing any values in the file. However, if you don't change address to match the computer's ip address, you won't be able to browse to your server from other machines. + You can continue without changing any values in the file. However, if you don't change address to match the computer's ip address, you won't be able to browse to your server from other machines.

      • httpport - If you want your server on a different port, enter it here. The Reference Platform port is 8000, which is suitable for development use. Port 80 is the standard http port - it's the port used by your browser when you enter http://yourserver.test. So you should use port 80 for your production site.

      • httpsport - This is the port for https requests. The Reference Platform https port is @@ -275,10 +278,10 @@ will both own OpenACS files and connect to the database (for Postgresql).

      • debug - Set to true for a very verbose error log, including many lines for every page view, success or failure.

    2. AOLServer is very configurable. These settings should get you - started, but for more options, read the AOLServer + started, but for more options, read the AOLServer docs.

    3. Enable OpenFTS Full Text Search (OPTIONAL)

    4. Install nsopenssl - for SSL support. (OPTIONAL)

    Verify AOLserver startup

    1. + for SSL support. (OPTIONAL)

    Verify AOLserver startup

    1. Kill any current running AOLserver processes and start a new one. If you are using Oracle, rather than PostgreSQL, replace nsd-postgres with @@ -298,7 +301,7 @@ nsd: no process killed [service0@yourserver service0]$ /usr/local/aolserver/bin/nsd-postgres -t /web/service0/etc/config.tcl [service0@yourserver service0]$ [08/Mar/2003:18:13:29][32131.8192][-main-] Notice: nsd.tcl: starting to read config file... -[08/Mar/2003:18:13:29][32131.8192][-main-] Notice: nsd.tcl: finished reading config file.

    2. +[08/Mar/2003:18:13:29][32131.8192][-main-] Notice: nsd.tcl: finished reading config file.

    3. Attempt to connect to the service from a web browser. You should specify a URL like:

      http://yourserver.test:8000

      You should see a page that looks like this. If you imported your files into @@ -318,7 +321,7 @@

    4. Automate AOLserver keepalive (OPTIONAL)

    Configure a Service with the OpenACS Installer

    Now that you've got AOLserver up and running, let's install OpenACS - 5.0.0. + 4.7.0d.

    • You should see a page from the webserver titled OpenACS Installation: @@ -374,11 +377,11 @@ Give the server a few minutes to start up. Then reload the final page above. You should see the front page, with an area to login near the upper right. Congratulations, OpenACS - 5.0.0 is now up and running! + 4.7.0d is now up and running!

    • Install Full Text Search (OPTIONAL). If you have installed OpenFTS and enabled OpenFTS, you can now install the OpenFTS Driver package and - Full Text Search Engine package in the OpenACS service.

    Next Steps

    • This is a good time to make a backup of your service. If this is a - production site, you should set up automatic nightly backups.

    • If you want traffic reports, set up analog or another log + Full Text Search Engine package in the OpenACS service.

    Next Steps

    • This is a good time to make a backup of your service. If this is a + production site, you should set up automatic nightly backups.

    • If you want traffic reports, set up analog or another log processing program.

    • Follow the instruction on the home page to change the appearance of your service or add more - packages. (more information)

    • Proceed to the tutorial to learn how to develop your own packages.

    • Test your backup and recovery procedure.

    ($Id$)
    View comments on this page at openacs.org
    + packages. (more information)

  • Proceed to the tutorial to learn how to develop your own packages.

  • Test your backup and recovery procedure.

  • ($Id$)
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/oracle.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/oracle.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/oracle.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/oracle.html 28 Jun 2003 05:07:02 -0000 1.11 @@ -1,15 +1,15 @@ -Install Oracle 8.1.7

    Install Oracle 8.1.7

    +Install Oracle 8.1.7

    Install Oracle 8.1.7

    by Vinod Kurup
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff.

    - Skip this page if you're not interested in Oracle + Skip this page if you're not interested in Oracle.

    Note

    - OpenACS 5.0.0 does not yet work with Oracle 9i + OpenACS 4.7.0d does not yet work with Oracle 9i

    @@ -1276,4 +1276,4 @@ authorized to do a connect internal within svrmgrl to gain full system - access to the Oracle system.

    ($Id$)
    View comments on this page at openacs.org
    + access to the Oracle system.
    ($Id$)
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/packages.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/packages.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/packages.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/packages.html 28 Jun 2003 05:07:02 -0000 1.11 @@ -1,5 +1,5 @@ -OpenACS 5.0.0 Packages

    OpenACS 5.0.0 Packages

    +OpenACS 4.7.0d Packages

    OpenACS 4.7.0d Packages

    By Pete Su and Bryan Quinn
    OpenACS docs are written by the named authors, and may be edited @@ -61,7 +61,7 @@ the pieces of each module are strewn all over the tree in at least 3 or 4 different areas.

    - Here is how an OpenACS 5.0.0 server is laid out: + Here is how an OpenACS 4.7.0d server is laid out:

     
     ROOT/
    @@ -125,7 +125,7 @@
           sends to our server to the right page in the appropriate
           package. While we're at it, this tool should also automate
           package installation, dependency checking, upgrades, and package
    -      removal. In OpenACS 5.0.0, this tool is called the APM.
    +      removal. In OpenACS 4.7.0d, this tool is called the APM.
         

    The APM

    The APM is used to create, maintain, and install packages. It takes care of copying all of the files and registering the package in the @@ -147,7 +147,7 @@

    The following sections will show you how to make a package for the Notes application. In addition, they will discuss some new site - management features in OpenACS 5.0.0 that take advantage of the APM's package + management features in OpenACS 4.7.0d that take advantage of the APM's package instance model. The two most important of these are subsites, and the site map tool, which can be used to map applications to one or more arbitrary URLs in a running site. @@ -435,7 +435,7 @@ map content that lived outside the page root into the site, and it was also hard to map mulitiple URLs to the same place in the file system.

    - In OpenACS 5.0.0, administrators can define an arbitrary mapping between the + In OpenACS 4.7.0d, administrators can define an arbitrary mapping between the URLs the user types and the actual file in the file system that is served. This mapping is called the site map and entries in the site map are called site nodes. Each site node maps a URL to an @@ -450,7 +450,7 @@ of many indedendent applications that actually run on a single shared code base. The request-processor document shows you how OpenACS figures out which instance of your application was - requested by the user at any given time. The page development tutorial shows you how to use this + requested by the user at any given time. The page development tutorial shows you how to use this information in your user interface.

    In order to make the new notes application visible to @@ -477,7 +477,7 @@ yet written Notes application at various places in the site. In a later document, we'll see how to write your application so that the code can detect from what URL it was invoked. This is the key - to supporting subsites. + to supporting subsites.

    Summary

    The APM performs the following tasks in an OpenACS site:

    • @@ -493,4 +493,4 @@

    • Writes out package distribution files for other people to download and install. We'll cover this later. -

    View comments on this page at openacs.org
    +

    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/parties.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/parties.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/parties.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/parties.html 28 Jun 2003 05:07:02 -0000 1.11 @@ -1,5 +1,5 @@ -Parties in OpenACS 5.0.0

    Parties in OpenACS 5.0.0

    +Parties in OpenACS 4.7.0d

    Parties in OpenACS 4.7.0d

    by Rafael H. Schloming
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. @@ -67,7 +67,7 @@ users) is that it is now possible to "nuke" a user from a live system by removing his entry from the users table, but leaving the rest of his information present (i.e. turning him from a user into a person). This is -because wherever possible the OpenACS 5.0.0 data model references the persons or +because wherever possible the OpenACS 4.7.0d data model references the persons or parties table, not the users table. If this feature is desired when extending the system, then the developers should be careful to only references the users table in situations where it is clear that the @@ -299,7 +299,7 @@ have a primary key that references the users table, thereby guaranteeing that each row in the mensa_users table has a corresponding row in each of the users, persons, parties, and acs_objects tables. This child table could then -store any extra information relevant to the MENSA community.

    Specializing Groups

    If one were to build an intranet application on top of the 5.0.0 party +store any extra information relevant to the MENSA community.

    Specializing Groups

    If one were to build an intranet application on top of the 4.7.0d party system, it is likely that one would want to take advantage of the systems efficient representation of sophisticated organizational structures, but there would be much more specialized information associated with each group. @@ -313,4 +313,4 @@ single integer primary key in what could be thought of as a pure relation. Because a membership relation is an ordinary acs object with object identity, it is as easy to extend the membership relation to store extra information as it is to extend the users -table or the groups table.

    ($Id$)
    View comments on this page at openacs.org
    +table or the groups table.

    ($Id$)
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/permissions-design.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/permissions-design.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/permissions-design.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/permissions-design.html 28 Jun 2003 05:07:02 -0000 1.10 @@ -1,5 +1,5 @@ -OpenACS 4 Permissions Design

    OpenACS 4 Permissions Design

    +OpenACS 4 Permissions Design

    OpenACS 4 Permissions Design

    by John Prevost and Rafael H. Schloming
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. Index: openacs-4/packages/acs-core-docs/www/permissions-requirements.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/permissions-requirements.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/permissions-requirements.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/permissions-requirements.html 28 Jun 2003 05:07:02 -0000 1.10 @@ -1,5 +1,5 @@ -OpenACS 4 Permissions Requirements

    OpenACS 4 Permissions Requirements

    +OpenACS 4 Permissions Requirements

    OpenACS 4 Permissions Requirements

    by John McClary Prevost
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. Index: openacs-4/packages/acs-core-docs/www/permissions-tediously-explained.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/permissions-tediously-explained.html,v diff -u -r1.4 -r1.5 --- openacs-4/packages/acs-core-docs/www/permissions-tediously-explained.html 24 Jun 2003 03:58:11 -0000 1.4 +++ openacs-4/packages/acs-core-docs/www/permissions-tediously-explained.html 28 Jun 2003 05:07:02 -0000 1.5 @@ -1,5 +1,5 @@ -OpenACS 4.x Permissions Tediously Explained

    OpenACS 4.x Permissions Tediously Explained

    +OpenACS 4.x Permissions Tediously Explained

    OpenACS 4.x Permissions Tediously Explained

    by Vadim Nasardinov. Modified and converted to Docbook XML by Roberto Mello

    Overview

    The general permissions system has a relatively complex data model in OpenACS 4.x. @@ -86,7 +86,7 @@ to store permission information explicitly about every object, i.e. if the system has 100,000 and 1,000 users who have the read privilege on all objects, then we would need to store 100,000,000 entries of the form: -

    Table�10.1.�

    object_idgrantee_idprivilege
    object_id_1user_id_1'read'
    object_id_1user_id_2'read'
    ...
    object_id_1user_id_n'read'
    object_id_2user_id_1'read'
    object_id_2user_id_2'read'
    ...
    object_id_2user_id_n'read'
    ...
    ...
    object_id_muser_id_1'read'
    object_id_muser_id_2'read'
    ...
    object_id_muser_id_n'read'

    +

    Table�11.1.�

    object_idgrantee_idprivilege
    object_id_1user_id_1'read'
    object_id_1user_id_2'read'
    ...
    object_id_1user_id_n'read'
    object_id_2user_id_1'read'
    object_id_2user_id_2'read'
    ...
    object_id_2user_id_n'read'
    ...
    ...
    object_id_muser_id_1'read'
    object_id_muser_id_2'read'
    ...
    object_id_muser_id_n'read'

    Although quite feasible, this approach fails to take advantage of the fact that objects in the system are commonly organized hierarchally, and permissions usually follow the hierarchical structure, so that if user @@ -101,7 +101,7 @@

    Context Hierarchy

    Suppose objects A, B, ..., and F form the following hierarchy. -

    Table�10.2.�

    A

    +

    Table�11.2.�

    A

    object_id=10

    B

    object_id=20 @@ -117,23 +117,23 @@ This can be represented in the acs_objects table by the following entries: -

    Table�10.3.�

    object_idcontext_id
    2010
    3010
    4020
    5020
    6030

    +

    Table�11.3.�

    object_idcontext_id
    2010
    3010
    4020
    5020
    6030

    The first entry tells us that object 20 is the descendant of object 10, and the third entry shows that object 40 is the descendant of object 20. By running a CONNECT BY query, we can compute that object 40 is the second-generation descendant of object 10. With this in mind, if we want to record the fact that user Joe has the read privilege on objects A, ..., F, we only need to record one entry in the acs_permissions table. -

    Table�10.4.�

    objectgranteeprivilege
    AJoeread

    +

    Table�11.4.�

    objectgranteeprivilege
    AJoeread

    The fact that Joe can also read B, C, ..., and F can be derived by ascertaining that these objects are children of A by traversing the context hierarchy. As it turns out, hierarchical queries are expensive. As Rafael Schloming put it so aptly, Oracle can't deal with hierarchies for shit.

    One way to solve this problem is to cache a flattened view of the context tree like so: -

    Table�10.5.�

    objectancestorn_generations
    AA0
    BB0
    BA1
    CC0
    CA1
    DD0
    DB1
    DA2
    EE0
    EB1
    EA2
    FF0
    FC1
    FA2

    +

    Table�11.5.�

    objectancestorn_generations
    AA0
    BB0
    BA1
    CC0
    CA1
    DD0
    DB1
    DA2
    EE0
    EB1
    EA2
    FF0
    FC1
    FA2

    Note that the number of entries in the flattened view grows exponentially with respect to the depth of the context tree. For instance, if you have a fully populated binary tree with a depth of n, then the number of entries @@ -204,7 +204,7 @@ an object's security_inherit_p column to 'f', you can stop permissions from cascading down the context tree. In the following example, Joe does not have the read permissions on C and F. -

    Table�10.6.�


    +

    Table�11.6.�


    A
    object_id=10
    readable�by�Joe
    @@ -232,7 +232,7 @@ Privileges are also organized hierarchically. In addition to the five main system privileges defined in the ACS Kernel data model, application developers may define their own. For instance, the Bboard package defines the following privileges: -

    Table�10.7.�

    privilege
    create_category
    create_forum
    create_message
    delete_category
    delete_forum
    delete_message
    moderate_forum
    read_category
    read_forum
    read_message
    write_category
    write_forum
    write_message

    +

    Table�11.7.�

    privilege
    create_category
    create_forum
    create_message
    delete_category
    delete_forum
    delete_message
    moderate_forum
    read_category
    read_forum
    read_message
    write_category
    write_forum
    write_message

    By defining parent-child relationship between privileges, the OpenACS data model makes it easier for developers to manage permissions. Instead of granting a user explicit read, write, delete, @@ -241,7 +241,7 @@ privilege to which the first four privileges are tied. To give a more detailed example, the Bboard privileges are structured as follows. -

    Table�10.8.�

    admin
    createdeletereadwritemoderate forum
    create categorycreate forumcreate messagedelete categorydelete forumdelete messageread categoryread forumread messagewrite categorywrite forumwrite message

    +

    Table�11.8.�

    admin
    createdeletereadwritemoderate forum
    create categorycreate forumcreate messagedelete categorydelete forumdelete messageread categoryread forumread messagewrite categorywrite forumwrite message

    The parent-child relationship between privileges is represented in the acs_privilege_hierarchy table:

    @@ -287,7 +287,7 @@
         

    Party Hierarchy

    Now for the third hierarchy playing a promiment role in the permission system. The party data model is set up as follows. -

    +    

       create table parties (
           party_id
               not null
    @@ -371,7 +371,7 @@
         

    The acs_rels table entries would look like so: -

    Table�10.10.�

    rel_typeobject_oneobject_two
    +

    Table�11.10.�

    rel_typeobject_oneobject_two
    membership_rel Pranksters @@ -406,7 +406,7 @@

    The relevant entries in the acs_rels look like so. -

    Table�10.11.�

    rel_typeobject_oneobject_two
    +

    Table�11.11.�

    rel_typeobject_oneobject_two
    composition_rel Pranksters @@ -617,7 +617,7 @@

    Note that in the above example, acs_permissions had only one entry that needed to be deleted: -

    Table�10.12.�

    object_idgrantee_idprivilege
    +

    Table�11.12.�

    object_idgrantee_idprivilege
    default_context registered_users @@ -690,4 +690,4 @@ container_id from group_member_index; -
    View comments on this page at openacs.org
    +
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/permissions.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/permissions.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/permissions.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/permissions.html 28 Jun 2003 05:07:02 -0000 1.11 @@ -1,9 +1,9 @@ -Groups, Context, Permissions

    Groups, Context, Permissions

    By Pete Su


    +Groups, Context, Permissions

    Groups, Context, Permissions

    By Pete Su


    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff.

    Overview

    -The OpenACS 5.0.0 Permissions system allows developers and administrators to +The OpenACS 4.7.0d Permissions system allows developers and administrators to set access control policies at the object level, that is, any application or system object represented by a row in the acs_objects table can be access-controlled via a simple @@ -14,7 +14,7 @@ Although this may all sound easy and wonderful, no developer or administrator would want to explicitly set access control rights for every user and every object on a -site. Therefore, OpenACS 5.0.0 has two auxiliary mechanisms for making this +site. Therefore, OpenACS 4.7.0d has two auxiliary mechanisms for making this easier: First, the Groups system allows users to be grouped together in flexible ways. Second, the object model defines a notion of object context, which allows applications to group objects @@ -26,7 +26,7 @@ define simple groupings of users. Each group had a human readable name and unique ID, and there was a single mapping table that mapped users to groups. (The actual data model was more complicated because it -contained a meta-data system much like the OpenACS 5.0.0 object type system, +contained a meta-data system much like the OpenACS 4.7.0d object type system, but that's not relevant right now.)

    The 3.x groups system, while very useful, was limited in few ways. The @@ -48,7 +48,7 @@ member of Greenpeace, its members are not necessarily members of Greenpeace.

    -OpenACS 5.0.0 solves both of these modeling problems by introducing a new +OpenACS 4.7.0d solves both of these modeling problems by introducing a new abstraction called a party. Parties have a recursive definition, and we can illustrate how it works with the following simplified data model. First, we define the parties @@ -114,18 +114,18 @@ already know what parties and objects are, but we don't know what privileges are.

    -In OpenACS 5.0.0, a privilege models the right to perform some operation on +In OpenACS 4.7.0d, a privilege models the right to perform some operation on some object. They are the basic units out of which we build access control policies. For example, in the Unix filesystem we typically implement access control by granting users some combination of -read. write or execute privileges on files and directories. In OpenACS 5.0.0, +read. write or execute privileges on files and directories. In OpenACS 4.7.0d, the table of privileges is organized hierarchically so that developers can define privileges that aggregate some set of privileges together. For example, if we have read, write, create and delete privileges, it might be convenient to combine them into a new privilege called "admin". Then if we grant a user this privilege she is automatically granted all the child privileges that the privilege -contains. The OpenACS 5.0.0 kernel data model actually defines these +contains. The OpenACS 4.7.0d kernel data model actually defines these privileges as follows:

     
    @@ -165,7 +165,7 @@
     permissions to large groups of objects in the site, all at once. We
     use contexts to achieve this goal.
     

    Object Context

    -In OpenACS 5.0.0, an object context is a generalization of the scoping +In OpenACS 4.7.0d, an object context is a generalization of the scoping mechanism introduced in OpenACS 3.x. "Scoping" and "scope" are terms best explained by example: consider some hypothetical rows in the address_book table: @@ -180,7 +180,7 @@ person or a group of people or the general public (itself a group of people).

    -In OpenACS 5.0.0, rather than breaking the world into a limited set of scopes, +In OpenACS 4.7.0d, rather than breaking the world into a limited set of scopes, every object lives in a single context. A context is just an another object that represents the security domain to which the object belongs. By convention, if an object A doesn't have any permissions @@ -197,7 +197,7 @@ application. With only row-level permissions it is not obvious how to reasonably initialize the access control list when creating a message. At best, we have to explicitly grant various read and write -privileges whenever we create a message, which is tedious. In OpenACS 5.0.0, +privileges whenever we create a message, which is tedious. In OpenACS 4.7.0d, a reasonable thing to do is to create an object representing a forum, and point the context_id field of a new message at the forum. Then, suppose we grant every user in the system read-access to @@ -331,7 +331,7 @@

    This displays the title of the note as either a link or plain text depending on whether or not we have write privileges on the object. -The if tag is something that the OpenACS 5.0.0 template system +The if tag is something that the OpenACS 4.7.0d template system defines for you to support conditional presentation. The templates developer guide provides more information about this.

    If you study the rest of the system, you will also notice that the @@ -345,7 +345,7 @@ permissions to notes that she wanted to make public or whatever. But that's beyond the scope of this example.

    Summary

    -OpenACS 5.0.0 defines three separate mechanisms for specifying access control +OpenACS 4.7.0d defines three separate mechanisms for specifying access control in applications. The Groups data model allows you to define hierarchical organizations of users and groups of users. The Permissions data model allows you to define a hierarchy of user rights. Finally, @@ -355,4 +355,4 @@

    In the next section, we'll look at a more complex page for adding and editing notes, and discuss these issues further. -

    ($Id$)
    View comments on this page at openacs.org
    +

    ($Id$)
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/postgres.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/postgres.html,v diff -u -r1.8 -r1.9 --- openacs-4/packages/acs-core-docs/www/postgres.html 24 Jun 2003 03:58:11 -0000 1.8 +++ openacs-4/packages/acs-core-docs/www/postgres.html 28 Jun 2003 05:07:02 -0000 1.9 @@ -1,14 +1,35 @@ -Install PostGreSQL 7.2.4

    Install PostGreSQL 7.2.4

    +Install PostGreSQL

    Install PostGreSQL

    by Vinod Kurup
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

    Skip this section if you will run only Oracle.

    OpenACS 5.0.0 will run with PostGreSQL 7.2.x or 7.3.2. It +

    Skip this section if you will run only Oracle.

    OpenACS 4.7.0d will run with PostGreSQL 7.2.x or 7.3.2. It has not been fully tested with 7.3.2; 7.2.4 is the recommended - version of PostgreSQL to use.

    This page assumes you have downloaded postgresql to -/tmp/postgresql-7.2.4.tar.gz. If not, -get it. -

    1. Unpack PostGreSQL.

      [root@yourserver root]# cd /usr/local/src
      +  version of PostgreSQL to use.

      • Using the Red Hat RPM.�Red Hat users: If you install PostGreSQL 7.3.2 from the Red Hat 9 RPM, you + can skip a few steps. These shell commands add a link so that the + data directory appears to be in the same place as in a source + install; start the service; create a new group for web service + users, and modify the postgres user's + environment (more + information):

        [root@yourserver root]# ln -s /var/lib/pgsql/data /usr/local/pgsql/data
        +[root@yourserver root]# service postgresql start
        +Initializing database:
        +                                                           [  OK  ]
        +Starting postgresql service:                               [  OK  ]
        +[root@yourserver root]# echo "export LD_LIBRARY_PATH=/usr/local/pgsql/lib" >> ~postgres/.bash_profile
        +[root@yourserver root]# echo "export PATH=$PATH:/usr/local/pgsql/bin" >> ~postgres/.bash_profile
        +[root@yourserver root]# groupadd web
        +[root@yourserver root]# su - postgres
        +-bash-2.05b$
        +
        +ln -s /var/lib/pgsql/data /usr/local/pgsql/data
        +service postgresql start
        +echo "export LD_LIBRARY_PATH=/usr/local/pgsql/lib" >> ~postgres/.bash_profile
        +echo "export PATH=$PATH:/usr/local/pgsql/bin" >> ~postgres/.bash_profile
        +groupadd web
        +su - postgres

        ... and then skip to 6. Something similar may work for other binary packages as well.

      1. Unpack PostGreSQL.�If you have not downloaded the postgresql tarball to + /tmp/postgresql-7.2.4.tar.gz, + get it.

        [root@yourserver root]# cd /usr/local/src
         [root@yourserver src]# tar xzf /tmp/postgresql-7.2.4.tar.gz
         [root@yourserver src]# 
         
        cd /usr/local/src
        @@ -27,24 +48,23 @@
         useradd -g web -d /usr/local/pgsql postgres
         mkdir -p /usr/local/pgsql
         chown -R postgres.web /usr/local/pgsql /usr/local/src/postgresql-7.2.4
        -chmod 750 /usr/local/pgsql
      2. Set up postgres's environment variables. They are - necessary for the executable to find its supporting +chmod 750 /usr/local/pgsql

    2. Set up postgres's environment variables.�They are necessary for the executable to find its supporting libraries. For convenience, we'll simply append the necessary lines to the postgres shell config file.

      [root@yourserver src]# echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib" >> ~postgres/.bashrc
       [root@yourserver src]# echo "export PATH=$PATH:/usr/local/pgsql/bin" >> ~postgres/.bashrc
      -
      echo "export LD_LIBRARY_PATH=LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib" >> ~postgres/.bashrc
      +
      echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib" >> ~postgres/.bashrc
       echo "export PATH=$PATH:/usr/local/pgsql/bin" >> ~postgres/.bashrc

      Test this by logging in as postgres and checking the paths; you should see /usr/local/pgsql/bin

      [root@yourserver src]# su - postgres
       [postgres@yourserver pgsql]$ env | grep PATH
      -LD_LIBRARY_PATH=LD_LIBRARY_PATH=:/usr/local/pgsql/lib
      +LD_LIBRARY_PATH=:/usr/local/pgsql/lib
       PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin:/usr/local/pgsql/bin:/usr/local/pgsql/bin
       [postgres@yourserver pgsql]$ exit
      -
    3. Compile and install PostgreSQL.� +

    4. Compile and install PostgreSQL.� Change to the postgres user and run ./configure to set the compilation options automatically. This is the point at which you can configure PostgreSQL in various ways. For example, if you want to enable - Unicode support, add the flags --enable-locale and --enable-multibyte. If you want to see what the other possibilities are, run ./configure --help. + Unicode support, add the flags --enable-locale and --enable-multibyte. If you want to see what the other possibilities are, run ./configure --help.

      [root@yourserver src]# su - postgres
       [postgres@yourserver pgsql]$ cd /usr/local/src/postgresql-7.2.4
       [postgres@yourserver postgresql-7.2.4]$ ./configure
      @@ -69,7 +89,7 @@
       cd /usr/local/src/postgresql-7.2.4
       ./configure
       make all
      -make install
    5. Start PostgreSQL.� +make install

    6. Start PostgreSQL.� The initdb command initializes the database. pg_ctl is used to start up PostgreSQL. @@ -86,7 +106,7 @@ /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l /usr/local/pgsql/data/server.log start

      PostgreSQL errors will be logged in /usr/local/pgsql/data/server.log -

    7. Set up plpgsql and allow your user to have +

    8. Install Pl/pgSQL.�Set up plpgsq and allow your user to have access. Plpgsql is a PL/SQL-like language. We add it to template1, which is the template from which all new databases are created. We can verify that it was created @@ -100,7 +120,7 @@ [postgres@yourserver pgsql]$

      createlang plpgsql template1
      -createlang -l template1
    9. Test PostgreSQL. Create a database and try some simple commands. The output should be as shown. +createlang -l template1

    10. Test PostgreSQL (OPTIONAL).�Create a database and try some simple commands. The output should be as shown.

      [postgres@yourserver pgsql]$ createdb mytestdb
       CREATE DATABASE
       [postgres@yourserver pgsql]$ psql mytestdb
      @@ -139,12 +159,13 @@
               bunch of symlinks that ensure that, when the operating system
               changes runlevels, postgresql goes to the appropriate
               state. Red Hat and Debian and SuSE each work a little
      -        differently so three sets of instructions are provided.
      -	

      • Red Hat:

        [root@yourserver src]# cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql
        +        differently.
        +	

        • Red Hat RPM:

          The init script is already installed; just turn it on for the appropriate run levels.

          [root@yourserver root]# chkconfig --level 345 postgresql on
          +[root@yourserver root]# 
        • Red Hat from source:

          [root@yourserver src]# cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql
           [root@yourserver src]# chown root.root /etc/rc.d/init.d/postgresql
           [root@yourserver src]# chmod 755 /etc/rc.d/init.d/postgresql
           [root@yourserver src]# 
          -
          cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql
          +
          cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql
           chown root.root /etc/rc.d/init.d/postgresql
           chmod 755 /etc/rc.d/init.d/postgresql

          Test the script.

          [root@yourserver root]# service postgresql stop
           Stopping PostgreSQL: ok
          @@ -154,18 +175,20 @@
           		  it later.
           
           		

          [root@yourserver root]# chkconfig --add postgresql
          +[root@yourserver root]# chkconfig --level 345 postgresql on
           [root@yourserver root]# chkconfig --list postgresql
           postgresql      0:off   1:off   2:on    3:on    4:on    5:on    6:off
           [root@yourserver root]# service postgresql start
           Starting PostgreSQL: ok
           [root@yourserver root]#
           
          chkconfig --add postgresql
          +chkconfig --level 345 postgresql on
           chkconfig --list postgresql
          -service postgresql start
        • Debian:

          root:~# cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql
          +service postgresql start
      • Debian:

        root:~# cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql
         root:~# chown root.root /etc/init.d/postgresql
         root:~# chmod 755 /etc/init.d/postgresql
         root:~# 
        -cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql
        +cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql
         chown root.root /etc/init.d/postgresql
         chmod 755 /etc/init.d/postgresql

        Test the script

        root:~# /etc/init.d/postgresql stop
         Stopping PostgreSQL: ok
        @@ -193,7 +216,7 @@
                     rc.d/ part in each of the
                     following commands.
         
        -          

      root:~# cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/postgresql.txt /etc/rc.d/init.d/postgresql
      +          

    root:~# cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/postgresql.txt /etc/rc.d/init.d/postgresql
     root:~# chown root.root /etc/rc.d/init.d/postgresql
     root:~# chmod 755 /etc/rc.d/init.d/postgresql

    @@ -240,7 +263,7 @@ [root@yourserver root]#

    Make that change permanent by editing emacs /etc/sysctl.conf to add these lines at the end:

    # increase shared memory limit for postgres
    -kernel.shmmax = 134217728
  • Edit the PostGreSQL config file, /usr/local/pgsql/data/postgresql.conf, to use more memory. These values should improve performance in most cases. (More information)

    #       Shared Memory Size
    +kernel.shmmax = 134217728
  • Edit the PostGreSQL config file, /usr/local/pgsql/data/postgresql.conf, to use more memory. These values should improve performance in most cases. (more information)

    #       Shared Memory Size
     #
     shared_buffers = 15200      # 2*max_connections, min 16
     
    @@ -253,7 +276,7 @@
     #
     wal_files = 3               # range 0-64
     checkpoint_segments = 3     # in logfile segments (16MB each), min 1
    -

    Restart postgres (service postgres restart) so that the changes take effect.

  • Learn more about PostgreSQL

    • +

      Restart postgres (service postgres restart) so that the changes take effect.

    more information about PostgreSQL

    • Official PostgreSQL Docs Index: openacs-4/packages/acs-core-docs/www/programming-with-aolserver.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/programming-with-aolserver.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/programming-with-aolserver.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/programming-with-aolserver.html 28 Jun 2003 05:07:02 -0000 1.11 @@ -1,5 +1,5 @@ -Programming with AOLserver

      Programming with AOLserver

      +Programming with AOLserver

      Programming with AOLserver

      by Michael Yoon, Jon Salz and Lars Pind.
      OpenACS docs are written by the named authors, and may be edited @@ -42,7 +42,7 @@ which runs frequently, don't use the -thread switch.

      Note also that thread is initialized with a copy of what was installed during server startup, so if the procedure table have changed since -startup (e.g. using the APM watch +startup (e.g. using the APM watch facility), that will not be reflected in the scheduled thread.

      Using return

      The return command in Tcl returns control to the caller procedure. @@ -212,4 +212,4 @@ perform lookup by name, they perform a linear lookup, whereas arrays use a hash table, so ns_sets are slower than arrays when the number of entries is large. -

      ($Id$)
      View comments on this page at openacs.org
      +

      ($Id$)
      View comments on this page at openacs.org
      Index: openacs-4/packages/acs-core-docs/www/psgml-for-emacs.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/psgml-for-emacs.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-core-docs/www/psgml-for-emacs.html 24 Jun 2003 03:58:11 -0000 1.1 +++ openacs-4/packages/acs-core-docs/www/psgml-for-emacs.html 28 Jun 2003 05:07:02 -0000 1.2 @@ -1,9 +1,9 @@ -Add PSGML commands to emacs init file (OPTIONAL)

      Add PSGML commands to emacs init file (OPTIONAL)

      +Add PSGML commands to emacs init file (OPTIONAL)

      Add PSGML commands to emacs init file (OPTIONAL)

      If you plan to write or edit any documentation with emacs, install a customized emacs configuration file with DocBook commands in the skeleton directory, so it will be used for all new users. The file also fixes the backspace -> help mis-mapping that often occurs in - terminals.

      [root@yourserver tmp]# cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/emacs.txt /etc/skel/.emacs
      +      terminals.

      [root@yourserver tmp]# cp /tmp/openacs-4.7.0d/packages/acs-core-docs/www/files/emacs.txt /etc/skel/.emacs
       cp: overwrite `/etc/skel/.emacs'? y
       [root@yourserver tmp]# 
      View comments on this page at openacs.org
      Index: openacs-4/packages/acs-core-docs/www/psgml-mode.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/psgml-mode.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/psgml-mode.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/psgml-mode.html 28 Jun 2003 05:07:02 -0000 1.11 @@ -1,5 +1,5 @@ -Using PSGML mode in Emacs

      Using PSGML mode in Emacs

      +Using PSGML mode in Emacs

      Using PSGML mode in Emacs

      By David Lutterkort
      OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. Index: openacs-4/packages/acs-core-docs/www/release-notes.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/release-notes.html,v diff -u -r1.13 -r1.14 --- openacs-4/packages/acs-core-docs/www/release-notes.html 24 Jun 2003 03:58:11 -0000 1.13 +++ openacs-4/packages/acs-core-docs/www/release-notes.html 28 Jun 2003 05:07:02 -0000 1.14 @@ -11,11 +11,11 @@ Bug Tracker at the OpenACS website.

      You may want to begin by reading our installation documentation for - Chapter�3. Note that the Windows documentation is - not current for OpenACS 5.0.0, but an alternative is to use John + Chapter�4. Note that the Windows documentation is + not current for OpenACS 4.7.0d, but an alternative is to use John Sequeira's Oasis VM project.

      After installation, the full documentation set can be found by visiting http://[your-host]/doc. -

      ($Id$)
      View comments on this page at openacs.org
      +

      ($Id$)
      View comments on this page at openacs.org
      Index: openacs-4/packages/acs-core-docs/www/request-processor.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/request-processor.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/request-processor.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/request-processor.html 28 Jun 2003 05:07:02 -0000 1.11 @@ -1,33 +1,33 @@ -The Request Processor

      The Request Processor

      +The Request Processor

      The Request Processor

      By Pete Su
      OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff.

      Overview

      -This document is a brief introduction to the OpenACS 5.0.0 Request Processor; +This document is a brief introduction to the OpenACS 4.7.0d Request Processor; more details can be found in the OpenACS 4 Request Processor Design. Here we cover the high level concepts behind the system, and implications and usage for the application developer.

      Request Processor

      -The 5.0.0 Request Processor is a global filter and set of Tcl procs that +The 4.7.0d Request Processor is a global filter and set of Tcl procs that respond to every incoming URL reaching the server. The following diagram summarizes the stages of the request processor assuming a URL request like http://someserver.com/notes/somepage.adp. -

      +

      Stage 1: Search Site Map

      The first thing the RP does is to map the given URL to the appropriate physical directory in the filesystem, from which to serve content. We do this by searching the site map data model (touched on in the Packages, and further -discussed in the section called “Writing OpenACS 5.0.0 Application Pages”). This data model maps URLs to objects representing +discussed in the section called “Writing OpenACS 4.7.0d Application Pages”). This data model maps URLs to objects representing content, and these objects are typically package instances.

      After looking up the appropriate object, the RP stores the URL, the ID of the object it found, and the package and package instance the object belongs to into the environment of the connection. This environment can be queried using the ad_conn procedure, -which is described in detail in OpenACS 4 Request Processor Design. The page +which is described in detail in OpenACS 4 Request Processor Design. The page development tutorial shows you how to use this interface to make your pages aware of which instance was requested.

      Stage 2: Authentication

      @@ -38,7 +38,7 @@ extracts or sets up new session tokens for the user.

      Stage 3: Authorization

      Next, the Request Processor checks if the user has appropriate access -privileges to the requested part of the site. In OpenACS 5.0.0, access control +privileges to the requested part of the site. In OpenACS 4.7.0d, access control is dictated by the permissions system. In this case, the RP checks if the user has "read" priviledges on the object in the site map specified by the URL. This object is typically Index: openacs-4/packages/acs-core-docs/www/requirements-template.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/requirements-template.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/requirements-template.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/requirements-template.html 28 Jun 2003 05:07:02 -0000 1.11 @@ -1,5 +1,5 @@ -System/Application Requirements Template

      System/Application Requirements Template

      By You


      +System/Application Requirements Template

      System/Application Requirements Template

      By You


      OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff.

      Introduction

      @@ -61,7 +61,7 @@

    For guidelines writing requirements, take a look - at the quality standards, along with a good example, such as OpenACS 5.0.0 Package Manager Requirements. + at the quality standards, along with a good example, such as OpenACS 4.7.0d Package Manager Requirements.

    Besides writing requirements in natural language, consider using the following techniques as needed: Index: openacs-4/packages/acs-core-docs/www/rp-design.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/rp-design.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/rp-design.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/rp-design.html 28 Jun 2003 05:07:02 -0000 1.10 @@ -1,5 +1,5 @@ -OpenACS 4 Request Processor Design

    OpenACS 4 Request Processor Design

    +OpenACS 4 Request Processor Design

    OpenACS 4 Request Processor Design

    by Rafael H. Schloming
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. @@ -13,7 +13,7 @@ connecting user, and make sure that he is authorized to perform the given request. If these steps succeed, then the request processor must locate the file that is associated with the specified URL, and serve the content it -provides to the browser.

    Terminology

    • +provides to the browser.

    Terminology

    • pageroot -- Any directory that contains scripts and/or static files intended to be served in response to HTTP requests. A typical OpenACS installation is required to serve files from multiple pageroots.

    • global pageroot Index: openacs-4/packages/acs-core-docs/www/rp-requirements.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/rp-requirements.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/rp-requirements.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/rp-requirements.html 28 Jun 2003 05:07:02 -0000 1.10 @@ -1,5 +1,5 @@ -OpenACS 4 Request Processor Requirements

      OpenACS 4 Request Processor Requirements

      +OpenACS 4 Request Processor Requirements

      OpenACS 4 Request Processor Requirements

      by Rafael H. Schloming
      OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. Index: openacs-4/packages/acs-core-docs/www/security-design.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/security-design.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/security-design.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/security-design.html 28 Jun 2003 05:07:02 -0000 1.11 @@ -1,5 +1,5 @@ -OpenACS 4 Security Design

      OpenACS 4 Security Design

      +OpenACS 4 Security Design

      OpenACS 4 Security Design

      by Richard Li, Archit Shah
      OpenACS docs are written by the named authors, and may be edited Index: openacs-4/packages/acs-core-docs/www/security-notes.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/security-notes.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/security-notes.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/security-notes.html 28 Jun 2003 05:07:02 -0000 1.11 @@ -1,5 +1,5 @@ -OpenACS 4 Security Notes

      OpenACS 4 Security Notes

      +OpenACS 4 Security Notes

      OpenACS 4 Security Notes

      by Richard Li
      OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. Index: openacs-4/packages/acs-core-docs/www/security-requirements.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/security-requirements.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/security-requirements.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/security-requirements.html 28 Jun 2003 05:07:02 -0000 1.10 @@ -1,5 +1,5 @@ -OpenACS 4 Security Requirements

      OpenACS 4 Security Requirements

      +OpenACS 4 Security Requirements

      OpenACS 4 Security Requirements

      by Richard Li
      OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. Index: openacs-4/packages/acs-core-docs/www/software-versions.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/Attic/software-versions.html,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/software-versions.html 24 Jun 2003 03:58:11 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/software-versions.html 28 Jun 2003 05:07:02 -0000 1.3 @@ -1,5 +1,5 @@ -Chapter�2.�Prerequisite Software

      Chapter�2.�Prerequisite Software

      +Chapter�3.�Prerequisite Software

      Chapter�3.�Prerequisite Software

      by Joel Aufrecht
      OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. @@ -8,4 +8,4 @@ and webserver. Many additional programs, such as a Mail Transport Agent and source control system, are also needed for a fully effective instance. -

      ($Id$)
      View comments on this page at openacs.org
      +

      ($Id$)
      View comments on this page at openacs.org
      Index: openacs-4/packages/acs-core-docs/www/subsites-design.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/subsites-design.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/subsites-design.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/subsites-design.html 28 Jun 2003 05:07:02 -0000 1.10 @@ -1,5 +1,5 @@ -OpenACS 4 Subsites Design Document

      OpenACS 4 Subsites Design Document

      +OpenACS 4 Subsites Design Document

      OpenACS 4 Subsites Design Document

      by Rafael H. Schloming
      OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. @@ -210,4 +210,4 @@ a particular configuration of site nodes/packages. As we build more fundamental applications that can be applied in more general areas, this feature will become more and more in demand since more problems will be -solvable by configuration instead of coding.

      View comments on this page at openacs.org
      +solvable by configuration instead of coding.

      View comments on this page at openacs.org
      Index: openacs-4/packages/acs-core-docs/www/subsites-requirements.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/subsites-requirements.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/subsites-requirements.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/subsites-requirements.html 28 Jun 2003 05:07:03 -0000 1.10 @@ -1,5 +1,5 @@ -OpenACS 4 Subsites Requirements

      OpenACS 4 Subsites Requirements

      +OpenACS 4 Subsites Requirements

      OpenACS 4 Subsites Requirements

      by Rafael H. Schloming and Dennis Gregorovic
      OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. Index: openacs-4/packages/acs-core-docs/www/subsites.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/subsites.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/subsites.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/subsites.html 28 Jun 2003 05:07:03 -0000 1.11 @@ -1,5 +1,5 @@ -Writing OpenACS 5.0.0 Application Pages

      Writing OpenACS 5.0.0 Application Pages

      +Writing OpenACS 4.7.0d Application Pages

      Writing OpenACS 4.7.0d Application Pages

      By Rafael H. Schloming and Pete Su


      @@ -8,15 +8,15 @@

      Overview

      In this document, we'll examine the user interface pages of the Notes application in more detail, covering two separate aspects of page -development in OpenACS 5.0.0. First, we'll talk about the code needed to make +development in OpenACS 4.7.0d. First, we'll talk about the code needed to make your pages aware of which application instance they are running in. Second, we'll talk about using the form builder to develop -form-based user interfaces in OpenACS 5.0.0. While these seem like unrelated +form-based user interfaces in OpenACS 4.7.0d. While these seem like unrelated topics, they both come up in the example page that we are going to look at, so it makes sense to address them at the same time.

      Application Instances and Subsites

      -As you will recall from the packages tutorial, the Request -Processor (RP) and Package Manager (APM) in OpenACS 5.0.0 allow site +As you will recall from the packages tutorial, the Request +Processor (RP) and Package Manager (APM) in OpenACS 4.7.0d allow site administrators to define an arbitrary mapping from URLs in the site to objects representing content. These objects may represent single files, or entire applications. The APM uses the site map to map @@ -257,15 +257,15 @@ visible to that user. The end result is a site where users can come and write notes to themselves.

      -This is a good example of the leverage available in the OpenACS 5.0.0 +This is a good example of the leverage available in the OpenACS 4.7.0d system. The code that we have written for Notes is not at all more complex than a similar application without access control or site map awareness. By adding a small amount of code, we have taken a small, simple, and special purpose application to something that has the potential to be a very useful, general-purpose tool, complete with multi-user features, access control, and centralized administration.

      Summary

      -In OpenACS 5.0.0, application pages and scripts can be aware of the package +In OpenACS 4.7.0d, application pages and scripts can be aware of the package instance, or subsite in which they are executing. This is a powerful general purpose mechanism that can be used to structure web services in very flexible ways. @@ -277,4 +277,4 @@

      We also saw how to use the templating system's forms API in a simple way, to create forms based pages with minimal duplication of code. -

      ($Id$)
      View comments on this page at openacs.org
      +

      ($Id$)
      View comments on this page at openacs.org
      Index: openacs-4/packages/acs-core-docs/www/tcl-doc.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tcl-doc.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/tcl-doc.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/tcl-doc.html 28 Jun 2003 05:07:03 -0000 1.11 @@ -1,5 +1,5 @@ -Documenting Tcl Files: Page Contracts and Libraries

      Documenting Tcl Files: Page Contracts and Libraries

      +Documenting Tcl Files: Page Contracts and Libraries

      Documenting Tcl Files: Page Contracts and Libraries

      by Jon Salz on 3 July 2000
      OpenACS docs are written by the named authors, and may be edited Index: openacs-4/packages/acs-core-docs/www/templates.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/templates.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/templates.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/templates.html 28 Jun 2003 05:07:03 -0000 1.11 @@ -1,9 +1,9 @@ -Using Templates in OpenACS 5.0.0

      Using Templates in OpenACS 5.0.0

      By Pete Su


      +Using Templates in OpenACS 4.7.0d

      Using Templates in OpenACS 4.7.0d

      By Pete Su


      OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff.

      Overview

      -The OpenACS 5.0.0 Template System (ATS) is designed to allow developers to +The OpenACS 4.7.0d Template System (ATS) is designed to allow developers to cleanly separate application logic from display logic. The intent is to have all of the logic related to manipulating the database and other application state data in one @@ -160,7 +160,7 @@

      Summary

      Templates separate application logic from display logic by requiring the developer to write pages in two stages, one file for database -queries and application logic, and another for display. In OpenACS 5.0.0, the +queries and application logic, and another for display. In OpenACS 4.7.0d, the logic part of the page is just a .tcl that sets up data sources that are used by the display part of the page. The display part of the page is an .adp file with some Index: openacs-4/packages/acs-core-docs/www/tutorial-advanced.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-advanced.html,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/tutorial-advanced.html 24 Jun 2003 03:58:11 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/tutorial-advanced.html 28 Jun 2003 05:07:03 -0000 1.3 @@ -1,17 +1,17 @@ -Advanced Topics

      Advanced Topics

      Important

      This section is a work in progress.

      +Advanced Topics

      Advanced Topics

      Important

      This section is a work in progress.

      by Joel Aufrecht
      OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

      Overview

      This tutorial covers topics which are not essential to +

      Overview

      This tutorial covers topics which are not essential to creating a minimal working package. Each section can be used independently of all of the others; all sections assume that you've completed the basic tutorial.

      • How to enforce security so that users can't change other users records

      • How to use the content management tables so that ... what?

      • How to change the default stylesheets for Form Builder HTML forms.

      • How to make your package searchable with OpenFTS/Oracle

      • How to make your package send email notifications

      • How to prepare pagelets for inclusion in other pages

      • How and when to put procedures in a tcl procedure library

      • How to add general_comments to your pages

      • More on ad_form - data validation, other stuff. (plan to draw from Jon Griffin's doc)

      • How and when to implement caching

      • partialquery in xql

      • How to use the html/text entry widget to get the - "does this look right" confirm page

      • APM package dependencies

      Delete with confirmation

      We need a way to delete records. We'll create a + "does this look right" confirm page

    • APM package dependencies

    Delete with confirmation

    We need a way to delete records. We'll create a recursive confirmation page.

    Add this column to the table_def in index.tcl

    {delete "" {} {<td><a href="note-delete?note_id=$note_id">Delete</a></td>}}

    Create the delete confirmation/execution page.

    [service0@yourserver www]$ emacs note-delete.tcl
    ad_page_contract {
         A page that gets confirmation and then delete notes.
     
    @@ -71,7 +71,7 @@
     <formtemplate id="note-del-confirm"></formtemplate>
     </form>

    The ADP is very simple. The formtemplate tag outputs the HTML -form generated by the ad_form command with the matching name. Test it by adding the new files in the APM and then deleting a few samplenotes.

    General_comments

    You can track comments for any ACS Object. Here we'll track +form generated by the ad_form command with the matching name. Test it by adding the new files in the APM and then deleting a few samplenotes.

    General_comments

    You can track comments for any ACS Object. Here we'll track comments for notes. On the notes.tcl/adp pair, which is used to display individual notes, we want to put a link to add comments at the bottom of the screen. If there are any comments, we want to @@ -92,13 +92,13 @@ there are comments. Then you pass the note id, which is also the acs_object id.

    We put our two new variables in the notes.adp page.

    <a href="@comment_add_url@">Add a comment</a>
    -@comments_html@

    Prepare the package for distribution.

    Browse to the package manager. Click on +@comments_html@

    Prepare the package for distribution.

    Browse to the package manager. Click on tutorialapp.

    Click on Generate a distribution file for this package from the filesystem.

    Click on the file size (37.1KB) after the label Distribution File: and save the file to - /tmp.

    -

    View comments on this page at openacs.org
    + /tmp.

    +

    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/tutorial-database.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-database.html,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/tutorial-database.html 24 Jun 2003 03:58:11 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/tutorial-database.html 28 Jun 2003 05:07:03 -0000 1.3 @@ -1,9 +1,9 @@ -Setting Up Database Objects

    Setting Up Database Objects

    +Setting Up Database Objects

    Setting Up Database Objects

    by Joel Aufrecht
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

    Code the data model

    We create all database objects with scripts in the +

    Code the data model

    We create all database objects with scripts in the samplenote/sql/ directory. All database scripts are database-specific and are thus in either the samplenote/sql/oracle or @@ -40,7 +40,7 @@ @author which will be picked up by the API browser. The string $Id$ will automatically be - expanded when the file is checked in to cvs.

    [service0@yourserver postgresql]$ emacs samplenote-create.sql

    Paste this into the file and save and close.

    Figure�9.2.�Database Creation Script - master create file

    --
    +      expanded when the file is checked in to cvs.

    [service0@yourserver postgresql]$ emacs samplenote-create.sql

    Paste this into the file and save and close.

    Figure�10.2.�Database Creation Script - master create file

    --
     -- packages/samplenote/sql/postgresql/samplenote-create.sql
     --
     -- @author rhs@mit.edu
    @@ -50,7 +50,7 @@
     --
     
     \i samplenote-table-create.sql
    -\i samplenote-functions-create.sql

    Create the file to create the database table.

    [service0@yourserver postgresql]$ emacs samplenote-table-create.sql

    Paste this into the file and save and close.

    Figure�9.3.�Database Creation Script - table

    --
    +\i samplenote-functions-create.sql

    Create the file to create the database table.

    [service0@yourserver postgresql]$ emacs samplenote-table-create.sql

    Paste this into the file and save and close.

    Figure�10.3.�Database Creation Script - table

    --
     -- packages/samplenote/sql/postgresql/samplenote-table-create.sql
     --
     -- @author rhs@mit.edu
    @@ -93,7 +93,7 @@
     	null,				        -- type_extension_table
     	''samplenote__name'' 			-- name_method
     	);
    -

    Create the file to create the functions used to manipulate records.

    [service0@yourserver postgresql]$ emacs samplenote-functions-create.sql

    Paste this into the file and save and close.

    Figure�9.4.�Database Creation Script - functions

    --
    +

    Create the file to create the functions used to manipulate records.

    [service0@yourserver postgresql]$ emacs samplenote-functions-create.sql

    Paste this into the file and save and close.

    Figure�10.4.�Database Creation Script - functions

    --
     -- packages/samplenote/sql/postgresql/samplenote-functions-create.sql
     --
     -- @author rhs@mit.edu
    @@ -188,7 +188,7 @@
     end;
     ' language 'plpgsql';
     

    Create a database file to drop everything if the package - is uninstalled.

    [service0@yourserver postgresql]$ emacs samplenote-drop.sql

    Figure�9.5.�Database deletion script

    -- packages/samplenote/sql/samplenote-drop.sql
    +        is uninstalled.

    [service0@yourserver postgresql]$ emacs samplenote-drop.sql

    Figure�10.5.�Database deletion script

    -- packages/samplenote/sql/samplenote-drop.sql
     -- drop script
     --
     -- @author rhs@mit.edu
    Index: openacs-4/packages/acs-core-docs/www/tutorial-debug.html
    ===================================================================
    RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-debug.html,v
    diff -u -r1.2 -r1.3
    --- openacs-4/packages/acs-core-docs/www/tutorial-debug.html	24 Jun 2003 03:58:11 -0000	1.2
    +++ openacs-4/packages/acs-core-docs/www/tutorial-debug.html	28 Jun 2003 05:07:03 -0000	1.3
    @@ -1,9 +1,9 @@
     
    -Debugging and Automated Testing

    Debugging and Automated Testing

    Important

    This section is a work in progress.

    +Debugging and Automated Testing

    Debugging and Automated Testing

    Important

    This section is a work in progress.

    by Joel Aufrecht
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

    Debugging

    PostgreSQL.�You can work directly with the database to do debugging +

    Debugging

    PostgreSQL.�You can work directly with the database to do debugging steps like looking directly at tables and testing stored procedures. Start emacs. Type M-x sql-postgres. Press enter for @@ -19,10 +19,10 @@ ?�searches�backward�
    /�searches�forward.�
    ����������

    -

    Manual testing

    Make a list of basic tests to make sure it works

    ($Id$) - + Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/maintenance.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/maintenance.xml,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/maintenance.xml 24 Jun 2003 03:37:05 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/maintenance.xml 28 Jun 2003 05:07:07 -0000 1.3 @@ -81,6 +81,14 @@ + + + Install a script to automate the stopping and starting + of aolserver services via daemontools. You can then restart a service via restart-aolserver service0 + [root@yourserver root]# cp /web/service0/packages/acs-core-docs/www/files/restart-aolserver-daemontools.txt /usr/local/bin/restart-aolserver +[root@yourserver root]# chmod 755 /usr/local/bin/restart-aolserver +[root@yourserver root]# + At this point, these commands will work only for the Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/openacs.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/openacs.xml,v diff -u -r1.8 -r1.9 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/openacs.xml 24 Jun 2003 03:37:05 -0000 1.8 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/openacs.xml 28 Jun 2003 05:07:07 -0000 1.9 @@ -5,11 +5,11 @@ by Vinod Kurup - + Set up the file system for an OpenACS Service - + The reference install stores all OpenACS services in /web, with one subdirectory per service. The first time you install a service, you must create @@ -62,7 +62,7 @@ can use database commands associated with that group. - [root@yourserver root]# useradd -g web service0 + [root@yourserver root]# useradd -g web service0 -d /home/service0 [root@yourserver root]# Set up database environment variables. They are @@ -117,7 +117,7 @@ [root@yourserver root]# - + Unpack the OpenACS tarball and rename it to service0. Secure the directory so that only the owner can access it. Check the permissions by listing the directory. [root@yourserver root]# su - service0 [service0@yourserver service0]$ cd /web @@ -145,7 +145,8 @@ - Set up several additional directories in the service root: + (This step should be obsoleted by the 5.0.0 tarball, as + these directories will be included in the tarball)Set up several additional directories in the service root: etc is for configuration and control files, log is for error and request (web page hit) log files, and database-backup is for database backup files. If you did the CVS step, note that these new directories are excluded from that step so that you can decide whether or not you want your logs and config files in source control. [root@yourserver root]# su - service0 [service0@yourserver service0]$ mkdir /web/service0/etc /web/service0/log /web/service0/database-backup @@ -338,10 +339,10 @@ - + Prepare PostgreSQL for an OpenACS Service - + Create a user in the database matching the service name. [root@yourserver root]# su - postgres [postgres@yourserver pgsql]$ createuser service0 @@ -353,7 +354,7 @@ [root@yourserver root]# - + Create a database with the same name as our service name, service0. [root@yourserver root]# su - service0 [service0@yourserver service0]$ createdb service0 @@ -375,7 +376,7 @@ Add Full Text Search Support (OPTIONAL) - + [service0@yourserver service0]$ exit logout @@ -387,25 +388,26 @@ Configure an AOLserver Service for OpenACS - + The AOLserver architecture lets you run an arbitrary number of virtual servers. A virtual server is an HTTP service running on a specific port, e.g. port 80. In order for OpenACS to work, you - need to configure a virtual server. The Reference Platform uses a configuration file included in the OpenACS tarball. Copy it to the /web/service0/etc directory and open it in an editor to adjust the parameters. + need to configure a virtual server. The Reference Platform + uses a configuration file included in the OpenACS tarball, + /web/service0/etc/config.tcl. + Open it in an editor to adjust the parameters. AOLserver configuration [root@yourserver root]# su - service0 [service0@yourserver service0]$ cd /web/service0/etc -[service0@yourserver etc]# cp /web/service0/packages/acs-core-docs/www/files/config.tcl.txt config.tcl [service0@yourserver etc]# emacs config.tcl - - - You can continue without changing any values in the file. However, if you don't change address to match the computer's ip address, you won't be able to browse to your server from other machines. + + You can continue without changing any values in the file. However, if you don't change address to match the computer's ip address, you won't be able to browse to your server from other machines. @@ -453,7 +455,7 @@ AOLServer is very configurable. These settings should get you started, but for more options, read the AOLServer + url="http://aolserver.com/docs/admin/config.html">AOLServer docs. @@ -467,10 +469,10 @@ - + Verify AOLserver startup - + Kill any current running AOLserver processes and start a new one. If you are using Oracle, rather than PostgreSQL, replace @@ -495,7 +497,7 @@ [service0@yourserver service0]$ [08/Mar/2003:18:13:29][32131.8192][-main-] Notice: nsd.tcl: starting to read config file... [08/Mar/2003:18:13:29][32131.8192][-main-] Notice: nsd.tcl: finished reading config file. - + Attempt to connect to the service from a web browser. You should specify a URL like: Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/oracle.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/oracle.xml,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/oracle.xml 24 Jun 2003 03:37:05 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/oracle.xml 28 Jun 2003 05:07:07 -0000 1.10 @@ -7,7 +7,7 @@ - Skip this page if you're not interested in Oracle + Skip this page if you're not interested in Oracle. Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/other-software.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/other-software.xml,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/other-software.xml 24 Jun 2003 03:37:05 -0000 1.1 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/other-software.xml 28 Jun 2003 05:07:07 -0000 1.2 @@ -77,7 +77,8 @@ linkend="daemontools-download">download it. (The -p flag in mkdir causes all implied directories in the path to be made as well.) - (If you are using Red Hat 9.0, you need to put #include <errno.h> as the first line of /package/admin/daemontools-0.76/src/error.h. More information) + (Red Hat 9.0: put +#include <errno.h> as the first line of /package/admin/daemontools-0.76/src/error.h. More information) [root@yourserver root]# mkdir -p /package [root@yourserver root]# chmod 1755 /package/ [root@yourserver root]# cd /package/ @@ -99,8 +100,8 @@ Debian - root:~# apt-get install daemontools-installer -root:~# build-daemontools + root:~# apt-get install daemontools-installer +root:~# build-daemontools @@ -132,6 +133,7 @@ This program handles incoming tcp connections. Download ucspi and install it. + Red Hat 9.0: put #include <errno.h> as the first line of error.h. More information) [root@yourserver root]# cd /usr/local/src [root@yourserver src]# tar xzf /tmp/ucspi-tcp-0.88.tar.gz [root@yourserver src]# cd ucspi-tcp-0.88 @@ -188,7 +190,13 @@ Download qmail, set up the standard supporting users and build the binaries: - (If you are using Red Hat 9.0, you need to put #include <errno.h> as the first line of /usr/local/src/qmail-1.03/error.h. More information) + Red Hat 9.0: Put +#include <errno.h> +as the first line of + /usr/local/src/qmail-1.03/error.h. + More + information [root@yourserver root]# cd /usr/local/src [root@yourserver src]# tar xzf /tmp/qmail-1.03.tar.gz [root@yourserver src]# mkdir /var/qmail @@ -228,10 +236,10 @@ sendmail removing - [root@yourserver qmail-1.03]# rm -f /usr/bin/sendmail + [root@yourserver qmail-1.03]# rm -f /usr/bin/sendmail /usr/sbin/sendmail [root@yourserver qmail-1.03]# ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail [root@yourserver qmail-1.03]# -rm -f /usr/bin/sendmail +rm -f /usr/bin/sendmail /usr/sbin/sendmail ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail Configure qmail - specifically, run the config script to set up files in /var/qmail/control specifying the computer's identity and which addresses it should accept mail for. This command will automatically set up qmail correctly if you have correctly set a valid host nome. If not, you'll want to read /var/qmail/doc/INSTALL.ctl to find out how to configure qmail. [root@yourserver qmail-1.03]# ./config-fast yourserver.test @@ -271,46 +279,64 @@ Set up the skeleton directory so that new users will be configured for qmail. - [root@localhost root]# /var/qmail/bin/maildirmake /etc/skel/Maildir -[root@localhost root]# echo "./Maildir/" > /etc/skel/.qmail -[root@localhost root]# + [root@yourserver root]# /var/qmail/bin/maildirmake /etc/skel/Maildir +[root@yourserver root]# echo "./Maildir/" > /etc/skel/.qmail +[root@yourserver root]# /var/qmail/bin/maildirmake /etc/skel/Maildir echo "./Maildir/" > /etc/skel/.qmail - Qmail runs in two parts. First, several different - qmail daemons are started by the qmail rc file. Second, a - process is started in within tcpserver to listen for incoming smtp traffic. Run both of these commands to start qmail. Be very careful about line breaks - there should be a total of two commands here. Note also that the tcpserver command takes the uid and guid of qmaild, which will only be 502 and 501 if you have followed all of these instructions exactly and in order. Otherwise, grep qmaild /etc/passwd to find uid and guid, in that order. - [root@yourserver alias]# /usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -v -u 502 -g 501 0 smtp /var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd 3 & -[1] 15863 -[root@yourserver alias]# csh -cf '/var/qmail/rc &' -[1] 15865 -[root@yourserver alias]# -/usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -v -u 502 -g 501 0 smtp /var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd 3 & -csh -cf '/var/qmail/rc &' - Verify that seven different qmail threads are running: - [root@yourserver alias]# ps -auxw | grep - qmail -qmaild 4269 0.0 0.3 1384 452 pts/0 S 21:21 0:00 [tcpserver] -root 4270 0.0 0.3 1340 412 pts/0 S 21:21 0:00 /var/qmail/bin/splogger smtpd 3 -qmails 4272 0.1 0.2 1364 320 pts/0 S 21:21 0:00 [qmail-send] -qmaill 4273 0.0 0.3 1332 408 pts/0 S 21:21 0:00 [splogger] -root 4274 0.0 0.2 1332 272 pts/0 S 21:21 0:00 qmail-lspawn ./Maildir/ -qmailr 4275 0.0 0.2 1328 272 pts/0 S 21:21 0:00 [qmail-rspawn] -qmailq 4276 0.0 0.2 1324 280 pts/0 S 21:21 0:00 [qmail-clean] -root 4278 0.0 0.5 3280 632 pts/0 S 21:21 0:00 grep qmail -[root@yourserver alias]# - Further verify by sending and receiving email. Incoming mail for root is stored in /var/qmail/alias/Maildir. If it worked, make it permanent by putting the same commands in your startup scripts. (These instructions put the commands in rc.local, which means that they'll be run once, on boot. There will be no monitoring and no interface to start and stop and check status. We ought instead to either use full init scripts or daemontools.) - [root@yourserver alias]# echo "/usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -v -u 502 -g 501 0 smtp /var/qmail/bin/qmail-smtpd \ " >> /etc/rc.local -[root@yourserver alias]# echo "2>&1 | /var/qmail/bin/splogger smtpd 3 & " >> /etc/rc.local -[root@yourserver alias]# echo "csh -cf '/var/qmail/rc &' " >> /etc/rc.local -[root@yourserver alias]# -echo "/usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -v -u 502 -g 501 0 smtp /var/qmail/bin/qmail-smtpd \ " >> /etc/rc.local -echo "2>&1 | /var/qmail/bin/splogger smtpd 3 & " >> /etc/rc.local -echo "csh -cf '/var/qmail/rc &' " >> /etc/rc.local + As recommended, we will run qmail with daemontools + control files. Create daemontools control directories, set up a daemontools control script, copy the supervise control files, and set permissions. The last line links the control directories to /service, which will cause supervise to detect them and execute the run files, causing qmail to start. + [root@yourserver root]# mkdir -p /var/qmail/supervise/qmail-send/log +[root@yourserver root]# mkdir -p /var/qmail/supervise/qmail-smtpd/log +[root@yourserver root]# mkdir /var/log/qmail +[root@yourserver root]# chown qmaill /var/log/qmail +[root@yourserver root]# cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/qmailctl.txt /var/qmail/bin/qmailctl +[root@yourserver root]# chmod 755 /var/qmail/bin/qmailctl +[root@yourserver root]# ln -s /var/qmail/bin/qmailctl /usr/bin +[root@yourserver root]# cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/qmail-send-run.txt /var/qmail/supervise/qmail-send/run +[root@yourserver root]# cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/qmail-send-log-run.txt /var/qmail/supervise/qmail-send/log/run +[root@yourserver root]# cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/qmail-smtpd-run.txt /var/qmail/supervise/qmail-smtpd/run +[root@yourserver root]# cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/qmail-smtpd-log-run.txt /var/qmail/supervise/qmail-smtpd/log/run +[root@yourserver root]# chmod 755 /var/qmail/supervise/qmail-send/run +[root@yourserver root]# chmod 755 /var/qmail/supervise/qmail-send/log/run +[root@yourserver root]# chmod 755 /var/qmail/supervise/qmail-smtpd/run +[root@yourserver root]# chmod 755 /var/qmail/supervise/qmail-smtpd/log/run +[root@yourserver root]# ln -s /var/qmail/supervise/qmail-send /var/qmail/supervise/qmail-smtpd /service +[root@yourserver root]# ln -s /var/qmail/supervise/qmail-send /var/qmail/supervise/qmail-smtpd /service +mkdir -p /var/qmail/supervise/qmail-send/log +mkdir -p /var/qmail/supervise/qmail-smtpd/log +mkdir /var/log/qmail +chown qmaill /var/log/qmail +cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/qmailctl.txt /var/qmail/bin/qmailctl +chmod 755 /var/qmail/bin/qmailctl +ln -s /var/qmail/bin/qmailctl /usr/bin +cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/qmail-send-run.txt /var/qmail/supervise/qmail-send/run +cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/qmail-send-log-run.txt /var/qmail/supervise/qmail-send/log/run +cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/qmail-smtpd-run.txt /var/qmail/supervise/qmail-smtpd/run +cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/qmail-smtpd-log-run.txt /var/qmail/supervise/qmail-smtpd/log/run +chmod 755 /var/qmail/supervise/qmail-send/run +chmod 755 /var/qmail/supervise/qmail-send/log/run +chmod 755 /var/qmail/supervise/qmail-smtpd/run +chmod 755 /var/qmail/supervise/qmail-smtpd/log/run +ln -s /var/qmail/supervise/qmail-send /var/qmail/supervise/qmail-smtpd /service + + Wait ten seconds or so, and then verify that that the four qmail processes are running. If uptimes are 1 second, this may indicate broken scripts that are continuously restarting. In that case, start debugging by checking permissions. + [root@yourserver root]# qmailctl stat +/service/qmail-send: up (pid 32700) 430 seconds +/service/qmail-send/log: up (pid 32701) 430 seconds +/service/qmail-smtpd: up (pid 32704) 430 seconds +/service/qmail-smtpd/log: up (pid 32705) 430 seconds +messages in queue: 0 +messages in queue but not yet preprocessed: 0 +[root@yourserver root]# + Further verify by sending and receiving email. Incoming mail for root is stored in /var/qmail/alias/Maildir. - - Analog web file analyser. You should -have the source tarball in + + + + Install Analog web file analyzer + Download the Analog source tarball in /tmp. Unpack, compile, and install analog. [root@yourserver aolserver]# cd /usr/local/src [root@yourserver src]# tar xzf /tmp/analog-5.31.tar.gz @@ -331,12 +357,9 @@ make cd .. mv analog-5.31 /usr/share/ - See also - - - + See also - + @@ -583,7 +606,7 @@ the nsopenssl tarball in /tmp. - (Red Hat 9 note: see Red Hat 9 note: see this thread for details on compiling nsopenssl.) @@ -607,7 +630,12 @@ url="http://openacs.org/forums/message-view?message_id=93854">more information): apt-get install libssl-dev -make OPENSSL=/usr/lib/ssl +cd /usr/local/src/aolserver +tar xzf /tmp/nsopenssl-2.1.tar.gz +cd nsopenssl-2.1 +make OPENSSL=/usr/lib/ssl +cp nsopenssl.so /usr/local/aolserver/bin +cp https.tcl /usr/local/aolserver/modules/tcl/ Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/overview.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/overview.xml,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/overview.xml 24 Jun 2003 03:37:05 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/overview.xml 28 Jun 2003 05:07:07 -0000 1.10 @@ -15,7 +15,7 @@ in this chapter are part of the OpenACS &version;-P or OpenACS &version;-O Reference Platform, which use Red Hat 8.0. Differences between the Reference Platform - and common alternate platforms are noted where known. + and common alternate platforms (Red Hat 9, Debian) are noted where known. @@ -31,8 +31,8 @@ (much more if you want Oracle) 4 GB hard drive - You will need all of the software marked REQUIRED. + You will need all everthing marked REQUIRED in software. If you want to serve pages to people outside of your machine, you'll @@ -86,15 +86,15 @@ The basic steps to getting OpenACS up and running are: - - Install an OS - - + + Install an OS + + Install a database (Oracle or + PostgreSQL) + + Install a webserver (AOLServer) - - Install a database (Oracle or - PostgreSQL) Copy the OpenACS files into place and start the OpenACS installer, which will configure a database instance. Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml 24 Jun 2003 03:37:05 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml 28 Jun 2003 05:07:07 -0000 1.10 @@ -1,5 +1,5 @@ - - Install PostGreSQL 7.2.4 + + Install PostGreSQL by Vinod Kurup @@ -11,15 +11,47 @@ has not been fully tested with 7.3.2; 7.2.4 is the recommended version of PostgreSQL to use. - This page assumes you have downloaded postgresql to -/tmp/postgresql-7.2.4.tar.gz. If not, -get it. - - + + + + Using the Red Hat RPM + Red Hat users: If you install PostGreSQL 7.3.2 from the Red Hat 9 RPM, you + can skip a few steps. These shell commands add a link so that the + data directory appears to be in the same place as in a source + install; start the service; create a new group for web service + users, and modify the postgres user's + environment (more + information): + + [root@yourserver root]# ln -s /var/lib/pgsql/data /usr/local/pgsql/data +[root@yourserver root]# service postgresql start +Initializing database: + [ OK ] +Starting postgresql service: [ OK ] +[root@yourserver root]# echo "export LD_LIBRARY_PATH=/usr/local/pgsql/lib" >> ~postgres/.bash_profile +[root@yourserver root]# echo "export PATH=$PATH:/usr/local/pgsql/bin" >> ~postgres/.bash_profile +[root@yourserver root]# groupadd web +[root@yourserver root]# su - postgres +-bash-2.05b$ + +ln -s /var/lib/pgsql/data /usr/local/pgsql/data +service postgresql start +echo "export LD_LIBRARY_PATH=/usr/local/pgsql/lib" >> ~postgres/.bash_profile +echo "export PATH=$PATH:/usr/local/pgsql/bin" >> ~postgres/.bash_profile +groupadd web +su - postgres + ... and then skip to . Something similar may work for other binary packages as well. + + - Unpack PostGreSQL. -[root@yourserver root]# cd /usr/local/src + + Unpack PostGreSQL. + If you have not downloaded the postgresql tarball to + /tmp/postgresql-7.2.4.tar.gz, + get it. + + [root@yourserver root]# cd /usr/local/src [root@yourserver src]# tar xzf /tmp/postgresql-7.2.4.tar.gz [root@yourserver src]# cd /usr/local/src @@ -48,26 +80,28 @@ chmod 750 /usr/local/pgsql - Set up postgres's environment variables. They are - necessary for the executable to find its supporting + + Set up postgres's environment variables + They are necessary for the executable to find its supporting libraries. For convenience, we'll simply append the necessary lines to the postgres shell config file. + [root@yourserver src]# echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib" >> ~postgres/.bashrc [root@yourserver src]# echo "export PATH=$PATH:/usr/local/pgsql/bin" >> ~postgres/.bashrc -echo "export LD_LIBRARY_PATH=LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib" >> ~postgres/.bashrc +echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib" >> ~postgres/.bashrc echo "export PATH=$PATH:/usr/local/pgsql/bin" >> ~postgres/.bashrc Test this by logging in as postgres and checking the paths; you should see /usr/local/pgsql/bin [root@yourserver src]# su - postgres [postgres@yourserver pgsql]$ env | grep PATH -LD_LIBRARY_PATH=LD_LIBRARY_PATH=:/usr/local/pgsql/lib +LD_LIBRARY_PATH=:/usr/local/pgsql/lib PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin:/usr/local/pgsql/bin:/usr/local/pgsql/bin [postgres@yourserver pgsql]$ exit - - + + Compile and install PostgreSQL Change to the postgres user and run ./configure to set the compilation options automatically. This is the point at which you can @@ -102,8 +136,8 @@ make all make install - - + + Start PostgreSQL The initdb command initializes the @@ -127,12 +161,15 @@ /usr/local/pgsql/data/server.log - - Set up plpgsql and allow your user to have + + + Install Pl/pgSQL + Set up plpgsq and allow your user to have access. Plpgsql is a PL/SQL-like language. We add it to template1, which is the template from which all new databases are created. We can verify that it was created with the createlang command in list mode. + [postgres@yourserver pgsql]$ createlang plpgsql template1 [postgres@yourserver pgsql]$ createlang -l template1 Procedural languages @@ -146,8 +183,11 @@ createlang -l template1 - Test PostgreSQL. Create a database and try some simple commands. The output should be as shown. + + Test PostgreSQL (OPTIONAL). + Create a database and try some simple commands. The output should be as shown. + [postgres@yourserver pgsql]$ createdb mytestdb CREATE DATABASE [postgres@yourserver pgsql]$ psql mytestdb @@ -180,19 +220,24 @@ logout [root@yourserver src]# - - - Set PostgreSQL to start on boot. First, we copy the + + + Set PostgreSQL to start on boot. First, we copy the postgresql.txt init script, which automates startup and shutdown, to the distribution-specific init.d directory. Then we verify that it works. Then we automate it by setting up a bunch of symlinks that ensure that, when the operating system changes runlevels, postgresql goes to the appropriate state. Red Hat and Debian and SuSE each work a little - differently so three sets of instructions are provided. + differently. - Red Hat: + Red Hat RPM: + The init script is already installed; just turn it on for the appropriate run levels. + [root@yourserver root]# chkconfig --level 345 postgresql on +[root@yourserver root]# + + Red Hat from source: [root@yourserver src]# cp /tmp/&tarballpath;/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql [root@yourserver src]# chown root.root /etc/rc.d/init.d/postgresql @@ -216,12 +261,14 @@ [root@yourserver root]# chkconfig --add postgresql +[root@yourserver root]# chkconfig --level 345 postgresql on [root@yourserver root]# chkconfig --list postgresql postgresql 0:off 1:off 2:on 3:on 4:on 5:on 6:off [root@yourserver root]# service postgresql start Starting PostgreSQL: ok [root@yourserver root]# chkconfig --add postgresql +chkconfig --level 345 postgresql on chkconfig --list postgresql service postgresql start @@ -351,7 +398,7 @@ kernel.shmmax = 134217728 - Edit the PostGreSQL config file, /usr/local/pgsql/data/postgresql.conf, to use more memory. These values should improve performance in most cases. (More information) + Edit the PostGreSQL config file, /usr/local/pgsql/data/postgresql.conf, to use more memory. These values should improve performance in most cases. (more information) # Shared Memory Size # shared_buffers = 15200 # 2*max_connections, min 16 @@ -374,7 +421,7 @@ - Learn more about PostgreSQL + more information about PostgreSQL Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/quick.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/quick.xml,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/quick.xml 28 Jun 2003 05:07:07 -0000 1.1 @@ -0,0 +1,57 @@ + + Quick Install + + + by Joel Aufrecht + + + + Purpose of this document + + This page describes a minimal installation of OpenACS with + PostGreSQL (not Oracle). It will produce a working OpenACS + installation in under an hour. It excludes source control, + full text search, ssl, managed services (daemontools), + DocBook, and qmail. + + + + For Red Hat 9 + + + Install PostGreSQL 7.3.2 from RPM. Select + Menu > System Settings > Add/Remove + Applications and select Database Server. + + On the PostGreSQL page, do the bullet point and step + On the Aolserver page, do steps , , and + + In on the OpenACS page, do steps , , , and + + + In , do steps , , and + + + In , do + + + Browse to . If you see a page like this, proceed with . If not, look at for troubleshooting information. + + + + + After completing installation and restarting the server, go to for configuration and customization instructions. You can upgrade a Quick Install with source control, full text search, backup/recovery, and other production features by walking through the Installation documentation and doing the steps marked OPTIONAL. + + ($Id: quick.xml,v 1.1 2003/06/28 05:07:07 joela Exp $) + + + + Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/recovery.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/recovery.xml,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/recovery.xml 24 Jun 2003 03:37:05 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/recovery.xml 28 Jun 2003 05:07:07 -0000 1.3 @@ -66,7 +66,7 @@ This section describes how to make a one-time backup of the files and database. This is useful for rolling back to known-good versions of a service, such as at initial - installation and just before a backup. + installation and just before an upgrade. @@ -90,7 +90,7 @@ If you are already using CVS, you probably don't need to do anything to back up your data. Just make sure that your current work is checked into the system. - You can then roll back based on date - just note the + You can then roll back based on date - note the current system time, down to the minute. For maximum safety, you can apply a tag to your current files. @@ -177,29 +177,6 @@ - - Set up Automated Backup - OPTIONAL - Backup can encompass all files in /web/service0. For a development server, putting the files in cvs is sufficient. (It's important then to back up the cvs repository!) - - A quick way to automate database backup is a cron job. This is not recommended for production and is not part of the Reference Platform, because it is not cross-platform and can fail silently. More thorough methods are documented in - [service0@yourserver service0]$ export EDITOR=emacs;crontab -e - Add this line to the file. The numbers and stars at the beginning are cron columns that specify when the program should be run - in this case, whenever the minute is 0 and the hour is 1, i.e., 1:00 am every day. - 0 1 * * * /usr/local/pgsql/bin/pg_dump -f /web/service0/database-backup/service0_$(date +%Y-%m-%d).dmp service0 - If you plan to back up the whole /web/service0 directory, then it would be redundant to keep a history of database backups. In that case, set up the cron job to overwrite the previous backup each time: - 0 1 * * * /usr/local/pgsql/bin/pg_dump -f /web/service0/database-backup/service0_nightly.dmp service0 - - - - - Set up Nightly Postgres Exports - A quick way to automate database backup is a cron job. - (This should moved into OpenACS's scheduled task project so that - it's integrated with OpenACS's alerts and such.) - - [service0@yourserver service0]$ export EDITOR=emacs;crontab -e - Add this line to the file. The numbers and stars at the beginning are cron columns that specify when the program should be run - in this case, whenever the minute is 0 and the hour is 1, i.e., 1:00 am every day. - 0 1 * * * /usr/local/pgsql/bin/pg_dump -f /web/service0/database-backup/service0_$(date +%Y-%m-%d).dmp service0 - Back up the file system Here's a quick manual way to back up a reference install - @@ -248,9 +225,39 @@ tar: Removing leading `/' from member names [service0@yourserver service0]$ + + + Automated Backup (OPTIONAL) + Backup can encompass all files in + /web/service0. For a development + server, putting the files in cvs, and backing up the database nightly, is sufficient. (It's important then to back up the cvs repository!) + + Postgres automatic backup + Backing up the database consists of creating a file + which is a picture of the database at a particular moment. + Postgres can be backed up while running. A quick way to automate database backup is a cron job. This + is not recommended for production and is not part of the Reference + Platform, because it is not cross-platform and can fail silently. + A more thorough solution using the cronjob OpenACS package is + planned. + Depending on your overall backup strategy, you can + create a series of database backup files, or you can create a + single nightly backup file which is then collected into a + bigger backup file that includes the other parts of the + service (web pages, content, code). To make a new file every + night, edit the crontab file for service0: + [service0@yourserver service0]$ export EDITOR=emacs;crontab -e + Add this line to the file. The numbers and stars at the beginning are cron columns that specify when the program should be run - in this case, whenever the minute is 0 and the hour is 1, i.e., 1:00 am every day. + 0 1 * * * /usr/local/pgsql/bin/pg_dump -f /web/service0/database-backup/service0_$(date +%Y-%m-%d).dmp service0 + If you plan to back up the whole /web/service0 directory, then it would be redundant to keep a history of database backups. In that case, set up the cron job to overwrite the previous backup each time: + 0 1 * * * /usr/local/pgsql/bin/pg_dump -f /web/service0/database-backup/service0_nightly.dmp service0 + + - Testing + A full Backup/Recovery cycle On a test service, make sure that your backup-recovery process work. After backing up the database and file system, delete the service as detailed below and then recover it. + + Delete the Service [root@yourserver root]# svc -d /service/service0 [root@yourserver root]# mv /web/service0/ /web/service0.lost [root@yourserver root]# rm /service/service0 @@ -267,9 +274,9 @@ [postgres@yourserver pgsql]$ exit logout [root@yourserver root]# - + - + Recovery @@ -305,6 +312,7 @@ [root@yourserver root]# + @@ -449,8 +457,7 @@ Set up nightly Postgres exports - - (This is not required for the Reference install.) + This is an alternate method to the crontab backup. Dowload this script to /tmp. At the top of the script are several variables that you'll need to customize: Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/software.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/software.xml,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/software.xml 24 Jun 2003 03:37:05 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/software.xml 28 Jun 2003 05:07:07 -0000 1.3 @@ -78,7 +78,7 @@ Verified - PostGreSQL + PostGreSQL 7.0 Verified @@ -94,12 +94,15 @@ Oracle 8.1.6 + Verified 8.1.7 + Verified 9i + No @@ -222,18 +225,14 @@ - + - libxml2 and libxml2-devel, REQUIRED - OpenACS &version; stores + tDOM, REQUIRED + OpenACS &version; stores queries in XML files, so we use an AOLserver module called - nsxml to parse these files. libxml2-devel is required to - compile nsxml. Libxml2 is available from http://xmlsoft.org). On Debian, - this can be installed by doing apt-get install - libxml2-dev. Users of other distributions can - download rpms from rpmfind.net. + tDOM to parse these files. (This replaces libxml2, which + was used prior to 4.6.4.) tDOM is available from http://tdom.org). @@ -266,24 +265,24 @@ url="http://uptime.openacs.org/aolserver-openacs/">uptime.openacs.org. - + It's also possible to download all the pieces and patches yourself: - - - + + + AOLserver is available at aolserver.com - - + + ArsDigita's AOLserver distribution (including internationalization patches, nscache, nsrewrite, nssha1 and the oracle driver) is available at arsdigita.com + + - - The OpenACS PostgreSQL driver (nspostgres.so) is available from SourceForge. If @@ -295,32 +294,27 @@ - nsxml is available at http://acs-misc.sourceforge.net. - - - The patch that makes exec work on BSD is available at sourceforge.net - - + + The patch that makes ns_uuencode work for binary files is available at sourceforge.net - - + + The patch that makes AOLserver respect the -g flag is available at sourceforge.net + + + - - - @@ -365,31 +359,31 @@ - - - Oracle 8.1.7 (Either this or PostGreSQL is REQUIRED) - You can register and download Oracle from + Oracle 8.1.7 (Either this or PostGreSQL is REQUIRED) + You can register and download Oracle from Oracle TechNet. You need this if you want to use an Oracle database. - + - - <ulink + <formalpara id="source-postgresql"> + <title><ulink url="http://www.ca.postgresql.org/ftpsite/source/v7.2.4/postgresql-7.2.4.tar.gz">PostGreSQL 7.2.4</ulink> (Either this or Oracle is REQUIRED) You need this if you want to use a PostGreSQL database. PostGreSQL 7.3 is not backwards-compatible, and OpenACS support for 7.3 has not been fully tested. If you are not in the United States, select a closer mirror - - - - - - Process Controller + + + + + + Process Controller This is software that initiates other software, and restarts that software if it fails. On Linux, we recommend using Daemontools to control AOLserver and qmail. @@ -422,49 +416,49 @@ You need this (or a different Mail Transport Agent) if you want your webserver to send and receive email. - - - - - <ulink + </formalpara> + </listitem> + <listitem> + <formalpara id="ucspi-download"> + <title><ulink url="http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz">ucspi-tcp 0.88</ulink>, OPTIONAL - This program listens for incoming TCP connections and + This program listens for incoming TCP connections and hands them to a program. We use it instead of inetd, which is insecure. You need this if you are running qmail. - - - - - - - DocBook, OPTIONAL - (docbook-xml v4.2, docbook-xsl v1.56, libxslt 1.0.21, + + + + + + + + + DocBook, OPTIONAL + (docbook-xml v4.2, docbook-xsl v1.56, libxslt 1.0.21, xsltproc 1.0.21). You need this to write or edit documentation. - - - - - - Source Control - A Source Control system keeps track of all of the old + + + + + + Source Control + A Source Control system keeps track of all of the old versions of your files. It lets you recover old files, compare versions of file, and identify specific versions of files. You can use any source control system; the Reference Platform and the OpenACS.org repository (where you can get patched and development code in between releases) use cvs. - - - - - cvs 1.11.2, OPTIONAL - cvs is included in most unix distributions. You + + + + + cvs 1.11.2, OPTIONAL + cvs is included in most unix distributions. You need this if you want to track old versions of your files, do controlled deployment of code from development to production, or get or contribute development code from openacs.org. - - - +
    Test NumActionExpected Result
    001Browse to the index page while not logged in and +

    Manual testing

    Make a list of basic tests to make sure it works

    Test NumActionExpected Result
    001Browse to the index page while not logged in and while one or more notes exist.No edit or delete or add links should appear.
    002Browse to the index page while logged in. An Edit link should appear. Click on it. Fill out the form and click Submit.The text added in the form should be visible on the index page.

    Other things to test: try to delete someone else's note. Try to delete your own note. Edit your own note. - Search for a note.

    Write automated tests

    (Forthcoming.)

    View comments on this page at openacs.org
    + Search for a note.

    Write automated tests

    (Forthcoming.)

    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/tutorial-newpackage.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-newpackage.html,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/tutorial-newpackage.html 24 Jun 2003 03:58:11 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/tutorial-newpackage.html 28 Jun 2003 05:07:03 -0000 1.3 @@ -1,21 +1,21 @@ -Creating a Package

    Creating a Package

    +Creating a Package

    Creating a Package

    by Joel Aufrecht
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

    Overview

    To start developing new code in OpenACS, we build a new +

    Overview

    To start developing new code in OpenACS, we build a new package. A package is a a discrete collection of web pages, tcl code, and database tables and procedures. A package can be installed, upgraded, and removed. It communicates with other packages through an API. This chapter walks you through the minimum steps to create a useful package, including writing documentation, setting up database tables and procedures, writing web pages, debugging, and automatic regression testing. -

    Before you begin

    You will need:

    • A computer with a working installation of OpenACS +

    Before you begin

    You will need:

    • A computer with a working installation of OpenACS 4.6. If you don't have this, see Installation Overview.

    • Example files, which are included in the -standard OpenACS 5.0.0 distribution. -

    Figure�9.1.�Assumptions in this section

    Fully qualified domain name of your serveryourserver.test
    URL of your serverhttp://yourserver.test:8000
    Name of development accountservice0
    New Package keysamplenote

    Use the APM to initialize a new package

    We use the ACS Package Manager (APM) to add, remove, and +standard OpenACS 4.7.0d distribution. +

    Figure�10.1.�Assumptions in this section

    Fully qualified domain name of your serveryourserver.test
    URL of your serverhttp://yourserver.test:8000
    Name of development accountservice0
    New Package keysamplenote

    Use the APM to initialize a new package

    We use the ACS Package Manager (APM) to add, remove, and upgrade packages. It handles package meta-data, such as lists of files that belong in the package. Each package is uniquely identified by a package key. To start developing a new @@ -43,7 +43,7 @@

    This creates a package rooted at /web/service0/packages/samplenote. This is the "home directory" of our new package, and all - files in the package will be within this directory.

    Mount the package in the site map

    In order to see your work in progress, you must create a + files in the package will be within this directory.

    Mount the package in the site map

    In order to see your work in progress, you must create a map between the URL space of incoming requests and the package. You do this by mounting the package in the Site Map. This creates a link between the incoming URL and an @@ -65,7 +65,7 @@ click New.

    By mounting the package, we've caused all requests to http://yourserver.test:8000/note - to be satisfied from the files at /web/service0/packages/samplenote/www.

    Write the Requirements and Design Specs

    It's time to document. For the tutorial we'll use + to be satisfied from the files at /web/service0/packages/samplenote/www.

    Write the Requirements and Design Specs

    It's time to document. For the tutorial we'll use pre-written documentation. When creating a package from scratch, start by copying the documentation template from /web/openacs-dev/packages/acs-core-docs/xml/docs/xml/package-documentation-template.xml @@ -115,7 +115,7 @@ Writing bi01.html for bibliography Writing index.html for book [service0@yourserver xml]$

    Verify that the documentation was generated and reflects - your changes by browsing to http://yoursite:8000/samplenote/doc

    Add the new package to CVS

    Before you do any more work, make sure that your work is + your changes by browsing to http://yoursite:8000/samplenote/doc

    Add the new package to CVS

    Before you do any more work, make sure that your work is protected by putting it all into cvs. The cvs add command is not recursive, so you'll have to traverse the directory tree manually and add as you go. (More on @@ -175,4 +175,4 @@ initial revision: 1.1 done (many lines omitted) -[service0@yourserver samplenote]$

    View comments on this page at openacs.org
    +[service0@yourserver samplenote]$
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/tutorial-pages.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-pages.html,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-core-docs/www/tutorial-pages.html 24 Jun 2003 03:58:11 -0000 1.2 +++ openacs-4/packages/acs-core-docs/www/tutorial-pages.html 28 Jun 2003 05:07:03 -0000 1.3 @@ -1,9 +1,9 @@ -Creating Web Pages

    Creating Web Pages

    +Creating Web Pages

    Creating Web Pages

    by Joel Aufrecht
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

    Build the "Index" page

    Each user-visible page in your package has, typically, +

    Build the "Index" page

    Each user-visible page in your package has, typically, three parts. The xql file contains any database queries, the tcl file holds the procedural logic for the page and does things like check permissions, invoke the database queries, and modify @@ -70,7 +70,7 @@ </queryset>

    Create the user-visible page.

    [service0@yourserver www]$ emacs index.adp

    The first line indicates that this page should be rendered within the the master template, which defaults to /web/service0/www/default-master. The second line passes a title variable to the master template. The third line inserts the contents of the variable table_html. The last line is a link to a page we haven't created yet.

    <master>
     <property name="title">Sample Notes</property>
     @table_html@
    -<p><a href="note-edit">Add a note</a></p>

    Making the APM load your files

    Before we can test these files, we have to notify the +<p><a href="note-edit">Add a note</a></p>

    Making the APM load your files

    Before we can test these files, we have to notify the package manager that they exist. (More precisely, the tcl and adp will work fine as-is, but the xql file will not be recognized until we tell the APM about it.).

    • Go to http://yourserver.test:8000/acs-admin/apm

    • Click on the samplenote link

    • Click Manage file information

    • @@ -86,7 +86,7 @@ to load the contents of the XQL into memory so that it can be used, and to reload it whenever the file is changed. The watch will last until the server is restarted. -

    Now that the APM is aware of your files, check to make sure that the self-documenting code is working.

    • Browse to http://yourserver.test:8000/api-doc/

    • Click Notes 0.1d

    • Click Content Pages

    • Click index.tcl and examine the results.

    Test the index page

    Go to http://yourserver.test:8000/note/. You should see this:

    +          

    Now that the APM is aware of your files, check to make sure that the self-documenting code is working.

    • Browse to http://yourserver.test:8000/api-doc/

    • Click Notes 0.1d

    • Click Content Pages

    • Click index.tcl and examine the results.

    Test the index page

    Go to http://yourserver.test:8000/note/. You should see this:

     Sample Notes
     Your Workspace : Main Site : Sample Note 
     
    @@ -95,7 +95,7 @@
     Add a note.
     
     foo@yourserver.test
    -

    Since our table is empty, it's a pretty boring page. So next we'll make it possible to add records.

    If you get any other output, such as an error message, skip to the section called “Debugging and Automated Testing”.

    Add the add/edit page

    We'll create a single page to handle both adding and +

    Since our table is empty, it's a pretty boring page. So next we'll make it possible to add records.

    If you get any other output, such as an error message, skip to the section called “Debugging and Automated Testing”.

    Add the add/edit page

    We'll create a single page to handle both adding and editing records. In this recursive approach, the same tcl function can present a blank HTML form, present the same form pre-loaded with an existing record, and handle the resulting @@ -174,7 +174,7 @@ title, for both variables but wrap it in curly brackets for context so that the spaces aren't interpreted separators. The formtemplate tag outputs the form - html with the matching name.

    Go to the APM as before and reload. Then test all this by going to the package home page and adding and editing a few records.

    Adding files to cvs

    Put your new work into source control.

    [service0@yourserver www]$ cvs add *.adp *.tcl *.xql
    +      html with the matching name.

    Go to the APM as before and reload. Then test all this by going to the package home page and adding and editing a few records.

    Adding files to cvs

    Put your new work into source control.

    [service0@yourserver www]$ cvs add *.adp *.tcl *.xql
     cvs add: cannot add special file `CVS'; skipping
     cvs add: doc/CVS already exists
     cvs add: scheduling file `index.adp' for addition
    Index: openacs-4/packages/acs-core-docs/www/tutorial.html
    ===================================================================
    RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial.html,v
    diff -u -r1.2 -r1.3
    --- openacs-4/packages/acs-core-docs/www/tutorial.html	24 Jun 2003 03:58:11 -0000	1.2
    +++ openacs-4/packages/acs-core-docs/www/tutorial.html	28 Jun 2003 05:07:03 -0000	1.3
    @@ -1,2 +1,2 @@
     
    -Chapter�9.�Development Tutorial
    View comments on this page at openacs.org
    +Chapter�10.�Development Tutorial
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/unix-install.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/Attic/unix-install.html,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/unix-install.html 24 Jun 2003 03:58:11 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/unix-install.html 28 Jun 2003 05:07:03 -0000 1.10 @@ -1,2 +1,2 @@ -Chapter�3.�Installing on Unix/Linux
    View comments on this page at openacs.org
    +Chapter�4.�Installing on Unix/Linux
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/upgrade-4.5-to-4.6.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/upgrade-4.5-to-4.6.html,v diff -u -r1.5 -r1.6 --- openacs-4/packages/acs-core-docs/www/upgrade-4.5-to-4.6.html 24 Jun 2003 03:58:11 -0000 1.5 +++ openacs-4/packages/acs-core-docs/www/upgrade-4.5-to-4.6.html 28 Jun 2003 05:07:03 -0000 1.6 @@ -1,13 +1,13 @@ -Upgrading OpenACS 4.5 to 4.6

    Upgrading OpenACS 4.5 to 4.6

    Checklist

    The required platform for OpenACS 4.6 is the same as +Upgrading OpenACS 4.5 to 4.6

    Upgrading OpenACS 4.5 to 4.6

    Checklist

    The required platform for OpenACS 4.6 is the same as 4.5, with the excepion of OpenFTS. You now need OpenFTS 0.3.2, not 0.2. - OpenACS 4.6 does not support PostGreSQL 7.3.

    Overview

    OpenACS consists of files and a database schema. The files + OpenACS 4.6 does not support PostGreSQL 7.3.

    Overview

    OpenACS consists of files and a database schema. The files in the OpenACS 4.6 tarball include database upgrade scripts. To start the upgrade, replace your existing files with the new files and then restart the server. Then, browse to the APM, which will detect the new packages and offer to run the appropriate database upgrade scripts. After restarting the server again, the upgrade is - complete.

    Figure�7.1.�Assumptions in this section

    name of OpenACS usernsadmin
    OpenACS server nameopenacs-dev
    Root of OpenACS file tree/web/openacs-dev
    Database backup directory/backup/openacs/

    Upgrading on Linux/Unix

    1. Make a Backup.�Back up the database and file system (see the section called “Snapshot backup and recovery”).

    2. OPTIONAL: Upgrade OpenFTS.�OpenACS Full Text Search requires several pieces: the OpenFTS code, some database functions, and the OpenFTS Engine. If you have OpenFTS 0.2, you'll need to upgrade to to OpenFTS 0.3.2. This is backwards-compatible - + complete.

      Figure�8.1.�Assumptions in this section

      name of OpenACS usernsadmin
      OpenACS server nameopenacs-dev
      Root of OpenACS file tree/web/openacs-dev
      Database backup directory/backup/openacs/

    Upgrading on Linux/Unix

    1. Make a Backup.�Back up the database and file system (see the section called “Snapshot backup and recovery”).

    2. OPTIONAL: Upgrade OpenFTS.�OpenACS Full Text Search requires several pieces: the OpenFTS code, some database functions, and the OpenFTS Engine. If you have OpenFTS 0.2, you'll need to upgrade to to OpenFTS 0.3.2. This is backwards-compatible - completing this step will not break a working OpenFTS Engine from 4.5.

      1. Uninstall the old OpenFTS Engine

        1. Browse to http://yourserver/openfts.

        2. Click Administration.

        3. Click Drop OpenFTS Engine

      2. Build and install the new OpenFTS driver and supporting tcl procedures. (This section of shell code is not fully documented; please exercise care.)

        cd /usr/local/src/
        @@ -86,6 +86,6 @@
                   upgrade, plus any new
                   packages you want.  It's safest to upgrade the kernel by
                   itself, and then come back and upgrade the rest of the
        -          desired packages in a second pass.

      3. On the next screen, click Install Packages

      4. When prompted, restart the server:

        [root@localhost root]# restart-aolserver openacs-dev
      5. Wait a minute, then browse to the package manager, http://yourserver/acs-admin/apm.

      6. Check that the kernel upgrade worked by clicking All and making sure that acs-kernel version is 5.0.0.

    3. OPTIONAL: Install the new OpenFTS Engine.�If you want to upgrade the OpenFTS Engine, do these + desired packages in a second pass.

    4. On the next screen, click Install Packages

    5. When prompted, restart the server:

      [root@localhost root]# restart-aolserver openacs-dev
    6. Wait a minute, then browse to the package manager, http://yourserver/acs-admin/apm.

    7. Check that the kernel upgrade worked by clicking All and making sure that acs-kernel version is 4.7.0d.

  • OPTIONAL: Install the new OpenFTS Engine.�If you want to upgrade the OpenFTS Engine, do these steps. (You must have already upgraded the OpenFTS driver to - 0.3.2.)

    1. Browse to http://yourserver/admin/site-map

    2. On the openfts line, click on set parameters.

    3. Change the value of openfts_tcl_src_path from /usr/local/src/Search-OpenFTS-tcl-0.2/ to /usr/local/src/Search-OpenFTS-tcl-0.3.2/

    4. Click Set Parameters

    5. [root@localhost root]# restart-aolserver openacs-dev
    6. Browse to http://yourserver/openfts

    7. Click Administration.

    8. Click Initialize OpenFTS Engine

  • Rollback.�If anything goes wrong, roll back to the backup snapshot.

  • ($Id$)
    View comments on this page at openacs.org
    + 0.3.2.)

    1. Browse to http://yourserver/admin/site-map

    2. On the openfts line, click on set parameters.

    3. Change the value of openfts_tcl_src_path from /usr/local/src/Search-OpenFTS-tcl-0.2/ to /usr/local/src/Search-OpenFTS-tcl-0.3.2/

    4. Click Set Parameters

    5. [root@localhost root]# restart-aolserver openacs-dev
    6. Browse to http://yourserver/openfts

    7. Click Administration.

    8. Click Initialize OpenFTS Engine

  • Rollback.�If anything goes wrong, roll back to the backup snapshot.

  • ($Id$)
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/upgrade-detail.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/Attic/upgrade-detail.html,v diff -u -r1.4 -r1.5 --- openacs-4/packages/acs-core-docs/www/upgrade-detail.html 24 Jun 2003 03:58:11 -0000 1.4 +++ openacs-4/packages/acs-core-docs/www/upgrade-detail.html 28 Jun 2003 05:07:03 -0000 1.5 @@ -1,5 +1,5 @@ -Support for upgrades.

    Support for upgrades.

    +Support for upgrades.

    Support for upgrades.

    by Joel Aufrecht
    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. @@ -8,4 +8,4 @@ or better, you should always be able to upgrade all of your core packages automatically. If you haven't changed anything, no manual intervention should be required. If you are running - OpenACS prior to 4.5, upgrading will require manual effort.

    View comments on this page at openacs.org
    + OpenACS prior to 4.5, upgrading will require manual effort.

    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/upgrade.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/upgrade.html,v diff -u -r1.4 -r1.5 --- openacs-4/packages/acs-core-docs/www/upgrade.html 24 Jun 2003 03:58:11 -0000 1.4 +++ openacs-4/packages/acs-core-docs/www/upgrade.html 28 Jun 2003 05:07:03 -0000 1.5 @@ -1,2 +1,2 @@ -Chapter�7.�Upgrading

    Chapter�7.�Upgrading

    View comments on this page at openacs.org
    +Chapter�8.�Upgrading

    Chapter�8.�Upgrading

    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/win-install.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/Attic/win-install.html,v diff -u -r1.11 -r1.12 --- openacs-4/packages/acs-core-docs/www/win-install.html 24 Jun 2003 03:58:11 -0000 1.11 +++ openacs-4/packages/acs-core-docs/www/win-install.html 28 Jun 2003 05:07:03 -0000 1.12 @@ -1,2 +1,2 @@ -Chapter�4.�Installing on Windows

    Chapter�4.�Installing on Windows

    View comments on this page at openacs.org
    +Chapter�5.�Installing on Windows

    Chapter�5.�Installing on Windows

    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/win2k-installation.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/win2k-installation.html,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/win2k-installation.html 24 Jun 2003 03:58:11 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/win2k-installation.html 28 Jun 2003 05:07:03 -0000 1.11 @@ -1,10 +1,10 @@ -OpenACS Installation Guide for Windows2000

    OpenACS Installation Guide for Windows2000

    By Matthew Burke and Curtis Galloway


    +OpenACS Installation Guide for Windows2000

    OpenACS Installation Guide for Windows2000

    By Matthew Burke and Curtis Galloway


    OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff.

    NOTE: These instructions were valid for ACS v4, but have not been tested with OpenACS. Currently - (8/2002), the best option to get OpenACS 5.0.0 running on Windows + (8/2002), the best option to get OpenACS 4.7.0d running on Windows is to use VMware and John Sequeira's Oasis VM distribution @@ -254,4 +254,4 @@

    In the services control panel you should see two services: AOLserver-lintcollectors and AOLserver-iguanasdirect. -

    ($Id$)
    View comments on this page at openacs.org
    +

    ($Id$)
    View comments on this page at openacs.org
    Index: openacs-4/packages/acs-core-docs/www/xml/index.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/index.xml,v diff -u -r1.13 -r1.14 --- openacs-4/packages/acs-core-docs/www/xml/index.xml 24 Jun 2003 03:37:04 -0000 1.13 +++ openacs-4/packages/acs-core-docs/www/xml/index.xml 28 Jun 2003 05:07:06 -0000 1.14 @@ -8,10 +8,10 @@ In documents, use &version; --> - - - - + + + + @@ -26,6 +26,8 @@ + + @@ -48,13 +50,8 @@ - - - - - - + @@ -64,8 +61,15 @@ + + + + + + + @@ -178,6 +182,7 @@ Administrator's Guide + &quick-install; &software; Installing on Unix/Linux Index: openacs-4/packages/acs-core-docs/www/xml/developers-guide/cvs.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/developers-guide/cvs.xml,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-core-docs/www/xml/developers-guide/cvs.xml 24 Jun 2003 03:37:04 -0000 1.1 +++ openacs-4/packages/acs-core-docs/www/xml/developers-guide/cvs.xml 28 Jun 2003 05:07:06 -0000 1.2 @@ -1,5 +1,5 @@ - Install Red Hat 8.0 + Using CVS with an OpenACS Site by Joel Aufrecht Fisheye: Tag 1.4 refers to a dead (removed) revision in file `openacs-4/packages/acs-core-docs/www/xml/files/acs-pgbackup-init.txt'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-core-docs/www/xml/files/acs-start.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-core-docs/www/xml/files/dbstart.txt'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.3 refers to a dead (removed) revision in file `openacs-4/packages/acs-core-docs/www/xml/files/export-oracle.txt'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-core-docs/www/xml/files/listener8i.txt'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.3 refers to a dead (removed) revision in file `openacs-4/packages/acs-core-docs/www/xml/files/nsd-oracle.txt'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-core-docs/www/xml/files/nsd-postgres.txt'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-core-docs/www/xml/files/openacs-start.html'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.4 refers to a dead (removed) revision in file `openacs-4/packages/acs-core-docs/www/xml/files/openacs4.tcl.txt'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-core-docs/www/xml/files/oracle8i.txt'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-core-docs/www/xml/files/postgresql.txt'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-core-docs/www/xml/files/restart-aolserver.txt'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-core-docs/www/xml/files/startlsnr.txt'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-core-docs/www/xml/files/stoplsnr.txt'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-core-docs/www/xml/files/svgroup.txt'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/acs-core-docs/www/xml/files/winnsd.txt'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/aolserver.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/aolserver.xml,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/aolserver.xml 24 Jun 2003 03:37:04 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/aolserver.xml 28 Jun 2003 05:07:07 -0000 1.10 @@ -5,28 +5,28 @@ by Vinod Kurup - This page assumes you have downloaded aolserver to to -/tmp/aolserver3.3oacs1.tar.gz. If not, -get it. It also assumes you are following the &version;-P or &version;-O Reference Platform installation, using Red Hat 8.0. Places where other systems are different are noted. - - - - As root, untar + + + Unpack the Aolserver tarball + Download the aolserver tarball to /tmp/aolserver3.3oacs1.tar.gz. As root, untar aolserver3.3oacs1.tar.gz into /usr/local/src. - - + [root@yourserver root]# cd /usr/local/src [root@yourserver src]# tar xzf /tmp/aolserver3.3oacs1.tar.gz [root@yourserver src]# cd /usr/local/src tar xzf /tmp/aolserver3.3oacs1.tar.gz - + + + Compile AOLserver Compile and install AOLserver. First, prepare the installation directory and the source code. The message about BUILD-MODULES can be ignored. + root@yourserver root]# mkdir -p /usr/local/aolserver [root@yourserver root]# cd /usr/local/src/aolserver [root@yourserver aolserver]# ./conf-clean @@ -46,12 +46,12 @@ the environment variables properly. - conf-inst should contain the + conf-inst should contain the location where AOLserver is to be installed. Overwrite the tarball's default value with our default value, /usr/local/aolserver: [root@yourserver aolserver]# echo "/usr/local/aolserver" > conf-inst [root@yourserver aolserver]# - + conf-make should contain the name of the GNU Make command on your system. It defaults to gmake. @@ -87,19 +87,22 @@ ================================================================== Done Building Sat Mar 8 10:31:35 PST 2003 [root@yourserver aolserver]# - - + + This takes about 5 minutes. It builds aolserver, several modules, and the database driver. (Upgraders, note that the postgres database driver has changed from postgres.so to nspostgres.so). All of the results are logged to files in /usr/local/src/aolserver/log. If you run into problems running AOLserver, check these files for build errors. - - - - Add a database-specific wrapper script. This script + + + + + Add a database-specific wrapper script. +This script sets database environment variables before starting AOLserver; this allows the AOLserver instance can communicate with the database. There is one script each for Oracle and PostGreSQL. They don't conflict, so if you plan - to use both databases, install both. - + to use both databases, install both. + + Oracle [root@yourserver aolserver]# cd /usr/local/aolserver/bin @@ -122,6 +125,53 @@ + + + Install tDOM + Download the tDOM + tarball to + /tmp/tDOM-0.7.7.tar.gz, + unpack it, adjust the configuration file to match our patched + distribution of aolserver, and compile it. + + [root@yourserver root]# cd /usr/local/src +[root@yourserver src]# tar xzf /tmp/tDOM-0.7.7.tar.gz +[root@yourserver src]# cd tDOM-0.7.7/unix +[root@yourserver unix]# +cd /usr/local/src +tar xzf /tmp/tDOM-0.7.7.tar.gz +cd unix + Edit the file CONFIG and change this section: +# ---------------------------------------------------- +# aolsrc="/usr/src/aolserver-3.4" +# ../configure --enable-threads --disable-tdomalloc \ +# --with-aolserver=$aolsrc \ +# --with-tcl=$aolsrc/tcl8.3.4/unix +to +# ---------------------------------------------------- +aolsrc="/usr/local/src/aolserver/aolserver" +../configure --enable-threads --disable-tdomalloc \ + --with-aolserver=$aolsrc + --with-tcl=$aolsrc/tcl8.3.2/unix + And configure and compile: + [root@yourserver unix]# sh CONFIG +creating cache ./config.cache +checking for memmove... yes + (many lines omitted) +creating Makefile +creating tdomConfig.sh +[root@yourserver unix]# make +gcc -pipe -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DTCL_THREADS=1 +-DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 + (many lines omitted) + -Wl,-rpath,/usr/local/lib -o tcldomsh;\ +fi +[root@yourserver unix]# cp libtdom0.7.7.so /usr/local/aolserver/bin/ +sh CONFIG +make +cp libtdom0.7.7.so /usr/local/aolserver/bin/ + + Install nsopenssl (OPTIONAL) @@ -130,7 +180,9 @@ Install Full Text Search with OpenFTS (OPTIONAL) - + + + Test AOLserver In order to test AOLserver, we'll run it using the sample-config.tcl file provided in the AOLserver distribution, under the nobody user and web @@ -140,6 +192,7 @@ group permission to write to /usr/local/aolserver/log and /usr/local/aolserver/servers. + [root@yourserver root]# cd /usr/local/aolserver [root@yourserver aolserver]# chown -R root.web log servers [root@yourserver aolserver]# chmod -R g+w log servers @@ -214,15 +267,17 @@ - - Troubleshooting. + + + Troubleshooting. If you can't view the welcome page, it's likely there's a problem with your server configuration. Start by viewing your AOLserver log, which is in /usr/local/aolserver/log/server.log. You should also try to find lines of the form: - + [01/Jun/2000:12:11:20][5914.2051][-nssock-] Notice: nssock: listening on http://localhost.localdomain:8000 (127.0.0.1:8000) [01/Jun/2000:12:11:20][5914.2051][-nssock-] Notice: accepting connections Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/compatibility.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/Attic/compatibility.xml,v diff -u -r1.3 -r1.4 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/compatibility.xml 24 Jun 2003 03:37:04 -0000 1.3 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/compatibility.xml 28 Jun 2003 05:07:07 -0000 1.4 @@ -1,10 +1,12 @@ - + Compatibility for required software by Joel Aufrecht + For more information see this thread
    - Assumptions in this section + Software version compatibility matrix @@ -27,9 +29,7 @@ 4.6.3 - AolServer - - + AolServer 3 Verified @@ -42,9 +42,19 @@ Verified - PostGreSQL + 3.4.2oacs1 + Verified + + + 3.5.5 + Verified + + + 4 + No + PostGreSQL 7.0 Verified @@ -54,18 +64,19 @@ 7.3.2 - Not compatible + Incompatible Untested +