Re: [AOLSERVER] aolserver + php
On Fri, Jun 06, 2003 at 06:38:45AM -0700, Patrick Spence wrote: - Original Message - From: Micha Nasiadka [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 06, 2003 6:16 AM Subject: Re: [AOLSERVER] aolserver + php On Thu, Jun 05, 2003 at 10:55:44AM -0600, Patrick Spence wrote: Micha?Nasiadka said: Hi. I've expierenced problems with running php on aolserver. Aolserver is segfaulting, while trying to use phpmyadmin, so I think it's something linked to mysql connectivity from php. Tried changing stacksize, tried even the devel versions of php, no luck. Can anybody help? What did you set your stacksize to? I believe it was 512*1024. What version of linux are you running.. at one point one of the up2date upgrades on one of the dns libraries on redhat caused serious memory issues and caused segfaulting on dns lookups especially with php running FreeBSD 5.0-RELEASE it is. And php works fine, if I don't use mysql functions from it. Seems I've got to send a bug report to php.net ;) -- Michal Nasiadka [EMAIL PROTECTED] -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] Ns_Tls
On Saturday 07 June 2003 07:55, you wrote: On Fri, 6 Jun 2003 20:49:13 EDT Nathan Folkman [EMAIL PROTECTED] wrote: In a message dated 6/6/2003 6:03:40 PM Central Standard Time, [EMAIL PROTECTED] writes: Hello, when I start AOLServer on NetBSD -current it gives an error: Ns_Tls: invalid key: 0: sould bee between 1 and 100 and dumps core. Can sombody tell me what it means? Please, edit the nsd/nsmain.c file and put these two lines immediately on the top of the Ns_Main() routine (after variable declarations, of course): NsthreadsInit(); NsdInit(); then recompile and tell us what you get. Cheers, Zoran -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] Ns_Tls
On Sat, 7 Jun 2003 11:55:23 +0200 Zoran Vasiljevic [EMAIL PROTECTED] wrote: On Saturday 07 June 2003 07:55, you wrote: On Fri, 6 Jun 2003 20:49:13 EDT Nathan Folkman [EMAIL PROTECTED] wrote: In a message dated 6/6/2003 6:03:40 PM Central Standard Time, [EMAIL PROTECTED] writes: Hello, when I start AOLServer on NetBSD -current it gives an error: Ns_Tls: invalid key: 0: sould bee between 1 and 100 and dumps core. Can sombody tell me what it means? Please, edit the nsd/nsmain.c file and put these two lines immediately on the top of the Ns_Main() routine (after variable declarations, of course): NsthreadsInit(); NsdInit(); then recompile and tell us what you get. Cheers, Zoran I get an error messege: libnsd.so: undefined reference to 'NsthreadsInit'. Regards, Feri -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] Ns_Tls
On Saturday 07 June 2003 12:33, you wrote: I get an error messege: libnsd.so: undefined reference to 'NsthreadsInit'. Huh, that was fast. Please add: extern void NsthreadsInit(void); extern void NsdInit(void); before the Ns_Main() function declaration. Zoran -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] Ns_Tls
On Sat, 7 Jun 2003 12:39:33 +0200 Zoran Vasiljevic [EMAIL PROTECTED] wrote: Huh, that was fast. Please add: extern void NsthreadsInit(void); extern void NsdInit(void); before the Ns_Main() function declaration. Zoran I have the same error message: Ns_Tls: invalid key: 0: sould bee between 1 and 100 Feri -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] Ns_Tls
On Saturday 07 June 2003 13:26, you wrote: On Sat, 7 Jun 2003 12:39:33 +0200 Zoran Vasiljevic [EMAIL PROTECTED] wrote: Huh, that was fast. Please add: extern void NsthreadsInit(void); extern void NsdInit(void); before the Ns_Main() function declaration. Zoran I have the same error message: Ns_Tls: invalid key: 0: sould bee between 1 and 100 Please do not forget to make install after you compile. The problem with your dynamic loader is that it obviously does not automatically run the init procedure of shared libraries. AOLserver uses 2 shared libraries: the libnsthread.so and libnsd.so. Each of them has an init procedure. The libnsthread.so has NsthreadsInit() and libnsd.so has NsdInit(). These two are normally automatically called by the dynamic loader when it loads the nsd image in memory. Somehow, this does not happen on your system. So my advice was to explicitly load these two by hand. What I think now is that you're somehow hitting the old shared libraries. So, try make install, go to /usr/local/aolserver and do: bin/nsd -f -t sample-config.tcl Please be sure that /usr/local/aolserver/lib/libnsd.so and /usr/local/aolserver/bin/nsd are really newly compiled. If this all does not help, we then have some more complicated case. Zoran -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] aolserver + php
Micha Nasiadka wrote: is segfaulting, while trying to use phpmyadmin, so I think it's something linked to mysql connectivity from php. Tried changing stacksize, tried even the devel versions of php, no luck. Can anybody help? What did you set your stacksize to? I believe it was 512*1024. What version of linux are you running.. at one point one of the up2date upgrades on one of the dns libraries on redhat caused serious memory issues and caused segfaulting on dns lookups especially with php running FreeBSD 5.0-RELEASE it is. And php works fine, if I don't use mysql functions from it. Seems I've got to send a bug report to php.net ;) Just a quick thought. Perhaps do a ldd on mysql.so in php, libphp4.so and libmysqlclient (the one used in mysql.so). -- WK -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
[AOLSERVER] sqlite and AOLserver
Hello. I've been wondering if anyone has tried to use SQlite with AOLserver. I've noticed that, when compiled with threads enabled, it should be thread-safe: SQLITE_BUSY This return code indicates that another program or thread has the database locked. [cut]. Locking in SQLite is on the entire database. This of course means that if I get SQLITE_BUSY, I should just wait for some time and try the query/exec again. If noone has tried to write sqlite driver for nsdb, then where can I read more on how to write one myself? sqlite api seems pretty straightforward. -- WK -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] sqlite and AOLserver
On Saturday, June 7, 2003, at 09:39 AM, Wojciech Kocjan wrote: If noone has tried to write sqlite driver for nsdb, then where can I read more on how to write one myself? sqlite api seems pretty straightforward. This is a good candidate for an external driver, which would guarantee that no more than a single thread (and process, for that matter) is using the SQLite API at a time, while still making concurrent connections available through AOLserver. Look at the Sybase driver for guidance. With the current implementation of the external driver protocol, don't run the external proxy in remote mode -- only use it on the local machine so it connects by pipes, because the latency of an actual TCP connection is too high for the protocol being used. Pete. -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] ns_eval is EVIL in AOLserver 4
On Saturday 07 June 2003 09:59 am, Zoran Vasiljevic wrote: On Friday 06 June 2003 17:35, Don Baccus wrote: Right, if you skip the traces you don't get the module-defined ns_* commands, we're on the same page here ... as far as this bit goes anyway. After thinking again and again, I see two possible scenarios. One thing upfront: I'd like to have *both* of the ns_eval behaviours available: the older one (as in 3.x) and the new interp sync mode. This is my target. I agree ... Well, either of those will lead to solution. The second option allows for more flexibility. The first is simpler to implement. Thoughts? I don't have strong feelings either way. Synching of the state of all interpreters is something that won't be done often and requires great care in how you write the rest of your application so I don't think we need the command to be particularly aesthetic, elegant etc. The second approach is more flexible so is attractive but I don't think there's a lot of demand for the extra functionality. Then again if you implement it the masses may suddenly start wondering how they ever lived without it in earlier versions of AOLserver! Who knows? :) -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/