cvs commit: modperl-2.0/t/response/TestModules cgi.pm cgiupload.pm

2002-04-11 Thread stas
stas02/04/11 04:08:45 Modified:t/filter/TestFilter api.pm buckets.pm input_body.pm input_msg.pm lc.pm reverse.pm t/hooks/TestHooks access.pm authen.pm authz.pm fixup.pm headerparser.pm init.pm trans.pm

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 alive is mod_perl too ?

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$ VirtualHost ... ProxyPass / http://localhost:8001/ ... /VirtualHost I want to make it so that inside the VirtualHost container, ~\*.cgi will not be in

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

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 see if

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,

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

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 as

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 solution.

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::Reload or its equivalent your

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: [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 each

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

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 work,

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 affect others?

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

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.

[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

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

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

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: [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: 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): it's

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 added to be

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: 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 you

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

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 segfault

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 the core file.

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

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

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 runningreload-program once. For example Apache::Reload must be set as PerlInitHandler, so it's handler method is run every time request comes to

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, DATA chunk 1. If this is

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: 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 are

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

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 that runs

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

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

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

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

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 Apache

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 time -

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]

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