Re: [AOLSERVER] [AOLSERVER} AOLServer and Virtual Hosts

2001-11-26 Thread Mark Waterhouse

Hi

I've tried to compile nssmartvh and I get the following output.  Should I be concerned 
with this?

Thanks
Mark



gcc -I/root/AOL/aolserver-3.4.2/nsd -I/root/AOL/aolserver-3.4.2/include -D_REENTRANT=1 
-DNDEBUG=1 -g -fPIC -Wall -Wno-unused -mcpu=i686 -DHAVE_CMMSG=1 -DUSE_FIONREAD=1 
-DHAVE_COND_EINTR=1   -c -o nssmartvh.o nssmartvh.c
/bin/rm -f nssmartvh.so
gcc -shared -nostartfiles -o nssmartvh.so nssmartvh.o

system# ls -l
total 220
-rwxr--r--1 1000 users 789 Nov 26 11:55 Makefile
-rwxr--r--1 1000 users8351 Sep 21 22:51 nssmartvh.c
-rw-r--r--1 root root92640 Nov 26 12:06 nssmartvh.o
-rwxr-xr-x1 root root99194 Nov 26 12:06 nssmartvh.so
-rw-r--r--1 root root  419 Nov 26 12:08 output



Re: [AOLSERVER] [AOLSERVER} AOLServer and Virtual Hosts

2001-11-26 Thread Robert Locke

 I've tried to compile nssmartvh and I get the following output.  Should I
be concerned with this?

Hi Mark,

That looks fine.  You should now be able to install nssmartvh.so in your
$AOL_HOME/bin directory.  Running make install should probably handle this
for you.

You then need to edit your nsd.tcl (or nsd.ini) file to load and configure
the module.  Then restart AOLServer.  I can't help you there, as I know
nonthing about this particular module.  However, it should have been
accompanied by some documentation.

Good luck!

Rob


- Original Message -
From: Mark Waterhouse [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 26, 2001 8:13 PM
Subject: Re: [AOLSERVER] [AOLSERVER} AOLServer and Virtual Hosts


 Hi


 Thanks
 Mark




gcc -I/root/AOL/aolserver-3.4.2/nsd -I/root/AOL/aolserver-3.4.2/include -D_R
EENTRANT=1 -DNDEBUG=1 -g -fPIC -Wall -Wno-unused -mcpu=i686 -DHAVE_CMMSG=1 -
DUSE_FIONREAD=1 -DHAVE_COND_EINTR=1   -c -o nssmartvh.o nssmartvh.c
 /bin/rm -f nssmartvh.so
 gcc -shared -nostartfiles -o nssmartvh.so nssmartvh.o

 system# ls -l
 total 220
 -rwxr--r--1 1000 users 789 Nov 26 11:55 Makefile
 -rwxr--r--1 1000 users8351 Sep 21 22:51 nssmartvh.c
 -rw-r--r--1 root root92640 Nov 26 12:06 nssmartvh.o
 -rwxr-xr-x1 root root99194 Nov 26 12:06 nssmartvh.so
 -rw-r--r--1 root root  419 Nov 26 12:08 output




Re: [AOLSERVER] Has anyone gotten nsopenssl to work with IE 5.x/6.x and Win98?

2001-11-26 Thread Peter M. Jansson

Make sure you enable session caching, and disable all the low-capability
ciphers.  Here's what I have in my nsd.tcl (note particularly the
ServerCipherSuite and ServerSessionCache* params):

ns_param ServerPort  $httpsport
ns_param ServerHostname  $hostname
ns_param ServerAddress   $address
ns_param ServerCertFile  certfile.pem
ns_param ServerKeyFile   keyfile.pem
ns_param ServerProtocols All
ns_param ServerCipherSuite \
ALL:!ADH:!EXP56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
ns_param ServerSessionCache  true
ns_param ServerSessionCacheID1
ns_param ServerSessionCacheSize  512
ns_param ServerSessionCacheTimeout   300
ns_param ServerPeerVerifyfalse
ns_param ServerPeerVerifyDepth   3
ns_param ServerCADir ca
ns_param ServerCAFileca.pem
ns_param ServerTrace false



Re: [AOLSERVER] Has anyone gotten nsopenssl to work with IE 5.x/6.x and Win98?

2001-11-26 Thread Rob Mayoff

+-- On Nov 26, Nuno Santos said:
 For IE 5.x/6.x on Win98, a The page cannot be displayed... Cannot find
 server or DNS Error error is displayed for https requests. These requests
 never actually get to the server (there are no signs of them in the server's
 access log).

That's not sufficient evidence. Use tcpdump to see whether any packets
from the client are reaching the server machine.

If no packets are reaching the server machine, then the problem has
nothing to do with AOLserver or nsopenssl.



[AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail

2001-11-26 Thread Sean Redmond

Hello,

No one seems to want to touch this, not on the Aolserver list, not on the
PHP list, not on the SquirrelMail list. However, I'm going to try again.

On a server running RedHat Linux 7.2, I've got Aolserver 3.4.2 compiled and
working fine, and PHP 4.0.6 compiled as a module and working fine except
when it segfaults. It occurs consistently when loading SquirrelMail's
(1.2.0-rc2) src/right_main.php, though I think the problem is really in the
called function sqi_mailbox_list from functions/imap_mailbox.php. Exactly
what the server is trying to do when it crashes I haven't yet figured out.

The PHP source distribution warns about trouble with multi-threaded
servers, but the suggested workaround, removing a line of code, refers to a
line that no longer appears to be in the code anyway.

Has anyone had a similar problem? Can anyone help me solve this problem or
debug it more accurately? I currently have Aolserver 3.0, SquirrelMail
1.0.6, and PHP 4.0.6 running with no problems on another server under
RedHat 6.2 (I'm trying to migrate our webmail onto a new machine) so this
is very frustrating.

Thanks.

Sean Redmond
Brooklyn Museum of Art



Re: [AOLSERVER] [AOLSERVER} AOLServer and Virtual Hosts

2001-11-26 Thread Wojciech Kocjan

Check out the misc/README. It should help you out. If not, then mail me
directly.

--
WK



Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail

2001-11-26 Thread Sean Redmond

At 03:27 PM 11/26/2001 -0500, you wrote:
Hi Sean,

have you run AOLserver under GDB yet to find out where it is segfaulting?
Here's an example of how to do that.

Thanks. It is happening when in the PHP statement

 include ../src/load_prefs.php;

The relative path is expanded to

 
/usr/local/aolserver-3.4.2/servers/webmail/pages/squirrelmail-1.2.0-rc2/src/../src/load_prefs.php

instead of:

 
/usr/local/aolserver-3.4.2/servers/webmail/pages/squirrelmail-1.2.0-rc2/src/load_prefs.php

I.e the .. is not treated correctly. It seems to be PHP's fault.

here is the relevant output of gdb:

[New Thread 6151 (LWP 26839)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 6151 (LWP 26839)]
0x400afdd3 in canonicalize (
 name=0x4083b278
/usr/local/aolserver-3.4.2/servers/webmail/pages/squirrelmail-1.2.0-rc2/src/../src/load_prefs.php,
resolved=0x4053414c )
 at canonicalize.c:88
88  canonicalize.c: No such file or directory.
 in canonicalize.c
(gdb) bt
#0  0x400afdd3 in canonicalize (
 name=0x4083b278
/usr/local/aolserver-3.4.2/servers/webmail/pages/squirrelmail-1.2.0-rc2/src/../src/load_prefs.php,
resolved=0x4053414c )
 at canonicalize.c:88
#1  0x402be679 in virtual_file_ex (state=0x40535184,
 path=0x40665cd4 ../src/load_prefs.php, verify_path=0)
 at tsrm_virtual_cwd.c:299
#2  0x402423cc in expand_filepath (
 filepath=0x40665cd4 ../src/load_prefs.php, real_path=0x0)
 at fopen_wrappers.c:531
#3  0x40241a3f in php_fopen_and_set_opened_path (
 path=0x40665cd4 ../src/load_prefs.php, mode=0x402d2627 rb,
 opened_path=0x405373b4) at fopen_wrappers.c:237
#4  0x40242059 in php_fopen_with_path (
 filename=0x40665cd4 ../src/load_prefs.php, mode=0x402d2627 rb,
 path=0x8178b38
.:/usr/local/lib/php:/home/aol30/webmail/pages/webmail/src,
opened_path=0x405373b4) at fopen_wrappers.c:391
#5  0x40242288 in php_fopen_url_wrapper (
 path=0x40665cd4 ../src/load_prefs.php, mode=0x402d2627 rb,
 options=1, issock=0x405372d0, socketd=0x405372d4, opened_path=0x405373b4)
 at fopen_wrappers.c:470
#6  0x4023fc81 in php_fopen_wrapper_for_zend (
 filename=0x40665cd4 ../src/load_prefs.php, opened_path=0x405373b4)
 at main.c:477
#7  0x40239074 in open_file_for_scanning (file_handle=0x405373ac,
 compiler_globals=0x40630900) at zend_language_scanner_cc.cc:2899
#8  0x402394ee in compile_file (file_handle=0x405373ac, type=2,
 compiler_globals=0x40630900) at zend_language_scanner_cc.cc:2966
#9  0x4023966b in compile_filename (type=2, filename=0x406d92bc,
 compiler_globals=0x40630900, executor_globals=0x4061f440)
 at zend_language_scanner_cc.cc:3022
#10 0x40224016 in execute (op_array=0x406be8d0, executor_globals=0x4061f440)
 at ./zend_execute.c:2028
#11 0x40221da3 in execute (op_array=0x40774028, executor_globals=0x4061f440)
 at ./zend_execute.c:1544
#12 0x40221da3 in execute (op_array=0x407721a0, executor_globals=0x4061f440)
 at ./zend_execute.c:1544
#13 0x40221da3 in execute (op_array=0x4075b340, executor_globals=0x4061f440)
 at ./zend_execute.c:1544
#14 0x40221da3 in execute (op_array=0x40643c3c, executor_globals=0x4061f440)
 at ./zend_execute.c:1544
#15 0x4023016d in zend_execute_scripts (type=8, compiler_globals=0x40630900,
 executor_globals=0x4061f440, file_count=3) at zend.c:752
#16 0x40241167 in php_execute_script (primary_file=0x405436cc,
 compiler_globals=0x40630900, executor_globals=0x4061f440,
 core_globals=0x4061f740) at main.c:1206
#17 0x4023ef32 in php_ns_module_main (ns_context=0x40625bb0,
 sapi_globals=0x40632968) at aolserver.c:434
#18 0x4023f17f in php_ns_request_handler (context=0x8187c08, conn=0x819dc60)
 at aolserver.c:519
#19 0x08077bb7 in Ns_ConnRunRequest (conn=0x819dc60) at op.c:196
#20 0x0807e2c2 in ConnRun (connPtr=0x819dc60) at serv.c:882
#21 0x0807dc10 in NsConnThread (arg=0x40604300) at serv.c:671
#22 0x0811833b in NsThreadMain (arg=0x40604310) at thread.c:228
#23 0x4002ec6f in pthread_start_thread (arg=0x40543be0) at manager.c:284
#24 0x4002ed5f in pthread_start_thread_event (arg=0x40543be0)
 at manager.c:308


Sean Redmond
Brooklyn Museum of Art



Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail

2001-11-26 Thread Scott S. Goodwin

Hi Sean,

Is this something you can fix on your own? It's possible that the PHP module
for AOLserver is doing this (i.e. it's building a path without checking for
relative paths); I'm not sure as I've never used the module or PHP.

/s.

-+-+-+-+-+-+-+-+-+-+-+-+-
If to err is human, I must be more human than most.

Scott S. Goodwin
u: http://scottg.net
e: [EMAIL PROTECTED]
p: 850.897.6830
aim: scottgnet


- Original Message -
From: Sean Redmond [EMAIL PROTECTED]
To: AOLserver Discussion [EMAIL PROTECTED]
Sent: Monday, November 26, 2001 4:06 PM
Subject: Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail


 At 03:27 PM 11/26/2001 -0500, you wrote:
 Hi Sean,
 
 have you run AOLserver under GDB yet to find out where it is segfaulting?
 Here's an example of how to do that.

 Thanks. It is happening when in the PHP statement

  include ../src/load_prefs.php;

 The relative path is expanded to


/usr/local/aolserver-3.4.2/servers/webmail/pages/squirrelmail-1.2.0-rc2/src/
../src/load_prefs.php

 instead of:


/usr/local/aolserver-3.4.2/servers/webmail/pages/squirrelmail-1.2.0-rc2/src/
load_prefs.php

 I.e the .. is not treated correctly. It seems to be PHP's fault.

 here is the relevant output of gdb:

 [New Thread 6151 (LWP 26839)]

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 6151 (LWP 26839)]
 0x400afdd3 in canonicalize (
  name=0x4083b278

/usr/local/aolserver-3.4.2/servers/webmail/pages/squirrelmail-1.2.0-rc2/src
/../src/load_prefs.php,
 resolved=0x4053414c )
  at canonicalize.c:88
 88  canonicalize.c: No such file or directory.
  in canonicalize.c
 (gdb) bt
 #0  0x400afdd3 in canonicalize (
  name=0x4083b278

/usr/local/aolserver-3.4.2/servers/webmail/pages/squirrelmail-1.2.0-rc2/src
/../src/load_prefs.php,
 resolved=0x4053414c )
  at canonicalize.c:88
 #1  0x402be679 in virtual_file_ex (state=0x40535184,
  path=0x40665cd4 ../src/load_prefs.php, verify_path=0)
  at tsrm_virtual_cwd.c:299
 #2  0x402423cc in expand_filepath (
  filepath=0x40665cd4 ../src/load_prefs.php, real_path=0x0)
  at fopen_wrappers.c:531
 #3  0x40241a3f in php_fopen_and_set_opened_path (
  path=0x40665cd4 ../src/load_prefs.php, mode=0x402d2627 rb,
  opened_path=0x405373b4) at fopen_wrappers.c:237
 #4  0x40242059 in php_fopen_with_path (
  filename=0x40665cd4 ../src/load_prefs.php, mode=0x402d2627 rb,
  path=0x8178b38
 .:/usr/local/lib/php:/home/aol30/webmail/pages/webmail/src,
 opened_path=0x405373b4) at fopen_wrappers.c:391
 #5  0x40242288 in php_fopen_url_wrapper (
  path=0x40665cd4 ../src/load_prefs.php, mode=0x402d2627 rb,
  options=1, issock=0x405372d0, socketd=0x405372d4,
opened_path=0x405373b4)
  at fopen_wrappers.c:470
 #6  0x4023fc81 in php_fopen_wrapper_for_zend (
  filename=0x40665cd4 ../src/load_prefs.php, opened_path=0x405373b4)
  at main.c:477
 #7  0x40239074 in open_file_for_scanning (file_handle=0x405373ac,
  compiler_globals=0x40630900) at zend_language_scanner_cc.cc:2899
 #8  0x402394ee in compile_file (file_handle=0x405373ac, type=2,
  compiler_globals=0x40630900) at zend_language_scanner_cc.cc:2966
 #9  0x4023966b in compile_filename (type=2, filename=0x406d92bc,
  compiler_globals=0x40630900, executor_globals=0x4061f440)
  at zend_language_scanner_cc.cc:3022
 #10 0x40224016 in execute (op_array=0x406be8d0,
executor_globals=0x4061f440)
  at ./zend_execute.c:2028
 #11 0x40221da3 in execute (op_array=0x40774028,
executor_globals=0x4061f440)
  at ./zend_execute.c:1544
 #12 0x40221da3 in execute (op_array=0x407721a0,
executor_globals=0x4061f440)
  at ./zend_execute.c:1544
 #13 0x40221da3 in execute (op_array=0x4075b340,
executor_globals=0x4061f440)
  at ./zend_execute.c:1544
 #14 0x40221da3 in execute (op_array=0x40643c3c,
executor_globals=0x4061f440)
  at ./zend_execute.c:1544
 #15 0x4023016d in zend_execute_scripts (type=8,
compiler_globals=0x40630900,
  executor_globals=0x4061f440, file_count=3) at zend.c:752
 #16 0x40241167 in php_execute_script (primary_file=0x405436cc,
  compiler_globals=0x40630900, executor_globals=0x4061f440,
  core_globals=0x4061f740) at main.c:1206
 #17 0x4023ef32 in php_ns_module_main (ns_context=0x40625bb0,
  sapi_globals=0x40632968) at aolserver.c:434
 #18 0x4023f17f in php_ns_request_handler (context=0x8187c08,
conn=0x819dc60)
  at aolserver.c:519
 #19 0x08077bb7 in Ns_ConnRunRequest (conn=0x819dc60) at op.c:196
 #20 0x0807e2c2 in ConnRun (connPtr=0x819dc60) at serv.c:882
 #21 0x0807dc10 in NsConnThread (arg=0x40604300) at serv.c:671
 #22 0x0811833b in NsThreadMain (arg=0x40604310) at thread.c:228
 #23 0x4002ec6f in pthread_start_thread (arg=0x40543be0) at manager.c:284
 #24 0x4002ed5f in pthread_start_thread_event (arg=0x40543be0)
  at manager.c:308


 Sean Redmond
 Brooklyn Museum of Art




Re: [AOLSERVER] Again, Segfault with Aolserver, PHP, SquirrelMail

2001-11-26 Thread Scott Goodwin

Hi Sean,

have you run AOLserver under GDB yet to find out where it is segfaulting?
Here's an example of how to do that.

Put this into a file called gdbinit, substituting the things in parens with
something appropriate and adjusting pathnames:

=== BEGIN : CUT ==
directory /usr/local/src/aolserver
directory /usr/local/src/(other source dir)
directory /usr/local/src/(other source dir)

set args -f -u (user) -g (group) -t /usr/local/aolserver/nsd.tcl -s
(servername)

run
== END : CUT 

then run:

gdb -x gdbinit /usr/local/bin/aolserver/bin/nsd



After the process segfaults, type bt at the GDB prompt (bt = backtrace).

This should give you the function, source code line # etc. of where the
fault is occurring.

/s.



 Hello,

 No one seems to want to touch this, not on the Aolserver list, not on the
 PHP list, not on the SquirrelMail list. However, I'm going to try again.

 On a server running RedHat Linux 7.2, I've got Aolserver 3.4.2 compiled
and
 working fine, and PHP 4.0.6 compiled as a module and working fine except
 when it segfaults. It occurs consistently when loading SquirrelMail's
 (1.2.0-rc2) src/right_main.php, though I think the problem is really in
the
 called function sqi_mailbox_list from functions/imap_mailbox.php. Exactly
 what the server is trying to do when it crashes I haven't yet figured out.

 The PHP source distribution warns about trouble with multi-threaded
 servers, but the suggested workaround, removing a line of code, refers to
a
 line that no longer appears to be in the code anyway.

 Has anyone had a similar problem? Can anyone help me solve this problem or
 debug it more accurately? I currently have Aolserver 3.0, SquirrelMail
 1.0.6, and PHP 4.0.6 running with no problems on another server under
 RedHat 6.2 (I'm trying to migrate our webmail onto a new machine) so this
 is very frustrating.

 Thanks.

 Sean Redmond
 Brooklyn Museum of Art