On Wed, 22 Aug 2001, Sanjivendra Nath wrote:
> I've installed AOLServer V3.4.
>
> I think I've setup ora8.so with it.
>
> Now, I'm trying to test with table-test.tcl that comes standard with the
> oracle driver.
>
> However, the page shows up as just html, including "ns_write" strings. It
> seems like it doesn't do any tcl execution.
You have to enable TCL pages. Change ns_param enabletclpages from false to
true:
ns_section "ns/server/${servername}"
param enabletclpages true ;# Parse *.tcl files in pageroot.
>
> So, I put the following in the config file:
>
> ns_section "ns/server/server1/tcl"
> ns_param Debug On
> ns_param Library /ria/usr/local/aolserver/modules/tcl
> # I did try /ria/usr/local/aolserver/servers/server1/modules/tcl with no
> luck
TCL libraries are well explaind in documentation. See:
http://aolserver.com/docs/tcldev/tlib-ch.htm#2039
> What am I missing? Where can I find step-by-step instructions on how to do
> this (the standard doc. seems a little terse for a beginner, even on other
> issues that I'm struggling with like configuration)?
About configuration you can read at
http://aolserver.com/docs/admin/con-ch.htm#103550
You can learn a lot from examples at
http://aolserver.com/docs/config.adp
But definitive source of information is the source code. AOLserver code is
really very clean and easy to understand. You can grep the sources in
directory aolserver-3.4/nsd like this:
[tkosiak@mule nsd]$ grep Ns_Config *
adp.c: path = Ns_ConfigPath(server, NULL, "adp", NULL);
adp.c: set = Ns_ConfigGetSection(path);
...
--tkosiak