Re: mod_perl2: 304 (not modified) and custom headers

2014-11-12 Thread Alexandr Evstigneev
Sorry about my mails, i'm newbie with that. Don't know, why auto-reporter missed important info, but: Server Version: Apache/2.2.29 (FreeBSD) mod_perl/2.0.8 Perl/v5.20.1 Apache works with worker-mpm And seems that libapreq2 was not installed, so no Apache2::Request 2014-11-12 21:48 GMT+03:00 A

Re: mod_perl2: 304 (not modified) and custom headers

2014-11-12 Thread Alexandr Evstigneev
Made a test script: = #!/usr/bin/perl use Apache2::RequestUtil; my $request = Apache2::RequestUtil->request; $request->headers_out->add('Testheader' => 'Testvalue'); $request->err_headers_out->add('TestheaderErr' => 'TestvalueErr'); $request->status(304); return 304

Re: mod_perl2: 304 (not modified) and custom headers

2014-11-12 Thread Adam Prime
Please send your responses to the list, not just me. It looks like this was broken in apache itself prior to 2.2.0. see: https://issues.apache.org/bugzilla/show_bug.cgi?id=18388 Your bug report doesn't include your apache version though, so i'm not sure that this is related to your problem or

Re: mod_perl2: 304 (not modified) and custom headers

2014-11-12 Thread Adam Prime
Can we see the code you're running into this issue with? It sounds like confusion between $r->headers_out and $r->err_headers_out to me. Adam On 14-11-12 05:09 AM, Alexandr Evstigneev wrote: 1. Problem Description: It seems, that if I set status to 304, all custom headers being ignored and n

Re: mod_perl2 on Solaris 10 (01/2013, x86) with Apache 2.4.9 and Perl 5.20.0

2014-07-30 Thread Randolf Richardson
like pkgin lately.) > Thanks, > Luca > > -Original Message- > From: Randolf Richardson [mailto:rand...@modperl.pl] > Sent: martedì 29 luglio 2014 01:17 > To: modperl@perl.apache.org > Subject: Re: mod_perl2 on Solaris 10 (01/2013, x86) with Apache 2.4.9 and > Perl

RE: mod_perl2 on Solaris 10 (01/2013, x86) with Apache 2.4.9 and Perl 5.20.0

2014-07-30 Thread MERELLO LUCA
, Luca -Original Message- From: Randolf Richardson [mailto:rand...@modperl.pl] Sent: martedì 29 luglio 2014 01:17 To: modperl@perl.apache.org Subject: Re: mod_perl2 on Solaris 10 (01/2013, x86) with Apache 2.4.9 and Perl 5.20.0 > I've always found I have to build apr, apr-util

Re: mod_perl2 on Solaris 10 (01/2013, x86) with Apache 2.4.9 and Perl 5.20.0

2014-07-28 Thread John D Groenveld
I just tried httpd-2.4.10 under the Illumos distro, OmniOS, builds fine. $ bzip -dc httpd-2.4.10-deps.tar.bz2|tar xf - $ bzip -dc httpd-2.4.10.tar.bz2|tar xf - $ env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/gcc-4.8.1/bin:/usr/sfw/bin \ CC=gcc CFLAGS="-m64 -O3" LDFLAGS="-m64" \ ./configure --with-e

Re: mod_perl2 on Solaris 10 (01/2013, x86) with Apache 2.4.9 and Perl 5.20.0

2014-07-28 Thread Randolf Richardson
> I've always found I have to build apr, apr-util and apr-iconv separately > first if I am building mod_perl from scratch. You might try that, then build > Apache using --with-apr, --with-apr-util and --with-apr-iconv args, then > build mod_perl using MP_APR_CONFIG and see if you get past that.

RE: mod_perl2 on Solaris 10 (01/2013, x86) with Apache 2.4.9 and Perl 5.20.0

2014-07-28 Thread Mark Hedges
I've always found I have to build apr, apr-util and apr-iconv separately first if I am building mod_perl from scratch. You might try that, then build Apache using --with-apr, --with-apr-util and --with-apr-iconv args, then build mod_perl using MP_APR_CONFIG and see if you get past that. Mark

Re: mod_perl2 memory problem

2013-01-19 Thread Fred Moyer
On Sat, Jan 19, 2013 at 12:45 PM, Idel Fuschini wrote: > Hi all, > I have compiled apache webserver with this configuration: > > ./configure --prefix=/foo/apache-2.2.23-worker-1st --enable-modules=all > --enable-mods-shared=all --disable-ipv6 --enable-ssl > --with-ssl=/foo/openssl-1.0.1c --enable-

Re: Mod_Perl2 getting started

2012-08-22 Thread Randolf Richardson
anyone else who would find it interesting, you're more than welcome to share a link to it with them. My main concern is that I want to see more people using ModPerl 2. > Joe N > > -Original Message- > From: Randolf Richardson > Sent: Tuesday, August 21, 2012 5:13 PM &g

Re: Mod_Perl2 getting started

2012-08-22 Thread Keywan Ghadami
Hi Joe, have also a look at Frameworks and Interfaces like PSGI or Catalyst. They provide a more generic way to do these things: "parsed request, handles args as querystrings and Post data, uploads a file or two, and returns an html page to the requestor" that way you can use mod_perl in the b

Re: Mod_Perl2 getting started

2012-08-21 Thread Randolf Richardson
> Hi, > I´m finding the online documentation regarding mod_perl2 confusing > with regards to all the various modules dealing with request structures etc: > APR::Request, Apache2::Request, Apache2::RequestRec, Apache2::Upload, > etc. > Does anyone know of a tutorial or example code that sorts these

Re: Mod_Perl2 getting started

2012-08-21 Thread joe
-Original Message- From: Fred Moyer Try this link: http://perl.apache.org/docs/2.0/user/intro/start_fast.html -- Yes, thanks - I've read that. -Original Message- From: Fred Moyer For handling POST data you will likely want to install libapreq2, which i

Re: Mod_Perl2 getting started

2012-08-21 Thread Jordan Michaels
I'd recommend the book: http://www.amazon.com/Writing-Apache-Modules-Perl-C/dp/156592567X It's a bit old but many of the topics in it are still relevant and useful. Plus, with it being so old, you can get used copies of it very affordably. Hope this helps! Warm Regards, Jordan Michaels On 0

Re: Mod_Perl2 getting started

2012-08-21 Thread Fred Moyer
Try this link: http://perl.apache.org/docs/2.0/user/intro/start_fast.html For handling POST data you will likely want to install libapreq2, which is basically the equivalent of CGI: http://search.cpan.org/dist/libapreq2/ use Apache2::Request; $req = Apache2::Request->new($r); @foo = $r

Re: [mod_perl2]: Install error with Makefile.PL - uninitialized value at TestRun.pm

2012-07-25 Thread Susan
yes thank you, but I am not using threads! my dev server is already kind of low on memory all the time.. but I will save this for future reference, thanks! On 2012-07-25 15:16, Daniel Boerner wrote: > Responding to Susan (about not a static build with large file support, thread support...)

Re: [mod_perl2]: Install error with Makefile.PL - uninitialized value at TestRun.pm

2012-07-25 Thread Daniel Boerner
Responding to Susan (about not a static build with large file support, thread support...) here my perl5 -V: Summary of my perl5 (revision 5 version 14 subversion 2) configuration: Platform: osname=linux, osvers=2.6.32-5-amd64, archname=x86_64-linux-thread-multi uname='linux oak 2.6.32-5

Re: [mod_perl2]: Install error with Makefile.PL - uninitialized value at TestRun.pm

2012-07-16 Thread Susan
Ok. I finally got it to glue together with apache 2.2.22, perl 5.14.2, and mod_perl 2.0.7. The perl can probably be upgraded to newest. However, mod_perl 2.0.7 will NOT do a static build (as daniel states below, tho that looks real good otherwise) with large file support enabled and no perl th

Re: [mod_perl2]: Install error with Makefile.PL - uninitialized value at TestRun.pm

2012-07-15 Thread André Warnier
Daniel Boerner wrote: Hi Fred, Hi Todd I just subscribed to this list and still don't know how to link my message to your thread from July 10th. Sorry. I just want to show you my workaround of the same problem: "Install error with Makefile.PL - uninitialized value at TestRun.pm" Here my proceedi

Re: mod_perl2 and Perl 5.14 with uselargefiles on 32-bit architectures

2011-10-23 Thread Torsten Förtsch
On Sunday, 23 October 2011 00:12:13 Marco Walther wrote: > As I said above, I checked for the Apache version, but a check for > APR version would probably be better. If you think there is a problem in modperl and you resolved it could you please provide a patch against trunk? Chances that it wou

Re: mod_perl2 and Perl 5.14 with uselargefiles on 32-bit architectures

2011-10-22 Thread Marco Walther
On 10/22/2011 11:08 AM, Niko Tyni wrote: On Wed, Sep 28, 2011 at 02:22:49PM -0700, Marco Walther wrote: OK, I think I found one problem. The following two defines don't make it from the Perl make to the CCFLAGS for the mod_perl:-( `-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' (They are automatic

Re: mod_perl2 and Perl 5.14 with uselargefiles on 32-bit architectures (was: Early core dump)

2011-10-22 Thread Niko Tyni
On Wed, Sep 28, 2011 at 02:22:49PM -0700, Marco Walther wrote: > OK, I think I found one problem. The following two defines don't > make it from the Perl make to the CCFLAGS for the mod_perl:-( > `-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' (They are automatically > added by the Configure for perl

Re: mod_perl2 memory growth after restart of Apache

2011-07-15 Thread Fred Moyer
On Fri, Jul 15, 2011 at 1:54 PM, ChristoDeluxe wrote: > This is the case that I'm seeing (Apache/2.2.19 (FreeBSD 8.0) mod_perl/2.0.5 > Perl/v5.8.9) where for every time I run apachectl restart, it leaks a few MB > of RAM into the parent process and thus into all the children too.  The size > of t

Re: mod_perl2 memory growth after restart of Apache

2011-07-15 Thread Perrin Harkins
On Fri, Jul 15, 2011 at 4:54 PM, ChristoDeluxe wrote: > Looking in the archives, I see people (mostly back a few years) saying that > people should not use "apachectl restart" or "apachectl graceful" (or > sending the HUP signal) to restart Apache since it leaks memory. That was the case in the p

Re: mod_perl2 + fork + DBI = Chaos

2010-01-27 Thread Perrin Harkins
On Wed, Jan 27, 2010 at 8:22 AM, Tosh Cooey wrote: > In case anyone else is ever in the same situation I would like to tell them > that mod_perl(1|2) + fork = bad idea, and don't even THINK about throwing > DBI into the mix. I don't want people to think this doesn't work. It does work, and has b

Re: mod_perl2 + fork + DBI = Chaos

2010-01-27 Thread Tosh Cooey
Just to tie this thread up... In case anyone else is ever in the same situation I would like to tell them that mod_perl(1|2) + fork = bad idea, and don't even THINK about throwing DBI into the mix. For me in the future, if I have a VERY long task I will externalize it, and if I have brief bu

Re: mod_perl2 + fork + DBI = Chaos

2010-01-26 Thread Tosh Cooey
On a FYI level the following works: #!/usr/bin/perl use strict; use Apache2::Const();# defines OK use Apache2::Log();# defines warn use Apache2::RequestUtil();# defines push_handlers my $r = shift; $r->push_handlers(PerlCleanupHandler => \&cleanup); print "Content-type: t

Re: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread mackenna
at(1) is a Unix command to start a process. Assuming you're on a Unix/Linux box, type "man at" to get the story. A cleanup handler is more pleasant than a prostate exam. You can spend your life waiting for others. Just write a routine called "cleanup" and have it do something like make a log en

Re: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread Tosh Cooey
Sorry, I couldn't figure out what at(1) meant (or maybe ap(1) which you say below) is that an abbreviation for something? And Perrin saying "cleanup handler" is right up there with "prostate exam" in my list of things to get into, both scare me! Of course at some point a man needs to do both.

Re: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread mackenna
You made no comment on the links I sent you earlier today. They had lots of good advice. Particularly the first one suggested not forking the Apache process, but using an ap(1) call to start a process to do the additional processing. OK, the ap(1) alternative was a bit light on details. How abo

Re: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread Tosh Cooey
Ok, then maybe I need to supply some code here to try and get clarification: mailfile.pl ### use strict; ... use POSIX; #gather needed modules and objects my $fileOBJ = new MyOBJS::FILE($in->param('id')); my $clientOBJ = new ... my $userOBJ = new ... # All OBJjects have a {DBH} property

Re: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread Perrin Harkins
On Mon, Jan 25, 2010 at 3:48 PM, Tosh Cooey wrote: > Thanks Perrin, the forking, my child got a PID of 30033 and then afterwards > when I checked the processes (ps) for 30033 I see: > > [apache2] > > Is that what's supposed to happen? After you call exit? No. It should be gone. That's a zombi

Re: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread Tosh Cooey
Perrin Harkins wrote: On Mon, Jan 25, 2010 at 2:41 PM, Tosh Cooey wrote: Just to follow up on this before anyone spends any time caring about it, the seg faults could also be because one of the zombie apache2 processes I've spawned like a Gremlin is answering the request and well... I don't t

Re: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread Perrin Harkins
On Mon, Jan 25, 2010 at 2:41 PM, Tosh Cooey wrote: > Just to follow up on this before anyone spends any time caring about it, the > seg faults could also be because one of the zombie apache2 processes I've > spawned like a Gremlin is answering the request and well... I don't think so. That's not

Re: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread Tosh Cooey
Just to follow up on this before anyone spends any time caring about it, the seg faults could also be because one of the zombie apache2 processes I've spawned like a Gremlin is answering the request and well... So, if I've done the fork properly and pretend I have apache PIDs 1..10 running, an

Re: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread Michael Peters
On 01/25/2010 02:12 PM, Tosh Cooey wrote: Just to make things stranger, after I make a fork and things don't happen the way I expect them, subsequent calls to other programs running under mod_perl are generating Segmentation Faults. This could be due to the fact that the server is running in Eur

Re: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread Tosh Cooey
I wish I could do SQL before the fork, but I need to update tables with results in the forks. Just to make things stranger, after I make a fork and things don't happen the way I expect them, subsequent calls to other programs running under mod_perl are generating Segmentation Faults. This cou

Re: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread mackenna
Have you been through these threads already? The first one seems quite like what you're doing. http://mail-archives.apache.org/mod_mbox/perl-modperl/200908.mbox/% 3c59a07310908250820m1f789901g22eece5b2897c...@mail.gmail.com%3e http://www.gossamer-threads.com/lists/modperl/modperl/100099 Is the

Re: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread Tosh Cooey
Sorry, I forgot to mention I checked InactiveDestroy as well, but since my parent sends a 302 redirect to the browser right away and nothing else is done in the parent I don't think that's the culprit. Thanks for reminding me! Tosh Dami Laurent (PJ) wrote: -Message d'origine- De

RE: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread Dami Laurent (PJ)
>-Message d'origine- >De : Tosh Cooey [mailto:t...@1200group.com] >Envoyé : lundi, 25. janvier 2010 17:08 >À : modperl@perl.apache.org >Objet : mod_perl2 + fork + DBI = Chaos > >My application-from-hell is doing odd things probably related to the >above storms and culminating in a perf

Re: mod_perl2 per directory

2009-09-20 Thread Philip Blatter
Hey there, thanks for the information - i've read that already. I suggest to fix documentation on: http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_ There is an example with PerlInterpStart in an scope! regards, Philip macke...@animalhead.com wrote: On page http://perl.ap

Re: mod_perl2 per directory

2009-09-18 Thread mackenna
On page http://perl.apache.org/docs/2.0/user/config/ config.html#mod_perl_Directives_Argument_Types_and_Allowed_Location you can see the following line in the table that defines the scope of the various directives: PerlInterpStart TAKE1 SRV SRV means "server scope" which t

Re: mod_perl2 interactive startup

2009-08-26 Thread Perrin Harkins
On Tue, Aug 18, 2009 at 4:54 PM, wrote: > During the mod_perl2 startup this feature works fine at first but mod_perl2 > always does a restart and during the second restart STDERR is being > redirected to the log files and STDIN is ignored. I suggest stashing the data somewhere and picking it up d

Re: mod_perl2 interactive startup

2009-08-26 Thread Torsten Foertsch
On Tue 25 Aug 2009, ama...@solutionsforprogress.com wrote: > Unfortunately using restart_count does not address my issue. > > In the http.conf I have the following: > ... > PerlConfigRequire   conf/startup.pl > ... > > My test startup.pl has this: > >      our $INPUT; >      print STDERR "Input:";

Re: mod_perl2 interactive startup

2009-08-25 Thread amalek
Malloy - thanks for responding. Unfortunately using restart_count does not address my issue. In the http.conf I have the following: ... PerlConfigRequire conf/startup.pl ... My test startup.pl has this: our $INPUT; print STDERR "Input:"; $INPUT = ; print STDERR "you entered

Re: mod_perl2 with mod_dbd and Apache2

2009-02-13 Thread Perrin Harkins
On Fri, Feb 13, 2009 at 1:22 PM, Mark Hedges wrote: > Connection pooling is a cool idea but I don't know who's > made it work. I gave a couple of options earlier in this thread. - Perrin

Re: mod_perl2 with mod_dbd and Apache2

2009-02-13 Thread Mark Hedges
You'd probably want to use Apache::DBI in that case. I got the impression that you were maybe running under a threaded model with many children serving static content but sometimes opening DBI connections. Connection pooling is a cool idea but I don't know who's made it work. For example, `man

Re: mod_perl2 with mod_dbd and Apache2

2009-02-11 Thread Ivan Heffner
I realize that this response is months late, but this thread is only now coming to my attention due to another recent response. Still, I think you may have been trying to solve the wrong problem. Perhaps I'm missing a detail or two here, but you are running mod_perl. Perl processes live on beyond t

Re: mod_perl2 with mod_dbd and Apache2

2009-02-09 Thread earonesty
Timothy Partee wrote: > > > Quick question for the list. I've been scouring Google looking for > information on Connection Pooling to MySQL 5.0 in mod_perl2 on Apache2 > using mod_dbd or similar, and while I can find docs for configuring > mod_dbd in Apache2, and am quite familiar with

Re: mod_perl2 start one script twice

2008-10-22 Thread André Warnier
Second question about childs. I not fully understand, how childs work. In a little bit more details : When you start Apache, one single process is started. That's what you can call the "main" Apache. It reads and checks the configuration, and bombs out if anything is wrong. If nothing is wron

Re: mod_perl2 start one script twice

2008-10-22 Thread Foo JH
It's quite simple really. You're running 2 instances of the script. To retain the value of $counter, read up the mod_perl documentation for tips. CthuMP wrote: I have follow simple script: !#/usr/bin/perl print "Content-Type: text/html\n\n"; print "Counter: " . (++$counter) . "\n"; print tim

Re: mod_perl2 start one script twice

2008-10-22 Thread André Warnier
CthuMP wrote: CthuMP wrote: Starting that script twice in two different browser windows gives me same results. In second window I start script after some period (about 10 seconds) after first script started. First and Second scripts ends at the same time. I have solved that problem. If someo

Re: mod_perl2 start one script twice

2008-10-22 Thread Adam Prime
CthuMP wrote: I have follow simple script: !#/usr/bin/perl print "Content-Type: text/html\n\n"; print "Counter: " . (++$counter) . "\n"; print time(), "\n"; sleep(20); print time(), "\n"; Starting that script twice in two different browser windows gives me same results. In second window I st

Re: mod_perl2 start one script twice

2008-10-22 Thread CthuMP
CthuMP wrote: > > Starting that script twice in two different browser windows gives me same > results. In second window I start script after some period (about 10 > seconds) after first script started. First and Second scripts ends at the > same time. > I have solved that problem. If someone i

RE: mod_perl2 + ModPerl::RegistryPrefork + Test::Builder = segfault

2008-09-04 Thread Berg, Eric
> On Thu, Sep 4, 2008 at 6:58 PM, Berg, Eric > > When I say that Test::Builder/Test::More/etc. are tightly > > coupled, I'm talking really entwined. In some cases, we have created a > > class with a bunch of test-related methods that look through the symbol > > table and find methods that =~ m

Re: mod_perl2 + ModPerl::RegistryPrefork + Test::Builder = segfault

2008-09-04 Thread Perrin Harkins
On Thu, Sep 4, 2008 at 6:58 PM, Berg, Eric <[EMAIL PROTECTED]> wrote: > When I say that Test::Builder/Test::More/etc. are tightly coupled, I'm > talking really entwined. In some cases, we have created a class with a > bunch of test-related methods that look through the symbol table and > find meth

RE: mod_perl2 + ModPerl::RegistryPrefork + Test::Builder = segfault

2008-09-04 Thread Berg, Eric
ginal Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Perrin Harkins > Sent: Thursday, September 04, 2008 6:36 PM > To: Berg, Eric > Cc: modperl@perl.apache.org > Subject: Re: mod_perl2 + ModPerl::RegistryPrefork + > Test::Builder = segfault &

Re: mod_perl2 + ModPerl::RegistryPrefork + Test::Builder = segfault

2008-09-04 Thread Perrin Harkins
On Thu, Sep 4, 2008 at 6:09 PM, Berg, Eric <[EMAIL PROTECTED]> wrote: > Many of our core modules contain test methods that are executed during > our CVS checkin process as regression tests, so we'd have to completely > redo our regression testing architecture to decouple Test::Builder from > our co

Re: mod_perl2 with mod_dbd and Apache2

2008-08-27 Thread Philip M. Gollucci
Perrin Harkins wrote: In my opinion, yes. You'd have to write your own DBI, or a DBD driver that talks to mod_dbd. It would not be easy. Yeah were definitely missing the that APR::* XS glue for this, but its something I'm incredibly interested in. I just lack the time atm I think some ot

Re: mod_perl2 with mod_dbd and Apache2

2008-08-27 Thread Perrin Harkins
On Wed, Aug 27, 2008 at 5:15 AM, Timothy Partee <[EMAIL PROTECTED]> wrote: > Am I completely on the wrong track? In my opinion, yes. You'd have to write your own DBI, or a DBD driver that talks to mod_dbd. It would not be easy. > Is there > another more simple way to implement MySQL DBI connect

RE: mod_perl2 STDOUT question

2008-08-20 Thread Berg, Eric
e that these solutions will work for a threaded MPM either. Eric > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Perrin Harkins > Sent: Wednesday, August 20, 2008 12:47 PM > To: Niels Larsen > Cc: modperl@perl.apache.org > Subject: Re

Re: mod_perl2 STDOUT question

2008-08-20 Thread Perrin Harkins
On Wed, Aug 20, 2008 at 11:26 AM, Niels Larsen <[EMAIL PROTECTED]> wrote: > I can put > the command line to run in backticks and do print [EMAIL PROTECTED], and > that too works, but would like to use system, Proc::SafeExec, etc. To fork and capture output without backticks, you have to do somethi

Re: mod_perl2 STDOUT question

2008-08-20 Thread Jim Brandt
The system call forks a process and that process inherits the STDOUT from perl. So since your perl is the persistent interpreter in Apache, it would make sense that that's where most of the STDOUT messages will go. I'm not sure if there is a way to intercept the STDOUT of the forked process in

Re: mod_perl2 $Apache::Server::Starting

2008-08-10 Thread Perrin Harkins
On Sat, Aug 9, 2008 at 8:20 PM, Dondi M. Stroma <[EMAIL PROTECTED]> wrote: > Thanks, but I do not see how Apache2::ServerUtil::restarting() does the same > thing. The $Apache::Server::Starting and $Apache::Server::ReStarting are, > respectively, 1 and 0 during start, 0 and 1 during restart, and 0 a

Re: mod_perl2 $Apache::Server::Starting

2008-08-09 Thread Dondi M. Stroma
Perrin Harkins wrote: On Sat, Aug 9, 2008 at 5:19 PM, Dondi M. Stroma <[EMAIL PROTECTED]> wrote: What are the mod_perl 2 equivalents of $Apache::Server::Starting and $Apache::Server::ReStarting? http://perl.apache.org/docs/2.0/user/porting/compat.html#C__Apache__Server__Starting__and_C__Apache

Re: mod_perl2 $Apache::Server::Starting

2008-08-09 Thread Perrin Harkins
On Sat, Aug 9, 2008 at 5:19 PM, Dondi M. Stroma <[EMAIL PROTECTED]> wrote: > What are the mod_perl 2 equivalents of $Apache::Server::Starting and > $Apache::Server::ReStarting? http://perl.apache.org/docs/2.0/user/porting/compat.html#C__Apache__Server__Starting__and_C__Apache__Server__ReStarting_

RE: mod_perl2 newbie DBI question

2008-06-13 Thread Brian Gaber
Michael, Thank you very much for this valuable advice. Cheers. Brian -Original Message- From: Michael Peters [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 3:05 PM To: Brian Gaber Cc: Jim Brandt; modperl@perl.apache.org Subject: Re: mod_perl2 newbie DBI

Re: mod_perl2 newbie DBI question

2008-06-12 Thread David Kaufman
Hi Brian, "Brian Gaber" <[EMAIL PROTECTED]> wrote... my $region = param('region'); # ... my $sth = $dbh->prepare( "SELECT * FROM region_props WHERE region = '$region'" ); Works fine a few times and then: DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual t

Re: mod_perl2 newbie DBI question

2008-06-12 Thread Dodger
2008/6/12 Michael Peters <[EMAIL PROTECTED]>: > Brian Gaber wrote: >> # Determine MySQL locks table name >> my $sth = $dbh->prepare("SELECT * FROM region_props WHERE region = >> '$region'"); >> $sth->execute(); > Btw, this is *really* bad security wise. $region is coming straight from the > brows

Re: mod_perl2 newbie DBI question

2008-06-12 Thread Michael Peters
Brian Gaber wrote: > Is there anything useful in the Apache error log? Works fine a few > times and then > DBD::mysql::st execute failed: You have an error in your SQL syntax; > check the manual that corresponds to your MySQL server version for the > right syntax to use near '' at line 1 at > /us

RE: mod_perl2 newbie DBI question

2008-06-12 Thread Brian Gaber
eeing this in your development environment? Yes Can you reproduce the problem reliably? Yes Thanks. -Original Message- From: Jim Brandt [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 2:36 PM To: Michael Peters Cc: Brian Gaber; modperl@perl.apache.org Subject: Re: mod_perl2

Re: mod_perl2 newbie DBI question

2008-06-12 Thread Jim Brandt
Michael Peters wrote: Brian Gaber wrote: I have modified scripts to work in mod_perl2, but they don't work reliably. Sometimes they work and then they stop working and then I have to stop and start Apache to get it working again. "stop working" is really too generic a description

Re: mod_perl2 newbie DBI question

2008-06-12 Thread Michael Peters
Brian Gaber wrote: > I have modified scripts to work in mod_perl2, but they don't > work reliably. Sometimes they work and then they stop working and then > I have to stop and start Apache to get it working again. "stop working" is really too generic a description for anyone to really d

Re: mod_perl2: handle session without CGI::Session

2008-05-27 Thread Perrin Harkins
On Mon, May 26, 2008 at 10:48 PM, mome <[EMAIL PROTECTED]> wrote: > When passing Apache2::Request object to CGI::Session->new() as the following > > sub authen_handler{ > my $self = shift; > my $req = Apache2::Request->new($r); > my $session=CGI::Session->new(undef,$req,{Directory=> > $TMP_SESSIO

Re: mod_perl2: handle session without CGI::Session

2008-05-27 Thread Perrin Harkins
On Tue, May 27, 2008 at 4:08 AM, mome <[EMAIL PROTECTED]> wrote: > What do you means by " Either get the session ID > yourself and pass it to CGI::Session->new()"? > Does it mean I can simply create the session ID from any way eventhough > hardcode e.g. 23asfsdfw22456 and pass it? Your session ID

Re: mod_perl2 and Apache::SharedMem

2007-11-08 Thread Michael Peters
Boysenberry Payne wrote: >> But what if the module Module::Name "use" or "require" other modules? >> Are they also loaded before the server forks, or I need to load them >> with "PerlModule ..." in httpd.conf? > > Good question. I think it might depend on how the requires/uses are scoped > in th

Re: mod_perl2 and Apache::SharedMem

2007-11-08 Thread Boysenberry Payne
On Nov 8, 2007, at 1:07 PM, Octavian Rasnita wrote: From: "Boysenberry Payne" <[EMAIL PROTECTED]> What should I do if I want to load the classes after the server forks? There are many phases after the fork, the most commonly used is the PerlResponseHandler phase Do I understand correctly

Re: mod_perl2 and Apache::SharedMem

2007-11-08 Thread Octavian Rasnita
From: "Boysenberry Payne" <[EMAIL PROTECTED]> What should I do if I want to load the classes after the server forks? There are many phases after the fork, the most commonly used is the PerlResponseHandler phase Do I understand correctly that even the modules specified in httpd.conf with Perl

Re: mod_perl2 and Apache::SharedMem

2007-11-08 Thread Boysenberry Payne
t; Cc: "modperl List" Sent: Thursday, November 08, 2007 1:04 AM Subject: Re: mod_perl2 and Apache::SharedMem On Nov 7, 2007 5:50 PM, Boysenberry Payne <[EMAIL PROTECTED]> wrote: If I created some of my static hashes and objects during the PerlPostConfigHandler phase and added t

Preloading modules (was Re: mod_perl2 and Apache::SharedMem)

2007-11-07 Thread Fred Moyer
Octavian Rasnita wrote: Hi, Can you please tell me when the server forks? http://perl.apache.org/docs/2.0/user/handlers/server.html What should I do to load some classes before the server forks? http://perl.apache.org/docs/2.0/user/handlers/server.html#Startup_File > What should I do if I

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Octavian Rasnita
AIL PROTECTED]> To: "Boysenberry Payne" <[EMAIL PROTECTED]> Cc: "modperl List" Sent: Thursday, November 08, 2007 1:04 AM Subject: Re: mod_perl2 and Apache::SharedMem On Nov 7, 2007 5:50 PM, Boysenberry Payne <[EMAIL PROTECTED]> wrote: If I created

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
On Nov 7, 2007, at 5:05 PM, Michael Peters wrote: Boysenberry Payne wrote: If I created some of my static hashes and objects during the PerlPostConfigHandler phase and added them to either the configuration or log pools would that help me keep some of my memory shared, assuming I could get

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
On Nov 7, 2007, at 5:04 PM, Perrin Harkins wrote: On Nov 7, 2007 5:50 PM, Boysenberry Payne <[EMAIL PROTECTED]> wrote: If I created some of my static hashes and objects during the PerlPostConfigHandler phase and added them to either the configuration or log pools You're missing the big pict

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Michael Peters
Boysenberry Payne wrote: > If I created some of my static hashes and objects during the > PerlPostConfigHandler phase > and added them to either the configuration or log pools would that help > me keep > some of my memory shared, assuming I could get at either pool during the > PerlResponseHandler?

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Perrin Harkins
On Nov 7, 2007 5:50 PM, Boysenberry Payne <[EMAIL PROTECTED]> wrote: > If I created some of my static hashes and objects during the > PerlPostConfigHandler phase > and added them to either the configuration or log pools You're missing the big picture. Adding perl objects to a shared memory pool d

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
If I created some of my static hashes and objects during the PerlPostConfigHandler phase and added them to either the configuration or log pools would that help me keep some of my memory shared, assuming I could get at either pool during the PerlResponseHandler? Am I confusing lifetime scop

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
Other than for callbacks on destruction of memory pools what is APR::Pool useful for? -bop On Nov 7, 2007, at 1:56 PM, Perrin Harkins wrote: Don't use Apache::SharedMem. It uses IPC::ShareLite, which is slow. Does memcached or Cache::FastMap work with apache's shared memory pool? No, I

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Perrin Harkins
Don't use Apache::SharedMem. It uses IPC::ShareLite, which is slow. > Does memcached or Cache::FastMap work with apache's shared memory pool? No, I don't think anyone has ever gotten that to work. > In this situation if its possible (which it should be for my own > modules) I would like > the p

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
Am I looking for APR::Pool? -bop On Nov 7, 2007, at 12:41 PM, Boysenberry Payne wrote: On Nov 7, 2007, at 11:59 AM, Michael Peters wrote: Boysenberry Payne wrote: Is Apache::SharedMem working with mod_perl2 the "same" way it did with mod_perl1? Don't know, haven't used it. It hasn't

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
On Nov 7, 2007, at 11:59 AM, Michael Peters wrote: Boysenberry Payne wrote: Is Apache::SharedMem working with mod_perl2 the "same" way it did with mod_perl1? Don't know, haven't used it. It hasn't been updated since 2001, so either it's perfect and hasn't needed any changes or it's not

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Michael Peters
Boysenberry Payne wrote: > Is Apache::SharedMem working with mod_perl2 the "same" way it did with > mod_perl1? Don't know, haven't used it. It hasn't been updated since 2001, so either it's perfect and hasn't needed any changes or it's not being maintained. > Is Apache::SharedMem the "preferred"

Re: mod_perl2 compiling error

2007-08-23 Thread lists user
I could never install Apache2::Request successfully. I'm running RH Linux as4,2.6.9 kernel. 2007/8/23, Manoj Bist <[EMAIL PROTECTED]>: > Hi Jon, > > Which OS platform are you working on? > > On platforms like ubuntu linux you can get precompile packages for all > these modules. > You just need to

Re: mod_perl2 compiling error

2007-08-22 Thread Manoj Bist
Hi Jon, Which OS platform are you working on? On platforms like ubuntu linux you can get precompile packages for all these modules. You just need to do: sudo apt-get install . An option like this may already be available on your development platform. -Manoj. On 8/22/07, jónJósef Bjarnason <[EM

Re: mod_perl2 compiling error

2007-08-22 Thread jónJósef Bjarnason
Thanks. I had to compile Perl again, then mod_perl2. mod_perl works now, nothing else thoguh, Problems compiling DBI, DBD..etc. (MySql on a different machine) I´m getting therevery slowly. Thank you all for your time and help. Regards Jon Þann 8/22/2007, skrifaði "Manoj Bist" <[EMAIL

Re: mod_perl2 compiling error

2007-08-22 Thread Manoj Bist
In general to create a shared object the constituent object files should be PICable. Look for Makefile(s) which compile the individual source files. It would have a variable like 'CFLAGS'. Adding '-fPIC' to it should take care of it. On 8/21/07, jónJósef Bjarnason <[EMAIL PROTECTED]> wrote: > Wh

Re: mod_perl2 and SDBM-tied hashes

2007-08-02 Thread Brian Reichert
On Sun, Jul 29, 2007 at 03:42:19PM -0400, Jonathan Vanasco wrote: > any reason why you're using sdbm ? you might be better off with bdb, > since it has that shared memory cache feature. My initial experiements worked with SDBM, so I ran with it. :) I suppose I could re-rest with DB_File, if t

Re: mod_perl2 and SDBM-tied hashes

2007-08-02 Thread Brian Reichert
On Sun, Jul 29, 2007 at 01:49:56PM -0700, Perrin Harkins wrote: > The dbm implementation you're using will not always write everything > to disk until you untie it. To make this transparent, you can use > MLDBM::Sync, which unties and reties on every request. This is > necessary for read/write sh

Re: mod_perl2 and SDBM-tied hashes

2007-07-29 Thread Perrin Harkins
On 7/29/07, Brian Reichert <[EMAIL PROTECTED]> wrote: > The symptom I see that after a 'set', subsequent 'gets' show me > various results; sometimes the data comes back set, sometimes not. The dbm implementation you're using will not always write everything to disk until you untie it. To make thi

Re: mod_perl2 and SDBM-tied hashes

2007-07-29 Thread Jonathan Vanasco
On Jul 29, 2007, at 12:15 PM, Brian Reichert wrote: But, that contradicts the behavior I see with my command-line tool demo: distinct processes with distinct tied hashes can sucessfully share data through the sdbm. :/ any reason why you're using sdbm ? you might be better off with bdb,

  1   2   3   >