Re: Clearsilver Templates

2005-08-17 Thread Perrin Harkins
Praveen Ray wrote: Does anyone have any experience of using clearsilver (http://www.clearsilver.net) with mod_perl (1 or 2)? I remember talking to the author at one point. Any comparisons of this with Template-Toolkit? It will be less flexible (no simple handling of objects or complex stru

Clearsilver Templates

2005-08-17 Thread Praveen Ray
Hi Does anyone have any experience of using clearsilver (http://www.clearsilver.net) with mod_perl (1 or 2)? Any comparisons of this with Template-Toolkit? The Template-Toolkit is getting rather slow for our needs and I'm looking around for alternatives. thanks - Praveen _

Re: ModPerl 2.0.1 AIX4.3.3 - Make Test Fails to run

2005-08-17 Thread Stas Bekman
ODELL, TODD E (SWBT) wrote: [...] Is there another why to run this to show more detail of what's going on? try to run the equivalent of strace on AIX and see where it hangs. One reason could be the lack of entropy: http://perl.apache.org/docs/2.0/user/troubleshooting/troubleshooting.html#Serve

Re: Hanging apache child on fork

2005-08-17 Thread Badai Aqrandista
The code that triggers the bug use Apache::Session::File, on an NFS share. Have anyone had problem with that? Do I have some special configuration to give to A::S::File to help it behave correctly on an NFS share? I have never used A::S::File over NFS share, but from what I heard, NFS locking

Re: Clear Registry

2005-08-17 Thread Badai Aqrandista
I use Apache::StatINC It works fine for me, I haven't noticed needing to restart with it Except you have two modules A and B, where A's BEGIN block depends on B's BEGIN block being executed beforehand, and you only change module A. In that case you definitely must restart. Got bitten by th

Re: Adding Directives At Runtime

2005-08-17 Thread Geoffrey Young
>>Exactly. IS there an an equivilant in MP1? > > > Not exacrly, but pretty close. > > blocks are evaluated in the Apache::ReadConfig:: namespace. Anything > you place > in there will be handled by the block handler. which is exactly what the Apache::ReverseLocation code I sent does, so look

Re: Clear Registry

2005-08-17 Thread Boysenberry Payne
Guess that doesn't help with Apache2, sorry should have looked closer :( Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Aug 17, 2005, at 4:44 PM, Boysenberry Payne wrote: I use Apache::StatINC It works fine for me, I haven't noticed needing to restart with it Boysenberry

Re: ModPerl 2.0.1 AIX4.3.3 - Make Test Fails to run

2005-08-17 Thread Philip M. Gollucci
ODELL, TODD E (SWBT) wrote: Thanks for the quick reply. I just realized that even when I run export APACHE_TEST_STARTUP_TIMEOUT=420 ( or any other value) it uses the default 300. Shouldn't the command export ./t/TEST -help [snip] -startup_timeout seconds to wait for the server to start (default

Re: Clear Registry

2005-08-17 Thread Boysenberry Payne
I use Apache::StatINC It works fine for me, I haven't noticed needing to restart with it Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Aug 17, 2005, at 4:33 PM, Philip M. Gollucci wrote: Justin Luster wrote: So are you saying that a graceful restart is the only real answ

Re: Clear Registry

2005-08-17 Thread Philip M. Gollucci
Justin Luster wrote: So are you saying that a graceful restart is the only real answer? I've noticed, when doing a lot of development, that Apache::Reload doesn't always work when it picks up the change. I end up getting something I needed undefined in another module or something odd like

RE: Clear Registry

2005-08-17 Thread Justin Luster
So are you saying that a graceful restart is the only real answer? -Original Message- From: Jonathan Vanasco [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 17, 2005 2:23 PM To: mod_perl List Subject: Re: Clear Registry I've noticed, when doing a lot of development, that Apache::Reloa

Re: Clear Registry

2005-08-17 Thread Jonathan Vanasco
I've noticed, when doing a lot of development, that Apache::Reload doesn't always work when it picks up the change. I end up getting something I needed undefined in another module or something odd like that, and end up with a graceful restart On Aug 17, 2005, at 4:36 PM, Philip M. Golluc

RE: ModPerl 2.0.1 AIX4.3.3 - Make Test Fails to run

2005-08-17 Thread ODELL, TODD E \(SWBT\)
Thanks for the quick reply. I just realized that even when I run export APACHE_TEST_STARTUP_TIMEOUT=420 ( or any other value) it uses the default 300. Shouldn't the command export APACHE_TEST_STARTUP_TIMEOUT=420 set it for the test? I edited the ModPerl::TestRun from 300 to 600 to see if that would

Re: Clear Registry

2005-08-17 Thread Philippe M. Chiasson
Philip M. Gollucci wrote: > Justin Luster wrote: > >> No I was not using Modperl::RegistryCooker. I guess I will have to >> "use" it. >> >> In Mod_Perl my "library" files get loaded into memory. If I want to >> make a change to the "library" file (one that my main.pl file >> "requires") I cannot

Re: Clear Registry

2005-08-17 Thread Philip M. Gollucci
Justin Luster wrote: No I was not using Modperl::RegistryCooker. I guess I will have to "use" it. In Mod_Perl my "library" files get loaded into memory. If I want to make a change to the "library" file (one that my main.pl file "requires") I cannot since it is in memory or cache. To get it to

RE: Clear Registry

2005-08-17 Thread Justin Luster
No I was not using Modperl::RegistryCooker. I guess I will have to "use" it. In Mod_Perl my "library" files get loaded into memory. If I want to make a change to the "library" file (one that my main.pl file "requires") I cannot since it is in memory or cache. To get it to realize the update I u

Re: Clear Registry

2005-08-17 Thread Philippe M. Chiasson
Justin Luster wrote: > I tried this and I get: > > Can't locate object method: "cache_table_common". Are you calling it as Modperl::RegistryCooker->uncache_myself()? What is the _exact_ error message ? But more interestingly, what exactly are you triyng to do that requires you to clean the cach

Re: mod_define apache2

2005-08-17 Thread Philippe M. Chiasson
Martin Moss wrote: > All, > > We're in the middle of centralising our apache (1.3) > config files and I would like to use mod_define to > simplify the process. However I've noticed that > mod_define isn't available for apache2. > > Is there an alternative I can use, or is mod_define's > function

Re: Adding Directives At Runtime

2005-08-17 Thread Philippe M. Chiasson
Christopher H. Laco wrote: > Philippe M. Chiasson wrote: > >> A sample example of what I _think_ you are trying to do would look like: >> >> >> PerlModule Catalyst >> >> >> >> package Catalyst; >> use Apache2::ServerUtil qw(); >> >> [... figure out where/what to configure ...] >> >> Apache2::Se

Re: Filter-Question : Caching

2005-08-17 Thread Philippe M. Chiasson
Markus Wolf wrote: > Hallo, > > I'm writing my first Apache 2 - Filter yesterday - it works fine, > but i have one problem with caching. > > This is my conf-entry > > PerlOutputFilterHandler ApacheMY::session > > > > my problem is, that the filter only work, when I save or "touch" > the html-

Re: Apache (mod_perl) restart issues

2005-08-17 Thread Boysenberry Payne
The last set of errors are happening on my OSX box. I get a different set of errors on our Linux server when it restarts: [Sun Feb 13 01:00:00 2000] null: Attempt to free unreferenced scalar. ... I get a whole mess of those, then I get: Scalars leaked: 234 I'm not sure how to go about fixing t

Apache (mod_perl) restart issues

2005-08-17 Thread Boysenberry Payne
When I restart apache I get the following errors on child processes: child process 424 did not exit, sending another SIGHUP One for each child process. After the above I get: SIGHUP received. Attempting to restart I'm using mod_perl 1.26 and apache 1.3.33 (only happens with my mod_perl scri

RE: Clear Registry

2005-08-17 Thread Justin Luster
I tried this and I get: Can't locate object method: "cache_table_common". Thanks, Justin -Original Message- From: Philip M. Gollucci [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 17, 2005 11:05 AM To: Justin Luster Cc: modperl@perl.apache.org Subject: Re: Clear Registry Justin Lus

Re: Clear Registry

2005-08-17 Thread Philip M. Gollucci
Justin Luster wrote: Is there a way in Perl code to clear out the cached code in the registry? From lib/Modperl-Registry/lib/Modperl/RegistryCooker.pm: # # this is a function should be called from the registry script, and

Clear Registry

2005-08-17 Thread Justin Luster
Is there a way in Perl code to clear out the cached code in the registry?

Re: profiling DBI (was Re: apache children waits for each other?)

2005-08-17 Thread Philip M. Gollucci
Perrin Harkins wrote: Malcolm J Harwood wrote: Somehow I managed to miss the existence of DBI::Profile. Has anyone gotten this working with Apache::DBI (so that it aggregates across the entire lifetime of the DB connection)? Just use DBI::ProfileDumper::Apache. I don't believe thats been p

Re: ModPerl 2.0.1 AIX4.3.3 - Make Test Fails to run

2005-08-17 Thread Philip M. Gollucci
ODELL, TODD E (SWBT) wrote: to start. I unpacked and compiled as my userid, not root, and am able to start the httpd directly as that userid. With the APACHE_TEST_STARTUP_TIMEOUT=420 this is what is get from make test: I believe whats happening here is that because you are testing the threaded v

ModPerl 2.0.1 AIX4.3.3 - Make Test Fails to run

2005-08-17 Thread ODELL, TODD E \(SWBT\)
Mod_perl: 2.0.1 OS: AIX4.3.3 -8<-- Start Bug Report 8<-- 1. Problem Description: I'm able to compile with IBM VAC 4.4.0.3 with no problem but the make test fails to even start the tests. It timeouts waiting for the server to start. I unpack

RE: APR

2005-08-17 Thread Paul Harrison
Yes, thx you Cure -Original Message- From: Perrin Harkins [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 17, 2005 12:04 PM To: Paul Harrison Cc: modperl@perl.apache.org Subject: Re: APR Paul Harrison wrote: > Hi All, I thought the APR module was use for ==> to load mod_perl2 > out

Re: APR

2005-08-17 Thread Perrin Harkins
Paul Harrison wrote: Hi All, I thought the APR module was use for ==> to load mod_perl2 outside of Apache(command line). I'm lost when I see modules like ==> use APR::Table () inside of Apache(not the command line) The APR (Apache Portable Runtime) is an abstraction layer that provides porta

APR

2005-08-17 Thread Paul Harrison
Hi All, I thought the APR module was use for  ==> to load mod_perl2 outside of Apache(command line). I'm lost when I see modules like ==> use APR::Table () inside of Apache(not the command line) Please Explain, thxs     Cure

Re: profiling DBI (was Re: apache children waits for each other?)

2005-08-17 Thread Perrin Harkins
Malcolm J Harwood wrote: Somehow I managed to miss the existence of DBI::Profile. Has anyone gotten this working with Apache::DBI (so that it aggregates across the entire lifetime of the DB connection)? Just use DBI::ProfileDumper::Apache. - Perrin

profiling DBI (was Re: apache children waits for each other?)

2005-08-17 Thread Malcolm J Harwood
> >You can look at the tuning information on http://modperlbook.org/ for > >some advice as well. And don't forget that there is a profiler for DBI > >queries that comes with DBI. Somehow I managed to miss the existence of DBI::Profile. Has anyone gotten this working with Apache::DBI (so that it

Training recommendations?

2005-08-17 Thread Chris Werner
Title: Training recommendations? Any recommendations for Apache/Mod_perl training? My company is exploring the possibility that we would suitcase a week of such instruction on site. Thanks, Christian Werner

Re: [mp2] wrong gateway interface

2005-08-17 Thread Geoffrey Young
Gunnar Koppel wrote: > > I can't find a flaw in my conf. I am trying to conf some location act > under PerlRun or Registry, but my test-script prints in %ENV still: > > GATEWAY_INTERFACE: CGI/1.1 this is no longer the place to look in mp2 > MOD_PERL: mod_perl/2.0.1 look here instead :) --Ge

Re: Hanging apache child on fork

2005-08-17 Thread Benoit Caron
Philippe M. Chiasson wrote: > Benoit Caron wrote: > >>Hello. >> >>I'm having trouble with a new setup on a RedHat Entreprise Linux 4 box. >>The problem is that whenever there is perl code that fork to execute >>something, the apache child hang. > > > Have you read: > > http://perl.apache.org/do

[mp2] wrong gateway interface

2005-08-17 Thread Gunnar Koppel
I can't find a flaw in my conf. I am trying to conf some location act under PerlRun or Registry, but my test-script prints in %ENV still: GATEWAY_INTERFACE: CGI/1.1 I added in apache2.conf such lines: ___ Alias /adm /home/xyz/adm Alias /adm2 /home/xyz/adm SetHandler perl-script

mod_define apache2

2005-08-17 Thread Martin Moss
All, We're in the middle of centralising our apache (1.3) config files and I would like to use mod_define to simplify the process. However I've noticed that mod_define isn't available for apache2. Is there an alternative I can use, or is mod_define's functionality now core to mod_perl2? Regards

Re: apache children waits for each other?

2005-08-17 Thread Badai Aqrandista
> I don't know it's even possible in mysql. Its reference docs doesn't say > that it is (http://dev.mysql.com/doc/mysql/en/join.html). > Yes it does : http://dev.mysql.com/doc/mysql/en/identifier-qualifiers.html Hmmm... Excellent!!! I'll use it then...Will let you know how it goes... Thanks

Re: apache children waits for each other?

2005-08-17 Thread Clinton Gormley
> I don't know it's even possible in mysql. Its reference docs doesn't say > that it is (http://dev.mysql.com/doc/mysql/en/join.html). > Yes it does : http://dev.mysql.com/doc/mysql/en/identifier-qualifiers.html Clinton

Filter-Question : Caching

2005-08-17 Thread Markus Wolf
Hallo, I'm writing my first Apache 2 - Filter yesterday - it works fine, but i have one problem with caching. This is my conf-entry PerlOutputFilterHandler ApacheMY::session my problem is, that the filter only work, when I save or "touch" the html-file again - the filter seems to cache the ou