Re: [AOLSERVER] aolserver 3.4.2 configuration questions

2004-01-21 Thread Dino Vliet
It is very strange but I don't see no 'Notice: tcl:
enabling .tcl pages'...
And it also seems that my enabbletcl true statement in
my config file has no influence!!
I can change that string to everything I want..the
server just starts and doesn't complain about even
wrong things I enter there...

Still not a clue as to what is happening. My log file
contains nothing about it.


--- Mark Page [EMAIL PROTECTED] wrote:
 On the running .tcl pages part (there are others who
 can comment better
 on your postgres questions);
 Try looking at what shows up in the server log file.
  This file will
 either be flowing to standard-out, or to the
 configured 'serverlog' path
 (defaults to $homedir/log/server.log; you've
 specified homedir ==
 /home/rgilaard/).
 You should see a 'Notice: tcl: enabling .tcl pages'
 message near the
 start confirming that .tcl pages have been correctly
 enabled.
 Also, there may be something else going awry, which
 could be identified
 by entries in this log, perhaps associated with
 trying to service the
 .tcl page request.



 Dino Vliet wrote on 1/20/2004, 11:00 AM:

   Dear all,
  
   I've installed aoserver 3.4.2 on my freebsd 4.9
 laptop
   for developing and testing some web applications
 I'm
   planning to create. The installation went ok and
 I can
   serve static pages. However, when I try to feed
 my
   system some .tcl pages under pageroot I get the
 whole
   page as text and not the results of the tcl
 statements
   I wrote.
  
   For instance, this little hello world tcl program
   doesn't appear as expected in the browser.
   hello.tcl
   ns_return 200 text/html html
   head
   titleTesting/title
   /head
  
   body
   pHello, world/p
   /body
   /html
  
   The output of this when I put the commands in a
 .tcl
   file under pageroot is:
   ns_return 200 text/html html
   head
   titleTesting/title
   /head
  
   body
   pHello, world/p
   /body
   /html
  
   I then tried something similar but the results
 were
   the same:
  
   ns_write HTTP/1.0 200 OK
   MIME-Version: 1.0
   Content-Type: text/html
  
   ns_write html
   head
   titleTesting/title
   /head
   body
   pHello, world/p
   /body
   /html
  
   I also have a question regarding database access
 with
   the postgres driver. I have installed postgres
 7.3.4
   and it works fine. However, I wasn't able to find
 no
   postgres.so file in any directory on my system. I
   thought aolserver would install it somewhere and
 I
   could use that location to find it. What I did
 find
   was a /usr/local/lib/postgresql/plpgsql.so file,
 and I
   added it to db section, but I don't think this
 will do
   the trick:-)
  
   Here is my nsd configuration file:
  
   # $Header:
  
 /cvsroot/aolserver/aolserver/nsd/sample-config.tcl,v
   1.2 2000/12/13 21:50:27 kriston Exp $
  
   ns_log notice config.tcl: starting to read
 config
   file...
  
  
   #
   # Set some Tcl variables that are commonly used
   throughout this file.
   #
  
   set httpport   8000
   set httpsport  8443
  
   # The hostname and address should be set to
 actual
   values.
   set hostname   localhost
   set address127.0.0.1
  
  
   set servername server1
   set serverdesc Server Name
  
   set homedir/home/rgilaard/
   set bindir
 /usr/local/aolserver/bin/
  
   set pageroot
   ${homedir}/servers/${servername}/pages/
   set directoryfile
   index.adp,index.html,index.htm
  
   set ext [info sharedlibextension]
  
   # nsssl: Only loads if keyfile.pem and
 certfile.pem
   exist.
   #set sslmodule  nsssl${ext}  ;#
 Domestic
   128-bit/1024-bit SSL.
   set sslmodule  nsssle${ext} ;#
 Exportable
   40-bit/512-bit SSL.
   set sslkeyfile
  

${homedir}/servers/${servername}/modules/nsssl/keyfile.pem
   set sslcertfile
  

${homedir}/servers/${servername}/modules/nsssl/certfile.pem
  
   # nscp: Uncomment the sample password and log in
 with
   nsadmin, password x,
   #   type ns_crypt newpassword salt and put
 the
   encrypted string below.
   set nscp_port 
   set nscp_addr 127.0.0.1
   set nscp_user 
   #set nscp_user nsadmin:t2GqvvaiIUbF2: ;# sample
   user=nsadmin, pw=x.
  
  
   #
   # Global server parameters
   #
   ns_section ns/parameters
   ns_param   home$homedir
   ns_param   debug   false
  
  
   #
   # Thread library (nsthread) parameters
   #
   ns_section ns/threads
   ns_param   mutexmeter  true  ;# measure
 lock
   contention
   #ns_param   stacksize [expr 128*1024] ;#
 Per-thread
   stack size.
  
   #
   # MIME types.
   #
   #  Note: AOLserver already has an exhaustive list
 of
   MIME types, but in
   #  case something is missing you can add it here.
   #
   ns_section ns/mimetypes
   ns_param   default */* ;# MIME type
 for
   unknown extension.

=== message truncated ===


__
Do you Yahoo!?
Yahoo! Hotjobs: 

Re: [AOLSERVER] aolserver 3.4.2 configuration questions

2004-01-21 Thread Bernd Eidenschink
Hi Dino,

 It is very strange but I don't see no 'Notice: tcl:
 enabling .tcl pages'...
 And it also seems that my enabbletcl true statement in
 my config file has no influence!!
 I can change that string to everything I want..the
 server just starts and doesn't complain about even
 wrong things I enter there...

 Still not a clue as to what is happening. My log file
 contains nothing about it.

Try this:

1. global debug parameter

# Global server parameters
#
ns_section ns/parameters
ns_param   home$homedir
ns_param   debug   false

set debug to true, you will get more output into
the logfiles.

2. tcl configs
point to the aolserver-tcl-module-files
(change path to where they reside, see below)

#
# Tcl interpreter
#
ns_section ns/server/${servername}/tcl
ns_param   autoclose   true  ;# Close files the Tcl interp
opened
ns_param   debug   true ;# Names of files sourced is logged
ns_param   nsvbuckets  8 ;# No. of buckets to hold nsv's
ns_param   statlevel   0 ;# How many levels deep to run
tclstats
ns_param   statmaxbuf  100   ;# Maximum entries in tclstats
table

# this is an example library path.
ns_param  library  /www/servers/${servername}/tcl



(the library-path includes files like form.tcl, util.tcl etc.)

one is called file.tcl and contains the lines that produce
the output you are looking for:

-
set path ns/server/[ns_info server]
set on [ns_config -bool $path enabletclpages off]
ns_log notice conf: \[$path\]enabletclpages = $on
-


if these libraries are not sourced at startup, you will
not see any output.

Hope this helps,

Bernd.


--
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.


Re: [AOLSERVER] aolserver 3.4.2 configuration questions

2004-01-21 Thread Bernd Eidenschink
Hi,

 I also have a question regarding database access with
 the postgres driver. I have installed postgres 7.3.4
 and it works fine. However, I wasn't able to find no
 postgres.so file in any directory on my system. I
 thought aolserver would install it somewhere and I
 could use that location to find it. What I did find
 was a /usr/local/lib/postgresql/plpgsql.so file, and I
 added it to db section, but I don't think this will do
 the trick:-)

You are right, you have to compile the postgres driver!

Take a look at
http://sourceforge.net/project/shownotes.php?release_id=129749

Compile it and the result will be the correct nsxyz.so file.


Regards,
Bernd.


--
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.


Re: [AOLSERVER] aolserver 3.4.2 configuration questions

2004-01-21 Thread Jim Wilcoxson
Your servername may not be set correctly in nsd.tcl, so it isn't
looking at the enabletcl directive in your /ns/server/servername
section.

Jim


 It is very strange but I don't see no 'Notice: tcl:
 enabling .tcl pages'...
 And it also seems that my enabbletcl true statement in
 my config file has no influence!!
 I can change that string to everything I want..the
 server just starts and doesn't complain about even
 wrong things I enter there...

 Still not a clue as to what is happening. My log file
 contains nothing about it.


 --- Mark Page [EMAIL PROTECTED] wrote:
  On the running .tcl pages part (there are others who
  can comment better
  on your postgres questions);
  Try looking at what shows up in the server log file.
   This file will
  either be flowing to standard-out, or to the
  configured 'serverlog' path
  (defaults to $homedir/log/server.log; you've
  specified homedir ==
  /home/rgilaard/).
  You should see a 'Notice: tcl: enabling .tcl pages'
  message near the
  start confirming that .tcl pages have been correctly
  enabled.
  Also, there may be something else going awry, which
  could be identified
  by entries in this log, perhaps associated with
  trying to service the
  .tcl page request.
 
 
 
  Dino Vliet wrote on 1/20/2004, 11:00 AM:
 
Dear all,
   
I've installed aoserver 3.4.2 on my freebsd 4.9
  laptop
for developing and testing some web applications
  I'm
planning to create. The installation went ok and
  I can
serve static pages. However, when I try to feed
  my
system some .tcl pages under pageroot I get the
  whole
page as text and not the results of the tcl
  statements
I wrote.
   
For instance, this little hello world tcl program
doesn't appear as expected in the browser.
hello.tcl
ns_return 200 text/html html
head
titleTesting/title
/head
   
body
pHello, world/p
/body
/html
   
The output of this when I put the commands in a
  .tcl
file under pageroot is:
ns_return 200 text/html html
head
titleTesting/title
/head
   
body
pHello, world/p
/body
/html
   
I then tried something similar but the results
  were
the same:
   
ns_write HTTP/1.0 200 OK
MIME-Version: 1.0
Content-Type: text/html
   
ns_write html
head
titleTesting/title
/head
body
pHello, world/p
/body
/html
   
I also have a question regarding database access
  with
the postgres driver. I have installed postgres
  7.3.4
and it works fine. However, I wasn't able to find
  no
postgres.so file in any directory on my system. I
thought aolserver would install it somewhere and
  I
could use that location to find it. What I did
  find
was a /usr/local/lib/postgresql/plpgsql.so file,
  and I
added it to db section, but I don't think this
  will do
the trick:-)
   
Here is my nsd configuration file:
   
# $Header:
   
  /cvsroot/aolserver/aolserver/nsd/sample-config.tcl,v
1.2 2000/12/13 21:50:27 kriston Exp $
   
ns_log notice config.tcl: starting to read
  config
file...
   
   
#
# Set some Tcl variables that are commonly used
throughout this file.
#
   
set httpport   8000
set httpsport  8443
   
# The hostname and address should be set to
  actual
values.
set hostname   localhost
set address127.0.0.1
   
   
set servername server1
set serverdesc Server Name
   
set homedir/home/rgilaard/
set bindir
  /usr/local/aolserver/bin/
   
set pageroot
${homedir}/servers/${servername}/pages/
set directoryfile
index.adp,index.html,index.htm
   
set ext [info sharedlibextension]
   
# nsssl: Only loads if keyfile.pem and
  certfile.pem
exist.
#set sslmodule  nsssl${ext}  ;#
  Domestic
128-bit/1024-bit SSL.
set sslmodule  nsssle${ext} ;#
  Exportable
40-bit/512-bit SSL.
set sslkeyfile
   
 
 ${homedir}/servers/${servername}/modules/nsssl/keyfile.pem
set sslcertfile
   
 
 ${homedir}/servers/${servername}/modules/nsssl/certfile.pem
   
# nscp: Uncomment the sample password and log in
  with
nsadmin, password x,
#   type ns_crypt newpassword salt and put
  the
encrypted string below.
set nscp_port 
set nscp_addr 127.0.0.1
set nscp_user 
#set nscp_user nsadmin:t2GqvvaiIUbF2: ;# sample
user=nsadmin, pw=x.
   
   
#
# Global server parameters
#
ns_section ns/parameters
ns_param   home$homedir
ns_param   debug   false
   
   
#
# Thread library (nsthread) parameters
#
ns_section ns/threads
ns_param   mutexmeter  true  ;# measure
  lock
contention
#ns_param   stacksize [expr 128*1024] ;#
  Per-thread
stack size.
   
#
# MIME 

[AOLSERVER] aolserver 3.4.2 configuration questions

2004-01-20 Thread Dino Vliet
Dear all,

I've installed aoserver 3.4.2 on my freebsd 4.9 laptop
for developing and testing some web applications I'm
planning to create. The installation went ok and I can
serve static pages. However, when I try to feed my
system some .tcl pages under pageroot I get the whole
page as text and not the results of the tcl statements
I wrote.

For instance, this little hello world tcl program
doesn't appear as expected in the browser.
hello.tcl
ns_return 200 text/html html
head
titleTesting/title
/head

body
pHello, world/p
/body
/html

The output of this when I put the commands in a .tcl
file under pageroot is:
ns_return 200 text/html html
head
titleTesting/title
/head

body
pHello, world/p
/body
/html

I then tried something similar but the results were
the same:

ns_write HTTP/1.0 200 OK
MIME-Version: 1.0
Content-Type: text/html

ns_write html
head
titleTesting/title
/head
body
pHello, world/p
/body
/html

I also have a question regarding database access with
the postgres driver. I have installed postgres 7.3.4
and it works fine. However, I wasn't able to find no
postgres.so file in any directory on my system. I
thought aolserver would install it somewhere and I
could use that location to find it. What I did find
was a /usr/local/lib/postgresql/plpgsql.so file, and I
added it to db section, but I don't think this will do
the trick:-)

Here is my nsd configuration file:

# $Header:
/cvsroot/aolserver/aolserver/nsd/sample-config.tcl,v
1.2 2000/12/13 21:50:27 kriston Exp $

ns_log notice config.tcl: starting to read config
file...


#
# Set some Tcl variables that are commonly used
throughout this file.
#

set httpport   8000
set httpsport  8443

# The hostname and address should be set to actual
values.
set hostname   localhost
set address127.0.0.1


set servername server1
set serverdesc Server Name

set homedir/home/rgilaard/
set bindir /usr/local/aolserver/bin/

set pageroot
${homedir}/servers/${servername}/pages/
set directoryfile
index.adp,index.html,index.htm

set ext [info sharedlibextension]

# nsssl: Only loads if keyfile.pem and certfile.pem
exist.
#set sslmodule  nsssl${ext}  ;# Domestic
128-bit/1024-bit SSL.
set sslmodule  nsssle${ext} ;# Exportable
40-bit/512-bit SSL.
set sslkeyfile
${homedir}/servers/${servername}/modules/nsssl/keyfile.pem
set sslcertfile
${homedir}/servers/${servername}/modules/nsssl/certfile.pem

# nscp: Uncomment the sample password and log in with
nsadmin, password x,
#   type ns_crypt newpassword salt and put the
encrypted string below.
set nscp_port 
set nscp_addr 127.0.0.1
set nscp_user 
#set nscp_user nsadmin:t2GqvvaiIUbF2: ;# sample
user=nsadmin, pw=x.


#
# Global server parameters
#
ns_section ns/parameters
ns_param   home$homedir
ns_param   debug   false


#
# Thread library (nsthread) parameters
#
ns_section ns/threads
ns_param   mutexmeter  true  ;# measure lock
contention
#ns_param   stacksize [expr 128*1024] ;# Per-thread
stack size.

#
# MIME types.
#
#  Note: AOLserver already has an exhaustive list of
MIME types, but in
#  case something is missing you can add it here.
#
ns_section ns/mimetypes
ns_param   default */* ;# MIME type for
unknown extension.
ns_param   noextension */* ;# MIME type for
missing extension.
#ns_param   .xls  application/vnd.ms-excel



#
# Server-level configuration
#
#  There is only one server in AOLserver, but this is
helpful when multiple
#  servers share the same configuration file.  This
file assumes that only
#  one server is in use so it is set at the top in the
server Tcl variable.
#  Other host-specific values are set up above as Tcl
variables, too.
#
ns_section ns/servers
ns_param   $servername $serverdesc
#
# Server parameters
#
ns_section ns/server/${servername}
ns_param   directoryfile   $directoryfile
ns_param   pageroot$pageroot
ns_param   globalstats true  ;# Enable
built-in statistics.
ns_param   urlstatstrue  ;# 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.
#
# Scaling and Tuning Options
#
#  Note: These values aren't necessarily the defaults.
#
#ns_param   connsperthread  0 ;# Normally
there's one conn per thread
#ns_param   flushcontentfalse ;# Flush all
data before returning
#ns_param   maxconnections  100   ;# Max
connections to put on queue
#ns_param   maxdropped  0 ;# Shut down if
dropping too many conns
#ns_param   maxthreads  20;# Tune this to
scale your server
#ns_param   minthreads  0 ;# Tune this to
scale your server
#ns_param   threadtimeout   120   ;# Idle threads
die at this rate
# Directory listings -- use 

Re: [AOLSERVER] aolserver 3.4.2 configuration questions

2004-01-20 Thread Mark Page
On the running .tcl pages part (there are others who can comment better
on your postgres questions);
Try looking at what shows up in the server log file.  This file will
either be flowing to standard-out, or to the configured 'serverlog' path
(defaults to $homedir/log/server.log; you've specified homedir ==
/home/rgilaard/).
You should see a 'Notice: tcl: enabling .tcl pages' message near the
start confirming that .tcl pages have been correctly enabled.
Also, there may be something else going awry, which could be identified
by entries in this log, perhaps associated with trying to service the
.tcl page request.



Dino Vliet wrote on 1/20/2004, 11:00 AM:

  Dear all,
 
  I've installed aoserver 3.4.2 on my freebsd 4.9 laptop
  for developing and testing some web applications I'm
  planning to create. The installation went ok and I can
  serve static pages. However, when I try to feed my
  system some .tcl pages under pageroot I get the whole
  page as text and not the results of the tcl statements
  I wrote.
 
  For instance, this little hello world tcl program
  doesn't appear as expected in the browser.
  hello.tcl
  ns_return 200 text/html html
  head
  titleTesting/title
  /head
 
  body
  pHello, world/p
  /body
  /html
 
  The output of this when I put the commands in a .tcl
  file under pageroot is:
  ns_return 200 text/html html
  head
  titleTesting/title
  /head
 
  body
  pHello, world/p
  /body
  /html
 
  I then tried something similar but the results were
  the same:
 
  ns_write HTTP/1.0 200 OK
  MIME-Version: 1.0
  Content-Type: text/html
 
  ns_write html
  head
  titleTesting/title
  /head
  body
  pHello, world/p
  /body
  /html
 
  I also have a question regarding database access with
  the postgres driver. I have installed postgres 7.3.4
  and it works fine. However, I wasn't able to find no
  postgres.so file in any directory on my system. I
  thought aolserver would install it somewhere and I
  could use that location to find it. What I did find
  was a /usr/local/lib/postgresql/plpgsql.so file, and I
  added it to db section, but I don't think this will do
  the trick:-)
 
  Here is my nsd configuration file:
 
  # $Header:
  /cvsroot/aolserver/aolserver/nsd/sample-config.tcl,v
  1.2 2000/12/13 21:50:27 kriston Exp $
 
  ns_log notice config.tcl: starting to read config
  file...
 
 
  #
  # Set some Tcl variables that are commonly used
  throughout this file.
  #
 
  set httpport   8000
  set httpsport  8443
 
  # The hostname and address should be set to actual
  values.
  set hostname   localhost
  set address127.0.0.1
 
 
  set servername server1
  set serverdesc Server Name
 
  set homedir/home/rgilaard/
  set bindir /usr/local/aolserver/bin/
 
  set pageroot
  ${homedir}/servers/${servername}/pages/
  set directoryfile
  index.adp,index.html,index.htm
 
  set ext [info sharedlibextension]
 
  # nsssl: Only loads if keyfile.pem and certfile.pem
  exist.
  #set sslmodule  nsssl${ext}  ;# Domestic
  128-bit/1024-bit SSL.
  set sslmodule  nsssle${ext} ;# Exportable
  40-bit/512-bit SSL.
  set sslkeyfile
  ${homedir}/servers/${servername}/modules/nsssl/keyfile.pem
  set sslcertfile
  ${homedir}/servers/${servername}/modules/nsssl/certfile.pem
 
  # nscp: Uncomment the sample password and log in with
  nsadmin, password x,
  #   type ns_crypt newpassword salt and put the
  encrypted string below.
  set nscp_port 
  set nscp_addr 127.0.0.1
  set nscp_user 
  #set nscp_user nsadmin:t2GqvvaiIUbF2: ;# sample
  user=nsadmin, pw=x.
 
 
  #
  # Global server parameters
  #
  ns_section ns/parameters
  ns_param   home$homedir
  ns_param   debug   false
 
 
  #
  # Thread library (nsthread) parameters
  #
  ns_section ns/threads
  ns_param   mutexmeter  true  ;# measure lock
  contention
  #ns_param   stacksize [expr 128*1024] ;# Per-thread
  stack size.
 
  #
  # MIME types.
  #
  #  Note: AOLserver already has an exhaustive list of
  MIME types, but in
  #  case something is missing you can add it here.
  #
  ns_section ns/mimetypes
  ns_param   default */* ;# MIME type for
  unknown extension.
  ns_param   noextension */* ;# MIME type for
  missing extension.
  #ns_param   .xls  application/vnd.ms-excel
 
 
  
  #
  # Server-level configuration
  #
  #  There is only one server in AOLserver, but this is
  helpful when multiple
  #  servers share the same configuration file.  This
  file assumes that only
  #  one server is in use so it is set at the top in the
  server Tcl variable.
  #  Other host-specific values are set up above as Tcl
  variables, too.
  #
  ns_section ns/servers
  ns_param   $servername $serverdesc
  #
  # Server parameters
  #
  ns_section ns/server/${servername}
  ns_param