Re: How practical is that Practical mod_perl?

2003-06-16 Thread Slava Bizyayev
>From this point the discussion is switched to the thread "Content compressed FAQ". See you there! Thanks, Slava - Original Message - From: "David Dick" <[EMAIL PROTECTED]> To: "Slava Bizyayev" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, June 14, 2003 5:20 PM Subject: Re:

Re: How practical is that Practical mod_perl?

2003-06-16 Thread Slava Bizyayev
>From this point the discussion is switched to the thread "Content compressed FAQ". See you there! Thanks, Slava - Original Message - From: "Carl Brewer" <[EMAIL PROTECTED]> To: "Stas Bekman" <[EMAIL PROTECTED]> Cc: "Slava Bizyayev" <[EMAIL PROTECTED]>; "Perrin Harkins" <[EMAIL PROTECTED

Re: How practical is that Practical mod_perl?

2003-06-16 Thread Slava Bizyayev
>From this point the discussion is switched to the thread "Content compressed FAQ". See you there! Thanks, Slava - Original Message - From: "Stas Bekman" <[EMAIL PROTECTED]> To: "Slava Bizyayev" <[EMAIL PROTECTED]> Cc: "Perrin Harkins" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Satur

Re: How practical is that Practical mod_perl?

2003-06-16 Thread Slava Bizyayev
>From this point the discussion is switched to the thread "Content compressed FAQ". See you there! Thanks, Slava - Original Message - From: "Perrin Harkins" <[EMAIL PROTECTED]> To: "Slava Bizyayev" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, June 13, 2003 10:20 AM Subject:

Content compression FAQ

2003-06-16 Thread Slava Bizyayev
Hello everyone again, This thread is supposed to improve Content Compression FAQ at http://perl.apache.org/docs/tutorials/client/compression/compression.html in order to assist Practical mod_perl as Stas suggested. Any of your questions, suggestions, concerns, and/or criticisms of FAQ would be hi

Re: temporal directory used by apache/mod-perl?

2003-06-16 Thread Mike P. Mikhailov
Hello Hector Pizarro, Tuesday, June 17, 2003, 1:47:04 PM, you wrote: HP> Hello, last week I asked about the problem I had with the partial uploaded HP> files,and how Apache::Request never got the error code correctly. (By the way, HP> thanks for the answer, looks like a bug) Well, the solution fo

Re[2]: each considered harmful?

2003-06-16 Thread Mike P. Mikhailov
Hello Marcin Kasperski, Tuesday, June 17, 2003, 3:13:23 AM, you wrote: >> > sub handler { >> >> > my $r = shift; >> > my $uri = $r->uri; >> > ... detecting dynamic handlers ... >> > while( my($url, $dirs) = each %STATIC_FILES ) { >> > if( $uri =~ m{$url/(.*)$} ) { >> >

temporal directory used by apache/mod-perl?

2003-06-16 Thread Hector Pizarro
Hello, last week I asked about the problem I had with the partial uploaded files,and how Apache::Request never got the error code correctly. (By the way, thanks for the answer, looks like a bug) Well, the solution for me was to use Apache read() and parse the incoming data myself. Uf, what a job!

Re: IPC::Open3

2003-06-16 Thread Stas Bekman
Rasoul Hajikhani wrote: Hi there, I am having trouble making open3 work with perl, v5.6.1 built for i386-linux. I am running Apache/1.3.27 Ben-SSL/1.48 (Unix) PHP/4.2.3 mod_perl/1.27. My problem is that I can't write to STDIN. Does any one know of any solution to this problem? Has any one encoun

Re: list of ported modules?

2003-06-16 Thread Stas Bekman
Shannon Eric Peevey wrote: Hi! Is there a list of CPAN modules that have already been ported to work with mod_perl2? Not at the moment, but it's a great idea. Where should we add it? I suppose that this should be a short-life document and eventually it will be removed. So we can put it anywhere

Re: Current stable platform for mod_perl application ?

2003-06-16 Thread Stas Bekman
Mithun Bhattacharya wrote: I have a opportunity to upgrade and standardize a couple of mod_perl enabled servers to the most stable configuration as of now. Apache 1.3 and mod_perl was easy to choose since it is a production environment. What I am very much confused is to what should I chose for the

Re: Sharing memory between children

2003-06-16 Thread Stas Bekman
Clinton Gormley wrote: On Mon, 2003-06-16 at 13:03, Ged Haywood wrote: /> > I had a look at the memory usage of my apache/mod_perl 1 processes, > and was alarmed to find that only 3Mb of 25Mb processes was being > shared (and that's straight after startup) I see about the same on my own server whe

Current directory

2003-06-16 Thread Oskar
Hi, when I am executing perl script on Apache it seems that the current directory is not the directory where the script is located but the directory c:\program files\apache group\apache. I need current dir to be the script dir since i have some pm in the script directories. I have apache 1.3

Re: each considered harmful?

2003-06-16 Thread Stas Bekman
Marcin Kasperski wrote: sub handler { my $r = shift; my $uri = $r->uri; ... detecting dynamic handlers ... while( my($url, $dirs) = each %STATIC_FILES ) { if( $uri =~ m{$url/(.*)$} ) { foreach my $d (@$dirs) { my $file = "$d/$1"; if( -f $

[DIGEST] mod_perl digest 2003/06/02

2003-06-16 Thread jgsmith
-- mod_perl digest June 2, 2003 - June 15, 2003 -- Recent happenings in the mod_perl world... Features o mo

IPC::Open3

2003-06-16 Thread Rasoul Hajikhani
Hi there, I am having trouble making open3 work with perl, v5.6.1 built for i386-linux. I am running Apache/1.3.27 Ben-SSL/1.48 (Unix) PHP/4.2.3 mod_perl/1.27. My problem is that I can't write to STDIN. Does any one know of any solution to this problem? Has any one encountered the same issue? A

AuthenNTLM undefined value

2003-06-16 Thread Franks, David
I'm new to this list. Last attempt didn't seem to post. Her it is again... I am trying to use AuthenNTLM. I put an .htaccess file in a directory and when I try to access the URL for the directory, it gives me an internal server error. The apache error log contains: Can't call method "connecti

AuthenNTLM undefined value

2003-06-16 Thread Franks, David
I am trying to use AuthenNTLM. I put an .htaccess file in a directory and when I try to access the URL for the directory, it gives me an internal server error. The apache error log contains: Can't call method "connection" on an undefined value at /usr/opt/perl5/lib/site_perl/5.005/aix/Apache/Aut

Re: each considered harmful?

2003-06-16 Thread Marcin Kasperski
> > sub handler { > > > my $r = shift; > > my $uri = $r->uri; > > ... detecting dynamic handlers ... > > while( my($url, $dirs) = each %STATIC_FILES ) { > > if( $uri =~ m{$url/(.*)$} ) { > > foreach my $d (@$dirs) { > > my $file = "$d/$1"; > >

Re: handler($$) unreliability

2003-06-16 Thread Matthew Pressly
On Sun, Jun 15, 2003 at 02:44:02PM +0800, Philippe M. Chiasson wrote: [...] > This could be related to a recently discovered bug in > mp_preload_module(), see > http://marc.theaimsgroup.com/?t=10553271073&r=1&w=2 > for the original report. > That is a possiblity. I am preloading Project::Con

AuthenNTLM undefined value

2003-06-16 Thread Franks, David
I am trying to use AuthenNTLM. I put an .htaccess file in a directory and when I try to access the URL for the directory, it gives me an internal server error. The apache error log contains: Can't call method "connection" on an undefined value at /usr/opt/perl5/lib/site_perl/5.005/aix/Apache/Aut

list of ported modules?

2003-06-16 Thread Shannon Eric Peevey
Hi! Is there a list of CPAN modules that have already been ported to work with mod_perl2? If so, can I add my two modules to it? (Apache::AuthNetLDAP and Apache::AuthzNetLDAP). thanks, speeves cws

Re: Current stable platform for mod_perl application ?

2003-06-16 Thread Jonathan Gardner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 16 June 2003 05:02, Mithun Bhattacharya wrote: > I have a opportunity to upgrade and standardize a couple of mod_perl > enabled servers to the most stable configuration as of now. Apache 1.3 > and mod_perl was easy to choose since it is a pro

Re: Help needed !!

2003-06-16 Thread Jonathan Gardner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 12 June 2003 08:22, ECE Webmaster wrote: > Hi , > > I am having a problem with an application that I am running on an > Apache server. It says that it is unable to load the script. I have > chmod all things to 777. > My application is at ht

Re: Current stable platform for mod_perl application ?

2003-06-16 Thread Ged Haywood
Hi there, On Mon, 16 Jun 2003, Mithun Bhattacharya wrote: [snip] > RedHat 7.3 has the notorious gcc 2.96 - no body has been able to > figure out whether it is actually broken or not I guess :). [snip] Whether it's broken or not it was never released, it escaped. :) The developers called it a de

Re: Sharing memory between children

2003-06-16 Thread Ged Haywood
Hi There, On 16 Jun 2003, Clinton Gormley wrote: > On Mon, 2003-06-16 at 13:03, Ged Haywood wrote: > > > > > I had a look at the memory usage of my apache/mod_perl 1 processes, > > > > and was alarmed to find that only 3Mb of 25Mb processes was being > > > > shared (and that's straight after sta

Re: Current stable platform for mod_perl application ?

2003-06-16 Thread Mithun Bhattacharya
--- Ged Haywood <[EMAIL PROTECTED]> wrote: > Hi there, > > On Mon, 16 Jun 2003, Mithun Bhattacharya wrote: > > > I have a choice between the very well tested 7.3 but highly likely > > to become unsupported by RedHat soon. Or I could go for RedHat 9.0 Ohh no no one is using RedHat support it is

Re: Sharing memory between children

2003-06-16 Thread Clinton Gormley
On Mon, 2003-06-16 at 13:03, Ged Haywood wrote: > > I had a look at the memory usage of my apache/mod_perl 1 processes, > > and was alarmed to find that only 3Mb of 25Mb processes was being > > shared (and that's straight after startup) I see about the same on my own server when processes get

Re: Current stable platform for mod_perl application ?

2003-06-16 Thread Ged Haywood
Hi there, On Mon, 16 Jun 2003, Mithun Bhattacharya wrote: > I have a choice between the very well tested 7.3 but highly likely > to become unsupported by RedHat soon. Or I could go for RedHat 9.0 A distribution is just a package of stuff that you could put together yourself if you had the time a

Re: Sharing memory between children

2003-06-16 Thread Ged Haywood
Hi there, On 16 Jun 2003, Clinton Gormley wrote: > > I had a look at the memory usage of my apache/mod_perl 1 processes, > > and was alarmed to find that only 3Mb of 25Mb processes was being > > shared (and that's straight after startup) I see about the same on my own server when processes get b

Current stable platform for mod_perl application ?

2003-06-16 Thread Mithun Bhattacharya
I have a opportunity to upgrade and standardize a couple of mod_perl enabled servers to the most stable configuration as of now. Apache 1.3 and mod_perl was easy to choose since it is a production environment. What I am very much confused is to what should I chose for the distribution. For various

Re: each considered harmful?

2003-06-16 Thread Randal L. Schwartz
> "Randal" == Randal L Schwartz <[EMAIL PROTECTED]> writes: Randal> our @STATIC_FILES = ( Randal> [ qr{^/img/(.*)$} => [ qw(/alternative/img /myapp/install/img) ], Randal> [ qr{^/css/(.*)$} => [ qw(/alternative/css /myapp/install/css) ], Argh. extra left bracket snuck in.

Re: each considered harmful?

2003-06-16 Thread Randal L. Schwartz
> "Marcin" == Marcin Kasperski <[EMAIL PROTECTED]> writes: Marcin> Maybe it could be of some interest where I happened to get this Marcin> problem. I got it in my custom TransHandler implemented to reduce stat Marcin> calls and to obtain 'select from multiple directories' effect. Marcin> ...

Re: Sharing memory between children

2003-06-16 Thread Clinton Gormley
On Mon, 2003-06-16 at 12:12, Clinton Gormley wrote: I had a look at the memory usage of my apache/mod_perl 1 processes, and was alarmed to find that only 3Mb of 25Mb processes was being shared (and that's straight after startup) I have gone to great lengths to (1) Preload mod

Sharing memory between children

2003-06-16 Thread Clinton Gormley
I had a look at the memory usage of my apache/mod_perl 1 processes, and was alarmed to find that only 3Mb of 25Mb processes was being shared (and that's straight after startup) I have gone to great lengths to (1) Preload modules in my startup file (2) Load shared config data during server sta

Re: UTF-8 support

2003-06-16 Thread Mithun Bhattacharya
I did a search for UTF-8 and locale at http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/ In the past 2-3 months the only problem seems to be that regex doesnt seem to work properly on UTF-8 input [http://www.xray.mpe.mpg.de/cgi-bin/w3glimpse2html/perl5-porters/2003-05/msg00183.html?68#mfs] a

Re: each considered harmful?

2003-06-16 Thread Stas Bekman
Ged Haywood wrote: [...] Most people when iterating over a hash will say something like foreach $scalar_name ( keys %hash_name ) { ... } which automatically resets the iterator and is safe in a perisitent Perl environment like mod_perl. I hope. That's a good point, Ged. Marcin, please include

Re: each considered harmful?

2003-06-16 Thread Ged Haywood
Hi guys, On Mon, 16 Jun 2003, Stas Bekman wrote: [snip,snip] > keys %hash; > > does the trick > > interesting that I don't remember this issue being reported earlier. Probably because we all read the Camel Book, section 5.4.3, the bit about FIRSTKEY. All except Randal that is... :) Most peop

Re: How practical is that Practical mod_perl?

2003-06-16 Thread Eric Cholet
Stas Bekman wrote: [...] BTW, Eric is working on creating a new site for http://modperlbook.org/ which will include the source code, errata and other useful information. We will let you know when this work has been completed. I've just put it online. Enjoy, -- Eric Cholet

Re: each considered harmful?

2003-06-16 Thread Stas Bekman
Marcin Kasperski wrote: Calling keys() (or values()) in void context is quite efficient. Nice to now. So it seems the correct idiom for using each is: keys %hash; while( my($k,$v) = each %hash ) { ... } Looks like it. probably with a comment so you (or other readers) won't forge

Re: mod_perl on Solaris notes..

2003-06-16 Thread Ged Haywood
Hi there, On Mon, 16 Jun 2003, Ryan Dietrich wrote: > mod_perl on Solaris Thanks for the tips! > things ended up being ridiculously stable (they haven't rebooted since last > February I'm told).. Hehe: www2:~$ >>> top -bn1 | head 9:57am up 421 days, 19:57, 1 user, load average: 0.03, 0

Re: each considered harmful?

2003-06-16 Thread Marcin Kasperski
> Calling keys() (or values()) in void context is quite efficient. Nice to now. So it seems the correct idiom for using each is: keys %hash; while( my($k,$v) = each %hash ) { ... } > p.s. I've shown an example, so we can have this issue documented > together with other mod_perl