Forum OpenACS Development: Re: Re: BSD installer: FreeBSD port

Collapse
Posted by xx xx on
T.K.:

Nice to see that non-technical persons are giving it a try. It may be a problem that this port is a very first version that will have bugs and should be optimized. Still it should be a good experience. The port has been verified on 5.3.

BTW, you should obviously read the FreeBSD handbook and openacs docs at one time (if you want to run a server yourself). It is fun to learn.

If I understand you correctly the port ran to the end without an error (at the end) on 4.10? Do you see an openacs* or dotlrn* (* = -versionnumber) package installed when typing "pkg_info" ?

If so, postgresql probably didn't start.
# restart postgresql
/usr/local/etc/rc.d/010.pgsql.sh restart

If that doesn't work you should start debugging as root, after reading the general openacs docs at https://openacs.org/doc/openacs-5-1/postgres.html.

But, as root, first correct my mistakes in .profile (and spot any new ones :))
# change all shells to bash
chsh -s /usr/local/bin/bash root
chsh -s /usr/local/bin/bash service0
chsh -s /usr/local/bin/bash postgres
# do you have other users you login with?

# add .profile to service0 if non-existent
ls -al ~service0/
# if non-existent
cp ~postgres/.profile ~service0/.profile
chown service0:web ~service0/.profile
ee ~service0/.profile
   # edit HOME
   HOME = /var/lib/aolserver/service0
# ESC to leave and save

# correct missing quotes in .profile (of all users):
   #change export PS1=<\u-\W> to
   export PS1="<\u-\W>"
ee ~/.profile
ee ~postgres/.profile
ee ~service0/.profile
# ESC to leave and save
# always ..re-login.. as this user to see the effect with "env"

Now debug, try (FreeBSD 5):
# Did the postgresql* package install at all?
pkg_info
# Is user postgres and root available and using Bash?
pw usershow root
pw usershow postgres
pw usershow service0
# Has the service0 database been created?
su - postgres
psql -l
exit
# Do you see /usr/local/pgsql/lib ../bin in your path (ld_library_path)?
env | grep PATH
# what do you see in the error log
less /usr/local/pgsql/data/server.log
# do you see the postmaster has started?
ps -auxww | grep postmaster