Mem usage of modules

2002-04-11 Thread pawelp
Hi Under Mem Usage menu I have list like this: Apache::ROOT::cgi_2dbin::auk_ch_de Apache::ROOT::cgi_2dbin::auk_ch_fr Apache::ROOTdynamic_2ericardo_2ech::cgi_2dbin::auk_aw_ch_de Apache::ROOTdynamic_2ericardo_2ech::cgi_2dbin::auk_aw_ch_fr Apache::ROOTdynamic_2ericardo_2ech::cgi_2dbin::auk_ca_ch

RE: installing mod_perl against a different perl installation

2002-04-11 Thread Mike Loiterman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I think I got it worked out now Mike Loiterman [EMAIL PROTECTED] PGP Key 0xD1B9D18E > -Original Message- > From: Stas Bekman [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 12, 2002 12:41 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED]

Re: Trapping browser events

2002-04-11 Thread Issac Goldstand
Jacob Elder wrote: >On Tue, Apr 09, 2002 at 11:13:09AM +0100, Martin Harriss wrote: > >>I am using Embperl on an intranet system to perform complex database >>searches and display the results. >> >>My problem is that, depending on the parameters given by the user, some >>searches can take some

Re: installing mod_perl against a different perl installation

2002-04-11 Thread Stas Bekman
Mike Loiterman wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I have two versions of perl installed 5.005 and 5.6.1. I currently > only have mod_perl installed against 5.005 but I would like to also > have it work with 5.6.1. How can I do this. > > I am using FreeBSD 4.4 Apac

Re: Trapping browser events

2002-04-11 Thread Jacob Elder
On Tue, Apr 09, 2002 at 11:13:09AM +0100, Martin Harriss wrote: > I am using Embperl on an intranet system to perform complex database > searches and display the results. > > My problem is that, depending on the parameters given by the user, some > searches can take some time - returning thousa

installing mod_perl against a different perl installation

2002-04-11 Thread Mike Loiterman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have two versions of perl installed 5.005 and 5.6.1. I currently only have mod_perl installed against 5.005 but I would like to also have it work with 5.6.1. How can I do this. I am using FreeBSD 4.4 Apache 1.13.22_4 and mod_perl 1.26 Mike Loi

Re: libperl.so vs mod_perl.so

2002-04-11 Thread Doug Silver
Ryan - I upgraded to perl 5.6 and when I built mod_perl it used the right one, I would guess that it would only build it against 5.0 if you didn't run the `use.perl {port,system}` script that comes with perl 5.6. The last time I read about loadable modules vs compiled said that the loadable rout

Re: libperl.so vs mod_perl.so

2002-04-11 Thread Doug Silver
Hi Mike - I have the same setup. You should see something like this: $ egrep -i perl httpd.conf LoadModule perl_modulelibexec/apache/libperl.so AddModule mod_perl.c # apachectl graceful # tail /www/logs/error.log [Thu Apr 11 14:53:31 2002] [notice] Apache/1.3.22 (Unix) mod_perl/1.26

Problems with 1.99_01 build when ap_prefix has blanks (Win32)

2002-04-11 Thread Alessandro Forghieri
Greetings. I found that building with MP_AP_PREFIX="D:\Program Files\Apache2" is problematic. The build process chokes first in TestConfigParse: D:\Program Files\Apache2/bin/Apache.exe -l failed: Bad file descriptor at Apache-Test/lib/Apache/TestConfig.pm line 777, chunk 1. If this is fixed

banner system

2002-04-11 Thread Maarten Stolte
Hello, before i invent the wheel for the xth time, can someone tell me wether there is an (opensource) banner management system in modperl (MASON?). regards, Maarten

How to reload module in all Apache children.

2002-04-11 Thread pater
Hi folks,   I was wondering if there is a possibility to reload perl module (and I want reloaded module in all Apache children processes) by running reload-program once.   For example Apache::Reload must be set as PerlInitHandler, so it's handler method is run every time request comes to Apa

Re: Content management systems

2002-04-11 Thread Marc Spitzer
On Tue, 09 Apr 2002 10:17:00 -0400 Aaron Ross <[EMAIL PROTECTED]> wrote: > > > > > > >For community sites, use Slash - the engine behind slashdot > > >(http://www.slashcode.com) - there's even a book about it. > > > > You should also check out scoop (http://scoop.kuro5hin.org/), the engine > >

Trapping browser events

2002-04-11 Thread Martin Harriss
I am using Embperl on an intranet system to perform complex database searches and display the results. My problem is that, depending on the parameters given by the user, some searches can take some time - returning thousands of rows, and there is a danger that the user will hit the stop button

Re: keeping client images private

2002-04-11 Thread Todd Goldenbaum
I keep a unique 'filestamp' in the database under each customer-- a 32-digit randomly-generated number that then can be used either as a part of image filenames, or as a directory name which contains a customer's images. That way, in order for one customer to see another's images, they'd either

Re: libperl.so vs mod_perl.so

2002-04-11 Thread Ryan Parr
As a fellow FreeBSD user (4.5) I recommend building Apache and mod_perl from source. The ports version builds against the default Perl version (5.005), even if you upgrade. Therefore, that's all you get in your mod_perl. Also, it's a good idea to compile mod_perl into Apache, at least, that's what

Re: how to make apache server to understand the perl commands inhttpsd.conf

2002-04-11 Thread Ged Haywood
Hi there, On Thu, 11 Apr 2002, Mrajesh wrote: > So, to run both the codes, we included the commands like > > PerlSetvar MasonCompRoot /usr/local/apache/htdocs > PerlSetVar MasonDataDir /usr/local/apache/mason > PerlModule HTML::Mason::ApacheHandler > > in httpsd.conf file. > > Now, when we a

Re: libperl.so vs mod_perl.so

2002-04-11 Thread Ged Haywood
Hi there, On Thu, 11 Apr 2002, Mike Loiterman wrote: > -BEGIN PGP SIGNED MESSAGE- There's really no need for all this... :) > but there is no entry for LoadModule /libexec/apache/mod_perl.so That's because mod_perl.so doesn't exist. > There is a an entry for libperl.so and there is a

Re: Challenging things to do: SIGSEGV catcher and backtrace extractor

2002-04-11 Thread Daniel Jacobowitz
On Fri, Apr 12, 2002 at 02:09:44AM +0800, Stas Bekman wrote: > Doug MacEachern wrote: > >On Fri, 12 Apr 2002, Stas Bekman wrote: > > > > > >>If you read the rest of the post I mention it (without telling the name > >>:). The problem with this module is that it's useful only after you have > >>t

Storable and Class::MethodMaker under mod_perl

2002-04-11 Thread Matthew Pressly
I ran into a strange inconsistency in interaction between Storable and Class::MethodMaker between a development and production server that are both running builds of perl, mod_perl, and apache from the same source files. On the development server, the following code executes without error, on

RE: OPEN3

2002-04-11 Thread Vuillemot, Ward W
Anyone familar with the following 2 errors? They are related to each other. Any clues appreciated. [error] open3: Can't call method "close" on an undefined value at C:/Perl/lib/IPC/Open3.pm line 327, <_GEN_0> line 154. [error] [client 127.0.0.1] [libapreq] remove error on 'C:\WINNT\TEMP\apreq15'

libperl.so vs mod_perl.so

2002-04-11 Thread Mike Loiterman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Using FreeBSD 4.4 STABLE, apache-1.13.22_4, mod_perl-1.26 I had apache installed via its port, but I needed to use mod_perl. So, it was my understanding that one can cd /usr/ports/mod_perl and do a make && make install to install mod_perl into an

Re: Challenging things to do: SIGSEGV catcher and backtrace extractor

2002-04-11 Thread Mark P. Fister
On Thu, Apr 11, 2002 at 05:21:24PM -0400, Kevin A. McGrail wrote: > > Date: Fri, 12 Apr 2002 00:24:11 +0800 > > To: [EMAIL PROTECTED] > > From: Stas Bekman <[EMAIL PROTECTED]> > > Subject: Challenging things to do: SIGSEGV catcher and backtrace extractor > > Message-ID: <[EMAIL PROTECTED]> > > > >

mod_perl Cook Book

2002-04-11 Thread Rasoul Hajikhani
Folks, I got my mp cb last night and it looks like a good read. Thanks to all of you who responded and recommended the book. -r

Challenging things to do: SIGSEGV catcher and backtrace extractor

2002-04-11 Thread Kevin A. McGrail
> Date: Fri, 12 Apr 2002 00:24:11 +0800 > To: [EMAIL PROTECTED] > From: Stas Bekman <[EMAIL PROTECTED]> > Subject: Challenging things to do: SIGSEGV catcher and backtrace extractor > Message-ID: <[EMAIL PROTECTED]> > > A few moons ago we have discussed on the dev list a tool for automatic > segfau

RE: [ModPerl causing segfaults]

2002-04-11 Thread Drew Wymore
Thank you Doug this appears to have cleaned up the situation very nicely. :) Drew -Original Message- From: Doug MacEachern [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 10:26 AM To: Drew Wymore Cc: [EMAIL PROTECTED] Subject: Re: [ModPerl causing segfaults] sounds like the l

Re: Challenging things to do: SIGSEGV catcher and backtrace extractor

2002-04-11 Thread Doug MacEachern
On Fri, 12 Apr 2002, Stas Bekman wrote: > You can get a backtrace if you run the process under debugger without > dumping a core file. No special setup required. I was thinking to attach > the debugger on SIGSEGV event. Is it too late? I see certain gnome apps > failing and they ask you if yo

Re:Apache::ServerUtil pb in modperl2

2002-04-11 Thread pascal barbedor
> How I built it on Win32, after building and installing httpd-2 to > C:\Apache2, is > > perl Makefile.PL MP_AP_PREFIX=C:\Apache2 MP_GENERATE_XS=1 > nmake > nmake install > > > On Win32 there were some problems for me in running the tests via > 'nmake test'; some Apache2 modules needed to be ad

Re: Challenging things to do: SIGSEGV catcher and backtrace extractor

2002-04-11 Thread Stas Bekman
Doug MacEachern wrote: > On Fri, 12 Apr 2002, Stas Bekman wrote: > > >>If you read the rest of the post I mention it (without telling the name >>:). The problem with this module is that it's useful only after you have >>the core file. which is not good, because (as I've already explained): >

Re: [Fwd: Re: How to reload PERL module in all Apache children]

2002-04-11 Thread dougm
On Thu, 11 Apr 2002, Perrin Harkins wrote: > Does it look you'll be able to get the solar variables idea to work for > those data types? i had a simple prototype way back that sorta worked for simple scalars, probably won't take it any further now that there is threads::shared in 5.7.x. hav

Re: [Fwd: Re: How to reload PERL module in all Apache children]

2002-04-11 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: > On Fri, 12 Apr 2002, Stas Bekman wrote: > > >>But if talk about futuristic Solar variables (perl globals shared >>between threads). what if a solar variable is a reference to CODE? Can >>this be shared? If so, will reloading this variable in one interpreter >>affec

Re: [ModPerl causing segfaults]

2002-04-11 Thread Doug MacEachern
sounds like the largefiles issue, you should have seen this warning during the build: Your Perl is uselargefiles enabled, but Apache is not, suggestions: *) Rebuild mod_perl with Makefile.PL PERL_USELARGEFILES=0 *) Rebuild Apache with CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"

Re: apxs to build modperl2

2002-04-11 Thread Doug MacEachern
On Thu, 11 Apr 2002, Randy Kobes wrote: > perl Makefile.PL MP_AP_PREFIX=C:\Apache2 MP_GENERATE_XS=1 note that MP_GENERATE_XS=1 is the default, no need to specify it anymore. >PerlSwitches -Mblib=C:\Apache2 or: PerlModule Apache2

Re: [Fwd: Re: How to reload PERL module in all Apache children]

2002-04-11 Thread dougm
On Fri, 12 Apr 2002, Stas Bekman wrote: > But if talk about futuristic Solar variables (perl globals shared > between threads). what if a solar variable is a reference to CODE? Can > this be shared? If so, will reloading this variable in one interpreter > affect others? even if that would wo

Re: apxs to build modperl2

2002-04-11 Thread Randy Kobes
On Thu, 11 Apr 2002, Stas Bekman wrote: > pascal barbedor wrote: > >>Also try building from scratch and see if 'make test' passes for you. > > > > >That would be the best help, instead of trying to use pre-compiled > > >binaries at this point. > > > > > > there is no apxs built after compiling

Re: Challenging things to do: SIGSEGV catcher and backtrace extractor

2002-04-11 Thread Doug MacEachern
On Fri, 12 Apr 2002, Stas Bekman wrote: > If you read the rest of the post I mention it (without telling the name > :). The problem with this module is that it's useful only after you have > the core file. which is not good, because (as I've already explained): it's important to mention Devel

[ModPerl causing segfaults]

2002-04-11 Thread Drew Wymore
I built apache using mod_perl as a DSO module. When I start apache and someone attempts to access my website, it works but only for an instant and then they receive “page cannot be displayed”, but only with html documents, php docs show up fine. When I looked into my logs this what I found

Re: Challenging things to do: SIGSEGV catcher and backtrace extractor

2002-04-11 Thread Stas Bekman
Doug MacEachern wrote: > On Fri, 12 Apr 2002, Stas Bekman wrote: > > >>A few moons ago we have discussed on the dev list a tool for automatic >>segfault detection (including multiple segfaults during 'make test') and >>core backtrace generation. I'm quite frankly tired of explaining again >>a

Re: [Fwd: Re: How to reload PERL module in all Apache children]

2002-04-11 Thread Stas Bekman
[EMAIL PROTECTED] wrote: > if you use Apache::Reload with a threaded MPM and multiple interpreters, > the modules will be reloaded by each interpreter as they are used, not > every interpreter all at once. similar to 1.x where each child has > its own interpreter, the modules are reloaded as e

Re: Challenging things to do: SIGSEGV catcher and backtrace extractor

2002-04-11 Thread Doug MacEachern
On Fri, 12 Apr 2002, Stas Bekman wrote: > A few moons ago we have discussed on the dev list a tool for automatic > segfault detection (including multiple segfaults during 'make test') and > core backtrace generation. I'm quite frankly tired of explaining again > and again that we need a core f

Challenging things to do: SIGSEGV catcher and backtrace extractor

2002-04-11 Thread Stas Bekman
A few moons ago we have discussed on the dev list a tool for automatic segfault detection (including multiple segfaults during 'make test') and core backtrace generation. I'm quite frankly tired of explaining again and again that we need a core file backtrace, how to get the core file dumped a

Re: [Fwd: Re: How to reload PERL module in all Apache children]

2002-04-11 Thread dougm
if you use Apache::Reload with a threaded MPM and multiple interpreters, the modules will be reloaded by each interpreter as they are used, not every interpreter all at once. similar to 1.x where each child has its own interpreter, the modules are reloaded as each kid is hit with a request.

Re: How to reload PERL module in all Apache children

2002-04-11 Thread Stas Bekman
Sreeji K Das wrote: > Hi Stas, > > >>>I was wondering if there is a possibility to >> >>reload PERL module compiled >> >>>into Apache >>>with Apache::Registry >>>(and I want to reload this module in all Apache >> >>children processes) by running reload-program once. >> >>Currently Apache::Relo

Re: How to reload PERL module in all Apache children

2002-04-11 Thread Sreeji K Das
Hi Stas, > > I was wondering if there is a possibility to > reload PERL module compiled > > into Apache > > with Apache::Registry > > (and I want to reload this module in all Apache > children processes) by running reload-program once. > > Currently Apache::Reload or its equivalent your only >

Re: How to reload PERL module in all Apache children

2002-04-11 Thread Stas Bekman
Waldek Grudzien wrote: > Hello, > > I was wondering if there is a possibility to reload PERL module compiled > into Apache > with Apache::Registry > (and I want to reload this module in all Apache children processes) by > running reload-program once. > > For example Apache::Reload must be set a

Re: alarms

2002-04-11 Thread Perrin Harkins
Damyan Ivanov wrote: > OK, but I am really curious. What really happens if I intentionally set > the alarm to ring after the request has finished? For example if I want > something to hapen if apache child is idle for more than 15 minutes. Try it. Most likely it will run the alarm, but will inte

[MASON] RE: Errors on Mason

2002-04-11 Thread Nicolai Schlenzig (DXD)
Hi, For what it's worth I don't have the ::ApacheHandler appended, like: SetHandler perl-script PerlHandler HTML::Mason And before this I have: PerlRequire /usr/local/www_sites/mason_handler.pl I don't use *.html or whatever because I like not having extensions on my files. Also

mod_perl and DB2

2002-04-11 Thread David Shrewsbury
Hey gang. Couldn't find an answer to this in the archives. We have a DB2 database that we access via mod_perl scripts. We have been getting errors in the Apache log files every morning whenever we first try to access the database. The error is: [Thu Apr 11 09:09:49 2002] null: DBD::DB2::db

Errors on Mason

2002-04-11 Thread Mrajesh
Hi, We have installed modperl-enabled ssl-enabled  apache server. And we are able to start the https server successfully.( by running    ./httpsdctl start ). . But, when we are sending a https request to the server, it is displaying as "Internal Server Error" on Browser. As we observed the apach

How to reload PERL module in all Apache children

2002-04-11 Thread Waldek Grudzien
Hello, I was wondering if there is a possibility to reload PERL module compiled into Apache with Apache::Registry (and I want to reload this module in all Apache children processes) by running reload-program once. For example Apache::Reload must be set as PerlInitHandler, so it's handler method

Re: apxs to build modperl2

2002-04-11 Thread Stas Bekman
pascal barbedor wrote: >>Also try building from scratch and see if 'make test' passes for you. > > >That would be the best help, instead of trying to use pre-compiled > >binaries at this point. > > > there is no apxs built after compiling httpd-2.0.35 sources > I have built everything under

apxs to build modperl2

2002-04-11 Thread pascal barbedor
>Also try building from scratch and see if 'make test' passes for you. >That would be the best help, instead of trying to use pre-compiled >binaries at this point. there is no apxs built after compiling httpd-2.0.35 sources I have built everything under win2k , and don't find apxs does anyo

How to cancel AccelNoPass in mod_accel

2002-04-11 Thread Philip Mak
Does anyone know how I can cancel AccelNoPass in mod_accel? I have the following configuration in httpd.conf: AccelNoPass ~\*.cgi$ ~\*.html$ ProxyPass / http://localhost:8001/ ... I want to make it so that inside the VirtualHost container, ~\*.cgi will not be in AccelNoPass. (The reason I ha

how to make apache server to understand the perl commands in httpsd.conf

2002-04-11 Thread Mrajesh
Hi, We are working on apache-ssl(https). /usr/local/apache/bin/httpsdctl start is working with out any perl related commands in httpsd.conf file. We have used apache_1.3.12, openssl-9.5a,apache_1.3.12+ssl-1.40 for FreeBSD 4.1 system. Our html files include both html code and perl code. So, t

Re: Apache::ServerUtil pb in modperl2

2002-04-11 Thread Stas Bekman
pascal barbedor wrote: > Hi thanks for preceeding answer > > I had missed this doc. > > I have a problem with Apache::ServerUtil though : > > when using $s->dir_config('some') i have this message (and apache segfaults) can you get a backtrace and send here? Also try building from scratch and

Apache::ServerUtil pb in modperl2

2002-04-11 Thread pascal barbedor
Hi thanks for preceeding answer I had missed this doc. I have a problem with Apache::ServerUtil though : when using $s->dir_config('some') i have this message (and apache segfaults) : "Attempt to free unreferenced scalar at .. line 17" i have installed modperl through ppd, so have not the t/r

Re: alarms

2002-04-11 Thread Stas Bekman
Damyan Ivanov wrote: > On Thu, Apr 11, 2002 at 12:30:53AM +0800 Stas Bekman wrote: > >>mire wrote: >> >>>I wish to know 2 things about mod_perl >>> >>>1) what happens when you set an alarm for lets say 30 seconds and the >>>request >>>finishes in 20 ? Since apache child is very likely still aliv