# PostgreSQL apt-get install postgresql postgresql-dev postgresql-doc ln -s /usr/include/postgresql/ /usr/include/pgsql ln -s /var/lib/postgres /usr/local/pgsql ln -s /usr/include/pgsql /usr/local/pgsql/include su postgres -c "/usr/lib/postgresql/bin/createlang plpgsql template1" su postgres -c "createuser -a -d service1" su postgres -c "createdb -E UNICODE service1" # AOLServer apt-get install aolserver4 aolserver4-nspostgres aolserver4-nssha1 aolserver4-nscache tdom aolserver4-nsopenssl tcllib # OpenACS groupadd web useradd -m -g web service1 mkdir /var/lib/aolserver chown service1 /var/lib/aolserver chgrp web /var/lib/aolserver chmod 770 /var/lib/aolserver su - service1 cd /tmp wget http://openacs.org/projects/openacs/download/download/openacs-5.1.5.tar.gz cd /var/lib/aolserver tar xzf /tmp/openacs-5.1.5.tar.gz mv /tmp/openacs-5.1.5 service1 chmod -R 755 service1 chown -R service1.web service1 exit # Edit etc/config.tcl according to install docs
A note about the configuration that is different from the docs, since aolserver is installed in /usr/lib/aolserver4 you need to change:
exec /usr/lib/aolserver4/bin/nsd $*
and at the end of the previous line (export LD_LIBRARY_PATH...etc) change /usr/local/aolserver/lib to /usr/lib/aolserver4/lib
Lastly, nslog attempts to create a ${homedir}/log/nspid.service1 the apt-get install does not create this log directory. So in order to remove those errors you should:
mkdir /usr/lib/aolserver4/log chown root:web /usr/lib/aolserver4/log chmod 775 /usr/lib/aolserver4/log
# Daemontools (optional: for production systems) Daemontools help in starting up OpenACS on boot and restarting it if it dies. This is optional software, but is used by a large number of people in the OpenACS community.
apt-get install daemontools-installer build-daemontools
(select the standard DJB locations in the install dialog and sym link the daemontools directories )
You also need to change the line in the OpenACS file etc/daemontools/run to exec /usr/lib/aolserver4/bin/nsd-postgres instead of exec /usr/local/aolserver/bin/nsd-postgres
# Docbook (optional: if you want to contribute to the xml based docbook OpenACS documentation or use Docbook for your documentation)
Getting docbook working on Debian is pretty easy so you might as well give it a shot
apt-get install docbook docbook-xml docbook-xsl xsltproc libxml2 libxml2-utils libxslt1.1 htmldoc
Once you have all that installed, check out the sections in our documentation on docbook to get started.
Please see this thread for details and history of this document: http://openacs.org/forums/message-view?message_id=331130