[AOLSERVER] nsphp module

2002-10-31 Thread Nathan Folkman
Has anyone had success with PHP and AOLserver? If so what module did you use? I found some info here that seems pretty up to date:

http://lxr.php.net/source/php4/sapi/aolserver/aolserver.c#261

Any help or pointers to other info would be appreciated. Thanks!

- n



Re: [AOLSERVER] nsphp module

2002-10-31 Thread Patrick Spence



I am having good success -now- with php and 
aolserver. I just recompiled the latest stable release of PHP with the 
aolserver options and am working fine with that. The caveat is that you 
need to increase your stackspace beyond the default 128*1024.. when the 
latest revision of glibc in redhat caused serious issues on my server it was 
finally determined to be the problem. When I applied it I realized that 
the sporadic (and not easily reproduced) problems I had been having with PHP 
prior had evidenced the same symptoms it became clear to me that PHP is stack 
size hungry :)

This is what I use with my servers and it works 
great... 

ns_section 
"ns/threads" ns_param 
stacksize [expr 256*1024] ;# Per-thread stack size for hungry C 
modules.


I am using PHP for some third party add-ons 
(gallery from gallery.menalto.com) and for custom stuff like my php based ad 
server thats serving 10,000+ ads a day on my various servers... 


  - Original Message - 
  From: 
  Nathan Folkman 
  
  To: [EMAIL PROTECTED] 
  Sent: Thursday, October 31, 2002 8:47 
  AM
  Subject: [AOLSERVER] nsphp module
  Has anyone had success with PHP and AOLserver? If so what 
  module did you use? I found some info here that seems pretty up to 
  date:http://lxr.php.net/source/php4/sapi/aolserver/aolserver.c#261Any 
  help or pointers to other info would be appreciated. Thanks!- 
n


Re: [AOLSERVER] nsphp module

2002-10-31 Thread Dan Bradley
I run it at home, in a non production environment (my wife likes PHP).
It's been stable at least, but I get practically no load.  All I had to do
was ./configure --with-aolserver=/usr/local/aolserver to get the right
module to build.

--
Dan Bradley
AOL Search Operations

On Thu, 31 Oct 2002, Nathan Folkman wrote:

 Has anyone had success with PHP and AOLserver? If so what module did you use?
 I found some info here that seems pretty up to date:

 A 
HREF=http://lxr.php.net/source/php4/sapi/aolserver/aolserver.c#261;http://lxr.php.net/source/php4/sapi/aolserver/aolserver.c#261/A

 Any help or pointers to other info would be appreciated. Thanks!

 - n





Re: [AOLSERVER] nsphp module

2002-10-31 Thread Jean-Fabrice RABAUTE
Hi,

I had to use the php module within aolserver (mix of .tcl and .php pages).
It worked fine in production for more than 1 month without a problem.
The tcl and php were connected to the same Oracle DB.

3 major points anyway :

* DO NOT USE Persistent Connections with PHP... It looks like PHP is asking
more and more connections, and in 2 or 3 days (depending on your server load)
Oracle doesn't have anymore free connection. So, I replaced with a NON
PERSISTENT connection in PHP and it's fine.
* The mem size of the process is growing forever, slowly but forever, so I had
to stop it and restart it every week (it's not a big deal anyway). I didn't
investigate the problem.
* When there are connection troubles with the DB (for example the Oracle
Listener stops, or network problems, or Oracle dies (it never happened to me)),
then you'll have zombie processes. I didn't investigate the problem, as the
zombie processes disappear on a AOLServer process restart.

Hope this help.

For info : I'm using AOLServer 3.2 on a Solaris with oracle driver 2.5 and php
4.2.3 (perhaps 4.2.2 I'm not sure).

Best Regards.

En réponse à Nathan Folkman [EMAIL PROTECTED]:

 Has anyone had success with PHP and AOLserver? If so what module did you
 use?
 I found some info here that seems pretty up to date:

 A

HREF=http://lxr.php.net/source/php4/sapi/aolserver/aolserver.c#261;http://lxr.
php.net/source/php4/sapi/aolserver/aolserver.c#261/A

 Any help or pointers to other info would be appreciated. Thanks!

 - n





Jean-Fabrice RABAUTE
Core Services
http://www.core-services.fr
[EMAIL PROTECTED]
Mob: +33 (0)6 13 82 67 67



Re: [AOLSERVER] nsphp module

2002-10-31 Thread Roberto Mello
On Thu, Oct 31, 2002 at 05:39:35PM +0100, Jean-Fabrice RABAUTE wrote:

 * DO NOT USE Persistent Connections with PHP... It looks like PHP is asking
 more and more connections, and in 2 or 3 days (depending on your server load)
 Oracle doesn't have anymore free connection. So, I replaced with a NON
 PERSISTENT connection in PHP and it's fine.

This is still the case with PHP? I experienced that same behavior with PHP
over a year ago when I did things with it under AOLserver _and_ apache.

 * The mem size of the process is growing forever, slowly but forever, so I had
 to stop it and restart it every week (it's not a big deal anyway). I didn't
 investigate the problem.

Anyone's got a profiler? :)

-Roberto

--
+|Roberto Mello   -http://www.brasileiro.net/  |--+
+   Computer Science Graduate Student, Utah State University  +
+   USU Free Software  GNU/Linux Club - http://fslc.usu.edu/ +
*** TURN OFF YOUR SYSTEM NOW !!! ***