Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml 1 Feb 2002 17:14:07 -0000 1.1 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/postgres.xml 2 Feb 2002 03:47:32 -0000 1.2 @@ -1,4 +1,4 @@ - + Install PostgreSQL 7.1.3 @@ -23,8 +23,7 @@ joeuser:~$ su - Password: *********** root:~# cd /usr/local/src -root:/usr/local/src# tar xzf /tmp/postgresql-7.1.3.tar.gz - +root:/usr/local/src# tar xzf /tmp/postgresql-7.1.3.tar.gz @@ -48,8 +47,7 @@ root:~# exit logout joeuser:~$ su - postgres -Password: *********** - +Password: *********** @@ -63,11 +61,10 @@ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib PATH=$PATH:/usr/local/pgsql/bin -export PATH LD_LIBRARY_PATH - +export PATH LD_LIBRARY_PATH - Logout and login again as postgres. Use the + Logout and login again as postgres. Use the echo command to make sure that /usr/local/pgsql/bin is now in your PATH @@ -79,8 +76,7 @@ joeuser:~$ su - postgres Password: ************ postgres:~$ echo $PATH -/usr/local/bin:/usr/bin:/bin: ... :/usr/local/pgsql/bin - +/usr/local/bin:/usr/bin:/bin: ... :/usr/local/pgsql/bin @@ -99,17 +95,15 @@ postgres:~$ cd /usr/local/src/postgresql-7.1.3 postgres:/usr/local/src/postgresql-7.1.3$ ./configure -postgres:/usr/local/src/postgresql-7.1.3$ make all - +postgres:/usr/local/src/postgresql-7.1.3$ make all Compilation will take a while (about 10 minutes). Once it's done, you will see the following message: -All of PostgreSQL is successfully made. Ready to install. - +All of PostgreSQL is successfully made. Ready to install. Next, we'll install PostgreSQL. If all is successful, you'll see the @@ -119,12 +113,11 @@ postgres:/usr/local/src/postgresql-7.1.3$ make install ... -Thank you for choosing PostgreSQL, the most advanced open source database engine. - +Thank you for choosing PostgreSQL, the most advanced open source database engine. - Prepare Postgres for OpenFTS + Prepare PostgreSQL for OpenFTS OpenFTS is the module that provides full text search to OpenACS 4. We @@ -136,8 +129,7 @@ postgres:/usr/local/src/postgresql-7.1.3$ make install-all-headers postgres:/usr/local/src/postgresql-7.1.3$ cd contrib/intarray postgres:/usr/local/src/postgresql-7.1.3/contrib/intarray$ make -postgres:/usr/local/src/postgresql-7.1.3/contrib/intarray$ make install - +postgres:/usr/local/src/postgresql-7.1.3/contrib/intarray$ make install @@ -152,11 +144,10 @@ postgres:/usr/local/src/postgresql-7.1.3/contrib/intarray$ cd postgres:~$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data postgres:~$ /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l /usr/local/pgsql/data/server.log start -postmaster successfully started - +postmaster successfully started - Postgres errors will be logged in + PostgreSQL errors will be logged in /usr/local/pgsql/data/server.log @@ -185,13 +176,12 @@ postgres:~$ createuser nsadmin Shall the new user be allowed to create databases? (y/n) y Shall the new user be allowed to create more new users? (y/n) y -CREATE USER - +CREATE USER - Test Postgres + Test PostgreSQL Create a database and try some simple commands. The output should be as shown. @@ -224,8 +214,7 @@ mytestdb=# \q postgres:~$ dropdb mytestdb -DROP DATABASE - +DROP DATABASE @@ -245,15 +234,13 @@ Password: *********** root:~# cp /tmp/postgresql.txt /etc/init.d/postgresql root:~# chown root.root /etc/init.d/postgresql -root:~# chmod 700 /etc/init.d/postgresql - +root:~# chmod 700 /etc/init.d/postgresql Test the script root:~# /etc/init.d/postgresql stop -Stopping PostgreSQL: ok - +Stopping PostgreSQL: ok If PostgreSQL successfully stopped, then use the following @@ -274,8 +261,7 @@ root:~# /etc/init.d/postgresql start Starting PostgreSQL: ok root:~# exit -postgres:~$ exit - +postgres:~$ exit Red Hat: @@ -285,15 +271,13 @@ Password: *********** root:~# cp /tmp/postgresql.txt /etc/rc.d/init.d/postgresql root:~# chown root.root /etc/rc.d/init.d/postgresql -root:~# chmod 700 /etc/rc.d/init.d/postgresql - +root:~# chmod 700 /etc/rc.d/init.d/postgresql Test the script root:~# /etc/rc.d/init.d/postgresql stop -Stopping PostgreSQL: ok - +Stopping PostgreSQL: ok If PostgreSQL successfully stopped, then use the following command to make sure that the script is run appropriately at boot @@ -308,8 +292,7 @@ root:~# /etc/rc.d/init.d/postgresql start Starting PostgreSQL: ok root:~# exit -postgres:~$ exit - +postgres:~$ exit SuSE: @@ -319,15 +302,13 @@ Password: *********** root:~# cp /tmp/postgresql.txt /etc/rc.d/init.d/postgresql root:~# chown root.root /etc/rc.d/init.d/postgresql -root:~# chmod 700 /etc/rc.d/init.d/postgresql - +root:~# chmod 700 /etc/rc.d/init.d/postgresql Test the script root:~# /etc/rc.d/init.d/postgresql stop -Stopping PostgreSQL: ok - +Stopping PostgreSQL: ok If PostgreSQL successfully stopped, then use the following @@ -348,8 +329,7 @@ root:/etc/rc.d/init.d# cp K20postgresql rc5.d root:/etc/rc.d/init.d# cp S20postgresql rc5.d root:/etc/rc.d/init.d# rm K20postgresql -root:/etc/rc.d/init.d# rm S20postgresql - +root:/etc/rc.d/init.d# rm S20postgresql Test configuration @@ -359,8 +339,7 @@ root:/etc/rc.d/init.d # cd root:~ # /etc/rc.d/init.d/rc2.d/S20postgresql start Starting PostgreSQL: ok -root:~ # exit - +root:~ # exit @@ -375,14 +354,14 @@ - Learn more about Postgresql + Learn more about PostgreSQL Here are some links: - Official Postgres Docs + Official PostgreSQL Docs