Re: Genral application architecture question

2007-09-25 Thread Ben van Staveren
Any pearls of wisdom available so far ? Yes, why not integrate the actual retrieval into the site that people use to do the searches with? Or is that physically separate from the place you store documents at? Of course, if this document server is then a separate Apache instance, all t

Re: Question...

2007-09-25 Thread Michael Peters
Tyler Bird wrote: > Attached is my script if you want to try it and have apache 1.x > require in; > > > my $time = 120; > > for(my $i = 0; $i < $time; $i++) > { > warn("iteration..." . $i); >sleep(1); Here in your interation, try printing out a null byte (or anything really)

RE: Genral application architecture question

2007-09-25 Thread iain hubbard
[snip] > > But, having recently perused a lot of Apache2 and mod_perl2 > documentation (including the recently-published mod_perl2 > User's Guide - thanks Stas & Jim), I now wonder if a better > idea would not be to use a dedicated Apache2/mp2 server for > the task, thus leaving all that comp

Re: open and write a file with 777 permissions.

2007-09-25 Thread bharanee rathna
you need to do a umask(0) , try going through perldoc -f umask On 9/26/07, Tyler Bird <[EMAIL PROTECTED]> wrote: > > I was wondering if anyone knows offhand > how I can open and write to a file with 777 permissons. > > And possibly also set the owner to a specified owner string. > > I am reading

[ANNOUNCE] Krang V2.20

2007-09-25 Thread Michael Peters
Krang v2.20 is now available (the source release is up now and binary builds should be up soon). Notable changes in this release: * Lots and lots of bug fixes * Implemented desk security as specified in docs/permissions.pod * Added --below_category_id option and implemented --limited_to_category

open and write a file with 777 permissions.

2007-09-25 Thread Tyler Bird
I was wondering if anyone knows offhand how I can open and write to a file with 777 permissons. And possibly also set the owner to a specified owner string. I am reading through IO::File, but having some issues. Thanks

Re: [mp2] mod_perl closes apache's stdin and/or stdout

2007-09-25 Thread Torsten Foertsch
On Tuesday 25 September 2007 19:52, Fred Moyer wrote: > I took a quick swing at putting one together but my mod_perl environment > is a bit screwed up right now.  Can you see if it runs on your setup? With a few tweaks the test runs in my environment (trunk+2.2.6-worker). But it succeeds in both

Re: load large data

2007-09-25 Thread Manoj Bist
You can use regular package inheritance(@ISA) support in perl to extend MyModule and created YourModule, where you can add any extra methods/override existing methods. On 9/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Thank you. > Sorry that module of Mymodule is a public module from CPAN

Re: Question...

2007-09-25 Thread Tyler Bird
Michael Peters wrote: Tyler Bird wrote: Attached is my script if you want to try it and have apache 1.x require in; my $time = 120; for(my $i = 0; $i < $time; $i++) { warn("iteration..." . $i); sleep(1); Here in your interation, try printing out a null by

Re: [mp2] mod_perl closes apache's stdin and/or stdout

2007-09-25 Thread Fred Moyer
Dmitry Karasik wrote: Hello, In mixed environment of mod_perl and cgi, cgi scripts may choose to not use mod_perl request interface, and read content of POST requests directly from STDIN. mod_perl during the initialization process closes file descriptor 0, and frees it for further reuse in othe

Re: Question...

2007-09-25 Thread Tyler Bird
Tobias Regneri wrote: Hi Tyler, I don't think that your script causes the issue. Is there a timeout value set in the httpd.conf? Hth, Tobias Sorry, remove the line require in; and also the line in::ct(); and replace the in::ct() line with print("Content-type: text/html\n\n"); sorr

Re: Question...

2007-09-25 Thread Tyler Bird
Tobias Regneri wrote: Hi Tyler, I don't think that your script causes the issue. Is there a timeout value set in the httpd.conf? Hth, Tobias Well there is a Timeout Directive in httpd.conf which I have set to 3000 and the problem still occurs. If I print the file line by line everything

[mp2] mod_perl closes apache's stdin and/or stdout

2007-09-25 Thread Dmitry Karasik
Hello, In mixed environment of mod_perl and cgi, cgi scripts may choose to not use mod_perl request interface, and read content of POST requests directly from STDIN. mod_perl during the initialization process closes file descriptor 0, and frees it for further reuse in other processes. Therefore,

Re: PerlResponseHandler + mod_jk

2007-09-25 Thread André Warnier
Perrin Harkins wrote: On 9/24/07, André Warnier <[EMAIL PROTECTED]> wrote: My::module would do something (or not) to the request, then it should let the (possibly modified) request go through, so that the mod_jk module can intercept it and re-direct it to Tomcat. Your should write your code as

Re: mod_jk and mod_perl combined - how to stack location handlers?

2007-09-25 Thread Torsten Krah
Am Dienstag, 25. September 2007 schrieb Torsten Krah: > Am Dienstag, 25. September 2007 schrieben Sie: > > On 9/25/07, Torsten Krah <[EMAIL PROTECTED]> wrote: > > > mod_jk registers the same way for Locations like mod_perl does. > > > Can i register "2" handlers or how can i solve this problem? > >

Genral application architecture question

2007-09-25 Thread André Warnier
Hi List. I am looking for some general ideas or recommendations regarding a development that I am about to begin, without really having fixed deadlines. My hope is to obtain some pointers allowing me to choose well among a range of possibilities, based on the wisdom and experience of other u

mod_perl and sqlrelay

2007-09-25 Thread Anthony Gardner
This is just a feeler for info. I've played with sqlrelay on my local machine with mp2 and liked it. I'm now thinking of using it within our production environment at work. Has anyone used this with mp2 within a production environment and if so, can you inform me of its pros/cons. Thank you.

Re: mod_jk and mod_perl combined - how to stack location handlers?

2007-09-25 Thread Torsten Krah
Am Dienstag, 25. September 2007 schrieben Sie: > On 9/25/07, Torsten Krah <[EMAIL PROTECTED]> wrote: > > mod_jk registers the same way for Locations like mod_perl does. > > Can i register "2" handlers or how can i solve this problem? > > > > I want to filter the output from mod_jk (SetHandler jakar

Re: PerlResponseHandler + mod_jk

2007-09-25 Thread Perrin Harkins
On 9/24/07, André Warnier <[EMAIL PROTECTED]> wrote: > My::module would do something (or not) to the request, then it should > let the (possibly modified) request go through, so that the mod_jk > module can intercept it and re-direct it to Tomcat. Your should write your code as an input filter the

Re: mod_jk and mod_perl combined - how to stack location handlers?

2007-09-25 Thread Perrin Harkins
On 9/25/07, Torsten Krah <[EMAIL PROTECTED]> wrote: > mod_jk registers the same way for Locations like mod_perl does. > Can i register "2" handlers or how can i solve this problem? > > I want to filter the output from mod_jk (SetHandler jakarte-servlet) - but i > cannot set both in apache configura

mod_jk and mod_perl combined - how to stack location handlers?

2007-09-25 Thread Torsten Krah
Hi. I am using mod_perl to register an output request filter for certain locations. I've tested all with mod_proxy_ajp and it works like expected. Now i have to connect apache <-> tomcat with mod_jk - but thats not that easy as i thought. mod_jk registers the same way for Locations like mod_per

Re: load large data

2007-09-25 Thread pennyyh
Thank you. Sorry that module of Mymodule is a public module from CPAN.I can't modify it to add the init() and data() methods. How to do it then?thanks again. -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: modperl@perl.apache.org Sent: Tue, 25 Sep 2007 4.52PM Subjec

Re: load large data

2007-09-25 Thread Fred Moyer
[EMAIL PROTECTED] wrote: Thank you. I have added these directives in httpd.conf, use Mymodule; our $data = Mymodule->new; Then I run bin/apachectl configtest,but got the errors, Unknown type 'Mymodule' for directive data at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Apache

Re: Question...

2007-09-25 Thread Tobias Regneri
Hi Tyler, I don't think that your script causes the issue. Is there a timeout value set in the httpd.conf? Hth, Tobias

Re: load large data

2007-09-25 Thread pennyyh
Thank you. I have added these directives in httpd.conf, use Mymodule; our $data = Mymodule->new; Then I run bin/apachectl configtest,but got the errors, Unknown type 'Mymodule' for directive data at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Apache2/PerlSectio ns.pm line 1