Install OpenACS &version;
- by Vinod Kurup
+ by Vinod Kurup
@@ -324,15 +324,11 @@
- PostGreSQL:
+ PostgreSQL:Create a user in the database matching the service
- name. With default PostGreSQL authentication the name of
- the user of the process will be matched to this account
- automatically.
+ name. With default PostgreSQL authentication, a system user connecting locally automatically authenticates as the postgres user of the same name, if one exists. We currently use postgres "super-users" for everything, which means that anyone with access to any of the openacs system accounts on a machine has full access to all postgresql databases on that machine.
[root@yourserver root]# su - postgres
-[postgres@yourserver pgsql]$ createuser service0
-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
+[postgres@yourserver pgsql]$ createuser -a -d service0
CREATE USER
[postgres@yourserver pgsql]$ exit
logout
@@ -349,14 +345,15 @@
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.
+ 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.PostgresVacuuming[service0@yourserver service0]$ export EDITOR=emacs;crontab -eAdd 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 * * * /usr/local/pgsql/bin/vacuumdb --analyze service0
+ 0 1-23 * * * /usr/local/pgsql/bin/vacuumdb --full --analyze service0
+0 0 * * * /usr/local/pgsql/bin/vacuumdb --full --analyze service0Add Full Text Search Support (OPTIONAL)
@@ -442,9 +439,9 @@
- AOLServer is very configurable. These settings should get you
+ AOLserver is very configurable. These settings should get you
started, but for more options, read the AOLServer
+ url="http://aolserver.com/docs/admin/config.html">AOLserver
docs.
@@ -470,10 +467,10 @@
nsd-postgres with
nsd-oracle).
If you want to use port 80, there are complications.
- First, Aolserver must be root to use system ports such as
+ First, AOLserver must be root to use system ports such as
80, but refuses to run as root for security reasons. Thus
you must start as root and specify a non-root user ID and
- Group ID which Aolserver will switch to after claiming the
+ Group ID which AOLserver will switch to after claiming the
port. To do so, find the UID and GID of the
service0 user via
grep service0
@@ -490,9 +487,8 @@
- 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
- [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
@@ -650,7 +646,7 @@
Put in the appropriate lines for the database you are running. If you will use both databases, put in both sets of lines.
- PostGreSQL:
+ PostgreSQL:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib
export PATH=$PATH:/usr/local/pgsql/bin
@@ -679,7 +675,7 @@
- For PostGreSQL, you should see:
+ For PostgreSQL, you should see:
LD_LIBRARY_PATH=LD_LIBRARY_PATH=:/usr/local/pgsql/lib
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin:/usr/local/pgsql/bin:/usr/local/pgsql/bin
@@ -702,9 +698,11 @@
Test your backup and recovery procedure.
+ Set up .
+
+ ($Id$)
- ($Id$)