Index: openacs.org-dev/packages/acs-core-docs/www/README.TXT =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/README.TXT,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/packages/acs-core-docs/www/README.TXT 11 Aug 2002 00:42:48 -0000 1.1 @@ -0,0 +1,12 @@ +ALL the files in this directory are *generated*. Do not edit them. Instead, +edit the files in /packages/acs-core-docs/www/xml/ and then run 'make' from +/packages/acs-core-docs/www/xml + +It's done this way so that everything under +/packages/acs-core-docs/www/xml/ is a self-contained version of the most +up-to-date docs, able to regenerate the latest HTML and files. + +Bottom line, if you want to edit docs, make sure you're editing files +underneath the 'xml' directory. + +-- Vinod Kurup (vinod@kurup.com) 2002-08-10 Index: openacs.org-dev/packages/acs-core-docs/www/files/README.TXT =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/files/README.TXT,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/packages/acs-core-docs/www/files/README.TXT 11 Aug 2002 00:42:48 -0000 1.1 @@ -0,0 +1,12 @@ +ALL the files in this directory are *generated*. Do not edit them. Instead, +edit the files in /packages/acs-core-docs/www/xml/files/ and +then run 'make' from /packages/acs-core-docs/www/xml + +It's done this way so that everything under +/packages/acs-core-docs/www/xml/ is a self-contained version of the most +up-to-date docs, able to regenerate the latest HTML and files. + +Bottom line, if you want to edit docs, make sure you're editing files +underneath the 'xml' directory. + +-- Vinod Kurup (vinod@kurup.com) 2002-08-10 Index: openacs.org-dev/packages/acs-core-docs/www/images/README.TXT =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/images/README.TXT,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/packages/acs-core-docs/www/images/README.TXT 11 Aug 2002 00:42:48 -0000 1.1 @@ -0,0 +1,12 @@ +ALL the files in this directory are *generated*. Do not edit them. Instead, +edit the files in /packages/acs-core-docs/www/xml/images/ and +then run 'make' from /packages/acs-core-docs/www/xml + +It's done this way so that everything under +/packages/acs-core-docs/www/xml/ is a self-contained version of the most +up-to-date docs, able to regenerate the latest HTML and files. + +Bottom line, if you want to edit docs, make sure you're editing files +underneath the 'xml' directory. + +-- Vinod Kurup (vinod@kurup.com) 2002-08-10 Index: openacs.org-dev/packages/acs-core-docs/www/images/context-hierarchy.gif =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/images/context-hierarchy.gif,v diff -u Binary files differ Index: openacs.org-dev/packages/acs-core-docs/www/xml/Makefile =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/Makefile,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/packages/acs-core-docs/www/xml/Makefile 11 Aug 2002 00:42:48 -0000 1.1 @@ -0,0 +1,17 @@ +# A very simple Makefile to generate the HTML docs +# @author Vinod Kurup (vinod@kurup.com) +# 2002-08-10 +# +# This simply copys all the 'files' and 'images' +# to the appropriate directory in www so that they are accessible +# +# It then moves into the www directory and runs the XSLT generation +# +# I'm a Makefile newbie, so feel free to comment/slash/change. + +all: + cp -u files/*.{txt,html} ../files/ + cp -u images/*.{pdf,png,gif,jpg} ../images/ + cp -u openacs.css .. + cd .. ; \ + xsltproc xml/openacs.xsl xml/index.xml Index: openacs.org-dev/packages/acs-core-docs/www/xml/openacs.css =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/openacs.css,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/packages/acs-core-docs/www/xml/openacs.css 11 Aug 2002 00:42:48 -0000 1.1 @@ -0,0 +1,13 @@ +body, ol, td, th, hr, h1, h2, h3, strong, dl, a, blockquote, em, .force, dt, dd, ul, li, p{font-family:verdana,helvetica,arial,sans-serif} +a:link{color:0000ff} +a:visited{color:000099} +a.topnav{font-size:11pt} +a.bottomnav{font-size:11pt} + +code{font-family:mono-space} +.CVS, .cvstag{font-family:mono-space; font-size:small; color:#999999; text-align:right} + +.codeblock{background-color:#ffffff;font-family:monospace} +.programlisting{background-color:#CCCCCC} +.strong{font-weight:bold} +.authorblurb{font-size:small} Index: openacs.org-dev/packages/acs-core-docs/www/xml/files/acceptance-sql.txt =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/files/acceptance-sql.txt,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/packages/acs-core-docs/www/xml/files/acceptance-sql.txt 11 Aug 2002 00:42:49 -0000 1.1 @@ -0,0 +1,95 @@ +-- acceptance-sql.txt by philg@mit.edu and jsc@arsdigita.com +-- (Philip Greenspun and Jin Choi) + +-- SQL commands to test an Oracle installation +-- for adequate privileges and capacity +-- run as the same user as the Web user + +-- creating a table +create table foo ( + foo_key integer primary key, + random varchar(1000) +); + +-- creating an index +create index foo_on_random on foo ( random ); + +-- inserting some rows +insert into foo values (1, '1'); +insert into foo values (2, '2'); +insert into foo values (3, '3'); +insert into foo values (4, '4'); +insert into foo values (5, '5'); +insert into foo values (6, '6'); +insert into foo values (7, '7'); +insert into foo values (8, '8'); +insert into foo values (9, '9'); +insert into foo values (10, '10'); +insert into foo values (11, null); +insert into foo values (12, null); +insert into foo values (13, null); +insert into foo values (14, null); +insert into foo values (15, null); +insert into foo values (16, null); +insert into foo values (17, null); +insert into foo values (18, null); +insert into foo values (19, null); +insert into foo values (20, null); + +-- create another table to work with +create table bar as select foo_key + 1 as bar_key, random from foo; + +-- joins +select b.random from foo f, bar b where f.foo_key = b.bar_key and f.random like '3%'; + +-- update +update foo set foo_key = foo_key + 100 where random is null; + +-- should return 10 +select count(*) from foo where foo_key > 100; + +-- create a sequence +create sequence foo_sequence start with 200; + +-- test whether truncate works +truncate table bar; + +drop table bar; + + +-- test 1) whether has privileges to create a procedure +-- and 2) whether rollback segments are adequately sized + +-- create a pl/sql procedure +create or replace procedure thrash_database(v_number_of_rows IN integer) +AS + i integer; +BEGIN + FOR i IN 1..v_number_of_rows LOOP + insert into foo (foo_key, random) values (foo_sequence.nextval, 'abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij'); + END LOOP; +END thrash_database; +/ +show errors + +-- we think any Oracle installation ought to be able to handle +-- 100,000 rows of 500 bytes each + +execute thrash_database(100000); + +select count(*) from foo; + +commit; + +delete from foo; +commit; + +drop table foo; +drop sequence foo_sequence; +drop procedure thrash_database; + +-- make sure that NLS_DATE_FORMAT is correct by +-- seeing that the following command returns +-- YYYY-MM-DD (e.g., 1999-05-22) + +select sysdate from dual; Index: openacs.org-dev/packages/acs-core-docs/www/xml/files/acs-pgbackup-init.txt =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/files/acs-pgbackup-init.txt,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/packages/acs-core-docs/www/xml/files/acs-pgbackup-init.txt 11 Aug 2002 00:42:49 -0000 1.1 @@ -0,0 +1,65 @@ +# Back up the database, scheduled to be run nightly. As written, it +# keeps a month's worth of daily backups, cycling over the same files +# which are suffixed with the day of the month on which the backup is +# created. +# Original version by Don Baccus (dhogaza@pacifier.com> +# Modified for openacs4 by Vinod Kurup +# 18 Jan 2002 +# This version: ftp only. + +proc acs_pgbackup {} { + # Set these to the appropriate values for your installation. + set pg_bin "/usr/local/pgsql/bin" + set bak "/usr/local/aolserver/backup" + set servername "birdnotes" + set ftp_user "my-ftp-username" + set ftp_password "my-ftp-password" + set ftp_dir "my-ftp-path" + set ftp_server "my.ftpserver.com" + + set day [clock format [clock seconds] -format %d] + set data "${servername}_${day}.dmp" + + ns_log Notice "Backup of [ad_system_name] starting." + ns_log Notice "pg_dump beginning..." + if [catch {append msg [exec "$pg_bin/pg_dump" $servername ">$bak/$data"]} errmsg] { + ns_log Error "pg_dump failed: $errmsg" + ns_sendmail [ad_system_owner] [ad_system_owner] "[ad_system_name] : pg_dump failed..." "$errmsg" + return + } + append msg "\n" + ns_log Notice "gzip of data beginning..." + if [catch {append msg [exec "gzip" "-f" "$bak/$data"]} errmsg] { + ns_log Error "gzip of data failed: $errmsg" + ns_sendmail [ad_system_owner] [ad_system_owner] "[ad_system_name] : gzip of data failed..." "$errmsg" + return + } + append msg "\n" + ns_log Notice "ftp data beginning..." + set fd [open "$bak/ftp_data.tmp" w] + + puts $fd "user $ftp_user ${ftp_password}\nbinary\nput $bak/$data.gz ${ftp_dir}/$data.gz\nquit\n" + close $fd + if [catch {append msg [exec "ftp" "-n" $ftp_server "<$bak/ftp_data.tmp"]} errmsg] { + ns_log Error "ftp data failed: $errmsg" + ns_sendmail [ad_system_owner] [ad_system_owner] "[ad_system_name] : ftp data failed..." "$errmsg" + return + } + append msg "\n" + + # Replicate the above code to make remote copies to other systems + ns_log Notice "vacuum beginning..." + if [catch {append msg [exec "$pg_bin/vacuumdb" "-q" "-z" "$servername"]} errmsg] { + ns_log Error "vacuum failed: $errmsg" + ns_sendmail [ad_system_owner] [ad_system_owner] "[ad_system_name] : vacuum failed..." "$errmsg" + } + ns_log Notice "Backup succeeded." + append msg "Backups succeeded" + ns_sendmail [ad_system_owner] [ad_system_owner] "[ad_system_name] : backup succeeded" "$msg" +} + +if { ! [nsv_exists acs_pgbackup scheduled_p] } { + ns_schedule_daily 0 0 acs_pgbackup + nsv_set acs_pgbackup scheduled_p 1 + ns_log Notice "Backup has been scheduled." +} Index: openacs.org-dev/packages/acs-core-docs/www/xml/files/acs-start.html =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/files/acs-start.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/packages/acs-core-docs/www/xml/files/acs-start.html 11 Aug 2002 00:42:49 -0000 1.1 @@ -0,0 +1,29 @@ + + + ACS Installation: Welcome + + +

ACS Installation: Welcome

+
+ + + +Thank you for installing the ArsDigita Community System, +a suite of fully-integrated enterprise-class applications +for supporting purposeful online communities. +This is the ACS Installer which performs all the steps necessary +to get the ArsDigita Community System running on your server. + +

Your Oracle driver is correctly installed and configured. +

The next step is to install the ACS kernel data model. Click the Next +button to proceed. + +

+ +
+
acs@arsdigita.com
+ + + + + Index: openacs.org-dev/packages/acs-core-docs/www/xml/files/dbstart.txt =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/files/dbstart.txt,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/packages/acs-core-docs/www/xml/files/dbstart.txt 11 Aug 2002 00:42:49 -0000 1.1 @@ -0,0 +1,217 @@ +: +# +# $Header: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/files/dbstart.txt,v 1.1 2002/08/11 00:42:49 rmello Exp $ dbstart.sh.pp Copyr (c) 1991 Oracle +# Modified 6/1/2000: Fixed bug determining version of Oracle by bquinn@arsdigita.com +# +################################### +# +# usage: dbstart +# +# This script is used to start ORACLE from /etc/rc(.local). +# It should ONLY be executed as part of the system boot procedure. +# +##################################### + +ORATAB=/etc/oratab + +trap 'exit' 1 2 3 +case $ORACLE_TRACE in + T) set -x ;; +esac + +# Set path if path not set (if called from /etc/rc) +case $PATH in + "") PATH=/bin:/usr/bin:/etc + export PATH ;; +esac + +# +# Loop for every entry in oratab file and and try to start +# that ORACLE +# + +cat $ORATAB | while read LINE +do + case $LINE in + \#*) ;; #comment-line in oratab + *) +# Proceed only if third field is 'Y'. + if [ "`echo $LINE | awk -F: '{print $3}' -`" = "Y" ] ; then + ORACLE_SID=`echo $LINE | awk -F: '{print $1}' -` + if [ "$ORACLE_SID" = '*' ] ; then + ORACLE_SID="" + fi +# Called programs use same database ID + export ORACLE_SID + ORACLE_HOME=`echo $LINE | awk -F: '{print $2}' -` +# Called scripts use same home directory + export ORACLE_HOME +# Put $ORACLE_HOME/bin into PATH and export. + PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/etc ; export PATH +# add for bug # 652997 + LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${ORACLE_HOME}/lib ; export LD_LIBRARY_PATH + + PFILE=${ORACLE_HOME}/dbs/init${ORACLE_SID}.ora + +# Figure out if this is a V5, V6, or V7 database. Do we really need V5? + if [ -f $ORACLE_HOME/bin/sqldba ] ; then + VERSION=`$ORACLE_HOME/bin/sqldba command=exit | awk ' + /SQL\*DBA: (Release|Version)/ {split($3, V, ".") ; + print V[1]}'` + else + if test -f $ORACLE_HOME/bin/svrmgrl; then + VERSION=`$ORACLE_HOME/bin/svrmgrl command=exit | awk ' + /PL\/SQL (Release|Version)/ {substr($3,1,3) ; + print substr($3,1,3)}'` + else + VERSION="8.2" + fi + fi + + STATUS=1 + + # beg mod for linux fix + VERSION=8.1 + # end mod + if [ "$VERSION" = "8.1" ] + then + pmon=`ps -ef | egrep pmon_$ORACLE_SID | grep -v grep` + if [ "$pmon" != "" ]; + then + STATUS="-1" + echo "Database \"${ORACLE_SID}\" already started." + fi + else + if test -f $ORACLE_HOME/dbs/sgadef${ORACLE_SID}.dbf -o \ + -f $ORACLE_HOME/dbs/sgadef${ORACLE_SID}.ora + then + STATUS="-1" + else + STATUS=1 + fi + fi + + case $STATUS in + 1) if [ -f $PFILE ] ; then + case $VERSION in + 6) sqldba command=startup + ;; + + 7) sqldba < + +OpenACS Installation: Welcome + + +

OpenACS Installation: Welcome

+
+ + + +Thank you for installing the OpenACS Community System, +a suite of fully-integrated enterprise-class solutions +for collaborative commerce. +This is the OpenACS Installer which performs all the steps necessary +to get the OpenACS Community System running on your server.

+Please read the Release Notes before proceeding to better understand what is contained in this release. + +

Your database driver is correctly installed and configured. +

The next step is to install the OpenACS kernel data model. Click the Next +button to proceed. + +

+
+
gatekeepers@openacs.org
+ + + + + Index: openacs.org-dev/packages/acs-core-docs/www/xml/files/openacs4.tcl.txt =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/files/openacs4.tcl.txt,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/packages/acs-core-docs/www/xml/files/openacs4.tcl.txt 11 Aug 2002 00:42:49 -0000 1.1 @@ -0,0 +1,315 @@ +ns_log notice "nsd.tcl: starting to read config file..." + +# which database do you want? postgres or oracle +set database postgres + +if {$database == "oracle"} { + set db_password "mysitepassword" +} + +set httpport 8000 +set httpsport 8443 + +# The hostname and address should be set to actual values. +set hostname [ns_info hostname] +set address [ns_info address] + +set server "birdnotes" +set db_name $server +set servername "Birdnotes.net Community" + +set serverroot "/web/${server}" + +# if debug is false, all debugging will be turned off +set debug true + +# you shouldn't need to adjust much below here +# for a standard install + +# +# AOLserver's home and binary directories. Autoconfigurable. +# +set homedir [file dirname [ns_info config]] +set bindir [file dirname [ns_info nsd]] + +# +# Where are your pages going to live ? +# +set pageroot ${serverroot}/www +set directoryfile index.tcl,index.adp,index.html,index.htm + +# +# nsssl: Only loads if keyfile.pem and certfile.pem exist. +# If you are using SSL, make sure you have these dirs and files (refer +# to the AOLserver docs) + +set sslkeyfile ${homedir}/servers/${server}/modules/nsssl/keyfile.pem +set sslcertfile ${homedir}/servers/${server}/modules/nsssl/certfile.pem + +# +# Global server parameters +# + +ns_section ns/parameters +ns_param serverlog ${homedir}/log/${server}-error.log +ns_param home $homedir +ns_param maxkeepalive 0 +ns_param logroll on +ns_param maxbackup 5 +ns_param debug $debug + +# +# Thread library (nsthread) parameters +# +ns_section ns/threads +ns_param mutexmeter true ;# measure lock contention +ns_param stacksize 500000 + +# +# MIME types. +# +# Note: AOLserver already has an exhaustive list of MIME types, but in +# case something is missing you can add it here. +# + +ns_section ns/mimetypes +ns_param Default text/plain +ns_param NoExtension text/plain +ns_param .pcd image/x-photo-cd +ns_param .prc application/x-pilot +ns_param .xls application/vnd.ms-excel + +# +# Tcl Configuration +# +ns_section ns/server/${server}/tcl +ns_param library ${serverroot}/tcl +ns_param autoclose on +ns_param debug $debug + + +############################################################ +# +# Server-level configuration +# +# There is only one server in AOLserver, but this is helpful when multiple +# servers share the same configuration file. This file assumes that only +# one server is in use so it is set at the top in the "server" Tcl variable +# Other host-specific values are set up above as Tcl variables, too. +# +ns_section ns/servers +ns_param $server $servername + +# +# Server parameters +# +ns_section ns/server/${server} +ns_param directoryfile $directoryfile +ns_param pageroot $pageroot +ns_param maxconnections 5 +ns_param maxdropped 0 +ns_param maxthreads 5 +ns_param minthreads 5 +ns_param threadtimeout 120 +ns_param globalstats false ;# Enable built-in statistics +ns_param urlstats false ;# Enable URL statistics +ns_param maxurlstats 1000 ;# Max number of URL's to do stats on +#ns_param directoryadp $pageroot/dirlist.adp ;# Choose one or the other +#ns_param directoryproc _ns_dirlist ;# ...but not both! +#ns_param directorylisting fancy ;# Can be simple or fancy + +# +# ADP (AOLserver Dynamic Page) configuration +# +ns_section ns/server/${server}/adp +ns_param map /*.adp ;# Extensions to parse as ADP's +#ns_param map "/*.html" ;# Any extension can be mapped +ns_param enableexpire false ;# Set "Expires: now" on all ADP's +ns_param enabledebug $debug ;# Allow Tclpro debugging with "?debug" +ns_param defaultparser fancy + +ns_section ns/server/${server}/adp/parsers +ns_param fancy ".adp" + +# +# Socket driver module (HTTP) -- nssock +# +ns_section ns/server/${server}/module/nssock +ns_param timeout 120 +ns_param address $address +ns_param hostname $hostname +ns_param port $httpport + +# +# Socket driver module (HTTPS) -- nsssl +# +# nsssl does not load unless sslkeyfile/sslcertfile exist (above). +# +ns_section ns/server/${server}/module/nsssl +ns_param port $httpsport +ns_param hostname $hostname +ns_param address $address +ns_param keyfile $sslkeyfile +ns_param certfile $sslcertfile + +# +# Database drivers +# The database driver is specified here. PostgreSQL driver being loaded. +# Make sure you have the driver compiled and put it in {aolserverdir}/bin +# +ns_section "ns/db/drivers" +if { $database == "oracle" } { + ns_param ora8 ${bindir}/ora8.so +} else { + ns_param postgres ${bindir}/postgres.so ;# Load PostgreSQL driver +} + +# +# Database Pools: This is how AOLserver ``talks'' to the RDBMS. You need +# three for OpenACS: main, log, subquery. Make sure to replace ``yourdb'' +# and ``yourpassword'' with the actual values for your db name and the +# password for it. + +# AOLserver can have different pools connecting to different databases +# and even different different database servers. +# +ns_section ns/db/pools +ns_param pool1 "Pool 1" +ns_param pool2 "Pool 2" +ns_param pool3 "Pool 3" + +ns_section ns/db/pool/pool1 +ns_param maxidle 1000000000 +ns_param maxopen 1000000000 +ns_param connections 5 +ns_param verbose $debug +ns_param extendedtableinfo true +ns_param logsqlerrors $debug +if { $database == "oracle" } { + ns_param driver ora8 + ns_param datasource {} + ns_param user $db_name + ns_param password $db_password +} else { + ns_param driver postgres + ns_param datasource localhost::${db_name} + ns_param user nsadmin + ns_param password "" +} + +ns_section ns/db/pool/pool2 +ns_param maxidle 1000000000 +ns_param maxopen 1000000000 +ns_param connections 5 +ns_param verbose $debug +ns_param extendedtableinfo true +ns_param logsqlerrors $debug +if { $database == "oracle" } { + ns_param driver ora8 + ns_param datasource {} + ns_param user $db_name + ns_param password $db_password +} else { + ns_param driver postgres + ns_param datasource localhost::${db_name} + ns_param user nsadmin + ns_param password "" +} + +ns_section ns/db/pool/pool3 +ns_param maxidle 1000000000 +ns_param maxopen 1000000000 +ns_param connections 5 +ns_param verbose $debug +ns_param extendedtableinfo true +ns_param logsqlerrors $debug +if { $database == "oracle" } { + ns_param driver ora8 + ns_param datasource {} + ns_param user $db_name + ns_param password $db_password +} else { + ns_param driver postgres + ns_param datasource localhost::${db_name} + ns_param user nsadmin + ns_param password "" +} + +ns_section ns/server/${server}/db +ns_param pools "*" +ns_param defaultpool pool1 + +ns_section ns/server/${server}/redirects +ns_param 404 "global/file-not-found.html" +ns_param 403 "global/forbidden.html" + +# +# Access log -- nslog +# +ns_section ns/server/${server}/module/nslog +ns_param file ${homedir}/log/${server}.log +ns_param enablehostnamelookup false +ns_param logcombined true +#ns_param logrefer false +#ns_param loguseragent false +ns_param maxbackup 5 +ns_param rollday * +ns_param rollfmt %Y-%m-%d-%H:%M +ns_param rollhour 0 +ns_param rollonsignal true +ns_param rolllog true + +# +# nsjava - aolserver module that embeds a java virtual machine. Needed to +# support webmail. See http://nsjava.sourceforge.net for further +# details. This may need to be updated for OpenACS4 webmail +# + +ns_section ns/server/${server}/module/nsjava +ns_param enablejava off ;# Set to on to enable nsjava. +ns_param verbosejvm off ;# Same as command line -debug. +ns_param loglevel Notice +ns_param destroyjvm off ;# Destroy jvm on shutdown. +ns_param disablejitcompiler off +ns_param classpath /usr/local/jdk/jdk118_v1/lib/classes.zip:${bindir}/nsjava.jar:${pageroot}/webmail/java/activation.jar:${pageroot}/webmail/java/mail.jar:${pageroot}/webmail/java + +# +# CGI interface -- nscgi, if you have legacy stuff. Tcl or ADP files inside +# AOLserver are vastly superior to CGIs. I haven't tested these params but they +# should be right. +# +#ns_section "ns/server/${server}/module/nscgi" +# ns_param map "GET /cgi-bin/ /web/$server/cgi-bin" +# ns_param map "POST /cgi-bin/ /web/$server/cgi-bin" +# ns_param Interps CGIinterps + +#ns_section "ns/interps/CGIinterps" +# ns_param .pl "/usr/bin/perl" + +# +# Modules to load +# +ns_section ns/server/${server}/modules +ns_param nssock ${bindir}/nssock.so +ns_param nslog ${bindir}/nslog.so +ns_param nssha1 ${bindir}/nssha1.so +ns_param nscache ${bindir}/nscache.so +ns_param nsrewrite ${bindir}/nsrewrite.so +ns_param nsxml ${bindir}/nsxml.so +#ns_param nsfts ${bindir}/nsfts.so +#ns_param nsperm ${bindir}/nsperm.so +#ns_param nscgi ${bindir}/nscgi.so +#ns_param nsjava ${bindir}/libnsjava.so + +# +## nsssl: loads only if requisite files already exist (see top of this +# file). +# +if { [file exists $sslcertfile] && [file exists $sslkeyfile] } { + ns_param nsssl ${bindir}/nsssle.so +} else { + ns_log warning "nsd.tcl: nsssl not loaded because key/cert files do not exist." +} + +ns_log notice "nsd.tcl: finished reading config file." + Index: openacs.org-dev/packages/acs-core-docs/www/xml/files/oracle8i.txt =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/files/oracle8i.txt,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/packages/acs-core-docs/www/xml/files/oracle8i.txt 11 Aug 2002 00:42:49 -0000 1.1 @@ -0,0 +1,44 @@ +#!/bin/sh +# +# chkconfig: 345 51 49 +# description: starts the oracle dabase deamons ( part of the aD ACS install ) +# +echo "Oracle 8i auto start/stop" + +ORA_OWNER=oracle +ORA_HOME=/ora8/m01/app/oracle/product/8.1.7 + +case "$1" in + 'start') + +echo -n "Starting Oracle8i: " +su - $ORA_OWNER -c $ORA_HOME/bin/dbstart +touch /var/lock/subsys/oracle8i +echo +;; + + +'stop') + +echo -n "Shutting Oracle8i: " +su - $ORA_OWNER -c $ORA_HOME/bin/dbshut +rm -f /var/lock/subsys/oracle8i +echo +;; + + +'restart') + +echo -n "Restarting Oracle8i: " +$0 stop +$0 start +echo +;; + +*) +echo "Usage: oracle8i {start | stop | restart }" +exit 1 + +esac +exit 0 + Index: openacs.org-dev/packages/acs-core-docs/www/xml/files/postgresql.txt =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/files/postgresql.txt,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/packages/acs-core-docs/www/xml/files/postgresql.txt 11 Aug 2002 00:42:49 -0000 1.1 @@ -0,0 +1,92 @@ +#! /bin/sh + +# chkconfig: 2345 98 02 +# description: PostgreSQL RDBMS + +# This is an example of a start/stop script for SysV-style init, such +# as is used on Linux systems. You should edit some of the variables +# and maybe the 'echo' commands. +# +# Place this file at /etc/init.d/postgresql (or +# /etc/rc.d/init.d/postgresql) and make symlinks to +# /etc/rc.d/rc0.d/K02postgresql +# /etc/rc.d/rc1.d/K02postgresql +# /etc/rc.d/rc2.d/K02postgresql +# /etc/rc.d/rc3.d/S98postgresql +# /etc/rc.d/rc4.d/S98postgresql +# /etc/rc.d/rc5.d/S98postgresql +# Or, if you have chkconfig, simply: +# chkconfig --add postgresql +# +# Proper init scripts on Linux systems normally require setting lock +# and pid files under /var/run as well as reacting to network +# settings, so you should treat this with care. + +# Original author: Ryan Kirkpatrick + +# $Header: /cvsroot/pgsql/contrib/start-scripts/linux,v 1.3 2001/07/30 + +## EDIT FROM HERE + +# Installation prefix +prefix=/usr/local/pgsql + +# Data directory +PGDATA="/usr/local/pgsql/data" + +# Who to run pg_ctl as, should be "postgres". +PGUSER=postgres + +# Where to keep a log file +PGLOG="$PGDATA/server.log" + +## STOP EDITING HERE + +# Check for echo -n vs echo \c +if echo '\c' | grep -s c >/dev/null 2>&1 ; then + ECHO_N="echo -n" + ECHO_C="" +else + ECHO_N="echo" + ECHO_C='\c' +fi + +# The path that is to be used for the script +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + +# What to use to start up the postmaster +DAEMON="$prefix/bin/pg_ctl" + +set -e + +# Only start if we can find pg_ctl. +test -f $DAEMON || exit 0 + +# Parse command line parameters. +case $1 in + start) + $ECHO_N "Starting PostgreSQL: "$ECHO_C + su - $PGUSER -c "$DAEMON start -D '$PGDATA' -s -l $PGLOG" + echo "ok" + ;; + stop) + echo -n "Stopping PostgreSQL: " + su - $PGUSER -c "$DAEMON stop -D '$PGDATA' -s -m fast" + echo "ok" + ;; + restart) + echo -n "Restarting PostgreSQL: " + su - $PGUSER -c "$DAEMON restart -D '$PGDATA' -s -m fast" + echo "ok" + ;; + status) + su - $PGUSER -c "$DAEMON status -D '$PGDATA'" + ;; + *) + # Print help + echo "Usage: $0 {start|stop|restart|status}" 1>&2 + exit 1 + ;; +esac + +exit 0 Index: openacs.org-dev/packages/acs-core-docs/www/xml/files/restart-aolserver.txt =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/files/restart-aolserver.txt,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/packages/acs-core-docs/www/xml/files/restart-aolserver.txt 11 Aug 2002 00:42:49 -0000 1.1 @@ -0,0 +1,51 @@ +#!/usr/bin/perl +## Restarts an AOLserver. +## Takes as its only argument the name of the server to kill. +## bquinn 6/16/2000 with help from {ryanlee, doug}@arsdigita +## This is a perl script because it needs to run setuid root, +## and perl has fewer security gotchas than most shells. +## +## Make sure that $PIDFILE points to the right location. + + +use strict; +undef %ENV; +$ENV{'PATH'} = '/sbin:/bin'; + +if (scalar(@ARGV) == 0) { + die "Don't run this without any arguments!"; +} + +my $server = shift; +$server =~ /^([\w-]*)$/; +my $service_name = $1; +my $PIDFILE = "/usr/local/aolserver/log/nspid.$service_name"; +my $pid; + +$< = $>; # set realuid to effective uid (root) + +# Get the PID of the process to kill. + +open(IN,"$PIDFILE") || die "No such server\n"; +while() { + chomp($_); + $pid=$_; +} +close(IN) || die "Problem closing PID file\n"; + +# Remove the PID file. We have to delete the file to make sure that a subsequent call +# to this script will kill some other process. We delete the file before the process dies +# because if the service is set to respawn then we may delete the new pid file. + +my $cmd ="rm -f $PIDFILE"; +$cmd =~ /^(.*)$/; +my $untaint_cmd = $1; +`$untaint_cmd`; + +# Issue the kill +$pid =~ /^(.*)$/; +my $untaint_pid = $1; +print "Killing $untaint_pid\n"; +kill 9, $untaint_pid; + + Index: openacs.org-dev/packages/acs-core-docs/www/xml/files/startlsnr.txt =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/files/startlsnr.txt,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/packages/acs-core-docs/www/xml/files/startlsnr.txt 11 Aug 2002 00:42:49 -0000 1.1 @@ -0,0 +1,8 @@ +#!/bin/sh +# Start the oracle listener +export ORACLE_HOME=/ora8/m01/app/oracle/product/8.1.7 +export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib +export ORACLE_SID=ora8 +export ORACLE_TERM=vt100 +$ORACLE_HOME/bin/lsnrctl start +exit 0 \ No newline at end of file Index: openacs.org-dev/packages/acs-core-docs/www/xml/files/stoplsnr.txt =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/files/stoplsnr.txt,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/packages/acs-core-docs/www/xml/files/stoplsnr.txt 11 Aug 2002 00:42:49 -0000 1.1 @@ -0,0 +1,8 @@ +#!/bin/sh +# Start the oracle listener +export ORACLE_HOME=/ora8/m01/app/oracle/product/8.1.7 +export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib +export ORACLE_SID=ora8 +export ORACLE_TERM=vt100 +$ORACLE_HOME/bin/lsnrctl stop +exit 0 \ No newline at end of file Index: openacs.org-dev/packages/acs-core-docs/www/xml/files/svgroup.txt =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/files/svgroup.txt,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/packages/acs-core-docs/www/xml/files/svgroup.txt 11 Aug 2002 00:42:49 -0000 1.1 @@ -0,0 +1,19 @@ +#! /bin/sh +if test $# -lt 2 ; then + echo svgroup groupname directories ... >&2 + echo for example: >&2 + echo svgroup wheel /service/\* >&2 + exit 2 +fi +g="$1" ; shift +for i in $* ; do + chgrp $g $i/supervise/control + chmod g+w $i/supervise/control + chgrp $g $i/supervise/ok + chmod g+w $i/supervise/ok + # just in case + chgrp $g $i/supervise/status + chmod g+r $i/supervise/status + chgrp $g $i/supervise + chmod g+x $i/supervise +done Index: openacs.org-dev/packages/acs-core-docs/www/xml/files/winnsd.txt =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/files/winnsd.txt,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/packages/acs-core-docs/www/xml/files/winnsd.txt 11 Aug 2002 00:42:49 -0000 1.1 @@ -0,0 +1,111 @@ +# nsd.tcl -- This is a sample AOLserver Startup Script +# +# By mburke@arsdigita.com, 2000-04-16 +# Based on a file created by Curtis Galloway +# +# This sample script will, with minor modifications, get you +# up and running ACS on a Windows box. +# +# winnsd.txt,v 3.3 2000/06/20 16:50:11 curtisg Exp +# + +set home [file dirname [ns_info config]] +set bin [file dirname [info nameofexecutable]] + +# Setting the following should get you going. +set server winacs +set httpport 80 +set oracleuser winacs +set oraclepassword winacs +set sroot servers/$server + + + +foreach d [list log servers $sroot $sroot/modules $sroot/pages] { + if ![file exists $home/$d] { + file mkdir $home/$d + } +} + +ns_section ns/threads +ns_param stacksize 500000 + +ns_section ns/db/drivers +ns_param ora8 ora8.dll + +ns_section ns/db/pool/main +ns_param driver ora8 +ns_param connections 2 +ns_param user $oracleuser +ns_param datasource "" +ns_param password $oraclepassword +ns_param verbose off + +ns_section ns/db/pool/subquery +ns_param driver ora8 +ns_param connections 2 +ns_param user $oracleuser +ns_param datasource "" +ns_param password $oraclepassword +ns_param verbose off + +ns_section ns/db/pool/log +ns_param driver ora8 +ns_param connections 2 +ns_param user $oracleuser +ns_param datasource "" +ns_param password $oraclepassword +ns_param verbose off + +ns_section ns/db/pools +ns_param main main +ns_param subquery subquery +ns_param log log + +ns_section ns/parameters +ns_param home $home +ns_param auxconfigdir /web/$server/parameters +#ns_param smtphost your.mail.server +#ns_param smtpuser username + +ns_section ns/servers +ns_param $server $server + +ns_section ns/server/$server +ns_param threadtimeout 5000000 +ns_param pageroot /web/$server/www +ns_param enabletclpages on +ns_param directoryfile index.tcl,index.adp,index.html,index.htm + +ns_section ns/server/$server/adp +ns_param map /*.adp +ns_param defaultparser fancy + +ns_section ns/server/$server/modules +foreach m [list nssock nslog nscp nscgi] { + ns_param $m $bin/$m.so +} + +ns_section ns/server/$server/adp +ns_param map /*.adp + +ns_section ns/server/$server/module/nssock +ns_param port $httpport + +ns_section ns/server/$server/module/nscgi +ns_param map "GET /*.bat" +ns_param map "GET /cgi $bin" + +ns_section ns/server/$server/module/nscp +ns_param port 9999 + +ns_section ns/server/$server/module/nscp/users +# password is "x" +ns_param user nsadmin:t2GqvvaiIUbF2: + +ns_section ns/server/$server/db +ns_param pools * +ns_param DefaultPool main + +ns_section ns/server/$server/tcl +ns_param library /web/$server/tcl Index: openacs.org-dev/packages/acs-core-docs/www/xml/images/alex.jpg =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/images/alex.jpg,v diff -u Binary files differ Index: openacs.org-dev/packages/acs-core-docs/www/xml/images/apm.pdf =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/images/apm.pdf,v diff -u Binary files differ Index: openacs.org-dev/packages/acs-core-docs/www/xml/images/arsdigita.gif =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/images/arsdigita.gif,v diff -u Binary files differ Index: openacs.org-dev/packages/acs-core-docs/www/xml/images/context-hierarchy.gif =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/images/context-hierarchy.gif,v diff -u Binary files differ Index: openacs.org-dev/packages/acs-core-docs/www/xml/images/permissions-er.png =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/images/permissions-er.png,v diff -u Binary files differ Index: openacs.org-dev/packages/acs-core-docs/www/xml/images/rp-flow.gif =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-core-docs/www/xml/images/rp-flow.gif,v diff -u Binary files differ