Forking w/ mod_perl 2

2003-09-12 Thread Cameron B. Prince
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

Re: Forking w/ mod_perl 2

2003-09-12 Thread Richard F. Rebel
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 +

RE: Forking w/ mod_perl 2

2003-09-12 Thread Cameron B. Prince
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 hope at

Re: Advice sought for learning mod_perl (2 or 1)

2003-07-26 Thread Stas Bekman
Robert Lee wrote: Ged Haywood wrote: Q1: Is there a similar module to Apache::Request? Depends what you want to do, but not really. Care to try porting it? No no. Apache::Request 2 port is in works and it'll be available RSN thanks to Joe Schaefer and Randy Kobes who do an extraordinary

Re: Advice sought for learning mod_perl (2 or 1)

2003-07-25 Thread Robert Lee
Ged Haywood wrote: Q1: Is there a similar module to Apache::Request? Depends what you want to do, but not really. Care to try porting it? No no. Apache::Request 2 port is in works and it'll be available RSN thanks to Joe Schaefer and Randy Kobes who do an extraordinary job. Though it'll be

Advice sought for learning mod_perl (2 or 1)

2003-07-24 Thread Robert Lee
Hi everyone, I am new to Apache/mod_perl and everything else. I bought a fairly good book on Apache/mysql/mod_perl. Unfortunately, it is based on the Apache 1 server and mod_perl1. In doing so, it is using the Apache::Request module which has not been ported to mod_perl2 yet. Several

Re: Advice sought for learning mod_perl (2 or 1)

2003-07-24 Thread Ged Haywood
Hello there, On Thu, 24 Jul 2003, Robert Lee wrote: I am new to Apache/mod_perl and everything else. We're all still learning... I bought a fairly good book on Apache/mysql/mod_perl. There are others, see the mod_perl web site: http://perl.apache.org Unfortunately, it is based on the

Re: Advice sought for learning mod_perl (2 or 1)

2003-07-24 Thread Stas Bekman
Ged Haywood wrote: Q1: Is there a similar module to Apache::Request? Depends what you want to do, but not really. Care to try porting it? No no. Apache::Request 2 port is in works and it'll be available RSN thanks to Joe Schaefer and Randy Kobes who do an extraordinary job. Though it'll be

Re: Apache::Registry in mod_perl 2

2003-07-17 Thread ColinB
--- Stas Bekman [EMAIL PROTECTED] wrote: ColinB wrote: So how can I go about installing just Apache::Registry from the mod_perl 1 tar file without having to install ALL of mod_perl 1 ? simply copy it into one of the dirs in your @INC. You will also need to load Apache::compat for it to

Re: Apache::Registry in mod_perl 2

2003-07-17 Thread Stas Bekman
[please don't take the threads off the list] ColinB wrote: --- Stas Bekman [EMAIL PROTECTED] wrote: ColinB wrote: So how can I go about installing just Apache::Registry from the mod_perl 1 tar file without having to install ALL of mod_perl 1 ? simply copy it into one of the dirs in your @INC.

Apache::Registry in mod_perl 2

2003-07-15 Thread ColinB
This page: http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__Registry___C_Apache__PerlRun__and_Friends says that mod_perl 2's ModPerl::Registry does not chdir() into the script's directory, wheras mod_perl 1's Apache::Registry DOES chdir(). It also says that this will eventually

Re: Apache::Registry in mod_perl 2

2003-07-15 Thread Stas Bekman
ColinB wrote: This page: http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__Registry___C_Apache__PerlRun__and_Friends says that mod_perl 2's ModPerl::Registry does not chdir() into the script's directory, wheras mod_perl 1's Apache::Registry DOES chdir(). It also says

Re: Apache::Registry in mod_perl 2

2003-07-15 Thread Perrin Harkins
On Tue, 2003-07-15 at 08:44, ColinB wrote: So how can I go about installing just Apache::Registry from the mod_perl 1 tar file without having to install ALL of mod_perl 1 ? Just copy the Apache/Registry.pm file into the same directory that all your other Apache:: modules are in. - Perrin

mod_perl 2 and file upload how-to

2003-06-18 Thread Alejandro Galue
Hello, I need help in file uploading with mod_perl 2. Apache::Request is not compatible with mod_perl 2, and I want to know how can I upload file widthout using CGI.pm Please send me an example if possible. Thanks, Alejandro.

Re: mod_perl 2 and file upload how-to

2003-06-18 Thread Stas Bekman
Alejandro Galue wrote: Hello, I need help in file uploading with mod_perl 2. Apache::Request is not compatible with mod_perl 2, and I want to know how can I upload file widthout using CGI.pm Please send me an example if possible. Simply copy the relevant code from CGI.pm. Alternatively if you

Re: Problem with a custom response handler and mod_perl 2

2003-06-04 Thread Stas Bekman
Alejandro Galue wrote: Hello, I'm using redhat 8.0 (mod_perl-1.99_05-3, httpd-2.0.40-11.3). I created a custom handler for http responses, and I get this error in httpd log: [Tue Jun 03 07:42:53 2003] [error] [client 127.0.0.1] Can't locate object method header_in via package Apache::RequestRec

Problem with a custom response handler and mod_perl 2

2003-06-03 Thread Alejandro Galue
Hello, I'm using redhat 8.0 (mod_perl-1.99_05-3, httpd-2.0.40-11.3). I created a custom handler for http responses, and I get this error in httpd log: [Tue Jun 03 07:42:53 2003] [error] [client 127.0.0.1] Can't locate object method header_in via package Apache::RequestRec at

Mod_Perl 2?

2003-05-30 Thread Ryan Farrington
Ok here is the error I get when using the all-in-one install for mod_perl 2.0 Can't locate object method server_root_relative via package Apache at e:/Per l/site/lib/Apache/compat.pm line 69. Compilation failed in require at startup.pl line 13. BEGIN failed--compilation aborted at

Re: Mod_Perl 2?

2003-05-30 Thread Stas Bekman
Ryan Farrington wrote: Ok here is the error I get when using the all-in-one install for mod_perl 2.0 Can't locate object method server_root_relative via package Apache at e:/Per l/site/lib/Apache/compat.pm line 69. Compilation failed in require at startup.pl line 13. BEGIN

RE: Mod_Perl 2?

2003-05-30 Thread Ryan Farrington
(); use XML::LibXSLT(); 1; :: END CODE :: that is it... still compiles with an error =( -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:10 PM To: Ryan Farrington Cc: [EMAIL PROTECTED] Subject: Re: Mod_Perl 2? Ryan Farrington wrote: Ok here

Re: Mod_Perl 2?

2003-05-30 Thread Stas Bekman
Ryan Farrington wrote: Here is what the Command_Line_Lookups tells me: to use method 'server_root_relative' add: use Apache::ServerUtil (); [...] that is it... still compiles with an error =( right, the API change. Here is the correct URL:

Re: Mod_Perl 2?

2003-05-30 Thread Randy Kobes
On Thu, 29 May 2003, Ryan Farrington wrote: Ok here is the error I get when using the all-in-one install for mod_perl 2.0 Can't locate object method server_root_relative via package Apache at e:/Perl/site/lib/Apache/compat.pm line 69. Compilation failed in require at startup.pl line 13.

Re: [mp2.0] W2000, Apache 2.0.45, mod_perl-2 1.99_09-dev crashes

2003-04-05 Thread Sebastian Breier
with 2.0.42, they're working at maintaining configuration and module interface compatibility, so in principle upgrading from 2.0.44 to 2.0.45 shouldn't be a problem. But with a combination of Win32 and the relative complexity of mod_perl 2, this compatibility may not have survived I've tried

RE: [mp2.0] W2000, Apache 2.0.45, mod_perl-2 1.99_09-dev crashes

2003-04-04 Thread Melchior, Matthijs
Title: RE: [mp2.0] W2000, Apache 2.0.45, mod_perl-2 1.99_09-dev crashes Sebastian, Sooo, it IS possible to get this running on W2000. thanks! Now the big question: what is different between your system and ours...? Do you remember what happened during install, what non-standard

RE: [mp2.0] W2000, Apache 2.0.45, mod_perl-2 1.99_09-dev crashes

2003-04-04 Thread Sebastian Breier
problem with the installation? Mine went through without complaining, and the Apache worked after that. mod_perl-2 is installed over ActivePerl 5.8's PPM shell. No problems anywhere. Just now with 2.0.45. :-) We can get in touch off-list and exchange more details Sure... maybe this annoys the other

RE: [mp2.0] W2000, Apache 2.0.45, mod_perl-2 1.99_09-dev crashes

2003-04-04 Thread Melchior, Matthijs
Title: RE: [mp2.0] W2000, Apache 2.0.45, mod_perl-2 1.99_09-dev crashes Sebastian, -Original Message- From: Sebastian Breier [mailto:[EMAIL PROTECTED]] Sent: Friday, April 04, 2003 17:51 At 17:38 04.04.2003, Melchior, Matthijs wrote: Sebastian, Sooo

Re: [mp2.0] W2000, Apache 2.0.45, mod_perl-2 1.99_09-dev crashes

2003-04-04 Thread Randy Kobes
On Fri, 4 Apr 2003, Sebastian Breier wrote: Hi. I just upgraded Apache to 2.0.45 (from 2.0.44), and now most of my perl-generated sites crash. They worked perfectly before. Server is Apache 2.0.45 on W2000 + mod_perl-2 1.99_09-dev, as said in the subject. I just checked again

Re: [mp2.0] W2000, Apache 2.0.45, mod_perl-2 1.99_09-dev crashes

2003-04-04 Thread Sebastian Breier
with 2.0.42, they're working at maintaining configuration and module interface compatibility, so in principle upgrading from 2.0.44 to 2.0.45 shouldn't be a problem. But with a combination of Win32 and the relative complexity of mod_perl 2, this compatibility may not have survived I've tried

RE: [mp2.0] W2000, Apache 2.0.45, mod_perl-2 1.99_09-dev crashes

2003-04-04 Thread Sebastian Breier
to look! How exactly do you install Apache and mod_perl-2? My install/upgrade process is this: - Install Apache via MSI file - Open ActivePerl's PPM - Add mod_perl-2 PPM repository ( http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer58 ActivePerl 5.8 only) - install mod_perl from

Re: problems installing mod_perl 2

2003-03-07 Thread Stas Bekman
CPAN shell). Does make install add some more stuff besides mod_perl.so? My perl is in a read only path, so this might be the problem, but I'm not sure... Which are the specific dependencies for mod_perl 2? It's all very well documented. Please spend some time at: http://perl.apache.org/docs/2.0

file upload under mod_perl 2 wihout CGI.pm

2003-03-04 Thread Egor Korablev
Hello.How can I get file upload from form using mod_perl 2 without CGI.pm?thx

Re: file upload under mod_perl 2 wihout CGI.pm

2003-03-04 Thread Nick Tonkin
On Tue, 4 Mar 2003, Egor Korablev wrote: Hello. How can I get file upload from form using mod_perl 2 without CGI.pm? thx You can't. At least not in an easy way, which I guess is what you want. Apache::Request is not ported to mod_perl 2 yet. Time to fall back in love with CGI.pm, just like

RE: mod_perl 2 apache::session and or die

2003-02-21 Thread Chris Faust
To: Chris Faust Cc: Modperl Subject: Re: mod_perl 2 apache::session and or die Chris Faust wrote: All works well except when there is any kind of problem in the script where the condition will die.. [...] When this happens everything to do with that script is unresponsive - I know

mod_perl 2 apache::session and or die

2003-02-19 Thread Chris Faust
I'm having a problem since installing Apache::Session All works well except when there is any kind of problem in the script where the condition will die.. For example: $db-execute() or die... open yadda or die.. $db-prepare() or die... etc. When this happens everything to do with that script is

Re: mod_perl 2 apache::session and or die

2003-02-19 Thread Perrin Harkins
comes up (standard server error) and that is the last thing that is logged, if you try to go back and refresh the hourglass will go for hours and nothing happens and nothing is ever logged It sounds like a locking problem to me. I'm guessing that mod_perl 2 is not calling the right hooks when

Re: mod_perl 2 apache::session and or die

2003-02-19 Thread Stas Bekman
it. What happens is the error comes up (standard server error) and that is the last thing that is logged, if you try to go back and refresh the hourglass will go for hours and nothing happens and nothing is ever logged It sounds like a locking problem to me. I'm guessing that mod_perl 2

Re: Apache::DBI and mod_perl 2

2003-02-18 Thread Kyle Oppenheim
[EMAIL PROTECTED] wrote: Any plans to make Apache::FakeRequest work well enough to make this possible? [EMAIL PROTECTED] wrote: As for mod_perl 1.0, I'm not sure, but if you can make it useful that would be cool. A while back Andrew Ho posted his script, apr, that is similar to

RE: Apache::DBI and mod_perl 2

2003-02-17 Thread Chris Faust
Also remember, that you can't test modules that require mod_perl to run from the command line. You'd have the same result with mod_perl 1.0 Thanks, I didn't know that at all as I test all my modules that way and have never had a problem.. Of course most are not mod_perl specific. -Chris

Re: Apache::DBI and mod_perl 2

2003-02-17 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Any plans to make Apache::FakeRequest work well enough to make this possible? There are plans. Here is an entry from modperl-2.0/todo/api.txt: Apache::FakeRequest: since APR can be used outside of httpd, and we can alloc request_rec and similar structures, it should be

Re: Apache::DBI and mod_perl 2

2003-02-16 Thread Stas Bekman
Chris Faust wrote: Hey Helmut, Yes, I'm sure its Apache::DBI - when I try to check for it directly via perl -MModule::Name, I get the error.. Where is a copy paste from the command line. [chrisf@web1 chrisf]$ perl -MApache::DBI -e 0 Can't locate Apache/Constants.pm in @INC (@INC contains:

Apache::DBI and mod_perl 2

2003-02-14 Thread Chris Faust
receive the error of: Can't locate Apache/Constants.pm in @INC I've learned in mod_perl 2 that Apache::Constants was replaced by 3 new classes (Apache::Const,APR::Const,Modperl::Const). But what do I do to get Apache::DBI to work? Am I missing something really simple here (I hope)? Thanks -Chris

Re: Apache::DBI and mod_perl 2

2003-02-14 Thread Dr. Helmut Zeilinger
Apache::DBI I receive the error of: Can't locate Apache/Constants.pm in @INC I've learned in mod_perl 2 that Apache::Constants was replaced by 3 new classes (Apache::Const,APR::Const,Modperl::Const). But what do I do to get Apache::DBI to work? Am I missing something really simple here (I

Re: Apache::DBI and mod_perl 2

2003-02-14 Thread Nick Tonkin
and the solution didn't relate. Anyway, I've updated to RedHat 8.0 and Apache 2.0.44 with Mod_Perl 1.99.08 and if I try to use Apache::DBI I receive the error of: Can't locate Apache/Constants.pm in @INC I've learned in mod_perl 2 that Apache::Constants was replaced by 3 new classes

RE: Apache::DBI and mod_perl 2

2003-02-14 Thread Chris Faust
:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 9:26 AM To: Chris Faust; Modperl Subject: Re: Apache::DBI and mod_perl 2 Hi Chris, are you shure that is is the Apache::DBI, that needs the Apache::Constants or is it another module? For me Apache::DBI loads without problems (2.044/1.9908

RE: Apache::DBI and mod_perl 2

2003-02-14 Thread Chris Faust
Subject: Re: Apache::DBI and mod_perl 2 Do you have the latest Apache::DBI ? Ask made a new one a couple of weeks ago to run with mp2. On Fri, 14 Feb 2003, Chris Faust wrote: Hi, My problem seems like one that would be well documented, but I can't find anything in any of the docs

RE: Apache::DBI and mod_perl 2

2003-02-14 Thread Nick Tonkin
On Fri, 14 Feb 2003, Chris Faust wrote: Maybe that is the problem? I'm using 0.89 which is the newest from CPAN and that shows Jun 18.. Is there a later version available? You can always search the archives of this list at http://marc.theaimsgroup.com/?l=apache-modperlr=1w=2 The message

RE: Apache::DBI and mod_perl 2

2003-02-14 Thread Chris Faust
Subject: RE: Apache::DBI and mod_perl 2 On Fri, 14 Feb 2003, Chris Faust wrote: Maybe that is the problem? I'm using 0.89 which is the newest from CPAN and that shows Jun 18.. Is there a later version available? You can always search the archives of this list at http

Re: Has Apache::Cookie been ported to mod_perl-2 yet?

2003-02-13 Thread wsheldah
Charles McElhose Jr. [EMAIL PROTECTED] on 02/10/2003 10:43:57 PM To:[EMAIL PROTECTED] cc: Subject:Has Apache::Cookie been ported to mod_perl-2 yet? Has Apache::Cookie been ported to mod_perl-2 yet? I tried to install the libapreq-1.1 module with mod_perl-2/apache 2 and am getting a can't

Re: Has Apache::Cookie been ported to mod_perl-2 yet?

2003-02-13 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: No it hasn't. Need to use CGI::Cookie for the time being. Apache::Cookie and Apache::Request I believe are both either provided by or dependent on libapreq, which is still a work in progress for apache2/mod_perl2. That's the biggest reason I'm still using Apache 1.3.x

Has Apache::Cookie been ported to mod_perl-2 yet?

2003-02-12 Thread Charles McElhose Jr.
Has Apache::Cookie been ported to mod_perl-2 yet? I tried to install the libapreq-1.1 module with mod_perl-2/apache 2 and am getting a can't locate Apache/MyConfig.pm ... error. Charles M. [EMAIL PROTECTED]

Fw: Has Apache::Cookie been ported to mod_perl-2 yet?

2003-02-11 Thread Charles McElhose Jr.
Has Apache::Cookie been ported to mod_perl-2 yet? I tried to install the libapreq-1.1 module with mod_perl-2/apache 2 and am getting a can't locate Apache/MyConfig.pm ... error. Charles M.

Re: Fw: Has Apache::Cookie been ported to mod_perl-2 yet?

2003-02-11 Thread Charles O. McElhose Jr.
Thanks, is there any word on when this may happen? Charles

Re: Fw: [Perl] how to static link mod_perl 2 into apache 2.0

2003-02-11 Thread Casey Songer
appropriate here :-) - Original Message - *From:* Ron Gidron mailto:[EMAIL PROTECTED] *Sent:* Monday, February 10, 2003 3:48 PM *Subject:* [Perl] how to static link mod_perl 2 into apache 2.0 I am trying to install a Mason based system. This package requires mod_perl statically linked

Re: Fw: Has Apache::Cookie been ported to mod_perl-2 yet?

2003-02-11 Thread Stas Bekman
Charles O. McElhose Jr. wrote: Thanks, is there any word on when this may happen? Subscribe to the apreq-dev list to stay up to date with the recent developments http://httpd.apache.org/apreq/ meanwhile use CGI::Cookie if you work with mod_perl 2.0.

Fw: [Perl] how to static link mod_perl 2 into apache 2.0

2003-02-10 Thread Issac Goldstand
Forwarding this from another list, because it's more appropriate here :-) - Original Message - From: Ron Gidron Sent: Monday, February 10, 2003 3:48 PM Subject: [Perl] how to static link mod_perl 2 into apache 2.0 I am trying to install a Mason based system. This package

Re: Fw: [Perl] how to static link mod_perl 2 into apache 2.0

2003-02-10 Thread Stas Bekman
Issac Goldstand wrote: Forwarding this from another list, because it's more appropriate here :-) - Original Message - *From:* Ron Gidron mailto:[EMAIL PROTECTED] *Sent:* Monday, February 10, 2003 3:48 PM *Subject:* [Perl] how to static link mod_perl 2 into apache 2.0 I am trying

mod_perl 2 APache 2.0 MPM

2003-01-19 Thread Sinclair, Alan (CORP, GEAccess)
All, Starting to strike the first blows with Apache 2.0. I am now wondering about thread safety with mod_perl 2. Will mod_perl support a threaded MPM Apache config ? Thanks,

Re: mod_perl 2 APache 2.0 MPM

2003-01-19 Thread Stas Bekman
Sinclair, Alan (CORP, GEAccess) wrote: All, Starting to strike the first blows with Apache 2.0. I am now wondering about thread safety with mod_perl 2. Will mod_perl support a threaded MPM Apache config ? Why using the future tense, it does support the threaded mpm pretty much from the very

Re: mod_perl 2 and problems w/ ErrorDocument Directive

2002-12-27 Thread Terra Info
Sounds good. Thanks for the help. I will patch my copy. Will all MP1 functionality be migrating over to MP2? In particular the PerlHandler Apache::Status functionality. Thanks, Tom Stas Bekman wrote: Terra Info wrote: PS: I forgot to let you know if it works on MP1. I do not have that

Re: mod_perl 2 and problems w/ ErrorDocument Directive

2002-12-27 Thread Stas Bekman
Terra Info wrote: Sounds good. Thanks for the help. I will patch my copy. Or just grab the latest cvs. Will all MP1 functionality be migrating over to MP2? Pretty much yes. In particular the PerlHandler Apache::Status functionality. Doug mentioned that most of its functionality works

[win32] perl-5.8/mod_perl-2 binary

2002-12-27 Thread Randy Kobes
is still advised). Included in the Apache2 distribution are a sample ModPerl::Registry script, a simple mod_perl-2 handler, and sample Apache::ASP and HTML::Mason pages. An Emberl ppm package will be made when available. Please let me know of any problems you encounter in the installation

Re: mod_perl 2 and problems w/ ErrorDocument Directive

2002-12-23 Thread Terra Info
Thanks for the help. Below is all the info you requested. I have also attached the test script (code below for those attachement challenged, et al;) and an example can be seen at http://dev.terranovum.com/some-bad-link/. To see what it should be doing call it directly at

Re: mod_perl 2 and problems w/ ErrorDocument Directive

2002-12-23 Thread Terra Info
PS: I forgot to let you know if it works on MP1. I do not have that installed on any machines so if someone out there on the list could check that out and post back I would appreciate it. Everything you need is below. Tom Terra Info wrote: Thanks for the help. Below is all the info you

Re: mod_perl 2 and problems w/ ErrorDocument Directive

2002-12-23 Thread Stas Bekman
Terra Info wrote: PS: I forgot to let you know if it works on MP1. I do not have that installed on any machines so if someone out there on the list could check that out and post back I would appreciate it. Everything you need is below. Here is the fix, I've messed up this part while porting.

mod_perl 2 and problems w/ ErrorDocument Directive

2002-12-20 Thread Terra Info
I have a script that provides custom error messages that I set up using the ErrorDocument directive (ie; ErrorDocument 400 /cgi-global/error.pl?error=400useXML=1). When run under typical mod_cgi all works as planned and it outputs the proper stuff. When run under mod_perl it outputs the same

Re: mod_perl 2 and problems w/ ErrorDocument Directive

2002-12-20 Thread Stas Bekman
Terra Info wrote: I have a script that provides custom error messages that I set up using the ErrorDocument directive (ie; ErrorDocument 400 /cgi-global/error.pl?error=400useXML=1). When run under typical mod_cgi all works as planned and it outputs the proper stuff. When run under mod_perl it

mod_perl-2 configuration problem

2002-12-19 Thread Carl Holm
Hello, After adding 'LoadModule perl_module modules/mod_perl.so' and / or 'PerlRequire C:/Apache2/conf/extra.pl' to httpd.conf , my Apache (2.0.43) HTTP server fails. I am using mod_perl 1.99_08-dev. Any thought s would be greatly appreciated. Thanks, Carl Holm

RE: mod_perl-2 configuration problem

2002-12-19 Thread Beau E. Cox
:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 12:47 PM To: [EMAIL PROTECTED] Subject: mod_perl-2 configuration problem Hello, After adding 'LoadModule perl_module modules/mod_perl.so' and / or 'PerlRequire C:/Apache2/conf/extra.pl' to httpd.conf , my Apache (2.0.43) HTTP server fails. I

Re: mod_perl-2 configuration problem

2002-12-19 Thread Randy Kobes
appreciated. Thanks, Carl Holm This could be a number of things ... Are there any messages printed out to the screen or in the error log? If installing by ppm, did you get a mod_perl-2 package? And did you get the right one for your Perl version? And did mod_perl.so install OK in your Apache2 modules

Re: default Content-Length calculation has been removed in 2.0 (was Re: mod_perl 2.x vs. mod_perl 1.x benchmarks)

2002-11-29 Thread Issac Goldstand
Issac Goldstand wrote: I think I got it... I was under the understanding that each fireman could only hande 1 bucket at a time, but there could be up to as many buckets as firemen on the stack at any given time... Do you know why it's like that? a limitation of the current mpms, there

Re: default Content-Length calculation has been removed in 2.0 (wasRe: mod_perl 2.x vs. mod_perl 1.x benchmarks)

2002-11-29 Thread Stas Bekman
Well, it's been getting *WAY* OT - more geared for dev@httpd if anywhere, but I'm sure they've argued this out already :-) My initial ideas all counted on the fact that each handler/filter would have a way of getting its own per-request thread... On the opposite, IMHO this is very ON topic,

Re: default Content-Length calculation has been removed in 2.0 (was Re: mod_perl 2.x vs. mod_perl 1.x benchmarks)

2002-11-28 Thread Issac Goldstand
- Original Message - From: Stas Bekman [EMAIL PROTECTED] Cc: Ask Bjoern Hansen [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, November 28, 2002 11:07 AM Subject: default Content-Length calculation has been removed in 2.0 (was Re: mod_perl 2.x vs. mod_perl 1.x benchmarks) Actually

Re: default Content-Length calculation has been removed in 2.0 (wasRe: mod_perl 2.x vs. mod_perl 1.x benchmarks)

2002-11-28 Thread Stas Bekman
[Issac's view snipped] Rather than commenting on your view Issac, please allow me to try again to explain how I think it works, hopefully more clear this time: Let's forget for a moment about buckets inside bridades, and call the brigades themselves entities that are passed along. Now think

Re: newbie:How to get form input in mod_perl 2 since Apache::requestis not implemented yet ?

2002-11-10 Thread Stas Bekman
BuffaloRC Club wrote: Hi all, I am a newbie to mod_perl and going straight to mod_perl 2. If you want to play with 2.0 it's cool, but you may find that it's not yet ready for production, as not all APIs are available yet. On the other hand 1.27 is a *very* robust version. Have successfully

Re: How to parse after reading POST data in mod_perl 2 ?

2002-11-04 Thread Sumitro Chowdhury
Thanks Philippe for the tip. After looking at Apache2::Apache::compat and some input from Randy Kobes, I came up with the following package called getform.pm which gets the form data into a hash without using Apache::compat. (Hope it will help some newbie !!): package ModPerl::getform; use

Re: Should I be coding with mod_perl 2 yet?

2002-11-01 Thread Ged Haywood
Hi there, On 1 Nov 2002, Clinton Gormley wrote: I'm struggling to get anything much working with mod_perl 2. [snip] I have read all of the documentation on perl.apache.org. Are you sure? :) If these things should be working, Well it does say on the home page that it's the Bleeding Edge

Re: Should I be coding with mod_perl 2 yet?

2002-11-01 Thread Geoffrey Young
Clinton Gormley wrote: I'm struggling to get anything much working with mod_perl 2. I have installed mod_perl 1.99_07 with Apache 2.0.43. I have read all of the documentation on perl.apache.org. I can get a basic page returned to me with a modperl handler, but as soon as I try to do anything

Re: Should I be coding with mod_perl 2 yet?

2002-11-01 Thread Sumitro Chowdhury
Hi, well I have read all (whatever scanty little available) docs on mod_perl 2 and am pretty disappointed. For example Apache::Request is not ready yet so you need Apache::compat and mod_perl 1 for basic POST request handling and parsing. In my opinion, stay with mod_perl 1. -Sumitro Chowdhury

Re: Should I be coding with mod_perl 2 yet?

2002-11-01 Thread Randy Kobes
On Fri, 1 Nov 2002, Sumitro Chowdhury wrote: Hi, well I have read all (whatever scanty little available) docs on mod_perl 2 and am pretty disappointed. Additions, I'm sure, are welcome :) For example Apache::Request is not ready yet so you need Apache::compat and mod_perl 1 for basic POST

Re: Should I be coding with mod_perl 2 yet?

2002-11-01 Thread Sumitro Chowdhury
--- Randy Kobes [EMAIL PROTECTED] wrote: On Fri, 1 Nov 2002, Sumitro Chowdhury wrote: Hi, well I have read all (whatever scanty little available) docs on mod_perl 2 and am pretty disappointed. Additions, I'm sure, are welcome :) For example Apache::Request is not ready yet so

Re: Should I be coding with mod_perl 2 yet?

2002-11-01 Thread Randy Kobes
On Fri, 1 Nov 2002, Sumitro Chowdhury wrote: H I thought POST request handling needs $r-read($buf,$r-headers_in-{'Content-length'}) and GET request handling needs $r-args(); Sorry about that - I should have read more carefully that you were specifically referring to POSTed data -

Re: Should I be coding with mod_perl 2 yet?

2002-11-01 Thread Sumitro Chowdhury
--- Randy Kobes [EMAIL PROTECTED] wrote: my %args = $r-Apache::args; is for GET requests. For POST, as is described in the content() method of Apache::compat, for now one can use $r-setup_client_block; # return an error unless $r-should_client_block; my $len =

How to parse after reading POST data in mod_perl 2 ?

2002-10-31 Thread Sumitro Chowdhury
Hi all, Please help ... Using Apache/2.0.43 (Unix) mod_perl/1.99_07-dev Perl/v5.8.0 . I read in POST data from Form using $r-read($buff,$r-headers_in-{'Content-length'}) Since I donot use Apache::compat, what API methods are available to parse this string data ? ( possibly convert it to a hash

newbie:How to get form input in mod_perl 2 since Apache::request is not implemented yet ?

2002-10-30 Thread BuffaloRC Club
Hi all, I am a newbie to mod_perl and going straight to mod_perl 2. Have successfully written basic handler (API). Have not installed mod_perl 1.x Not using Apache::compat. ( Donot intend to use CGI.pm either ) In this case how to use methods from Apache::Request like $q-param() etc? I can get

[MP2] Net::LDAP/Convert::ASN1 and mod_perl 2

2002-10-18 Thread Mrs. Brisby
I'm using Mod_perl (1.99_07), Apache 2, and using the threaded MPM. I have ithreads installed and most everything works excellently. I am having a problem using Net::LDAP- specifically with $ldh-add() operations. $ldh-search() works fine, $ldh-modify also seems to work. Has anyone else

Problem with CGI.pm and mod_perl 2

2002-10-16 Thread luc . prieur
Hi, I have a problem when porting an application from Apache 1.23.x + mod_perl 1.0 to Apache 2.xx + mod_perl 2.0. One of the scripts receives as argument a filename (with no path info), and the scripts is suppose to open the file from the same directory in which the script is located and

Re: Problem with CGI.pm and mod_perl 2

2002-10-16 Thread Randy Kobes
On Wed, 16 Oct 2002 [EMAIL PROTECTED] wrote: Hi, I have a problem when porting an application from Apache 1.23.x + mod_perl 1.0 to Apache 2.xx + mod_perl 2.0. One of the scripts receives as argument a filename (with no path info), and the scripts is suppose to open the file from the

Re: install/config mod_perl-2(1.99_08)

2002-10-06 Thread Randy Kobes
binaries on our site for both mod_perl-2 and mod_perl-1, including the ppm files and the all-in-one packages, to use the latest Apache sources (2.0.43 and 1.3.27), in light of the security concerns in older versions. All the mod_perl tests for the various packages passed on my system

install/config mod_perl-2(1.99_08)

2002-10-03 Thread Paul Simon
Is there something in the configuration not jiving? Windows 2000, Apache 2.0.42, mod_perl-2(1.99_08-dev via ppm) In http.conf I have:Include conf/test.confAddHandler cgi-script .cgiIn test.conf I have:PerlRequire "C:/Apache2/conf/startup.pl"Location /test/ Options +ExecCGI SetHandler p

Re: install/config mod_perl-2(1.99_08)

2002-10-03 Thread Randy Kobes
On Thu, 3 Oct 2002, Paul Simon wrote: Is there something in the configuration not jiving? Windows 2000, Apache 2.0.42, mod_perl-2(1.99_08-dev via ppm) In http.conf I have: Include conf/test.conf AddHandler cgi-script .cgi In test.conf I have: PerlRequire C:/Apache2/conf/startup.pl

RE: install/config mod_perl-2(1.99_08)

2002-10-03 Thread Ben Mathews
rather new. Things have progressed smoothly enough using apache versions 1.x and mod_perl 1.x I didn't think of trying perl 5.8, but would be glad to if that is going to help things. I would like the capabilities that Apache and mod_perl 2.x give. Ben -Original Message- From: Randy Kobes

RE: install/config mod_perl-2(1.99_08)

2002-10-03 Thread Randy Kobes
of trying perl 5.8, but would be glad to if that is going to help things. I would like the capabilities that Apache and mod_perl 2.x give. Ben I've found that using 5.8 often is more stable than 5.6.1, as far as mod_perl-2 goes - it's definitely worth trying out for development. -- best regards

Re: install/config mod_perl-2(1.99_08)

2002-10-03 Thread Paul Simon
Randy Kobes <[EMAIL PROTECTED]>wrote: On Thu, 3 Oct 2002, Paul Simon wrote: Is there something in the configuration not jiving? Windows 2000, Apache 2.0.42, mod_perl-2(1.99_08-dev via ppm) In http.conf I have: Include conf/test.conf AddHandler cgi-script .cgi In test.conf I have: PerlR

Re: mod_perl 2.x vs. mod_perl 1.x benchmarks

2002-09-20 Thread Frank Wiles
.--[ Ask Bjoern Hansen wrote (2002/09/19 at 01:47:39) ]-- | | On Wed, 18 Sep 2002, Josh Chamas wrote: | | [...] | So I run it again with ServerTokens Min, and get the same results. :) | Still something different on the mod_perl headers, looks like mod_perl | 2.x

Re: mod_perl 2.x vs. mod_perl 1.x benchmarks

2002-09-19 Thread Ask Bjoern Hansen
On Wed, 18 Sep 2002, Josh Chamas wrote: [...] So I run it again with ServerTokens Min, and get the same results. :) Still something different on the mod_perl headers, looks like mod_perl 2.x is setting Content-Length where it didn't use to. The details evade me, but I recall something about

Re: mod_perl 2.x vs. mod_perl 1.x benchmarks

2002-09-19 Thread siberian
mod_perl 2.x is setting Content-Length where it didn't use to. The details evade me, but I recall something about how the buckets work in the httpd that makes httpd 2.0 always know (and set) the Content-Length. There was discussion about changing it; but I don't remember the outcome. (yes

mod_perl 2.x vs. mod_perl 1.x benchmarks

2002-09-18 Thread Josh Chamas
Hey mod_perl users, I just did a benchmarks to compare mod_perl + apache versions 1 2. What I find striking is that without any optimizations, the v2 mod_perl apache are faster. I'm really blown away, as I was expecting the new versions to be slower with v1 configurations. Here's the numbers

Re: mod_perl 2.x vs. mod_perl 1.x benchmarks

2002-09-18 Thread Perrin Harkins
Josh Chamas wrote: I just did a benchmarks to compare mod_perl + apache versions 1 2. Cool. Any idea why bytes/hit is lower on apache 2? Are some headers being omitted? - Perrin

Re: mod_perl 2.x vs. mod_perl 1.x benchmarks

2002-09-18 Thread Josh Chamas
, this makes a difference? *sigh* So I run it again with ServerTokens Min, and get the same results. :) Still something different on the mod_perl headers, looks like mod_perl 2.x is setting Content-Length where it didn't use to. Apache/1.3.26 Test Name Test File

Re: win32 apache2.0.40 mod_perl-2

2002-08-18 Thread Randy Kobes
hangs seemingly forever... I can try installing a simple hello world handler, skipping ModPerl::Registry, and see if that works... Hi Paul, I just uploaded a new mod_perl-2 ppm package to http://theoryx5.uwinnipeg.ca/ppmpackages/ which you may want to try - this was still compiled against apache

  1   2   >