libapreq2-2.06-dev apreq_xs_postperl.h

2006-01-17 Thread Ken Perl
perl Makefile.PL --with-apache2-apxs=/usr/local/apache2/bin/apxs is succes. but make failed, cc -c -I/root/.cpan/build/libapreq2-2.06-dev/glue/perl/xs -I/root/.cpan/build/libapreq2-2.06-dev/include -I/root/.cpan/build/libapreq2-2.06-dev/glue/perl/xsbuilder -I/usr/include/apache2 -I/usr/include/a

Re: restart_count() on Win32

2006-01-17 Thread Foo Ji-Haw
Hello Randy, Do let me know if I am on the right track. The Windows implementation of Apache2 uses a 2 processes. The worker process creates the threads upon start/restart. This differs from Unix implementations where it forks process instead of threads. In Unix, the main process running modperl

Re: restart_count() on Win32

2006-01-17 Thread Foo Ji-Haw
Thanks Randy, for the pointer. Will give it a good read. - Original Message - From: "Randy Kobes" <[EMAIL PROTECTED]> To: "Foo Ji-Haw" <[EMAIL PROTECTED]> Cc: "William A. Rowe, Jr." <[EMAIL PROTECTED]>; Sent: Wednesday, January 18, 2006 11:56 AM Subject: Re: restart_count() on Win32 >

Re: restart_count() on Win32

2006-01-17 Thread Randy Kobes
On Wed, 18 Jan 2006, Foo Ji-Haw wrote: Hello William, Thanks for the insight into the inner workings of mp2 on Win32. I'd like to read up more on the parent-child setup, and digging through perl.apache.org (mostly in http://perl.apache.org/docs/2.0/) I don't seem to be able to get any informati

Re: restart_count() on Win32

2006-01-17 Thread Foo Ji-Haw
Hello William, Thanks for the insight into the inner workings of mp2 on Win32. I'd like to read up more on the parent-child setup, and digging through perl.apache.org (mostly in http://perl.apache.org/docs/2.0/) I don't seem to be able to get any information on mp2 on Win32. Can you share your so

Re: Using MP2 and CPAN modules

2006-01-17 Thread Foo Ji-Haw
> > Just for curiosity how long do you think Geoff Apache1.x will be > > maintained > > for a very, very long time. According to the Yahoo! slides you gave, they are planning a shift to Apache2.2 this year...they are side-stepping Apache2?!? > mind you, with both apache 1.3 and mp1 it may seem lik

Re: restart_count() on Win32

2006-01-17 Thread Foo Ji-Haw
Hello Tom, Thanks for confirming for me it is a Windows Thing. - Original Message - From: "Tom Schindl" <[EMAIL PROTECTED]> To: "Foo Ji-Haw" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, January 17, 2006 5:43 PM Subject: Re: restart_count() on Win32 Hi, I gave it a try on linux: - for start

Apache::Filter after mod_jk?

2006-01-17 Thread Peter Swan
Hi, I wonder if it is possible to filter the output coming from my Tomcat talking via mod_jk to my apache 1.3 with mod_perl 1.29!? I tried something like PerlModule Apache::Filter SetHandler perl-script PerlSetVar Filter On PerlHandler myFilter but 'myFilter' only gets the raw JSP fi

Re: restart_count() on Win32

2006-01-17 Thread William A. Rowe, Jr.
Foo Ji-Haw wrote: I am trying my luck again on this issue, which I never quite understood/ resolved. The log file shows this when Apache starts: 1 (parent/healthcheck process) 2 (parent/healthcheck process) 1 (child/real server process) 2 (child/real server process) In 1.3, the child '

Re: Using MP2 and CPAN modules

2006-01-17 Thread Geoffrey Young
>>>no I wouldn't downgrade to mp1 because Apache2.x is the future and >>>someday Apache1.x will not be maintained any more. >> >> >>wow, really? >> >>:) > > > Just for curiosity how long do you think Geoff Apache1.x will be > maintained for a very, very long time. the largest apache-based shop

More on Apache::SessionManager/MP2

2006-01-17 Thread Dan Axtell
OK, so I followed the guidelines and changed mod_perl, Apache2::*, constants, etc. I had to uncomment a reference to Apache2::Connection so references to $r->connection->remote_ip() would work. At that point, I can restart the server and load SessionManager, but the minute I try to connect to

Re: Using MP2 and CPAN modules

2006-01-17 Thread Tom Schindl
Geoffrey Young wrote: > > Tom Schindl wrote: > >>Hi, >> >>no I wouldn't downgrade to mp1 because Apache2.x is the future and >>someday Apache1.x will not be maintained any more. > > > wow, really? > > :) Just for curiosity how long do you think Geoff Apache1.x will be maintained is there any

Re: Using MP2 and CPAN modules

2006-01-17 Thread Geoffrey Young
Tom Schindl wrote: > Hi, > > no I wouldn't downgrade to mp1 because Apache2.x is the future and > someday Apache1.x will not be maintained any more. wow, really? :) > I'd try to contact > the maintainer of Apache::SessionManager which is as it looks not > prepared to work with mp2. You can al

Re: Using MP2 and CPAN modules

2006-01-17 Thread Frank Wiles
On Tue, 17 Jan 2006 14:07:56 -0500 Dan Axtell <[EMAIL PROTECTED]> wrote: > my server is running Apache 2.0.54 and MP 2.0.2. I'm trying to > become familiar with the environment, but I get the impression most > CPAN modules really want to run under Apache 1.X. > > In particular, I installed Apach

Re: Using MP2 and CPAN modules

2006-01-17 Thread Tom Schindl
Hi, no I wouldn't downgrade to mp1 because Apache2.x is the future and someday Apache1.x will not be maintained any more. I'd try to contact the maintainer of Apache::SessionManager which is as it looks not prepared to work with mp2. You can also hack it yourself using the guide provided at http:/

Using MP2 and CPAN modules

2006-01-17 Thread Dan Axtell
Hi, my server is running Apache 2.0.54 and MP 2.0.2. I'm trying to become familiar with the environment, but I get the impression most CPAN modules really want to run under Apache 1.X. In particular, I installed Apache::SessionManager, but can't get Apache to restart when I add the config lin

Re: Apache::DBI and DBD::Pg

2006-01-17 Thread Perrin Harkins
On Tue, 2006-01-17 at 16:06 +, Peter Haworth wrote: > I haven't tested any of these, since I haven't needed to change the isolation > level since the bad old days of Illustra, when "read uncommitted" was > necessary to even approach reasonable performance on our horrible system. Wow, I thought

Re: Apache::DBI and DBD::Pg

2006-01-17 Thread Peter Haworth
On Mon, 16 Jan 2006 23:15:59 + (UTC), Jeremy Nixon wrote: > There are two > ways to put a transaction into that mode: you can open a transaction and > then "set transaction isolation level serializable", or you can open the > transaction by doing "begin transaction isolation level serializable"

Re: Apache::DBI and DBD::Pg

2006-01-17 Thread Perrin Harkins
On Mon, 2006-01-16 at 23:15 +, Jeremy Nixon wrote: > That code has to work identically in or out of mod_perl, so it can't > have any mod_perl-specific stuff inside it. I usually handle that by checking $ENV{MOD_PERL}: our %CACHE; sub set_value { my ($key, $value) = @_; if ($ENV{MOD_PE

Re: File handle in mod_perl

2006-01-17 Thread Perrin Harkins
On Tue, 2006-01-17 at 15:00 +0800, LUKE wrote: > But this case to bring about some guestion! Will the code influence > each other? When > muti-user visit the same recourse at the same time? This code only seems to be reading from files, not writing to them, so there will be no interaction betwee

Re: Apache::DBI and DBD::Pg

2006-01-17 Thread Tim Bunce
On Mon, Jan 16, 2006 at 12:42:10PM -0800, Tyler MacDonald wrote: > Jeremy Nixon <[EMAIL PROTECTED]> wrote: > > It looks like it would work perfectly with connect_cached, which I hadn't > > known about, but now that I do, I'm all excited to change my code to use > > it instead of Apache::DBI. > >

Re: restart_count() on Win32

2006-01-17 Thread Tom Schindl
Hi, I gave it a try on linux: - for start you get: 1 2 - for restart 1 you get: 3 - for restart 2 you get: 4 - for restart 3 you get: 5 - for restart 4 you get: 6 There's no difference between prefork and worker-mpm. I'm not a win32 guy so I cann't help you here. Tom Foo Ji-Haw wrote: > Hello

Re: restart_count() on Win32

2006-01-17 Thread Foo Ji-Haw
Hello Tom, Thanks for your reply. Perhaps you can help explain why I am receiving 2 '1's and 2 '2's upon Apache start (not restart). I can code to only load stuff on restart_count() == 2, but this works only for restarts, since starts give me 2 '2's on restart_count(). If I can figure out how to d

Re: restart_count() on Win32

2006-01-17 Thread Tom Schindl
Hi, i'd say that the thing you are seening is that 3rd restart is the one where the actually running apache is checking that a restart is possible and else refusing to stop? Try logging the PID's of the process trying to restart? Tom Foo Ji-Haw wrote: > Hello all, > > I am trying my luck agai

Re: File handle in mod_perl

2006-01-17 Thread Tom Schindl
Hi, It seems that you are not modifying the files so no lock is needed. If to clients are accessing your webserver at the very same moment there are 2 Apache-Processes working so there is not interference between them. One more sidenote you can read files as a whole using: --8<---

restart_count() on Win32

2006-01-17 Thread Foo Ji-Haw
Hello all,   I am trying my luck again on this issue, which I never quite understood/ resolved.   Whenever Apache starts/ restarts, it actually does this twice (the second time to see if it can restart properly).   In my httpd.conf: PerlModule startup   in startup.pm: package startup; use str