Re: [mp2] Custom directives

2004-05-14 Thread Stas Bekman
Brent 'Dax' Royal-Gordon wrote: Hello, I'm writing a pure-Perl Apache 2 module that installs a few custom directives. Four of the directives are only useful in the server root (i.e. outside of any VirtualHost, Directory, etc. directives), but three others make sense within containers. The

Re: [mp2] Custom directives

2004-05-14 Thread Brent 'Dax' Royal-Gordon
Stas Bekman wrote: Even with a line in my httpd.conf like: PerlLoadModule Apache::Regulate RegulateDatabase 'dbi:mysql:apache' apache [redacted] Please try: Perl # start perl early /Perl PerlLoadModule Apache::Regulate RegulateDatabase 'dbi:mysql:apache' apache [redacted] Doesn't seem to

Re: [mp2] Custom directives

2004-05-14 Thread Stas Bekman
Brent 'Dax' Royal-Gordon wrote: Stas Bekman wrote: Even with a line in my httpd.conf like: PerlLoadModule Apache::Regulate RegulateDatabase 'dbi:mysql:apache' apache [redacted] Please try: Perl # start perl early /Perl PerlLoadModule Apache::Regulate RegulateDatabase 'dbi:mysql:apache'

building 64-bit

2004-05-14 Thread J b
Hello list, Long time lurker, first time poster. I'm trying (and I think I've succeeded) to build mod_perl 1.3.29 64-bit with apache 1.3.31 on Solaris 8. Perl 5.8.4 compiled 64-bit successfully. The problem I'm having is that modperl's Makefile.PL mutilates the CFLAGS that perl built with.

Re: DBI and Apache::DBI

2004-05-14 Thread MARTIN MOSS
You didn't specify which Database server you're using. If it's mysql you need to be cautious of the 'ping' method used by Apache::DBI to check if a connection is stale or not. the DBD::mysql ping method always returns a 'true' string e.g. "0 but true" rather than a 1 or a 0. I believe the latest

Re: building 64-bit

2004-05-14 Thread Joe Schaefer
Stas Bekman [EMAIL PROTECTED] writes: [...] It should be possible to automate this search by getting cvs version bumped up incrementally and grepping for that split line, untill the change is found. It'd be a nice addition to our toolset. What's wrong with cvs annotate here?

Segmentation Fault problem

2004-05-14 Thread Marc Gracia
Hi, I have some problem that makes me mad for some time. We just setted up a web farm to support our application that runs entirely using mod_perl. Until now we used a traditional apache+vhosts to serve our customers, but as it became so unadministrable, we started this new sistem to serve

Re: [mp2] Custom directives

2004-05-14 Thread Geoffrey Young
sub SERVER_CREATE { return bless { Database= ['DBI:mysql:Regulate'], ... }, shift; } sub global_init #:PostConfigHandler { my(undef, undef, undef, $s)[EMAIL PROTECTED]; my

Re: building 64-bit

2004-05-14 Thread J b
Well, I looked through the old code (manually, like an archeologist), and it goes way, way, way back to version 1.2 (6 years, 4 months ago): http://cvs.apache.org/viewcvs.cgi/modperl/Makefile.PL?r1=1.2r2=1.3diff_format=h First seen here on line 294 as: $EXTRA_CFLAGS .= join( , split(,,

[Fwd: Seg Fault: ModPerl2(worker)/Perl5.8.3/Template::Process::interpolate_text]

2004-05-14 Thread Raf
Hi All, I have a problem and after a day of smashing my head against a wooded desk, I thought it might be time to seek some advise. My problem involves Template Toolkit V 2.13 and mod_perl 1.99.13. I'm moving some code to perl 5.8.3 compiled with ithreads. I have a mod_perl handler (Apache

Seg Fault: ModPerl2(worker)/Perl5.8.3/Template::Process::interpolate_text

2004-05-14 Thread Raf
Hi All, I have a problem and after a day of smashing my head against a wooded desk, I thought it might be time to seek some advise. My problem involves Template Toolkit V 2.13 and mod_perl 1.99.13. I'm moving some code to perl 5.8.3 compiled with ithreads. I have a mod_perl handler (Apache

Re: Seg Fault: ModPerl2(worker)/Perl5.8.3/Template::Process::interpolate_text

2004-05-14 Thread Perrin Harkins
On Fri, 2004-05-14 at 11:36, Raf wrote: I'm moving some code to perl 5.8.3 compiled with ithreads. I have a mod_perl handler (Apache 2.0.48- worker mpm/ModPerl 1.99.13) which has a default template directory and processes a bunch of these templates. I can write a perl script which will

Re: DBI and Apache::DBI

2004-05-14 Thread Perrin Harkins
[ Please keep it on the list... ] On Fri, 2004-05-14 at 09:36, Alex McLintock wrote: sometimes at random my mod_perl/DBI/DBD::Mysql connections fail at the execute stage resulting in an error something like fetch failed because of no execute failure. Does this sound like the same problem

Re: Segmentation Fault problem

2004-05-14 Thread Stas Bekman
Marc Gracia wrote: Hi, I have some problem that makes me mad for some time. We just setted up a web farm to support our application that runs entirely using mod_perl. Until now we used a traditional apache+vhosts to serve our customers, but as it became so unadministrable, we started this new

Re: Segmentation Fault problem

2004-05-14 Thread Stas Bekman
Marc Gracia (Oasyssoft) wrote: Opps.. Sorry after all gdb an strace I forgot to send the perl -V Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration: [...] Thanks. Have you tried a more recent 5.8.x perl? 5.8.4 is out for quite some time already. I'm not sure if it's going

Re: [mp2] Custom directives

2004-05-14 Thread Stas Bekman
Brent 'Dax' Royal-Gordon wrote: Stas Bekman wrote: I still didn't have a chance to look at it in details, but could it be the issue with merging not performing a deep copy? http://perl.apache.org/docs/2.0/user/config/custom.html#Merging_Entries_Whose_Values_Are_References I don't think

Re: local redirect

2004-05-14 Thread Stas Bekman
Info wrote: Hi All, I'm having problems with internal_redirect My content handler calls $r-internal_redirect(/davhome/depts/tst/tstmb7/); This is in repsonse to a request from webDAV client for uri: ivy/dav/home?0093 So I would expect the DAV client to behave the same whether I pointed it

Re: [mp2] Custom directives

2004-05-14 Thread Brent 'Dax' Royal-Gordon
Stas Bekman wrote: a=SERVER_CREATE(); b=SERVER_CREATE(); RegulateDatabase(a, ...); global_init(b); global_init(c); I have no idea where 'c' is coming from--like I said, I've instrumented {SERVER,DIR}_{CREATE,MERGE}, which I think should cover everything. PostConfig is called

Apache start/restart nuances (was Re: [mp2] Custom directives)

2004-05-14 Thread Stas Bekman
Brent 'Dax' Royal-Gordon wrote: Stas Bekman wrote: a=SERVER_CREATE(); b=SERVER_CREATE(); RegulateDatabase(a, ...); global_init(b); global_init(c); I have no idea where 'c' is coming from--like I said, I've instrumented {SERVER,DIR}_{CREATE,MERGE}, which I think should cover

cvs commit: modperl-2.0/xs/tables/current/ModPerl FunctionTable.pm

2004-05-14 Thread stas
stas2004/05/14 00:40:31 Modified:t/response/TestAPR pool.pm xs/APR/Pool APR__Pool.h xs/maps apr_functions.map xs/tables/current/ModPerl FunctionTable.pm Log: APR::Pool now has destroy() and clear() available + tests Revision

cvs commit: modperl-2.0/t/response/TestAPR pool.pm

2004-05-14 Thread stas
stas2004/05/14 00:58:22 Modified:t/response/TestAPR pool.pm Log: exercise the tag() method Revision ChangesPath 1.12 +11 -1 modperl-2.0/t/response/TestAPR/pool.pm Index: pool.pm === RCS

cvs commit: modperl-2.0/lib/ModPerl WrapXS.pm

2004-05-14 Thread stas
stas2004/05/14 13:57:40 Modified:lib/ModPerl WrapXS.pm Log: nicely sort the autogenerated newXS entries Revision ChangesPath 1.72 +1 -1 modperl-2.0/lib/ModPerl/WrapXS.pm Index: WrapXS.pm