Forum OpenACS Q&A: Newbie: Can't See Tcl Pages

Collapse
Posted by Carl Coryell-Martin on
Well, after getting all excited about installing a complete acs from
scratch in an evening when it took my friend several weeks (oracle is
fun!) I am stymied because when I load tcl pages, AOLserver just shows
me the source code. 😟

I am running AOLserver 3.0 and Postgres 7.0b and openACS 3.2.2b3.

I am sure its something obvious but the late hour is keeping me from
seeing it, and I figured that I was probably not (probably won't be
the last) the first to encounter this little problem.

Thank you,

Carl C-M

Collapse
Posted by Don Baccus on
The standard nsd.tcl that comes with AOLserver has "enabletclpages" set to false.  You need to set it to true.
Collapse
Posted by Carl Coryell-Martin on
Thanks for the suggestion Don, but it didn't seem to do it. here is the relevant bit of my nsd.tcl...
ns_section "ns/server/${servername}"
ns_param   DirectoryFile   $directoryfile
ns_param   pageroot        $pageroot
ns_param   globalstats     true      ;# Enable built-in statistics
ns_param   urlstats        true      ;# Enable URL statistics
ns_param   maxurlstats     1000      ;# Max number of URL's to do stats on
ns_param   EnableTclPages  true     ;# Parse tcl files in pageroot (dangerous)
I can see .../www/gomi.html just fine but if I look at gomi.tcl, I just get the source listing. -Carl C-M
Collapse
Posted by Carl Coryell-Martin on
Okay so I got the line of code in, I have even checked the server log and it tells me:
[03/May/2000:17:37:16][7641.1024][-main-] Notice: conf: [ns/server/openacs]enabletclpages = 1
[03/May/2000:17:37:16][7641.1024][-main-] Notice: tcl: enabling .tcl pages
But the damn thing still won't look at tcl pages. (sigh) thoughts would be appreciated. (This is still AOLserver3.0.0)
Well, the aolserver process that I was kicking off didn't get to listen to a port because I failed to kill a couple of old processes.
oops.

thanks.

Collapse
Posted by Don Baccus on
Use -k when you fire up. That causes it to kill old processes it knows  about.

nsd -ikt ... log to the server log, read the init file as a Tcl script, kill the previous incarnation.

It works well.