Installing OpenACS on RPM-based systems
As root:
OPENACS_SERVICE_NAME=service1 # Name your service
export $OPENACS_SERVICE_NAME
groupadd web
useradd -g web $OPENACS_SERVICE_NAME mkdir /var/lib/aolserver
cd /var/lib/aolserver
# Download latest tarball:
>> wget [URL to latest tarball]
>> tar xzvf [tarball.tar.gz]
>> mv [tarball_dir] $OPENACS_SERVICE_NAME
# OR, checkout from CVS. Replace oacs-5-4 with the branch of your choice.
>> cvs -d:pserver:anonymous@cvs.openacs.org/cvsroot checkout -r oacs-5-4 acs-core
>> mv openacs-4 $OPENACS_SERVICE_NAME
chown -R $OPENACS_SERVICE_NAME.web /var/lib/aolserver/$OPENACS_SERVICE_NAME chmod -R 770 /var/lib/aolserver/$OPENACS_SERVICE_NAME
# PostgreSQL 8.x
service postgresql stop yum -y remove postgresql # Download the PG rpm
# Initialize the Cluster
service postgresql initdb
# Start the service
service postgresql start
# Start pg on boot
chkconfig postgresql on
# Change postgresql.conf
# AOLServer
Try the AOLServer 4.5 page. The archive download works well
(but uses sources from 2006).
# Daemontools should now be installed, so let's set it up to start, stop and restart AOLServer
cd /service
ln -s /var/lib/aolserver/$OPENACS_SERVICE_NAME/etc/daemontools $OPENACS_SERVICE_NAME
# Daemontools will no scan the etc/daemontools directory and find the run script.
Read this for more information on Daemontools commands
# Modify the etc/daemontools/run script for your ip, user and group. Note the -b IP:PORT flag that # must be added for privileged ports.
# Modify etc/config.tcl to match your hostname and IP. aolserver director should be /usr/local/aolserver
# avoid pid not found errors in the log
chown -R $OPENACS_SERVICE_NAME.web /usr/local/aolserver/log chmod -R 775 /usr/local/aolserver/log
# Start the server!
svc -u /service/$OPENACS_SERVICE_NAME
# Watch the log for errors:
tail -f /var/lib/aolserver/$OPENACS_SERVICE_NAME/log/error.log
If successful, call up the site URL and install the data model.
# Done!