Re: [mp2] Child process exited

2003-08-14 Thread Jean-Sebastien Guay
Is it only mp2 that it fails under? I've tried it under mp1.28/perl5.8.0/apache1.3.27 on WinXP and it runs fine. I haven't tried other mod_perl versions, since the threading issue would render the site unusable. so I assume that there is no point trying it on linux, if Steve can't

Re: [mp2] Child process exited

2003-08-14 Thread Jean-Sebastien Guay
Can't get http://whitestar02.webhop.org/Files/ApacheCrash.zip it resolves to an internal address: 192.168.0.3 Darn, looks like my web server didn't come back up right last night. I'll have to be there to fix it, because ssh doesn't get through either. Here's another link, on my ISP's server:

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-08-14 Thread Stas Bekman
Bill Marrs wrote: Try this patch: [...] Feel free to submit this bug report and the fix to httpd-dev. Please let me know if you do that, so I won't duplicate it. But I'd prefer that you do it so you can make sure that it gets fixed in the next release, since you need it working. I've just

Re: [mp2] Child process exited

2003-08-14 Thread Jean-Sebastien Guay
I'll try to make a small test case so you can try to repro. I think it's related to DBI (only a hunch), so I'll start there. Ok, I've got it as simple as I can (I think - 25.1k zip). It isn't related to DBI, but to template toolkit. So to try my test case, you'll need that installed. Should I

[mp2] Apache::Status probs

2003-08-14 Thread Stas Bekman
Jie Gao wrote: Hi All, perl-5.8.0 + mp1.99_10. --- I am having problem trying to get /perl-status work. It bombs out in Status.pm at the following location: -- if (eval {require Apache::Request})

Re: [mp2] Child process exited

2003-08-12 Thread Jean-Sebastien Guay
Guay [EMAIL PROTECTED] To: Stas Bekman [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, August 08, 2003 1:13 PM Subject: Re: [mp2] Child process exited Is it only mp2 that it fails under? I've tried it under mp1.28/perl5.8.0/apache1.3.27 on WinXP and it runs fine. I haven't

Re: [mp2] segfault when connect to database

2003-08-10 Thread Stas Bekman
Danil Pismenny wrote: httpd2 2.0.47, mod_perl 1.99_09 -- httpd does segfault when I try to connect to the database (mysql or interbase). It faults somewhere in libnss_db.so. It works well if I remove libnss_db* from the system. Here is the part of programm stack from

Re: [mp2] ModPerl::Test::read_post destructive?

2003-08-10 Thread Ged Haywood
Hi there, On Sun, 10 Aug 2003, Michael Maciag wrote: Is the read_post in ModPerl::Test destructive in some way? If so, could someone point me in the right direction I might take to modify it to be non-destructive? I think you'll find that reading POST data has always been destructive. If you

Re: [mp2] Child process exited

2003-08-10 Thread Jean-Sebastien Guay
Is it only mp2 that it fails under? I've tried it under mp1.28/perl5.8.0/apache1.3.27 on WinXP and it runs fine. I haven't tried other mod_perl versions, since the threading issue would render the site unusable. What version of Template-Toolkit do you have? It's worth ensuring that you're

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-08-07 Thread Stas Bekman
Bill Marrs wrote: [...] You would probably wish to append your script with additional output after the empty string? Something like: #!/usr/bin/perl $|=1; print Content-Type: text/html\n\n; print hello worldP; # This line causes the error (?) print ; print hello againP; --- When I do this, the

Re: [mp2] Child process exited

2003-08-07 Thread Jean-Sebastien Guay
So, has anyone checked out my test case? Any results (good or bad)? As I said in my last post, I'm getting this for differing amounts of whitespace in my template files, so it isn't just one tag to be removed everywhere. I have something like 30 template files, most of them much more complex than

Re: [mp2] Child process exited

2003-08-06 Thread Jean-Sebastien Guay
25k zip? that's a not quite a short test case ;) Can it possibly be 25 lines of code instead? You're absolutely right, I've pared it down a lot while waiting for your answer. I was trying to get my test case to you as fast as possible, that's why I didn't spend that much time on it before. It's

Re: [mp2] segfault when connect to database

2003-08-05 Thread Stas Bekman
Marc M. Adkins wrote: httpd2 2.0.47, mod_perl 1.99_09 -- httpd does segfault when I try to connect to the database (mysql or interbase). It faults somewhere in libnss_db.so. It works well if I remove libnss_db* from the system. I noticed a while back that when I use

[mp2] Child process exited

2003-08-05 Thread Jean-Sebastien Guay
Hello, I think I've made good steps towards getting my scripts to work (Apache/2.0.47 (Win32) mod_perl/1.99_10-dev Perl/v5.8.0). However, now, when I try to reload one of the pages to test, IE tells me that "The exception unknown software exception (0xc0fd) occured in the application

[mp2] segfault when connect to database

2003-08-03 Thread Danil Pismenny
httpd2 2.0.47, mod_perl 1.99_09 -- httpd does segfault when I try to connect to the database (mysql or interbase). It faults somewhere in libnss_db.so. It works well if I remove libnss_db* from the system. Here is the part of programm stack from core: #0

RE: [mp2] segfault when connect to database

2003-08-03 Thread Marc M. Adkins
httpd2 2.0.47, mod_perl 1.99_09 -- httpd does segfault when I try to connect to the database (mysql or interbase). It faults somewhere in libnss_db.so. It works well if I remove libnss_db* from the system. I noticed a while back that when I use

[MP1 and MP2] Apache-AuthenNIS ported

2003-08-01 Thread Shannon Eric Peevey
The uploaded file Apache-AuthenNIS-0.11.tar.gz has entered CPAN as file: $CPAN/authors/id/S/SP/SPEEVES/Apache-AuthenNIS-0.11.tar.gz size: 4095 bytes md5: cac172a46c5b05034842fad5eed6b9be Apache::AuthenNIS - mod_perl NIS Authentication module has been ported to work with both versions of

[MP1 and MP2] Apache::AuthzNIS ported

2003-08-01 Thread Shannon Eric Peevey
The uploaded file Apache-AuthzNIS-0.11.tar.gz has entered CPAN as file: $CPAN/authors/id/S/SP/SPEEVES/Apache-AuthzNIS-0.11.tar.gz size: 4305 bytes md5: 37bbbdc320c6bba7318d817e854bc8e1 Apache::AuthzNIS - mod_perl NIS Group Authorization module has been ported to work with both versions

mp2 works on MacOSX 10.2.6

2003-07-30 Thread Stas Bekman
Eric Choler reports on the dev list that mp2 builds and passes all tests with prefork and worker mpms on MacOSX 10.2.6 with perl 5.8.0 w/ithreads. There was another success report a few weeks ago. Do people still have problems with MacOSX? If you do please post the output of t/REPORT here. I

Re: [mp2 ANNOUNCE] Apache-ParseFormData-0.06 (new module)

2003-07-30 Thread Henrique Dias
Thank's for yours comments. You are right, is not a replacement for Apache::Request, is a alternative implementation. On Wed, 30 Jul 2003, Stas Bekman wrote: Henrique Dias wrote: I'm pleased to announce the release of Apache-ParseFormData-0.06, a replace for Apache::Request (libapreq).

[mp2 ANNOUNCE] Apache-ParseFormData-0.06 (new module)

2003-07-29 Thread Henrique Dias
I'm pleased to announce the release of Apache-ParseFormData-0.06, a replace for Apache::Request (libapreq). This module only work with mod_perl-2 and apache 2. http://search.cpan.org/author/HDIAS/Apache-ParseFormData-0.06/ParseFormData.pm Thanks, Henrique Dias --

Re: [mp2 ANNOUNCE] Apache-ParseFormData-0.06 (new module)

2003-07-29 Thread Stas Bekman
Henrique Dias wrote: I'm pleased to announce the release of Apache-ParseFormData-0.06, a replace for Apache::Request (libapreq). Cool. Though it's implemented in perl (==slower). Did you try to replicate it because of being frustrated of not having Apache::Request? Would be nice if the

[MP1 and MP2] Apache-AuthenSmb ported

2003-07-28 Thread Shannon Eric Peevey
Hi! The uploaded file Apache-AuthenSmb-0.70.tar.gz has entered CPAN as file: $CPAN/authors/id/S/SP/SPEEVES/Apache-AuthenSmb-0.70.tar.gz size: 4004 bytes md5: ac1b1a29f5070f81efb9f1362b5815dc Apache::AuthenSMB - mod_perl NT Authentication module has now been ported to work with both

Re: [MP1 and MP2] Apache-AuthenSmb ported

2003-07-28 Thread Stas Bekman
Shannon Eric Peevey wrote: Hi! The uploaded file Apache-AuthenSmb-0.70.tar.gz has entered CPAN as file: $CPAN/authors/id/S/SP/SPEEVES/Apache-AuthenSmb-0.70.tar.gz size: 4004 bytes md5: ac1b1a29f5070f81efb9f1362b5815dc Apache::AuthenSMB - mod_perl NT Authentication module has now been

Re: mp2: multiple include paths accross virtual servers?

2003-07-25 Thread Carl Brewer
Stas Bekman wrote: You need to add: PerlOptions +Parent PerlOption `Parent' requires an ithreads enabled Perl *doh* Carl

Re: mp2: multiple include paths accross virtual servers?

2003-07-25 Thread Stas Bekman
Carl Brewer wrote: Stas Bekman wrote: You need to add: PerlOptions +Parent PerlOption `Parent' requires an ithreads enabled Perl That's correct. prefork mpm is the same as mod_perl 1. __ Stas BekmanJAm_pH

[MP2] Placing Apache::RequestRec Apache::RequestIO APR::Tableuse statements in startup.pl

2003-07-24 Thread Jamie Krasnoo
Will placing Apache::RequestRec Apache::RequestIO APR::Table in startup.pl to load them up for multiple handlers have any bad side effects? I noticed that when I load them via startup.pl the handlers that use them don't complain that they don't have the use statements within the module code and

Re: [mp2] BEGIN blocks

2003-07-24 Thread Issac Goldstand
PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, July 20, 2003 10:21 PM Subject: Re: [mp2] BEGIN blocks Issac Goldstand wrote: I seem to be having some trouble that I think may be associated with BEGIN blocks. To make sure I'm not jumping at shadows, could someone tell me what the expected

Re: [MP2] Placing Apache::RequestRec Apache::RequestIO APR::Tableuse statements in startup.pl

2003-07-24 Thread Stas Bekman
Jamie Krasnoo wrote: Will placing Apache::RequestRec Apache::RequestIO APR::Table in startup.pl to load them up for multiple handlers have any bad side effects? I noticed that when I load them via startup.pl the handlers that use them don't complain that they don't have the use statements within

Re: [MP2] Placing Apache::RequestRec Apache::RequestIO APR::Table use statements in startup.pl

2003-07-24 Thread Jamie Krasnoo
On Thu, 2003-07-24 at 02:15, Stas Bekman wrote: Jamie Krasnoo wrote: Will placing Apache::RequestRec Apache::RequestIO APR::Table in startup.pl to load them up for multiple handlers have any bad side effects? I noticed that when I load them via startup.pl the handlers that use them

Re: [MP2] Placing Apache::RequestRec Apache::RequestIO APR::Tableuse statements in startup.pl

2003-07-24 Thread Issac Goldstand
Krasnoo [EMAIL PROTECTED] To: Modperl list [EMAIL PROTECTED] Sent: Thursday, July 24, 2003 11:32 AM Subject: [MP2] Placing Apache::RequestRec Apache::RequestIO APR::Tableuse statements in startup.pl Will placing Apache::RequestRec Apache::RequestIO APR::Table in startup.pl to load them up

Re: [MP2] Placing Apache::RequestRec Apache::RequestIO APR::Tableuse statements in startup.pl

2003-07-24 Thread Stas Bekman
Jamie Krasnoo wrote: On Thu, 2003-07-24 at 02:15, Stas Bekman wrote: Jamie Krasnoo wrote: Will placing Apache::RequestRec Apache::RequestIO APR::Table in startup.pl to load them up for multiple handlers have any bad side effects? I noticed that when I load them via startup.pl the handlers that

Re: [MP2] Placing Apache::RequestRec Apache::RequestIO APR::Table use statements in startup.pl

2003-07-24 Thread Perrin Harkins
On Thu, 2003-07-24 at 04:32, Jamie Krasnoo wrote: Will placing Apache::RequestRec Apache::RequestIO APR::Table in startup.pl to load them up for multiple handlers have any bad side effects? I noticed that when I load them via startup.pl the handlers that use them don't complain that they

mp2: multiple include paths accross virtual servers?

2003-07-24 Thread Carl Brewer
I'm running into something that may be a feature(!) of my misunderstanding of how mp works. I've got this defined in a VirtualHost directive: PerlRequire /data/www/foo/secure/etc/startup.pl For a number of different virtual servers. Is it possible for mp2 (or mp in general) to keep state

Re: mp2: multiple include paths accross virtual servers?

2003-07-24 Thread Stas Bekman
Carl Brewer wrote: I'm running into something that may be a feature(!) of my misunderstanding of how mp works. I've got this defined in a VirtualHost directive: PerlRequire /data/www/foo/secure/etc/startup.pl For a number of different virtual servers. Is it possible for mp2 (or mp in general

Re: cookies and POST in pure MP2?

2003-07-23 Thread Carl Brewer
Egor Korablev wrote: Hi How can I write and get cookies and get POST data (text) under MP2 handler without using apache::compat? You can either use libapreq, which is _almost_ there :) or hack yuor own bits up cribbed from CGI.pm or the test stuff in the mp2 test suite. That's what I'm using

Re: cookies and POST in pure MP2?

2003-07-23 Thread Stas Bekman
Carl Brewer wrote: Egor Korablev wrote: Hi How can I write and get cookies and get POST data (text) under MP2 handler without using apache::compat? You can either use libapreq, which is _almost_ there :) or hack yuor own bits up cribbed from CGI.pm or the test stuff in the mp2 test suite

Re: [mp2] beta of Apache-AuthenNTLM uploaded

2003-07-23 Thread Brett Hales
On Wed, 2003-07-23 at 04:51, Shannon Eric Peevey wrote: The uploaded file Apache-AuthenNTLM-2.01.tar.gz has entered CPAN as file: $CPAN/authors/id/S/SP/SPEEVES/Apache-AuthenNTLM-2.01.tar.gz size: 50644 bytes md5: f175a98ea668e81df9cc8d6db629facf The purpose of this module

Re: MP2 Redirection

2003-07-22 Thread Stas Bekman
Jamie Krasnoo wrote: What would be the best way to redirect in MP2? How would I set the Location in the header? not any different from mp1 (assuming that you have been working with mp1 before, but the mp1 documentation and literature can be used as a reference for most mp2 things). something

Re: MP2 Redirection

2003-07-22 Thread Jamie Krasnoo
On Tue, 2003-07-22 at 02:50, Stas Bekman wrote: Jamie Krasnoo wrote: What would be the best way to redirect in MP2? How would I set the Location in the header? not any different from mp1 (assuming that you have been working with mp1 before, but the mp1 documentation and literature can

Re: MP2 Redirection

2003-07-22 Thread Jamie Krasnoo
On Tue, 2003-07-22 at 03:10, Jamie Krasnoo wrote: On Tue, 2003-07-22 at 02:50, Stas Bekman wrote: Jamie Krasnoo wrote: What would be the best way to redirect in MP2? How would I set the Location in the header? not any different from mp1 (assuming that you have been working with mp1

Re: MP2 Redirection

2003-07-22 Thread Stas Bekman
uses REDIRECT within a handler for redirection. So I'm assuming it goes the same for MP2. You are right, one returns OK if using parsed headers, as in this example: sub handler { my $r = shift; my $location = $r-args; print Location: $location\n\n; Apache::OK; } I got

[mp2] beta of Apache-AuthenNTLM uploaded

2003-07-22 Thread Shannon Eric Peevey
The uploaded file Apache-AuthenNTLM-2.01.tar.gz has entered CPAN as file: $CPAN/authors/id/S/SP/SPEEVES/Apache-AuthenNTLM-2.01.tar.gz size: 50644 bytes md5: f175a98ea668e81df9cc8d6db629facf The purpose of this module is to perform a user authentication via Mircosoft's NTLM protocol.

MP2 Redirection

2003-07-21 Thread Jamie Krasnoo
What would be the best way to redirect in MP2? How would I set the Location in the header? something like this? my $r = Apache-request; # docs say $r-header_out and family are now deceased. $r-headers_out(Location = '/some/place.html'); return Apache::DECLINED; Jamie Krasnoo

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-07-21 Thread Bill Marrs
I can measure it myself if you can provide me with URLs to your resources and identify them in terms of which one is mod_CGI and which is mod_perl. This is the mod_cgi one that works fine, no errors: http://shevek.kenyonhill.com/cgi/test.pl This is the mod_perl one (same script) that generates

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-07-21 Thread Slava Bizyayev
- From: Bill Marrs [EMAIL PROTECTED] To: Slava Bizyayev [EMAIL PROTECTED]; Stas Bekman [EMAIL PROTECTED]; Philippe M. Chiasson [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, July 21, 2003 6:49 AM Subject: Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified) I can

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-07-21 Thread Bill Marrs
We can see that mod_cgi bufferizes the output and sends it with Content-Length HTTP header (to mod_deflate). Indeed mod_perl generates chunked response. Finally we have the same result. I don't see any problem at this moment. Well, the problem is that I get this error in my error_log: [Mon Jul

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-07-21 Thread Slava Bizyayev
Well, the problem is that I get this error in my error_log: [Mon Jul 21 14:18:55 2003] [error] 4297: ModPerl::RegistryBB: 20014:Error string not specified yet at /var/www/perl/test.pl line 6. Also, more important, the script seems to be terminating and/or any output following the 'print '

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-07-20 Thread Slava Bizyayev
Marrs [EMAIL PROTECTED] To: Slava Bizyayev [EMAIL PROTECTED]; Stas Bekman [EMAIL PROTECTED]; Philippe M. Chiasson [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, July 20, 2003 6:22 PM Subject: Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified) At 11:07 AM 7/19/2003

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-07-19 Thread Slava Bizyayev
: [EMAIL PROTECTED] Sent: Saturday, July 19, 2003 7:01 AM Subject: Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified) At 07:16 PM 7/18/2003, Slava Bizyayev wrote: In my understanding _it is_ a problem of mod_deflate. The error does not occur if I run the same test

[mp2] BEGIN blocks

2003-07-19 Thread Issac Goldstand
I seem to be having some trouble that I think may be associated with BEGIN blocks. To make sure I'm not jumping at shadows, could someone tell me what the expected behavior of BEGIN blocks in use()d modules is? How many times are they called (during server startup and/or restarts of any type)

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error stringnot specified)

2003-07-15 Thread Stas Bekman
Philippe M. Chiasson wrote: On Thu, 2003-07-03 at 01:24, Bill Marrs wrote: This fixed the bug for me. Great! Will commit it in the near future. (Can't seem to access the cvs server right now, crappy internet cafe) -1, this is a wrong solution. print ; should flush just like it did in mod_perl

Re: [MP2 - BUG ?] Issue handing Apache config. error messages

2003-07-15 Thread Stas Bekman
Issac Goldstand wrote: Right. Could you possibly clarify the difference between SetHandler perl-script and SetHandler modperl? I'm still not sure I've got the straight of it yet... You must be kidding ;) Have you read the sections at the URL posted below? Stas Bekman wrote: Sreeji K Das

Re: [mp2] Apache::DBI

2003-07-15 Thread Stas Bekman
Beau E. Cox wrote: Hi - I am running Apache 2.0.47/mod_perl 1.99-dev-10-cvs on SuSE Linux 8.2. I am trying to install and use Apache::DBI. [...] 2) The documentation says to configure mod_perl with: perl Makefile.PL PERL_CHILD_INIT=1 PERL_AUTHEN=1 PERL_AUTHZ=1

[mp2] Apache::Cookie

2003-07-15 Thread Swen Schillig
Are there any plans to have Apache::Cookie or does mp2 code always has to use CGI if there are cookies needed ? Swen

Re: [MP2 - BUG ?] Issue handing Apache config. error messages

2003-07-15 Thread Issac Goldstand
- Original Message - From: Stas Bekman [EMAIL PROTECTED] To: Issac Goldstand [EMAIL PROTECTED] Issac Goldstand wrote: Looking at it now, I tend to agree... I just have a vague recollection of my first mod_perl 2 handler (Written only 2 weeks ago, though I dabbled with the C API

Re: [mp2] Apache::Cookie

2003-07-15 Thread Stas Bekman
Swen Schillig wrote: Are there any plans to have Apache::Cookie or does mp2 code always has to use CGI if there are cookies needed ? Apache::Cookie is a part of the libapreq-2 library. It'll become available as soon as Apache::Request is released. You are more then welcome to join the libapreq

Re: [MP2 - BUG ?] Issue handing Apache config. error messages

2003-07-15 Thread Stas Bekman
Issac Goldstand wrote: [...] (Starting with mor_perl 2)... I'm toying with the idea of starting the porting tutorial, but I want to make sure it's written well for clueless people (which I probably still at least half count as :-)) and with accurate content. porting or starting? We already have

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-07-15 Thread Bill Marrs
At 04:24 AM 7/15/2003, Stas Bekman wrote: Philippe M. Chiasson wrote: On Thu, 2003-07-03 at 01:24, Bill Marrs wrote: This fixed the bug for me. Great! Will commit it in the near future. (Can't seem to access the cvs server right now, crappy internet cafe) -1, this is a wrong solution. print ;

Re: [mp2] Apache::Cookie

2003-07-15 Thread Perrin Harkins
On Tue, 2003-07-15 at 06:43, Swen Schillig wrote: Are there any plans to have Apache::Cookie or does mp2 code always has to use CGI if there are cookies needed ? Apache::Cookie is part of libapreq (along with Apache::Request), so you should follow libapreq development for this. - Perrin

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error stringnot specified)

2003-07-15 Thread Stas Bekman
Bill Marrs wrote: At 04:24 AM 7/15/2003, Stas Bekman wrote: Philippe M. Chiasson wrote: On Thu, 2003-07-03 at 01:24, Bill Marrs wrote: This fixed the bug for me. Great! Will commit it in the near future. (Can't seem to access the cvs server right now, crappy internet cafe) -1, this is a

Re: [mp2] Apache::Cookie

2003-07-15 Thread Joe Schaefer
Perrin Harkins [EMAIL PROTECTED] writes: On Tue, 2003-07-15 at 06:43, Swen Schillig wrote: Are there any plans to have Apache::Cookie or does mp2 code always has to use CGI if there are cookies needed ? Apache::Cookie is part of libapreq (along with Apache::Request), so you should follow

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-07-15 Thread Bill Marrs
that will help. Otherwise I'll later try with .46 as well. I just upgraded to Apache 2.0.47 and the latest CVS of mp2 and I'm reproducing it, same as I originally reported. I tried a few variations to see if I could find other factors, but didn't have much luck. The server I'm testing on is live (runs

[mp2] Apache::DBI

2003-07-14 Thread Beau E. Cox
Hi - I am running Apache 2.0.47/mod_perl 1.99-dev-10-cvs on SuSE Linux 8.2. I am trying to install and use Apache::DBI. 1) I get this error in make test: is($thread_1, $thread_2, got the same connection both times); It seems the I do not get the same connection. 2) The documentation

Re: [mp2] Apache::DBI

2003-07-14 Thread Haroon Rafique
On Yesterday at 10:01pm, BEC=Beau E. Cox [EMAIL PROTECTED] wrote: BEC BECShould I use 'connect' in my startup.pl? BEC BEC Have any of you sucessfully installed and used ADBI under BEC mod_perl 2? Any advice on what I'm missing? BEC Hi Beau, I'm using apache 2.0.46, mod_perl 1.9909, perl

Re: [MP2 - BUG ?] Issue handing Apache config. error messages

2003-07-14 Thread Issac Goldstand
Right. Could you possibly clarify the difference between SetHandler perl-script and SetHandler modperl? I'm still not sure I've got the straight of it yet... Issac Stas Bekman wrote: Sreeji K Das wrote: [...] You need to use 'SetHandler perl-script' for that, see:

Re: [mp2] Having trouble setting params with CGI

2003-07-14 Thread Stas Bekman
Michael Maciag wrote: I'm trying to use CGI to get/set params within my mp2 PerlResponseHandler, at least until Apache::Request for mp2 is released. The get works just fine but my clients don't see the params I'm trying to set. Is it likely I just have an error somewhere or is there anything I

Re: [mp2] Apache::DBI

2003-07-14 Thread Beau E. Cox
- Original Message - From: Haroon Rafique [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 14, 2003 3:23 AM Subject: Re: [mp2] Apache::DBI On Yesterday at 10:01pm, BEC=Beau E. Cox [EMAIL PROTECTED] wrote: BEC BECShould I use 'connect' in my startup.pl? BEC BEC Have

Re: [mp2] Can't call method method on an undefined value ... TestRequest.pmline 411

2003-07-14 Thread Stas Bekman
Doug Wyatt wrote: Also, it appears that blib/lib/Bundle/ApacheTest.pm is missing a ';' at the end of the third line. thanks, committed. -- __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/

Re: mp2: some POST data is showing up as a hashref after I parseit

2003-07-14 Thread Stas Bekman
Carl Brewer wrote: Apache 2.0.46 modperl 1.99-10.dev (CVS snapshot from last night) perl 5.8.0 NetBSD 1.6.1 I've got a form that I'm posting to an MP2 script, and am parsing the output with the following subroutines : sub hash_post { # returns a hash of all the POST values my ($r) = shift

Re: mp2: architectural question re authentication handlers

2003-07-11 Thread Cees Hek
Quoting Carl Brewer [EMAIL PROTECTED]: Forgive me for asking yet another fundamentally basic question. I'm cutting a web app over from PHP to mod_perl 2, and am wondering how 'best' (for which there are many flavours ...) to handle authentication. At present I've knocked up a site that

Re: mp2: architectural question re authentication handlers

2003-07-11 Thread Carl Brewer
Cees Hek wrote: [chomp] Thanks Cees, that's exactly what I needed :) My stuff is all completely generated by scripts where I need access control, but I certainly see the use for controlling static entity access. Carl

mp2: architectural question re authentication handlers

2003-07-10 Thread Carl Brewer
Forgive me for asking yet another fundamentally basic question. I'm cutting a web app over from PHP to mod_perl 2, and am wondering how 'best' (for which there are many flavours ...) to handle authentication. At present I've knocked up a site that does auth via a form and state tracking with

[MP2 - BUG ?] Issue handing Apache config. error messages

2003-07-09 Thread Sreeji K Das
Following demonstrates the problem: $ cat /tmp/test.conf Perl @Include = /tmp/test1.conf; /Perl Listen 43499 $ cat /tmp/test1.conf Perl $Port = 42480; /Perl $ httpd -X -f /tmp/test.conf Syntax error on line 7 of /tmp/test.conf: Use of uninitialized value in subroutine entry at

[MP2 BUG] PerlPassEnv issues

2003-07-07 Thread Sreeji K Das
Looks like PerlSetEnv's are not propagated as expected. I've pasted my original mail to the list. However, after going through the code, it looks like scfg-PassEnv is not synced with Perl's %ENV structure. Following is a simpler example: $ cat /tmp/test.conf Perl ; /Perl PerlPassEnv MY_TEST_VAR

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-07-04 Thread Philippe M. Chiasson
On Thu, 2003-07-03 at 01:24, Bill Marrs wrote: This fixed the bug for me. Great! Will commit it in the near future. (Can't seem to access the cvs server right now, crappy internet cafe) One thing that could help is if someone could take the time to write a test for this bug. Gozer out. At

[mp2] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-07-02 Thread Bill Marrs
When I use Apache 2.0.46, mod_deflate with mod_perl-1.99_09 (or the latest mod_perl-2.0 CVS), perl buffering is off ($|=1), and my perl script prints nothing (e.g. 'print ;'), I get the following error: [Wed Jul 02 10:10:00 2003] [error] 19513: ModPerl::RegistryBB: 20014:Error string not

[mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-07-02 Thread Philippe M. Chiasson
Seems to be a problem with calling IoFLUSH() on an already flushed handle. This patch seems to fix it for me. Index: xs/Apache/RequestIO/Apache__RequestIO.h === RCS file:

Re: [mp2 Patch] BUG with mod_deflate and $|=1 (20014:Error string not specified)

2003-07-02 Thread Bill Marrs
This fixed the bug for me. At 10:48 AM 7/2/2003, you wrote: #define mpxs_output_flush(r, rcfg) \ /* if ($|) */ \ -if (IoFLUSH(PL_defoutgv)) { \ +if (bytes 0 IoFLUSH(PL_defoutgv)) { \ MP_FAILURE_CROAK(modperl_wbucket_flush(rcfg-wbucket, TRUE)); \ }

[mp2] Building modperl2 on mac os x?

2003-06-28 Thread Michael Chamberlain
Hi Has anyone had any success in getting modperl2 to work on mac os x? make test cd src/modules/perl make -f Makefile.modperl make[1]: Nothing to be done for `all'. /usr/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \ t/TEST -clean *** setting ulimit to allow core files ulimit -c unlimited;

mp2: some POST data is showing up as a hashref after I parse it

2003-06-25 Thread Carl Brewer
Apache 2.0.46 modperl 1.99-10.dev (CVS snapshot from last night) perl 5.8.0 NetBSD 1.6.1 I've got a form that I'm posting to an MP2 script, and am parsing the output with the following subroutines : sub hash_post { # returns a hash of all the POST values my ($r) = shift; my

[mp2] Can't call method method on an undefined value ... TestRequest.pmline 411

2003-06-24 Thread Doug Wyatt
I've read several postings on what appears to be this same issue but I haven't seen a resolution, thus far. I've seen speculation that it involves setups where LWP isn't installed, so I installed libwww-perl-5.69 and its prerequisites, but I'm still seeing the problem. I'm working on HP-UX 11.0,

[mp2] Having trouble setting params with CGI

2003-06-23 Thread Michael Maciag
I'm trying to use CGI to get/set params withinmy mp2 PerlResponseHandler, at least until Apache::Request for mp2 is released. The get works just fine but my clients don't see the params I'm trying to set. Is it likely I just have an error somewhere or is there anything I have

RE: Does DBD::Pg work w/mp2?

2003-06-22 Thread Marc M. Adkins
DBD::Pg successfully w/mp2 at the current time??? From the DBD::Pg mailing list: - The version in CVS should work with threading, but the version on CPAN does not yet. You can download a cvs copy: http://gborg.postgresql.org/project/dbdpg/projdisplay.php

Does DBD::Pg work w/mp2?

2003-06-20 Thread Marc M. Adkins
in my startup.pl that I shouldn't, whatever. So I'm asking if anyone else is using DBD::Pg successfully w/mp2 at the current time??? In the meantime the DBD::PgPP driver works OK, but of course it probably won't perform as well. mma

Re: mp2: right place to unescape HTML?

2003-06-18 Thread Carl Brewer
Stas Bekman wrote: Carl Brewer wrote: I'm using Stas's read_post() call from the test directory in mp1.99-10-dev, and am using it to grab POST data of the form of an email address .. this is giving me this : read_post returned : username=carl%40somewherepassword=foo Escaped the @ ... of

Re: mp2: Session method not seeming to set extra records?

2003-06-18 Thread Carl Brewer
Carl Brewer wrote: I'm an idiot :) It's important that the user accessing a MySQL database to do any work with Apache::Session::MySQL or Session have update permission as well as insert, select and delete on the sessions table. Carl

mp2: right place to unescape HTML?

2003-06-17 Thread Carl Brewer
I'm using Stas's read_post() call from the test directory in mp1.99-10-dev, and am using it to grab POST data of the form of an email address .. this is giving me this : read_post returned : username=carl%40somewherepassword=foo Escaped the @ ... of course. I'm curios, where's the best place to

mp2: Re: Can't call method method on an undefined value at Apache-Test/lib/Apache/TestRequest.pm

2003-06-17 Thread Carl Brewer
Brent, I think Stas was having a bit of a look at it, I just ignored the error messages and installed it anyway :) Carl Brent Jensen wrote: Carl, I'm getting the same error on the make test w/ Mod Perl. Did you resolve this issue? I'm using FreeBSD 5.1. Is it really an issue or is it just a

mp2: Session method not seeming to set extra records?

2003-06-17 Thread Carl Brewer
mp1.99.10-dev apache 2.0.46 Session-0.01 (by Olivier Poitrey) I've got a subroutine as follows : sub login { # checks supplied username passwd against users table in db # if ok, creates a session returns session_id username # otherwise, returns 0 my ($supplied_username,

Re: [port to mp2] Apache::MP3

2003-06-17 Thread Stas Bekman
should be sent in nph- mode, and xmms seems to work just fine with it. Hopefully Clemens will provide a better port soonish. Lincoln On Monday 02 June 2003 07:37 am, Stas Bekman wrote: I've ported Apache::MP3 to mp2. I'm not submitting it as a patch yet, since I want to try to make the changes co

Re: mp2: right place to unescape HTML?

2003-06-17 Thread Stas Bekman
Carl Brewer wrote: I'm using Stas's read_post() call from the test directory in mp1.99-10-dev, and am using it to grab POST data of the form of an email address .. this is giving me this : read_post returned : username=carl%40somewherepassword=foo Escaped the @ ... of course. I'm curios,

Re: mp2: Re: Can't call method method on an undefined value at Apache-Test/lib/Apache/TestRequest.pm

2003-06-17 Thread Stas Bekman
Carl Brewer wrote: Brent, I think Stas was having a bit of a look at it, I just ignored the error messages and installed it anyway :) That issue wasn't resolved so far. I can't reproduce it on my setup. From Carl's reports it seems that $have_lwp is true for some reason, even though LWP is not

Re: UTF-8 support [was : (Re: [mp2] make test fails with 1.99_10-devsources on redhat)]

2003-06-14 Thread Stas Bekman
Perrin Harkins wrote: Mithun Bhattacharya wrote: If perl's UTF-8 support is broken in 5.8.0 doesnt that mean it will break any mod_perl application which is handling XML's or UTF-8 data ? I didn't say it was broken. I don't really know if it is. What I do know is that some documents,

RE: PerlOptions Clone/Parent in mp2

2003-06-13 Thread Philippe M. Chiasson
On Thu, 2003-06-12 at 02:59, Marc M. Adkins wrote: The code to implement blocks (e.g. TIPool.../TIPool) in config files is pretty gnarly, too. I know it's already there for Perl, it's one of the places I looked when I was considering doing one of my own and wanted to see an

RE: PerlOptions Clone/Parent in mp2

2003-06-13 Thread Marc M. Adkins
With something like a Proxy http://foo/*/Proxy block, mod_proxy does the right thing ( and the simple ) of using the power of ap_walk_config() to handler the parsing of the contents of the block. [...snip...] Reason Perl blocks can't do that is becasue we can't let httpd try and parse perl

UTF-8 support [was : (Re: [mp2] make test fails with 1.99_10-dev sources on redhat)]

2003-06-13 Thread Mithun Bhattacharya
--- Stas Bekman [EMAIL PROTECTED] wrote: My understanding is that setting locale to UTF8 makes it try to open everything as a UTF8 document, but not everything is one. It causes problems for Java and Konsole too apparently. It could simply be that Perl's handlling of UTF8 is broken,

Re: UTF-8 support [was : (Re: [mp2] make test fails with 1.99_10-devsources on redhat)]

2003-06-13 Thread Perrin Harkins
Mithun Bhattacharya wrote: If perl's UTF-8 support is broken in 5.8.0 doesnt that mean it will break any mod_perl application which is handling XML's or UTF-8 data ? I didn't say it was broken. I don't really know if it is. What I do know is that some documents, including CPAN modules, are not

RE: [mp2] make test fails nearly all tests...

2003-06-13 Thread Tim Howell
No problem. Today has been crazy, but I should be able to post this information on Monday morning. Thanks again. =) --TWH -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:38 PM To: Tim Howell Cc: [EMAIL PROTECTED] Subject: Re: [mp2] make

Re: mp2: really dumb q re getting values sent to a form

2003-06-12 Thread Stas Bekman
) print $r-args; prints a=4, you can also do: $r-args(a=5); Is that what you are after? Also see the guts of Apache/compat.pm for how it provides the backcompat functionality of doing: my %args = $r-args; don't expect this to ever be part of the mp2 API, it's CGI.pm or Apache::Request

<    1   2   3   4   5   6   7   >