Index: openacs-4/packages/acs-core-docs/www/aolserver4.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/aolserver4.html,v diff -u -r1.8.2.9 -r1.8.2.10 --- openacs-4/packages/acs-core-docs/www/aolserver4.html 8 Nov 2004 19:59:00 -0000 1.8.2.9 +++ openacs-4/packages/acs-core-docs/www/aolserver4.html 27 Nov 2004 01:32:48 -0000 1.8.2.10 @@ -1,7 +1,19 @@ -Install AOLserver 4

Install AOLserver 4

by Malte Sussdorff

+Install AOLserver 4

Install AOLserver 4

by Malte Sussdorff

OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -
  1. Retrieve TCL 8.4 (or higher).�Download and install TCL 8.4

    If you have not installed TCL already, download the latest TCL version from Sourceforge

    Remember that you have to be root if you want to follow these instructions. On Mac OS X type sudo su - to become root.

    Alternatively use curl -L -O instead of wget (especially on Mac OS X.

    [root root]# cd /usr/local/src
    +        
  1. Check suitability of previously installed TCL.�Start tcl (type tclsh or find it using which tclsh). +

    [root root]% info exists tcl_platform(threaded)
    +1
    +[root root]% info patchlevel
    +8.4.7
    +[root root]%
    +tclsh
    +info exists tcl_platform(threaded)
    +info patchlevel
    +

    If the first command returns anything other than 1, + then tcl is not threaded. If tcl is threaded and the version is 8.4 or higher, then installing + tcl from source is optional. +

  2. Retrieve TCL 8.4 (or higher).�Download and install TCL 8.4 from source

    If you have not installed a threaded version of TCL, download the latest TCL version from Sourceforge

    Remember that you have to be root if you want to follow these instructions. On Mac OS X type sudo su - to become root.

    Alternatively use curl -L -O instead of wget (especially on Mac OS X).

    [root root]# cd /usr/local/src
     [root src]# wget http://heanet.dl.sourceforge.net/sourceforge/tcl/tcl8.4.7-src.tar.gz
     [root src]# tar xfz tcl8.4.7-src.tar.gz
     [root src]# cd tcl8.4.7/unix
    @@ -55,7 +67,7 @@
                   

    You can use the ldd command to verify that all libraries are linked in: - ldd nspostgres.so + ldd /usr/local/src/aolserver40r8/nspostgres/nspostgres.so

    If you run into problems with libpq.a do the following (and repeat the step above)

    [root nspostgres]# ranlib /usr/local/pgsql/lib/libpq.a

    If you run into problems with the linker, edit the Makefile. Add -lnsdb to the MODLIBS var.

    MODLIBS = -L$(PGLIB) -lpq -lnsdb
  3. Install nssha1

    [root nsrewrite]# cd ../nssha1
     [root nssha1]# make

    If the make fails you will have to edit nssha1.c. Comment out the following 2 lines (lines 139-140):

    // typedef unsigned int u_int32_t;
     // typedef unsigned char u_int8_t;

    Now install nssha1:

    [root nssha1]# make install
  4. Install tDOM

    [root nssha1]# cd ../tDOM-0.7.8/unix              
    @@ -67,16 +79,16 @@
     	  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 aolserver]# cd /usr/local/aolserver40r8/bin
      -[root bin]# cp /tmp/openacs-5.1.2/packages/acs-core-docs/www/files/nsd-oracle.txt ./nsd-oracle
      +[root bin]# cp /tmp/openacs-5.1.3/packages/acs-core-docs/www/files/nsd-oracle.txt ./nsd-oracle
       [root bin]# chmod 750 nsd-oracle
       [root bin]#
       cd /usr/local/aolserver40r8/bin
      -cp /tmp/openacs-5.1.2/packages/acs-core-docs/www/files/nsd-oracle.txt ./nsd-oracle
      +cp /tmp/openacs-5.1.3/packages/acs-core-docs/www/files/nsd-oracle.txt ./nsd-oracle
       chmod 750 nsd-oracle
    • PostgreSQL

      [root aolserver]# cd /usr/local/aolserver40r8/bin
      -[root bin]# cp /tmp/openacs-5.1.2/packages/acs-core-docs/www/files/nsd-postgres.txt ./nsd-postgres
      +[root bin]# cp /tmp/openacs-5.1.3/packages/acs-core-docs/www/files/nsd-postgres.txt ./nsd-postgres
       [root bin]# chmod 755 nsd-postgres
       [root bin]#
       cd /usr/local/aolserver40r8/bin
      -cp /tmp/openacs-5.1.2/packages/acs-core-docs/www/files/nsd-postgres.txt ./nsd-postgres
      +cp /tmp/openacs-5.1.3/packages/acs-core-docs/www/files/nsd-postgres.txt ./nsd-postgres
       chmod 755 nsd-postgres

    You may need to edit these scripts if you are not using - /usr/local/aolserver as the directory of Aolserver4.

  5. Change startup script (optional).�If you want to run AOLserver on a port below 1024 (normally, for a webserver you will use 80), you will have to change the /var/lib/aolserver/service0/etc/daemontools/run script according to the documentation found there (namely: Add the -b yourip:yourport switch)

  6. Test AOLserver.

($Id$)
View comments on this page at openacs.org
+ /usr/local/aolserver as the directory of Aolserver4.

  • Change startup script (optional).�If you want to run AOLserver on a port below 1024 (normally, for a webserver you will use 80), you will have to change the /var/lib/aolserver/service0/etc/daemontools/run script according to the documentation found there (namely: Add the -b yourip:yourport switch)

  • Test AOLserver.

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