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.22.2.11 -r1.22.2.12 --- openacs-4/packages/acs-core-docs/www/openacs.html 29 Jan 2004 10:43:05 -0000 1.22.2.11 +++ openacs-4/packages/acs-core-docs/www/openacs.html 2 Feb 2004 18:10:52 -0000 1.22.2.12 @@ -1,7 +1,7 @@ -Install OpenACS

Install OpenACS

by Vinod Kurup


+Install OpenACS

Install OpenACS

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 one or more OpenACS Sites

For Linux Standard Base compliance and ease of backup, +

Set up the file system for one or more OpenACS Sites

For Linux Standard Base compliance and ease of backup, all of the files in each OpenACS site are stored in a subdirectory of /var/lib/aolserver, one @@ -10,9 +10,9 @@ [root root]# chgrp web /var/lib/aolserver [root root]# chmod 770 /var/lib/aolserver [root root]# -

mkdir /var/lib/aolserver
+mkdir /var/lib/aolserver
 chgrp web /var/lib/aolserver
-chmod 770 /var/lib/aolserver

Set up a user account for each site.

+chmod 770 /var/lib/aolserver

Set up a user account for each site.

AOLserver needs to be started as the root user if you want to use port 80. Once it starts, though, it will drop the root privileges and run as another user, which you must specify on the command line. It's @@ -80,12 +80,12 @@ [service0 aolserver]$ exit logout [root root]# -

su - service0
+su - service0
 cd /var/lib/aolserver
 tar xzf /tmp/.tgz
 mv  service0
 chmod -R 700 service0/
-exit
  • Add the Service to CVS (OPTIONAL)

  • Prepare the database

    • Prepare Oracle for OpenACS.�If you won't be using Oracle, skip to Prepare PostgreSQL for an OpenACS Service

      +exit

    • Add the Service to CVS (OPTIONAL)

    • Prepare the database

      • Prepare Oracle for OpenACS.�If you won't be using Oracle, skip to Prepare PostgreSQL for an OpenACS Service

        You should be sure that your user account (e.g. service0) is in the dba group. @@ -217,16 +217,16 @@ [service0 service0]$ createdb -E UNICODE service0 CREATE DATABASE [service0 service0]$ -

        su - service0
        -createdb -E UNICODE service0
      • 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. Recommended: VACUUM ANALYZE every hour and VACUUM FULL ANALYZE every day.

        [service0 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-23 * * * /usr/local/pgsql/bin/vacuumdb --full --analyze service0
        +su - service0
        +createdb -E UNICODE service0
      • 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. Recommended: VACUUM ANALYZE every hour and VACUUM FULL ANALYZE every day.

        [service0 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-23 * * * /usr/local/pgsql/bin/vacuumdb --full --analyze service0
         0 0 * * * /usr/local/pgsql/bin/vacuumdb --full --analyze service0
      • Add Full Text Search Support (OPTIONAL)

      • At this point the database should be ready for installing OpenACS.

  • 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, /var/lib/aolserver/service0/etc/config.tcl. - Open it in an editor to adjust the parameters.

      [root root]# su - service0
      +	   Open it in an editor to adjust the parameters.

      [root root]# su - service0
       [service0 service0]$ cd /var/lib/aolserver/service0/etc
       [service0 etc]$ emacs config.tcl
       

      @@ -354,7 +354,7 @@ production site, you should set up automatic nightly backups.

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

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

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

    5. Set up database environment variables for the site + packages. (more information)

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

    7. Set up database environment variables for the site user. These settings are necessary for working with the database while logged in as the service user. They do not directly affect the service's run-time connection with the