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.1 -r1.22.2.2 --- openacs-4/packages/acs-core-docs/www/openacs.html 14 Nov 2003 09:43:45 -0000 1.22.2.1 +++ openacs-4/packages/acs-core-docs/www/openacs.html 21 Nov 2003 11:14:09 -0000 1.22.2.2 @@ -1,8 +1,7 @@ -Install OpenACS 5.0.0b1

Install OpenACS 5.0.0b1

- by Vinod Kurup
+Install OpenACS 5.0.0b2

Install OpenACS 5.0.0b2

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 @@ -72,8 +71,8 @@ tarball and save it in /tmp and proceed:

  1. 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 /var/lib/aolserver
    -[service0@yourserver aolserver]$ tar xzf /tmp/openacs-5.0.0b1.tgz
    -[service0@yourserver aolserver]$ mv openacs-5.0.0b1 service0
    +[service0@yourserver aolserver]$ tar xzf /tmp/openacs-5.0.0b2.tgz
    +[service0@yourserver aolserver]$ mv openacs-5.0.0b2 service0
     [service0@yourserver aolserver]$ chmod -R 700 service0
     [service0@yourserver aolserver]$ ls -al
     total 3
    @@ -86,8 +85,8 @@
     [root@yourserver root]#
     
    su - service0
     cd /var/lib/aolserver
    -tar xzf /tmp/openacs-5.0.0b1.tgz
    -mv openacs-5.0.0b1 service0
    +tar xzf /tmp/openacs-5.0.0b2.tgz
    +mv openacs-5.0.0b2 service0
     chmod -R 700 service0/
     exit
  2. Add the Service to CVS (OPTIONAL)

  3. 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 @@ -235,7 +234,7 @@ CREATE DATABASE [service0@yourserver 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@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-23 * * * /usr/local/pgsql/bin/vacuumdb --full --analyze 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@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-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)

    • [service0@yourserver service0]$ exit
       logout
       
      @@ -246,7 +245,7 @@
       	  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@yourserver root]# su - service0
      +	   Open it in an editor to adjust the parameters.

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

      @@ -292,8 +291,7 @@ [service0@yourserver service0]$ /usr/local/aolserver/bin/nsd-postgres -t /var/lib/aolserver/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.

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

      http://yourserver.test:8000

      + 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 cvs, now that you know it worked you can erase the temp directory with rm -rf /var/lib/aolserver/service0.orig. @@ -308,11 +306,11 @@ permissions errors or missing files. If you need to make changes, don't forget to kill any running servers with killall nsd. -

    • Automate +

    • 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.0b1. + 5.0.0b2.

    • You should see a page from the webserver titled OpenACS Installation: @@ -364,11 +362,11 @@ being restarted; note that unless you already set up a way for AOLServer to restart itself (ie. inittab or daemontools), you'll need to manually restart your service. -

      [service0@yourserver service0]$ /usr/local/aolserver/bin/nsd-postgres -t /var/lib/aolserver/service0/config.tcl
    • +

      [service0@yourserver service0]$ /usr/local/aolserver/bin/nsd-postgres -t /var/lib/aolserver/service0/config.tcl
    • 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.0b1 is now up and running! + 5.0.0b2 is now up and running!

  • Next Steps

    • 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.

    • This is a good time to make a backup of your service. If this is a @@ -408,4 +406,4 @@ ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data

    [service0@yourserver service0]$ exit
     logout
     
    -[root@yourserver root]#
  • Test your backup and recovery procedure.

  • Set up the section called “External uptime validation”.

  • ($Id$)
    View comments on this page at openacs.org
    +[root@yourserver root]#
  • Test your backup and recovery procedure.

  • Set up the section called “External uptime validation”.

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