HELP??? Installation on MAC OS X

2001-04-25 Thread David Campion
Hi   I am trying to install mod perl on the Apple OS X Server platform.   I can compile the code OK, both as static and as a DSO  but when I try to restart the apache server, I get all sorts of errors.   example :   dyld: /usr/sbin/httpd multiple definitions of symbol _vhost_alias_module/

Re: HELP??? Installation on MAC OS X

2001-04-25 Thread G.W. Haywood
Hi there, On Wed, 25 Apr 2001, David Campion wrote: > I am trying to install mod perl on the Apple OS X Server platform. Best of luck! > example : > > dyld: /usr/sbin/httpd multiple definitions of symbol _vhost_alias_module > /System/Library/Apache/Modules/mod_vhost_alias.so definition of > _

What is the difference: PerlRun and MaxRequestsPerChild 1

2001-04-25 Thread newsreader
I recently began to experience many lingering mod_perl processes which slow down my tcp connection. I use Apache::Registry for all my mod_perl need. Not the "real" handler. The practical solution I found was to cut down the number MaxRequestPerChild and kill off the processes after a few reques

Re: What is the difference: PerlRun and MaxRequestsPerChild 1

2001-04-25 Thread Stas Bekman
On Wed, 25 Apr 2001 [EMAIL PROTECTED] wrote: > I recently began to experience many lingering > mod_perl processes which slow down my tcp connection. > > I use Apache::Registry for all my mod_perl need. > Not the "real" handler. > > The practical solution I found was to cut down the > number MaxRe

Re: What is the difference: PerlRun and MaxRequestsPerChild 1

2001-04-25 Thread G.W. Haywood
Hi there, On Wed, 25 Apr 2001 [EMAIL PROTECTED] wrote: > like to know whether there is a compilation overhead if I set say > MaxRequestsPerChild 1 ?? http://perl.apache.org/guide > disk data ransfer rate will be order of magnitude less than if the > script were to remain in the memory all the

Re: HELP??? Installation on MAC OS X

2001-04-25 Thread darren chamberlain
David Campion ([EMAIL PROTECTED]) said something to this effect on 04/25/2001: > I am trying to install mod perl on the Apple OS X Server platform. > > I can compile the code OK, both as static and as a DSO but when I try to > restart the apache server, I get all sorts of errors. > > example :

Re: What is the difference: PerlRun and MaxRequestsPerChild 1

2001-04-25 Thread newsreader
On Wed, Apr 25, 2001 at 12:10:01PM +0100, G.W. Haywood wrote: > Hi there, > > On Wed, 25 Apr 2001 [EMAIL PROTECTED] wrote: > > > like to know whether there is a compilation overhead if I set say > > MaxRequestsPerChild 1 ?? > > http://perl.apache.org/guide I have read the "guide" cover to cove

Re: What is the difference: PerlRun and MaxRequestsPerChild 1

2001-04-25 Thread newsreader
Thanks. I think that is what I really need :) On Wed, Apr 25, 2001 at 08:19:21PM +0800, Stas Bekman wrote: > the two events contrudict and lead to the need to re-read the guide, and > especially this section: > http://perl.apache.org/guide/performance.html#Preloading_Registry_Scripts_at_S > > :

Apache growing (memory)

2001-04-25 Thread Kurt George Gjerde
Hi, I recently discovered the following on an Apache/mod_perl server. I have Apache for win32, ActiveState's Perl and the mod_perl PPM installed (on a Windows 2000 Pro OS, but read on anyway ;). All were downloaded and installed last week so they are the latest versions. Each time a page is dow

Re: What is the difference: PerlRun and MaxRequestsPerChild 1

2001-04-25 Thread Stas Bekman
On Wed, 25 Apr 2001 [EMAIL PROTECTED] wrote: In a different thread [EMAIL PROTECTED] said: > I have read the "guide" cover to cover long ago :) In the other thread [EMAIL PROTECTED] has asked: > Not exactly sure how to preload these scripts. I have the following the two events contrudict and

Re: What is the difference: PerlRun and MaxRequestsPerChild 1

2001-04-25 Thread newsreader
On Wed, Apr 25, 2001 at 07:19:25PM +0800, Stas Bekman wrote: > > if I set say MaxRequestsPerChild 1 ?? > > Not if you preload your scripts at the server startup. But then you pay > the price of the time to spawn a new process, which has a very little > overhead under low load since Apache prefor

RE: Apache growing (memory)

2001-04-25 Thread Brendan McAdams
It sounds like you are globalising some variables and never freeing them, to start with. You definitely need to run in strict and keep your namespaces managed lest you have processes keep variables in Memory. I've found that setting MaxRequestsPerChild in apache to a reasonable amount minimises

[Patch] Apache->dso_module() to find if a module is loaded as DSO or not

2001-04-25 Thread Philippe M . Chiasson
A suggested new feature. Apache->dso_module('mod_example.c') behaves like Apache->module('mod_example.c') except it returns 1 if the module is loaded as DSO, 0 if it's compiled in and undef if it's not present at all. I wrote this because of a few problems I had with the 'slight' differences in

Re: Apache growing (memory)

2001-04-25 Thread newsreader
On Wed, Apr 25, 2001 at 10:02:06AM -0400, Brendan McAdams wrote: Our application performance actually > improved across the board when we implements MaxRequests... (This Do you have numbers to back this up? How does reading in a new script every now and then IMPROVE anything compared to keep

Global Variables Question

2001-04-25 Thread Warren D. Johnson
Hello All, I apologize if this is in a FAQ somewhere. I have a script, lets call it test.pl. Test.pl requires in config.pl. Test.pl uses variables (via use vars) from config.pl. These variables are defined and given values in config.pl. AFter the first usage of test.pl, the variables we are

Re: Global Variables Question

2001-04-25 Thread Mike Cameron
http://perl.apache.org/guide/porting.html#Configuration_Files_Writing_Dy Guide Good! "Warren D. Johnson" wrote: > Hello All, > > I apologize if this is in a FAQ somewhere. > > I have a script, lets call it test.pl. Test.pl requires in config.pl. > > Test.pl uses variables (via use vars) from c

Re: Apache growing (memory)

2001-04-25 Thread Joe Schaefer
Kurt George Gjerde <[EMAIL PROTECTED]> writes: > Each time a page is downloaded the Apache service process claims more > memory. Well, not each time but like for every 20th download the task > manager shows Apache using 20-30K more... > > A test showed that reloading the same page 2000 times rai

Re: [Patch] Apache->dso_module() to find if a module is loaded asDSO or not

2001-04-25 Thread Stas Bekman
On Wed, 25 Apr 2001, Philippe M . Chiasson wrote: > A suggested new feature. > > Apache->dso_module('mod_example.c') behaves like > Apache->module('mod_example.c') except it returns 1 if the > module is loaded as DSO, 0 if it's compiled in and undef > if it's not present at all. > > I wrote this

mod_perl and infinite loops

2001-04-25 Thread Jason Terry
I have a rather large script I run through mod_perl and occasionally, I have notice some users with "stuck" processes. It seems like they are in some sort of infinite loop. The CPU that the child is using is high, and the memory gradually grows until my server would eventually start to thr

Re: mod_perl and infinite loops

2001-04-25 Thread Stas Bekman
On Wed, 25 Apr 2001, Jason Terry wrote: > I have a rather large script I run through mod_perl and occasionally, I have >notice some users with "stuck" processes. It seems > like they are in some sort of infinite loop. > > The CPU that the child is using is high, and the memory gradually gro

mod Perl installation failures

2001-04-25 Thread jim . a . davidson
Sirs, I have discovered that my printer for some reason omitted some characters from the mod Perl installation README file which caused subsequent compilation failures. I have now rectified this and the install looks ok. Apologies for any time wasted. Thanks. Regards, Jim

looking for help finishing a module

2001-04-25 Thread Steven Lembark
something like Apache::Digest::FixMSHak. MS decided that their version of digest security was better than the RFC. i should be doable to add a re-write module that hacks the MS hak back to stock values so that mod_digest works again. people i've spoken to so far don't know if there is anything

Re: Apache growing (memory)

2001-04-25 Thread Matt Sergeant
On Wed, 25 Apr 2001, G.W. Haywood wrote: > Hi all, > > On Wed, 25 Apr 2001, Remco Schaar wrote: > > > It is very hard to write perfect code, > > True, but it's not hard to write code that doesn't leak memory. > > void *p = NULL; > ... > ... > if( p ) { exit(POINTER_ERROR); } > void *p = malloc(n)

Re: [OT] Apache growing (memory)

2001-04-25 Thread G.W. Haywood
Hi Matt, On Wed, 25 Apr 2001, Matt Sergeant wrote: > Easier still, just use boehm gc. ;-) Can you get that for MS-DOS? 73, Ged.

Re: [Patch] Apache->dso_module() to find if a module is loaded as DSO or not

2001-04-25 Thread Philippe M . Chiasson
On Wed, Apr 25, 2001 at 10:59:51PM +0800, Stas Beckman wrote: > On Wed, 25 Apr 2001, Philippe M . Chiasson wrote: > > > A suggested new feature. > > > > Apache->dso_module('mod_example.c') behaves like > > Apache->module('mod_example.c') except it returns 1 if the > > module is loaded as DSO, 0 if

Re: [OT] writing code (was: Apache growing (memory))

2001-04-25 Thread Remco Schaar
On Wed, 25 Apr 2001, G.W. Haywood wrote: > Hi all, Hi again, > On Wed, 25 Apr 2001, Remco Schaar wrote: > > > It is very hard to write perfect code, > > True, but it's not hard to write code that doesn't leak memory. > > void *p = NULL; > ... > ... > if( p ) { exit(POINTER_ERROR); } > void

Re: Apache growing (memory)

2001-04-25 Thread G.W. Haywood
Hi all, On Wed, 25 Apr 2001, Remco Schaar wrote: > It is very hard to write perfect code, True, but it's not hard to write code that doesn't leak memory. void *p = NULL; ... ... if( p ) { exit(POINTER_ERROR); } void *p = malloc(n); ... ... free( p ); p = NULL; ... ... By which I mean that I u

Re: Apache growing (memory)

2001-04-25 Thread Remco Schaar
On 25 Apr 2001, Joe Schaefer wrote: > Kurt George Gjerde <[EMAIL PROTECTED]> writes: Hi, > Even if your script were coded perfectly, it is still possible for this > to happen in modperl. > Personally, I would consider an average growth rate of only .5kB/hit > absolutely wonderful :) As far I

Re: modperl/ASP and MVC design pattern

2001-04-25 Thread f . pasqualini
Quoting ed phillips <[EMAIL PROTECTED]>: > Francesco Pasqualini wrote: > > > - Original Message - > > From: <[EMAIL PROTECTED]> > > To: "Francesco Pasqualini" <[EMAIL PROTECTED]> > > Cc: <[EMAIL PROTECTED]> > > Sent: Friday, April 20, 2001 8:11 PM > > Subject: Re: modperl/ASP and MVC des

Re: modperl/ASP and MVC design pattern

2001-04-25 Thread ed phillips
[EMAIL PROTECTED] wrote: > > Francesco, I believe that Ian was joking, hence the yikes before the name, > > so the above post is the documentation! > > > > Ed > > > > .. so the best environment for the MVC++ design pattern is parrot/mod_parrot :) > http://www.oreilly.com/news/parrotstory_0401.ht

Re: [Patch] Apache->dso_module() to find if a module is loaded as DSO or not

2001-04-25 Thread Jens-Uwe Mager
On Wed, Apr 25, 2001 at 12:49:24PM -0400, Philippe M . Chiasson wrote: > There is also the strange case of mod_perl leaking memory on graceful > restarts when compiled as DSO. But I don't feel like getting into > this one quite yet. I would believe that is caused by perl, it does keep its globa

Prblem in loading modules

2001-04-25 Thread Mohammed Azam
Hi, I am using perl 5.00503 mod_perl 1.22 apache 1.3.12 aix 4.3.3 I have recompiled perl 5.00503 after applying patch for dl_aix.xs. Then I compiled my mod_perl with the following command perl Makefile.PL \ USE_APXS=1 \ WITH_APXS=/usr/HTTPServer/bin/apxs \ EVERYTHING=1 It compiled without an

Can mod_perl work with Apache 2.0?

2001-04-25 Thread Chad Phillips
Can mod_perl work with Apache 2.0? When I tried to compile mod_perl-1.25 against Apache 2.016 I get this error: # perl Makefile.PL Enter `q' to stop search Please tell me where I can find your apache src [] ../httpd-2_0_16 Configure mod_perl with ../httpd-2_0_16 ? [y] * WARNI

Re: Problem building on Solaris 2.7

2001-04-25 Thread Mod-Perl List
I am also unable to compile statically. I am configuring against Apache 1.3.19 on Solaris 2.7. I just installed perl 5.6 with a whole slew of modules. Here is how I configure apache: --prefix=/usr/local/apache \ --enable-module=all \ --enable-shared=max \ --activate-module=src/modules/php4/libph

Re: Prblem in loading modules

2001-04-25 Thread Jens-Uwe Mager
On Wed, Apr 25, 2001 at 11:34:53AM -0700, Mohammed Azam wrote: > perl 5.00503 > mod_perl 1.22 > apache 1.3.12 > aix 4.3.3 That appears to be an unfortunate combination that does not work properly. Get APache 1.3.19, perl 5.6.1 and the newest modperl from CVS and the patch I did mention here a fe

readdir()

2001-04-25 Thread Lincoln Stein
Hi Doug, Perl 5.6.0 breaks the readdir() function when running under mod_perl. This is with the most recent versions of Apache and mod_perl, as well as with older versions. I see the same problem reported in the mailing list going back to December 2000, but no hint of a resolution. Is there any

Child keeps seg faulting

2001-04-25 Thread Mod-Perl List
I have the following config: Solaris 2.7, perl 5.6, php4 and mod_perl 1.25 compiled statically into Apache 1.3.19. This exact same config works flawlessly on several Suse machines and a few Red Hat machines. After building and testing the server, I get the following error when trying to execute

Re: readdir()

2001-04-25 Thread Andrew Ho
Hello, LS>Perl 5.6.0 breaks the readdir() function when running under mod_perl. LS>This is with the most recent versions of Apache and mod_perl, as well LS>as with older versions. I see the same problem reported in the LS>mailing list going back to December 2000, but no hint of a LS>resolution.

Re: readdir()

2001-04-25 Thread Paul J. Lucas
On Wed, 25 Apr 2001, Andrew Ho wrote: > LS>Perl 5.6.0 breaks the readdir() function when running under mod_perl. > LS>This is with the most recent versions of Apache and mod_perl, as well > LS>as with older versions. I see the same problem reported in the > LS>mailing list going back to December

Is this startup.pl ok?

2001-04-25 Thread Philip Mak
My Apache with modperl is acting weird with respect to memory usage. When it first starts up, each process uses 10 MB of memory. As time goes on, these processes' memory usage grows and grows. Right now they're 20 MB (uptime 2 days). When I rebooted the machine two days ago, they were using 80 M

Re: [Patch] Apache->dso_module() to find if a module is loaded asDSO or not

2001-04-25 Thread Stas Bekman
> > Currently I think there is a slight "bug" in the latest mod_perl 1.x, > > where PerlRequire doesn't work as require() in Perl per se on restart. A > > few people have reported this behavior. > > > > So as a quick workaround do this: > > > > start.pl: > > - > > require "real-startup.pl"

mod_perl DSO leaking on restart?

2001-04-25 Thread Philip Mak
On Thu, 26 Apr 2001, Stas Bekman wrote: > > There is also the strange case of mod_perl leaking memory on graceful > > restarts when compiled as DSO. But I don't feel like getting into > > this one quite yet. Hmm. My httpd was using 20 MB. I did "apachectl graceful" ten times, and the usage jump

Re: Can mod_perl work with Apache 2.0?

2001-04-25 Thread Stas Bekman
On Wed, 25 Apr 2001, Chad Phillips wrote: > Can mod_perl work with Apache 2.0? When I tried to compile mod_perl-1.25 > against Apache 2.016 I get this error: > > # perl Makefile.PL > Enter `q' to stop search > Please tell me where I can find your apache src > [] ../httpd-2_0_16 > Configure

Re: Child keeps seg faulting

2001-04-25 Thread Stas Bekman
On Wed, 25 Apr 2001, Mod-Perl List wrote: > > > I have the following config: Solaris 2.7, perl 5.6, php4 and mod_perl 1.25 compiled > statically into Apache 1.3.19. This exact same config works flawlessly on several > Suse machines and a few Red Hat machines. After building and testing the server

apachecon/tpc and mod_perl 2.0

2001-04-25 Thread Stas Bekman
So ApacheCon was cool and loaded with mod_perl talks. You gotta read Nat's comments from the last ApacheCon about mod_perl at his journal: http://use.perl.org/journal.pl?op=display&uid=29&start=5 Why? Remember last year we have talked about having a dedicated mod_perl conference? And Nat promised

Re: readdir()

2001-04-25 Thread Mathew Hennessy
Hi, I'm also experiencing issues using readdir() under mod_perl v1.25/apache 1.3.19 on a perl 5.6.1 system freshly compiled in RH7.1 + gcc 2.96/glibc 2.2. I _can_ get correct behavior when running readdir() in perl -e on the command line, but when run thru mod_perl/apache it returns n

Re: readdir()

2001-04-25 Thread Stas Bekman
On Thu, 26 Apr 2001, Mathew Hennessy wrote: > Hi, > I'm also experiencing issues using readdir() under mod_perl > v1.25/apache 1.3.19 on a perl 5.6.1 system freshly compiled in RH7.1 + > gcc 2.96/glibc 2.2. I _can_ get correct behavior when running readdir() > in perl -e on the command lin

Re: [Patch] Apache->dso_module() to find if a module is loaded asDSO or not

2001-04-25 Thread Doug MacEachern
On Thu, 26 Apr 2001, Stas Bekman wrote: > sure, but that's a different matter. I say that PerlModule and PerlRequire > have a bug, which should be fixed. It's just that your problem made me > reiterate the problem. patch below fixes. problem was the reference to @Apache::ReadConfig::PerlConfig

problem compiling under win98

2001-04-25 Thread pascal.barbedor
  Hi   i have succesfully compiled apache 1_3.19 under win 98 with vc6 and dsw project     I'm trying to compile mod_perl 1_25 under windows 98 the same way   i downloaded the source 1_25 and found the modperl.dsp for  vc++ compiling       i followed the install.win32 notes but when compilin

Re: Child keeps seg faulting

2001-04-25 Thread G.W. Haywood
Hi there, On Thu, 26 Apr 2001, Stas Bekman wrote: > On Wed, 25 Apr 2001, Mod-Perl List wrote: > > > > I have the following config: Solaris 2.7, perl 5.6, php4 and mod_perl 1.25 compiled > > statically into Apache 1.3.19. > > get the following error when trying to execute the printenv cgi script