I found a pretty useful article at
http://www.linuxjournal.com/article.php?sid=4143 on how to use
Apache::Session with Mason. I followed the article, more or less, and
ended up with this bit of code in my handler.pl to tie() my $session
variable to an Apache::Session class:
eval {
tie %
I've been following this just at a high level, so if I'm posting a method
that you've already tried and dismissed please forgive me.
You can try forking followed by separating from the parent session. I
think that will help keep your program from getting killed when apache is
restarted or stopped.
Hi all...
Sorry about the previous message getting screwed up... Not sure what
happened...
I have a report generator program written in Perl that I need to start from
a CGI. The program takes about 15 minutes to run, so I must fork or double
fork. I have two goals:
1) Have no zombies when the pr
It is a warning Perl gives on strict, if variables have 0 values or are
NULL.
The example below will trigger that warning:
###
#!/usr/sbin/perl -w
use strict;
Xyz (fist_value, second_value); # Here we call sub xyz with 2 arguments
Sub xyz {
my ($x,$y,$z)@_;
Hi Richard,
> IMHO, it would be better to put your report code into another perl
> program and execute it. From what I see from your snippet of
> code, it's
> not important for the parent to know what the child is going, you are
> even ignoring SIGCHLD.
>
> Also, at some point in the future (I ho
IMHO, it would be better to put your report code into another perl
program and execute it. From what I see from your snippet of code, it's
not important for the parent to know what the child is going, you are
even ignoring SIGCHLD.
Also, at some point in the future (I hope at least) mp2 + thread
Randy Kobes wrote:
On Fri, 12 Sep 2003, Stas Bekman wrote:
Steve Hay wrote:
Stas Bekman wrote:
Randy Kobes wrote:
On Fri, 12 Sep 2003, Steve Hay wrote:
I believe that mod_perl 2 now installs the mod_perl.lib
somewhere to solve that kind of problem. Is there an
option in the mod_perl 1 build
Hi all,
I have a report creation perl script that takes about 15 minutes to run and
I need to fork it. I tried the code from v1:
use strict;
use POSIX 'setsid';
use Apache::SubProcess;
my = shift;
->send_http_header("text/plain");
{CHLD} = 'IGNORE';
defined (my = fork) or die "
On Fri, 12 Sep 2003, Stas Bekman wrote:
> Steve Hay wrote:
> > Stas Bekman wrote:
> >> Randy Kobes wrote:
> >>> On Fri, 12 Sep 2003, Steve Hay wrote:
> I believe that mod_perl 2 now installs the mod_perl.lib
> somewhere to solve that kind of problem. Is there an
> option in the mod
Steve Hay wrote:
Stas Bekman wrote:
Randy Kobes wrote:
On Fri, 12 Sep 2003, Steve Hay wrote:
I believe that mod_perl 2 now installs the mod_perl.lib
somewhere to solve that kind of problem. Is there an
option in the mod_perl 1 build process to thave that
library installed, or could that be add
Stas Bekman wrote:
Randy Kobes wrote:
On Fri, 12 Sep 2003, Steve Hay wrote:
I believe that mod_perl 2 now installs the mod_perl.lib
somewhere to solve that kind of problem. Is there an
option in the mod_perl 1 build process to thave that
library installed, or could that be added to the next
re
Randy Kobes wrote:
On Fri, 12 Sep 2003, Steve Hay wrote:
Randy Kobes wrote:
[ .. ]
Here's a patch against the Apache-Dispatch Makefile.PL to
allow it to build on Win32
Your patch does the trick for me, except that I had to
rebuild mod_perl too.
The problem is that my installed mod_perl setup (Ap
On Fri, 2003-09-12 at 09:35, Rafael Garcia-Suarez wrote:
> Benchmarking simple CPU-intensive perl scripts shows that they
> tend to be consistently slower in user time on AIX.
Are these mod_perl scripts or just Perl? If you benchmark some simple
Perl scripts that don't run under mod_perl and they
Hi there,
On Fri, 12 Sep 2003, William McCabe wrote:
> I've got a lot of experience with mod_perl on both linux and AIX and
> can state categorically that there are no typical conditions which
> would cause AIX run "strangely slowly" compared to linux on
> comparable hardware.
That's useful info
On 9/12/03 at 2:54 PM, [EMAIL PROTECTED] (Ged Haywood) wrote:
> > Benchmarking simple CPU-intensive perl scripts shows that they
> > tend to be consistently slower in user time on AIX.
>
> Assuming that the boxes aren't otherwise heavily loaded, I wonder
> about the options used to compile your P
On Fri, 12 Sep 2003, Steve Hay wrote:
> Randy Kobes wrote:
[ .. ]
> >Here's a patch against the Apache-Dispatch Makefile.PL to
> >allow it to build on Win32
> >
> Your patch does the trick for me, except that I had to
> rebuild mod_perl too.
>
> The problem is that my installed mod_perl setup (Apa
Hi,
Has anybody else got mp2 (CVS) working with recent perl-5.8.1's on Windows?
I've got it building, but I can't start the Apache server at all. (It's
fine without the mod_perl bits in the httpd.conf file.)
See this thread on p5p for what I'm getting:
http://www.xray.mpe.mpg.de/mailing-lists
Hi there,
On Fri, 12 Sep 2003, Rafael Garcia-Suarez wrote:
> Benchmarking simple CPU-intensive perl scripts shows that they
> tend to be consistently slower in user time on AIX.
Assuming that the boxes aren't otherwise heavily loaded, I wonder
about the options used to compile your Perl. For x8
Ged Haywood wrote:
> Hi there,
>
> On Fri, 12 Sep 2003, Rafael Garcia-Suarez wrote:
>
> > we're porting on AIX (4.3.3 and 5.2.0). The AIX boxes are
> > supposed to be more powerful than their Linux equivalents,
> > however the application is strangely slow on AIX
>
> You don't give much to go on
On 9/12/03 at 2:07 PM, [EMAIL PROTECTED] (Rafael Garcia-Suarez)
wrote:
> I've a mod_perl application we've developed on Linux and that
> we're porting on AIX (4.3.3 and 5.2.0). The AIX boxes are
> supposed to be more powerful than their Linux equivalents,
> however the application is strangely slo
Hi there,
On Fri, 12 Sep 2003, Rafael Garcia-Suarez wrote:
> we're porting on AIX (4.3.3 and 5.2.0). The AIX boxes are
> supposed to be more powerful than their Linux equivalents,
> however the application is strangely slow on AIX
You don't give much to go on. Are they really more powerful?
Wh
Thanks for your response!
> You have to subclass Apache::AuthCookie. This should be something like:
> PerlFixupHandler Your::Sublass->recognize_user
Well, I do. I just pasted the wrong text (from the 2002 mail).
The actual configuration snippet is:
AuthType TAS::Cookie
AuthName
I've a mod_perl application we've developed on Linux and that
we're porting on AIX (4.3.3 and 5.2.0). The AIX boxes are
supposed to be more powerful than their Linux equivalents,
however the application is strangely slow on AIX -- the httpd
configuration being similar. And that's mod_perl 1.28.
So
Hi!
On Fri, Sep 12, 2003 at 01:46:24PM +0200, Per Eric Ros?n wrote:
> I use Apache::AuthCookie 3.04, which seems to be the latest version, under
> Apache/1.3.26 Ben-SSL/1.48 (Unix) Debian GNU/Linux PHP/4.1.2 mod_perl/1.26.
I'm using quite the same setup (without PHP and ssl) and do not get those
I use Apache::AuthCookie 3.04, which seems to be the latest version, under
Apache/1.3.26 Ben-SSL/1.48 (Unix) Debian GNU/Linux PHP/4.1.2 mod_perl/1.26.
When I use "PerlFixupHandler Apache::AuthCookie->recognize_user", Apache
writes "Use of uninitialized value." in errorlog for each request and
subr
Hi all,
I use Apache 1.3.26, mod_perl 1
I use Apache directive
ErrorDocument 500 /error500.html
So, if any errors occure, my web-site inform it in nice form (showing page
/error500.html).
But suddenly i change something in my scripts and now, when error happens,
Apache do not give me /error500.
Randy Kobes wrote:
On Thu, 11 Sep 2003, Geoffrey Young wrote:
The problem you described before with the missing symbols
can be resolved by linking against the mod_perl.lib built
when you build mod_perl.so. This can be done by adding in
a LIBS attribute to WriteMakefile() in Makefile.PL with a
Hi!
On Thu, Sep 11, 2003 at 10:24:20PM -0500, Randy Kobes wrote:
> Here's a patch against the Apache-Dispatch Makefile.PL to
> allow it to build on Win32 - I've also put up a ppm package
Oh, great! Thanks Randy! I'll put this into the next release, which should
happen in a few days...
--
#!/us
28 matches
Mail list logo