You load nsdb in the server's modules section:
ns_section "ns/server/${servername}/modules"
ns_param nssock ${bindir}/nssock.so
ns_param nslog ${bindir}/nslog.so
ns_param nsperm ${bindir}/nsperm.so
ns_param nsdb ${bindir}/nsdb.so
ns_param nssession ${bindir}/nssession.so
ns_param nscp ${bindir}/nscp.so
# Then load the postgres driver:
ns_section "ns/db/drivers"
ns_param postgres_driver nspostgres.so
# Create a pool:
ns_section "ns/db/pools"
ns_param sativo "Sativo Pool"
# define the pool:
ns_section "ns/db/pool/sativo"
ns_param driver postgres_driver
ns_param datasource localhost:5432:sativo2
ns_param user nsd
ns_param password xxxxxx
ns_param connections 20
ns_param logsqlerrors true ;# Verbose SQL query error logging
ns_param verbose false ;# Verbose error logging
ns_param maxidle 600 ;# Max time to keep idle db conn
open
ns_param maxopen 3600
# Give the server access to pools:
ns_section "ns/server/${servername}/db"
ns_param pools * ;# Wildcard gives access to all
ns_param defaultpool sativo
And that should do the trick!
Bas.
On Thursday, October 26, 2006 8:50, Dino Vliet said:
> Hi peeps,
>
> can someone provide me an example of a configuration
> from aolserver 4.5? I'm especially interested in the
> database parts so what has to go exactly into the
> ns/db parts and what modules to use.
>
>
> I'm particular confused if the nsdbo.so has to be
> loaded or not in the modules section. According to
> this link,
> http://panoptic.com/wiki/aolserver/Annotated_AOLserver_Configuration_Reference,
> it doesn't have to load but I don't get any response
> from my efforts. The server loads without database
> driver and thats frustating.
>
> Hope you can help me out
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the
> Subject: field of your email blank.
>
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.