|
|||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||
# Rebuild your server from the control panel.
# su to root
# Log back in via SSH
# OpenACS 5.2.3
useradd -g web -d /usr/local/pgsql postgres
mkdir -p /usr/local/pgsql
chown -R postgres.web /usr/local/pgsql /usr/local/src/postgresql-8.0.7
chmod 750 /usr/local/pgsql
yum -y install readline-devel.i386
su - postgres
cd /usr/local/src/postgresql-8.0.7
./configure --without-zlib
make all
make install
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l /usr/local/pgsql/data/server.log start
createlang plpgsql template1
createlang -l template1
createuser -a -d $OPENACS_SERVICE_NAME
exit
ln -s /usr/lib/pgsql/ /var/lib/pgsql/lib
ln -s /var/lib/pgsql /usr/local/pgsql
ln -s /usr/bin /usr/local/pgsql/bin
echo "export LD_LIBRARY_PATH=/usr/local/pgsql/lib" >> ~postgres/.bash_profile
echo "export PATH=$PATH:/usr/local/pgsql/bin" >> ~postgres/.bash_profile
su - $OPENACS_SERVICE_NAME
/usr/local/pgsql/bin/createdb -E UNICODE $OPENACS_SERVICE_NAME
exit
# Set postgres to start on boot
cp --reply=yes /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/acs-core-docs/www/files/postgresql.txt /etc/init.d/postgresql
chown root.root /etc/rc.d/init.d/postgresql
chmod 755 /etc/rc.d/init.d/postgresql
service postgresql stop
chkconfig --add postgresql
chkconfig --level 345 postgresql on
chkconfig --list postgresql
service postgresql start
# Tcl
# AOLServer
cd /usr/local/src/aolserver40r10/aolserver
./configure --prefix=/usr/local/aolserver40r10 --with-tcl=/usr/local/lib/
make install
ln -s /usr/local/aolserver40r10 /usr/local/aolserver
cd /usr/local/src/aolserver40r10/nscache
make install AOLSERVER=/usr/local/aolserver40r10
cd ../nspostgres/
make install POSTGRES=/usr/local/pgsql ACS=1 AOLSERVER=/usr/local/aolserver40r10
cd ../nssha1/
make
make install AOLSERVER=/usr/local/aolserver40r10
cd ../tDOM-0.7.8/unix
../configure --enable-threads --disable-tdomalloc --prefix=/usr/local/aolserver40r10 --with-tcl=/usr/local/lib
make install
cd /usr/local/aolserver40r10/bin
cp --reply=yes /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/acs-core-docs/www/files/nsd-postgres.txt ./nsd-postgres
chmod 755 nsd-postgres
# Edit config file:
# emacs /$OPENACS_SERVICE_NAME/etc/config.tcl
# 1. edit hostname and address = 0.0.0.0
# 2. change homedir to /usr/local/aolserver
# 3. change bindir to /usr/local/aolserver/bin
# We have to do this or libpq.so and nspostgres throws an error
# and the db load fails.
# Search for libpq.so and copy it to /usr/lib/libpq.so.3
# e.g mv /usr/lib/libpq.so.4 /usr/lib/libpq.so.3
# Copy the init.d script to /etc/init.d/:
#!/bin/sh# End of openacs init.d script
# avoid pid not found errors in the log
# Set openacs to start on boot
# Stop apache permanently
# Additional software
for photo-album package
# Start the server!
# Done!
Comments