Re: [mp2] $dbh and config values methods

2004-05-27 Thread Tom Schindl
Nathanial P. Hendler wrote: Ok, so I'm convinced that I should be using Log::Log4Perl. I'm using ModPerl::Registry and was wondering if people could share their approaches to configuration variables and database handlers under mp2. I'd like to have a config module, that holds things like: $docum

RE: mod_perl not able to run some pl files.

2004-05-27 Thread Bheema Rao Merugu, BSC, Ambattur, Chennai
Hi, Please find the CGI.pm version installed in my system # perl -MCGI -e 'print "CGI.pm version $CGI::VERSION\n";' CGI.pm version 3.01 even though its giving the error I think there is some configuration issue with apache and mod_perl. [Thu May 27 18:38:43 2004] [error] Can't locate CGI.pm in

[mp2 milestones] installment 1

2004-05-27 Thread Stas Bekman
Hi, As we have mentioned several times on this list mod_perl 2.0 will be released when a selected API will be reviewed, tested and documented and the release todo file http://cvs.apache.org/viewcvs.cgi/modperl-2.0/todo/release gets emptied. This is the first installment of getting to the final goal

RE: mod_perl not able to run some pl files.

2004-05-27 Thread Bheema Rao Merugu, BSC, Ambattur, Chennai
Hi, thank you for your resposne Brian, Yes, I used the perl installed in that path. I have installed the perl with make install and using the same perl. I have not copied CGI.pm just like that in to the path. Its came with the installation only. Thnaks, Bheema -Original Message- From: B

An advice

2004-05-27 Thread
Somebody told me that if i use the data type "bytea" for my images in postgresql it could be very heavy in the web, does mod_perl have a good solution for that? Thanks -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette:

Re: Apache/mod_perl/mysql - threads at startup

2004-05-27 Thread Mike Blazer
Thanks, Perrin, I'm sure you're right just don't see where this happens. It's hard to extract the part of the code because my configs look wild :) One sh script starts/stops/restarts 3 servers with 1 config for proxy and 1 config full of sections - for two back-end servers. Yes, I do call mysql f

Re: passing data between connection and http filters

2004-05-27 Thread Stas Bekman
Eric J. Hansen wrote: I have an application that uses mod_proxy (as a reverse proxy) to fetch content from a back-end server. My application needs to do some manipulation of both the request headers and the response body. Given that mod_proxy circumvents most of mod_perl's handler phases, I'm hav

[ANNOUNCE] HTML::GenerateUtil 1.02

2004-05-27 Thread Robert Mueller
I thought some people on this list might find this useful. http://search.cpan.org/~robm/HTML-GenerateUtil-1.02/ I think the "Context" section probably gives the best overview. --- When creating a web application in perl, you've got a couple of main choices on how to actually generate the H

passing data between connection and http filters

2004-05-27 Thread Eric J. Hansen
I have an application that uses mod_proxy (as a reverse proxy) to fetch content from a back-end server. My application needs to do some manipulation of both the request headers and the response body. Given that mod_proxy circumvents most of mod_perl's handler phases, I'm having to use filters to

Re: Apache/mod_perl/mysql - threads at startup

2004-05-27 Thread Perrin Harkins
On Thu, 2004-05-27 at 15:20, Mike Blazer wrote: > See, in the very beginning - 3 child processes started and connected to > the same mysql thread_id > > None of my processes ever disconnects, they all use Apache:DBI and > everything is checked to be correct. > Seems like it's mysql error in dispat

Apache/mod_perl/mysql - threads at startup

2004-05-27 Thread Mike Blazer
Hello, guys! I use this configuration for quite a while and under a hard traffic: Apache 1.3.29 mod_perl 1.29 mysql 4.0.3 (a rather old one) for sometime I have this minor problem - each time I restart servers there are few failures right after the restart. It's always "Lost connection" error. As

Re: [mp2] $dbh and config values methods

2004-05-27 Thread Perrin Harkins
On Thu, 2004-05-27 at 14:13, Nathanial P. Hendler wrote: > I'd like to have a config module, that holds things like: > > $document_root= '/var/www/html'; > $images_base_path = $document_root . '/images'; > $images_base_url = '/images'; > > %phrases = ( red=>'This is red', blue=>'this

[mp2] $dbh and config values methods

2004-05-27 Thread Nathanial P. Hendler
Ok, so I'm convinced that I should be using Log::Log4Perl. I'm using ModPerl::Registry and was wondering if people could share their approaches to configuration variables and database handlers under mp2. I'd like to have a config module, that holds things like: $document_root= '/var/www/h

Re: mod_perl 2.0 globals question

2004-05-27 Thread Perrin Harkins
On Thu, 2004-05-27 at 13:08, Nathanial P. Hendler wrote: > I guess I just don't quite know how to do that. Is there a way to have a > module run anycode any time another perl module/script uses it? > > use Debug; > > would executed insided Debug.pm > > IM_BEING_USED { > $D = 0; > } Th

Re: mod_perl 2.0 globals question

2004-05-27 Thread Nathanial P. Hendler
On Thu, 27 May 2004, Tom Schindl wrote: > Nathanial P. Hendler wrote: > > I'm not sure if this is a style or function question. I'd like to have a > > module called Debug.pm that has a variable in it that if set to '1' by > > anything (main script, or other modules) will print debug messages. > >

Re: mod_perl not able to run some pl files.

2004-05-27 Thread Brian Reichert
On Thu, May 27, 2004 at 07:45:49PM +0530, Bheema Rao Merugu, BSC, Ambattur, Chennai wrote: > Hi, > > > I am getting the below error message in the error_log file. but I had > the CGI.pm in the path /usr/local/apache/lib/perl5/5.8.3 When you say you 'had' CGI.pm in that path, do you mean that

mod_perl not able to run some pl files.

2004-05-27 Thread Bheema Rao Merugu, BSC, Ambattur, Chennai
Hi,     I am getting the below error message in the error_log file. but I had the CGI.pm in the path /usr/local/apache/lib/perl5/5.8.3 it's working in the other box where i have installed the perl in /usr/local path there are noproblems if i compiled the perl in default installation path an

Re: mod_perl 2.0 globals question

2004-05-27 Thread Tom Schindl
Nathanial P. Hendler wrote: I'm not sure if this is a style or function question. I'd like to have a module called Debug.pm that has a variable in it that if set to '1' by anything (main script, or other modules) will print debug messages. Reading the Orielly "Practical mod_perl" I thought it was

Re: [mp2] migrating Apache::Cookie from mp1

2004-05-27 Thread Boris Zentner
Hi, Am Donnerstag 27 Mai 2004 11:39 schrieb Casey Songer: > I've been running site using mod_perl and HTML::Mason for 3-4 years with > few problems. I recently am being asked to move everything to a new box > that has Apache2 running on it (with mp2). I was able to install and > get everything

Re: mod_perl 2.0 globals question

2004-05-27 Thread Tom Schindl
Nathanial P. Hendler wrote: I'm not sure if this is a style or function question. I'd like to have a module called Debug.pm that has a variable in it that if set to '1' by anything (main script, or other modules) will print debug messages. Reading the Orielly "Practical mod_perl" I thought it was

Re: mod_perl 2.0 globals question

2004-05-27 Thread Tom Schindl
Nathanial P. Hendler wrote: I'm not sure if this is a style or function question. I'd like to have a module called Debug.pm that has a variable in it that if set to '1' by anything (main script, or other modules) will print debug messages. Reading the Orielly "Practical mod_perl" I thought it was

mod_perl 2.0 globals question

2004-05-27 Thread Nathanial P. Hendler
I'm not sure if this is a style or function question. I'd like to have a module called Debug.pm that has a variable in it that if set to '1' by anything (main script, or other modules) will print debug messages. Reading the Orielly "Practical mod_perl" I thought it was clear what I needed to do,