Forum OpenACS Q&A: Re: Unable to run aolserver

Collapse
Posted by Jim Lynch on
It's possible that Ms. Ng is trying to run aolserver-4.x with config files meant for 3.x?

If not, maybe she hasn't installed postgres, hasn't added her nsadmin user as a postgres user, hasn't installed aolserver's postgres db driver or hasn't created the postgres database for her web service?

But if so...

This is not as bad as it sounds; all she would have to do is arrange to load the nsdb module, and that's a matter of adding one line to the config file.

Here's a snippet:

# 
# Modules to load 
# 
ns_section ns/server/${server}/modules 
ns_param   nssock          ${bindir}/nssock.so 
ns_param   nslog           ${bindir}/nslog.so 

(and more of these ns_param lines)

Add this line:

ns_param   nsdb            ${bindir}/nsdb.so 
maybe near the top; mine looks like this:
# 
# Modules to load 
# 
ns_section ns/server/${server}/modules 
ns_param   nsdb            ${bindir}/nsdb.so   # added line
ns_param   nssock          ${bindir}/nssock.so 
ns_param   nslog           ${bindir}/nslog.so 

(and more of these ns_param lines)

Explanation... in aolserver-4.x the db functionality has been factored out of nsd into its own module; thanks to Jeff Davis for cluing me in to this one for the benefit of my testing of aolserver-4*.