Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/openacs.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/openacs.xml,v diff -u -N -r1.15.2.4 -r1.15.2.5 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/openacs.xml 29 Nov 2003 15:17:54 -0000 1.15.2.4 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/openacs.xml 15 Dec 2003 14:18:48 -0000 1.15.2.5 @@ -19,10 +19,10 @@ /var/lib/aolserver, one subdirectory per site. The first time you install an OpenACS site on a server, you must create the parent directory and set its permissions: - [root@yourserver root]# mkdir /var/lib/aolserver -[root@yourserver root]# chgrp web /var/lib/aolserver -[root@yourserver root]# chmod 770 /var/lib/aolserver -[root@yourserver root]# + [root root]# mkdir /var/lib/aolserver +[root root]# chgrp web /var/lib/aolserver +[root root]# chmod 770 /var/lib/aolserver +[root root]# mkdir /var/lib/aolserver chgrp web /var/lib/aolserver chmod 770 /var/lib/aolserver @@ -55,9 +55,9 @@ can use database and server commands associated with that group. - [root@yourserver root]# groupadd web -[root@yourserver root]# useradd -g service0 -G web service0 -d /home/service0 -[root@yourserver root]# + [root root]# groupadd web +[root root]# useradd -g service0 -G web service0 -d /home/service0 +[root root]# @@ -72,24 +72,24 @@ service's dedicated user. We put it there so that it is not overwritten when we do the main CVS checkout to the target location. - [root@yourserver root]# su - service0 -[service0@yourserver service0]$ cvs -d :pserver:anonymous@openacs.org:/cvsroot co -d install openacs-4/etc/install + [root root]# su - service0 +[service0 service0]$ cvs -d :pserver:anonymous@openacs.org:/cvsroot co -d install openacs-4/etc/install cvs server: Updating install U install/README U install/TODO ... many lines omitted ... U install/tcl/twt-procs.tcl U install/tcl/user-procs.tcl -[service0@yourserver service0]$ cd install -[service0@yourserver install]$ +[service0 service0]$ cd install +[service0 install]$ Edit /home/service0/install/install.tcl and change the values as documented in the file. It will work unchanged at 127.0.0.1:8000. Run the file as root. - [service0@yourserver service0]$ exit -[root@yourserver root]# sh /home/service0/install/install.sh + [service0 service0]$ exit +[root root]# sh /home/service0/install/install.sh /home/service0/install/install.sh: Starting installation with config_file /home/service0/install/install.tcl. Using serverroot=/var/lib/aolserver/ service0, server_url=http://0.0.0.0:8000, do_checkout=yes, do_install=yes, @@ -98,7 +98,7 @@ ./install.sh: Finished (re)installing /var/lib/aolserver/service0 at Wed Nov 5 13:27:17 CET 2003. Access the new site at http://127.0.0.1:8000 with admin username admin@yourserver.test and password 1 -[root@yourserver root]# +[root root]# You can proceed to . @@ -112,20 +112,20 @@ Unpack the OpenACS tarball and rename it to service0. Secure the directory so that only the owner can access it. Check the permissions by listing the directory. - [root@yourserver root]# su - service0 -[service0@yourserver service0]$ cd /var/lib/aolserver -[service0@yourserver aolserver]$ tar xzf /tmp/&tarballpath;.tgz -[service0@yourserver aolserver]$ mv &tarballpath; service0 -[service0@yourserver aolserver]$ chmod -R 700 service0 -[service0@yourserver aolserver]$ ls -al + [root root]# su - service0 +[service0 service0]$ cd /var/lib/aolserver +[service0 aolserver]$ tar xzf /tmp/&tarballpath;.tgz +[service0 aolserver]$ mv &tarballpath; service0 +[service0 aolserver]$ chmod -R 700 service0 +[service0 aolserver]$ ls -al total 3 drwxrwx--- 3 root web 1024 Mar 29 16:41 . drwxr-xr-x 25 root root 1024 Mar 29 16:24 .. drwx------ 7 service0 web 1024 Jan 6 14:36 service0 -[service0@yourserver aolserver]$ exit +[service0 aolserver]$ exit logout -[root@yourserver root]# +[root root]# su - service0 cd /var/lib/aolserver tar xzf /tmp/&tarballpath;.tgz @@ -327,20 +327,20 @@ PostgreSQL: Create a user in the database matching the service 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 -a -d service0 + [root root]# su - postgres +[postgres pgsql]$ createuser -a -d service0 CREATE USER -[postgres@yourserver pgsql]$ exit +[postgres pgsql]$ exit logout -[root@yourserver root]# +[root root]# Create a database with the same name as our service name, service0. - [root@yourserver root]# su - service0 -[service0@yourserver service0]$ createdb -E UNICODE service0 + [root root]# su - service0 +[service0 service0]$ createdb -E UNICODE service0 CREATE DATABASE -[service0@yourserver service0]$ +[service0 service0]$ su - service0 createdb -E UNICODE service0 @@ -350,7 +350,7 @@ Postgres Vacuuming - [service0@yourserver service0]$ export EDITOR=emacs;crontab -e + [service0 service0]$ export EDITOR=emacs;crontab -e Add 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-23 * * * /usr/local/pgsql/bin/vacuumdb --full --analyze service0 0 0 * * * /usr/local/pgsql/bin/vacuumdb --full --analyze service0 @@ -359,10 +359,10 @@ Add Full Text Search Support (OPTIONAL) - [service0@yourserver service0]$ exit + [service0 service0]$ exit logout -[root@yourserver root]# +[root root]# @@ -388,9 +388,9 @@ configuration - [root@yourserver root]# su - service0 -[service0@yourserver service0]$ cd /var/lib/aolserver/service0/etc -[service0@yourserver etc]# emacs config.tcl + [root root]# su - service0 +[service0 service0]$ cd /var/lib/aolserver/service0/etc +[service0 etc]$ emacs config.tcl You can continue without changing any values in the file. However, if you don't change address to match the computer's ip address, you won't be able to browse to your server from other machines. @@ -479,10 +479,10 @@ 501 -g 502. Second, if you are root then killall will affect all OpenACS services on the machine, so if there's more than one you'll have to do ps -auxw | grep nsd and selectively kill by job number. - [service0@yourserver etc]$ killall nsd + [service0 etc]$ killall nsd nsd: no process killed -[service0@yourserver service0]$ /usr/local/aolserver/bin/nsd-postgres -t /var/lib/aolserver/service0/etc/config.tcl -[service0@yourserver service0]$ [08/Mar/2003:18:13:29][32131.8192][-main-] Notice: nsd.tcl: starting to read config file... +[service0 service0]$ /usr/local/aolserver/bin/nsd-postgres -t /var/lib/aolserver/service0/etc/config.tcl +[service0 service0]$ [08/Mar/2003:18:13:29][32131.8192][-main-] Notice: nsd.tcl: starting to read config file... [08/Mar/2003:18:13:29][32131.8192][-main-] Notice: nsd.tcl: finished reading config file. @@ -593,7 +593,7 @@ AOLserver to restart itself (ie. inittab or daemontools), you'll need to manually restart your service. - [service0@yourserver service0]$ /usr/local/aolserver/bin/nsd-postgres -t /var/lib/aolserver/service0/config.tcl + [service0 service0]$ /usr/local/aolserver/bin/nsd-postgres -t /var/lib/aolserver/service0/config.tcl @@ -641,8 +641,8 @@ database, because those environmental variables are set by the wrapper scripts nsd-postgres and nsd-oracle. - [root@yourserver root]# su - service0 -[service0@yourserver service0]$ emacs .bashrc + [root root]# su - service0 +[service0 service0]$ emacs .bashrc Put in the appropriate lines for the database you are running. If you will use both databases, put in both sets of lines. @@ -668,10 +668,10 @@ Test this by logging out and back in as service0 and checking the paths. - [service0@yourserver service0]$ exit + [service0 service0]$ exit logout -[root@yourserver src]# su - service0 -[postgres@yourserver pgsql]$ env | grep PATH +[root src]# su - service0 +[postgres pgsql]$ env | grep PATH @@ -691,10 +691,10 @@ ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data - [service0@yourserver service0]$ exit + [service0 service0]$ exit logout -[root@yourserver root]# +[root root]# Test your backup and recovery procedure.