Index: openacs-4/packages/acs-core-docs/www/postgres.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/postgres.html,v diff -u -r1.30.2.2 -r1.30.2.3 --- openacs-4/packages/acs-core-docs/www/postgres.html 29 Apr 2004 14:50:51 -0000 1.30.2.2 +++ openacs-4/packages/acs-core-docs/www/postgres.html 5 Jul 2004 19:47:31 -0000 1.30.2.3 @@ -1,7 +1,7 @@ Install PostgreSQL

Install PostgreSQL

by Vinod Kurup

OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

Skip this section if you will run only Oracle.

OpenACS 5.1.0 will run with PostgreSQL 7.3.2, 7.3.3, and 7.3.4. 7.3.4 is the recommended version of PostgreSQL. PostgreSQL 7.4 has been verified.

Skip this section if you will run only Oracle.

OpenACS 5.1.1 will run with PostgreSQL 7.3.2, 7.3.3, and 7.3.4. 7.3.4 is the recommended version of PostgreSQL. PostgreSQL 7.4 has been verified.

  • Set up postgres's environment variables.�They are necessary for the executable to find its supporting @@ -100,7 +100,7 @@ Change to the postgres user and run ./configure to set the compilation options automatically. This is the point at which you can configure PostgreSQL in various ways. For example, if you want to enable - Unicode support, add the flags --enable-locale and --enable-multibyte. If you want to see what the other possibilities are, run ./configure --help. + Unicode support, add the flags --enable-locale and --enable-multibyte. If you want to see what the other possibilities are, run ./configure --help.

    On debian woody (stable, 3.0), do ./configure --without-readline --without-zlib.

    [root src]# su - postgres
     [postgres pgsql]$ cd /usr/local/src/postgresql-7.3.4
     [postgres postgresql-7.3.4]$ ./configure --with-includes=/sw/include/ --with-libraries=/sw/lib --enable-locale --enable-multibyte \
    @@ -198,11 +198,11 @@
             state. Red Hat and Debian and SuSE each work a little
             differently.  If you haven't  untarred the OpenACS tarball, you will need to do so now to access the postgresql.txt file.
     	

    • Red Hat RPM:

      The init script is already installed; just turn it on for the appropriate run levels.

      [root root]# chkconfig --level 345 postgresql on
      -[root root]# 
    • Red Hat from source:

      [root src]# cp /tmp/openacs-5.1.0/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql
      +[root root]# 
    • Red Hat from source:

      [root src]# cp /tmp/openacs-5.1.1/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql
       [root src]# chown root.root /etc/rc.d/init.d/postgresql
       [root src]# chmod 755 /etc/rc.d/init.d/postgresql
       [root src]# 
      -cp /tmp/openacs-5.1.0/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql
      +cp /tmp/openacs-5.1.1/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql
       chown root.root /etc/rc.d/init.d/postgresql
       chmod 755 /etc/rc.d/init.d/postgresql

      Test the script.

      [root root]# service postgresql stop
       Stopping PostgreSQL: ok
      @@ -225,7 +225,7 @@
       [root ~]# chown root.root /etc/init.d/postgresql
       [root ~]# chmod 755 /etc/init.d/postgresql
       [root ~]# 
      -cp /tmp/openacs-5.1.0/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql
      +cp /tmp/openacs-5.1.1/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql
       chown root.root /etc/init.d/postgresql
       chmod 755 /etc/init.d/postgresql

      Test the script

      [root ~]# /etc/init.d/postgresql stop
       Stopping PostgreSQL: ok
      @@ -253,7 +253,7 @@
                   rc.d/ part in each of the
                   following commands.
       
      -          

    [root ~]# cp /tmp/openacs-5.1.0/packages/acs-core-docs/www/files/postgresql.txt /etc/rc.d/init.d/postgresql
    +          

  • [root ~]# cp /tmp/openacs-5.1.1/packages/acs-core-docs/www/files/postgresql.txt /etc/rc.d/init.d/postgresql
     [root ~]# chown root.root /etc/rc.d/init.d/postgresql
     [root ~]# chmod 755 /etc/rc.d/init.d/postgresql

    @@ -287,7 +287,7 @@ root:~ # /etc/rc.d/init.d/rc2.d/S20postgresql start Starting PostgreSQL: ok root:~ #

  • Mac OS X:

    1. Install the startup script:

      cd /Library/StartupItems/
      -tar xfz /var/lib/aolserver/service0/packages/acs-core-docs/www/files/osx-postgres-startup-item.tgz
      +tar xfz /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/acs-core-docs/www/files/osx-postgres-startup-item.tgz
       
  • From now on, PostgreSQL should start automatically each time you boot @@ -338,4 +338,4 @@ Performance Tuning

  • - Tuning PostgreSQL for performance

  • ($Id$)
    View comments on this page at openacs.org
    + Tuning PostgreSQL for performance

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