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.1.2.7 -r1.1.2.8 --- openacs-4/packages/acs-core-docs/www/aolserver4.html 21 Jan 2004 18:36:15 -0000 1.1.2.7 +++ openacs-4/packages/acs-core-docs/www/aolserver4.html 1 Feb 2004 16:02:03 -0000 1.1.2.8 @@ -1,20 +1,20 @@ -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

    [root root]# cd /usr/local/src
    +        
  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

    [root root]# cd /usr/local/src
     [root src]# wget http://heanet.dl.sourceforge.net/sourceforge/tcl/tcl8.4.5-src.tar.gz
     [root src]# tar xfz tcl8.4.5-src.tar.gz
     [root src]# cd tcl8.4.5/unix
     [root unix]# ./configure --enable-threads
     [root unix]# make install
     [root root]# 
    -
    cd /usr/local/src
    +cd /usr/local/src
     wget http://heanet.dl.sourceforge.net/sourceforge/tcl/tcl8.4.5-src.tar.gz
     tar xfz tcl8.4.5-src.tar.gz
     cd tcl8.4.5/unix
     ./configure --enable-threads
     make install
    -
    +
  2. Retrieve AOLserver.�Download the aolserver from CVS.

    [root root]# cd /usr/local/src
     [root src]# mkdir aolserver
     [root src]# cd aolserver
    @@ -28,7 +28,7 @@
     [root aolserver]# wget http://www.tdom.org/tDOM-0.7.8.tar.gz
     [root aolserver]# tar xvfz tDOM-0.7.8.tar.gz
     [root root]# 
    -
    cd /usr/local/src
    +cd /usr/local/src
     mkdir aolserver
     cd aolserver
     cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver co -r aolserver_v40_r2 aolserver
    @@ -39,22 +39,22 @@
     cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver co nsoracle
     cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aolserver co nsxml
     wget http://www.tdom.org/tDOM-0.7.8.tar.gz
    -tar xvfz tDOM-0.7.8.tar.gz
  3. Configure, compile and install AOLserver.�

    [root aolserver]# cd aolserver
    +tar xvfz tDOM-0.7.8.tar.gz
  4. Configure, compile and install AOLserver.�

    [root aolserver]# cd aolserver
     [root aolserver]# cd aolserver
     [root aolserver]# ./configure --with-tcl=/usr/local/lib/
     [root aolserver]# make install
  5. Configure, compile and install the modules.�

    1. Install nscache

      [root /usr/local/src/aolserver/aolserver]# cd ../nscache
       [root /usr/local/src/aolserver/nscache]# make install
    2. Install nsrewrite

      [root /usr/local/src/aolserver/nscache]# cd ../nsrewrite
       [root /usr/local/src/aolserver/nsrewrite]# make install
    3. Install nsoracle (if you want to use Oracle)

      [root /usr/local/src/aolserver/nscache]# cd ../nsoracle
      -[root /usr/local/src/aolserver/nsrewrite]# make install

      Steps so far

      cd /usr/local/src/aolserver/
      +[root /usr/local/src/aolserver/nsrewrite]# make install

      Steps so far

      cd /usr/local/src/aolserver/
       ./configure --with-tcl=/usr/local/lib/
       make install
       cd ../nscache
       make install
       cd ../nsrewrite
       make install
       cd ../nsoracle
      -make install
    4. Install nspostgres (if you want to use Postgres)

      [root nsrewrite]# cd ../nspostgres
      +make install
    5. Install nspostgres (if you want to use Postgres)

      [root nsrewrite]# cd ../nspostgres
       [root nspostgres]# sudo make install POSTGRES=/usr/local/pgsql ACS=1 INST=/usr/local/aolserver 

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

      [root nspostgres]# sudo 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
    6. 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
    7. Install tDOM

      [root nssha1]# cd ../tDOM-0.7.8/unix

      Edit the CONFIG file. Uncomment the instructions meant for AOLserver 4, but edit it to look like this:

      ../configure --enable-threads --disable-tdomalloc
      @@ -66,15 +66,15 @@
       	  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/aolserver/bin
        -[root bin]# cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/nsd-oracle.txt ./nsd-oracle
        +[root bin]# cp /tmp//packages/acs-core-docs/www/files/nsd-oracle.txt ./nsd-oracle
         [root bin]# chmod 750 nsd-oracle
         [root bin]#
        -
        cd /usr/local/aolserver/bin
        -cp /tmp/openacs-5.0.0/packages/acs-core-docs/www/files/nsd-oracle.txt ./nsd-oracle
        -chmod 750 nsd-oracle
      • PostgreSQL

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

        [root aolserver]# cd /usr/local/aolserver/bin
        +[root bin]# cp /tmp//packages/acs-core-docs/www/files/nsd-postgres.txt ./nsd-postgres
         [root bin]# chmod 755 nsd-postgres
         [root 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
    8. Test AOLserver.

    ($Id$)
View comments on this page at openacs.org
+cd /usr/local/aolserver/bin +cp /tmp//packages/acs-core-docs/www/files/nsd-postgres.txt ./nsd-postgres +chmod 755 nsd-postgres
  • 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
    Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/aolserver4.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/aolserver4.xml,v diff -u -r1.1.2.5 -r1.1.2.6 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/aolserver4.xml 6 Jan 2004 14:07:11 -0000 1.1.2.5 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/aolserver4.xml 1 Feb 2004 16:01:39 -0000 1.1.2.6 @@ -172,6 +172,11 @@ + + 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.