Re: global variable

2010-02-03 Thread Boysenberry Payne
Looks like a great module. It says early on in the docs that it doesn't use references; does that mean we need to dereference in order to store that values? Thanks, Boysenberry Payne On Feb 3, 2010, at 10:17 AM, macke...@animalhead.com wrote: I rewrote IPC::MMA from an earlier CPAN module so

Getting DBI working during the server life cycle

2010-01-23 Thread Boysenberry Payne
Hello, I'm trying to connect to my postgresql database using the DBI - Apache::CBI - DBD::Pg combination of modules. I'm having trouble understanding Apache::DBI usage as it pertains to https pre request server life cycle, in particular during the OpenLogs stage. My trouble comes from an error

Re: Getting DBI working during the server life cycle

2010-01-23 Thread Boysenberry Payne
did look at DBI::Class as the Apache::DBI author mentioned, but I would rather use Apache::DBI and do the class structure myself. Seems like an easy enough thing to patch into Apache::DBI to avoid these head aches, wonder why the author isn't? Thanks again, Boysenberry Payne On Jan 23, 2010

Need an explanation of APR::Pool and it's use in mod_perl

2010-01-17 Thread Boysenberry Payne
or something like that? Thank you, Boysenberry Payne

A question of debugging/testing for when memory goes from shared to unshared

2010-01-17 Thread Boysenberry Payne
you, Boysenberry Payne

Caveats to using Perl Sections for server configuration?

2010-01-13 Thread Boysenberry Payne
if anyone mind sharing the experience and insights on Perl Sections, pros cons, etc. i.e. I'm referring to Perl/Perl blocks in apache .conf files. Thank you, Boysenberry Payne

Re: Caveats to using Perl Sections for server configuration?

2010-01-13 Thread Boysenberry Payne
Do you know if the scope of Perl Sections are the same as when using a startup.pl? -bop On Jan 13, 2010, at 2:15 PM, Perrin Harkins wrote: On Wed, Jan 13, 2010 at 3:22 PM, Boysenberry Payne boysenbe...@habitatlife.com wrote: I'm using Perl blocks in my apache conf files for early server

Re: a mp/perl equivalent to sendmail.php?

2008-01-30 Thread Boysenberry Payne
I would suggest looking into the Email set of modules, e.g. Email::Simple. As far as security is concerned, try something like an email address confirmation with user authentication. I think that's the most common approach. For example, require the user confirms their email address as a

Re: help with rewriting CGI

2007-12-30 Thread Boysenberry Payne
Once complete, I can preload the modules at Apache startup. Is that correct? If you want to benefit from pre compiling your code using something like a startup.pl file to load the modules you use would speed things up considerably from running them as CGI cgi. I use 2 files one for 3rd

Re: Cookie questions

2007-12-24 Thread Boysenberry Payne
This is what I do: $cookie = { name = foo, value = bar } my $data = []; push( @$data, Apache2::Cookie-new( $r, %{$cookie} ) ); foreach ( @$data ) { $_-bake( $r ); } Hope it helps... -bop On Dec 24, 2007, at 2:55 AM, Raymond Wan wrote: Hi all, Sorry, but I'm not entirely sure if

Re: Cookie questions

2007-12-24 Thread Boysenberry Payne
, Boysenberry Payne wrote: This is what I do: $cookie = { name = foo, value = bar } my $data = []; push( @$data, Apache2::Cookie-new( $r, %{$cookie} ) ); foreach ( @$data ) { $_-bake( $r ); } Hope it helps... -bop On Dec 24, 2007, at 2:55 AM, Raymond Wan wrote: Hi all, Sorry, but I'm

Find the values of Apache2::Const

2007-12-22 Thread Boysenberry Payne
seems to be mostly pod notation. How can I look up the constants, i.e. where are they? PS Happy Holidays Everyone... Thanks, Boysenberry Payne

Re: Find the values of Apache2::Const

2007-12-22 Thread Boysenberry Payne
, right? This isn't exactly a list of them, but it might point you in the right direction. They're buried pretty well, it seems. Yeah, I figured it was in c, I stopped at the XSLoader.pm package Thanks, Boysenberry On Dec 22, 2007, at 10:29 AM, Colin Wetherbee wrote: Boysenberry Payne

Re: Find the values of Apache2::Const

2007-12-22 Thread Boysenberry Payne
to return 200... -bop On Dec 22, 2007, at 10:45 AM, Colin Wetherbee wrote: Boysenberry Payne wrote: I only ask because I tried a $r-status(Apache2::Const::OK) and got a 500 returned in the header even though my handler returned with Apache::Const::OK also... To avoid the 500 header I had to do

Re: Flex

2007-12-04 Thread Boysenberry Payne
. -bop On Dec 4, 2007, at 7:43 AM, Octavian Rasnita wrote: Hmm, I have Javascript and cookies enabled, but I don't think I have Flash because it wouldn't be very accessible anyway. Octavian - Original Message - From: Boysenberry Payne To: Octavian Rasnita Cc: modperl List Sent: Tuesday

Re: Flex

2007-12-03 Thread Boysenberry Payne
I currently use the ruby gem sprouts for compiling Flex apps. I would love to see a version packaged for a mod_perl system. It really is all about learning what makes the flex compiler work then strapping to perl instead of php or ruby. I would love to help with a project like this but

Re: Flex

2007-12-03 Thread Boysenberry Payne
: Boysenberry Payne I currently use the ruby gem sprouts for compiling Flex apps. I would love to see a version packaged for a mod_perl system. It really is all about learning what makes the flex compiler work then strapping to perl instead of php or ruby. I would love to help with a project

Re: A question about the post_config phase mod_perl handler

2007-11-13 Thread Boysenberry Payne
Ah, I thought it might be something like that, so anything other than 0 or OK, got it, thanks... -bop On Nov 12, 2007, at 11:33 PM, Philippe M. Chiasson wrote: Boysenberry Payne wrote: Interesting, I tried just returning and several other non-OK returns and got no error. Interesting, I

Re: A question about the post_config phase mod_perl handler

2007-11-12 Thread Boysenberry Payne
wrote: Boysenberry Payne wrote: In the example at: http://perl.apache.org/docs/2.0/user/handlers/ server.html#C_PerlPostConfigHandler_ the PerlPostConfigHandler subroutine returns Apache2::Const::OK. I was wondering if it mattered what it returned, and if so, what are the alternatives

Re: mod_perl2 and Apache::SharedMem

2007-11-08 Thread Boysenberry Payne
/ http.html#PerlResponseHandler ANy of the phases mentioned on that page will be post fork. Hope that helps... Thank you for clarifications. Octavian - Original Message - From: Perrin Harkins [EMAIL PROTECTED] To: Boysenberry Payne [EMAIL PROTECTED] Cc: modperl List modperl@perl.apache.org

Re: mod_perl2 and Apache::SharedMem

2007-11-08 Thread Boysenberry Payne
On Nov 8, 2007, at 1:07 PM, Octavian Rasnita wrote: From: Boysenberry Payne [EMAIL PROTECTED] What should I do if I want to load the classes after the server forks? There are many phases after the fork, the most commonly used is the PerlResponseHandler phase Do I understand correctly

A question about the post_config phase mod_perl handler

2007-11-08 Thread Boysenberry Payne
In the example at: http://perl.apache.org/docs/2.0/user/handlers/ server.html#C_PerlPostConfigHandler_ the PerlPostConfigHandler subroutine returns Apache2::Const::OK. I was wondering if it mattered what it returned, and if so, what are the alternatives? Just curious really... -bop

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
On Nov 7, 2007, at 11:59 AM, Michael Peters wrote: Boysenberry Payne wrote: Is Apache::SharedMem working with mod_perl2 the same way it did with mod_perl1? Don't know, haven't used it. It hasn't been updated since 2001, so either it's perfect and hasn't needed any changes or it's

mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
use ModuleName; in an apache startup.pl file loaded into shared memory or copied to each child separately? Thanks, Boysenberry Payne

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
Other than for callbacks on destruction of memory pools what is APR::Pool useful for? -bop On Nov 7, 2007, at 1:56 PM, Perrin Harkins wrote: Don't use Apache::SharedMem. It uses IPC::ShareLite, which is slow. Does memcached or Cache::FastMap work with apache's shared memory pool? No,

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
the non-shared memory use? Would it allow me to reduce what I have set for $Apache2::SizeLimit::MAX_UNSHARED_SIZE? Thanks for all of the help, -bop On Nov 7, 2007, at 2:16 PM, Boysenberry Payne wrote: Other than for callbacks on destruction of memory pools what is APR::Pool useful for? -bop

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
On Nov 7, 2007, at 5:05 PM, Michael Peters wrote: Boysenberry Payne wrote: If I created some of my static hashes and objects during the PerlPostConfigHandler phase and added them to either the configuration or log pools would that help me keep some of my memory shared, assuming I could get

Re: ANNOUNCE: XS-based minifiers for JS/CSS

2007-10-21 Thread Boysenberry Payne
I generate my Javascript on the fly, it can be different on every request. I find this very useful... -bop On Oct 21, 2007, at 11:26 PM, Andrew Wyllie wrote: Maybe I wasn't really very clear. I don't think 'minifing' your JS/ CSS every time it's requested is very useful. You should

Re: Mod_Perl and MaxRequestsPerChild

2007-10-16 Thread Boysenberry Payne
I use in my start.pl: use Apache2::SizeLimit (); $Apache2::SizeLimit::CHECK_EVERY_N_REQUESTS = 5; $Apache2::SizeLimit::MAX_UNSHARED_SIZE = 5; It might allow you to use prefork MPM without worrying so much about too much memory being taken. -bop On Oct 16, 2007, at 2:39 PM, Mark

Re: Javascript minifier

2007-10-15 Thread Boysenberry Payne
On Oct 15, 2007, at 1:47 PM, Graham TerMarsch wrote: On Sunday 14 October 2007 2:58 pm, Boysenberry Payne wrote: I just tried putting the Javascript minifier onto our production server since it was working so well on my local development server, and I noticed an incredible slow down. I

Re: mod_perl success stories on ZDNet

2007-10-03 Thread Boysenberry Payne
If I have my own success story how would I go about adding it to the list? -bop On Oct 1, 2007, at 8:39 AM, Perrin Harkins wrote: On 10/1/07, Carl Johnstone [EMAIL PROTECTED] wrote: Is it me, or does that just link through to here: http://www.oreillynet.com/digitalmedia/blog/2002/05/

Re: RFC: Apache2::Filter::Minifier::JavaScript

2007-09-19 Thread Boysenberry Payne
I could use something like this. Right now I use Toolkit Template to build from. It already caches the JS file loaded from disk. I would want to then put it through the minifier process and cache then serve. Would you module allow for this? -bop On Sep 19, 2007, at 12:24 PM, Graham

Re: RFC: Apache2::Filter::Minifier::JavaScript

2007-09-19 Thread Boysenberry Payne
If there is anything I can do to help let me know. I'd really like to have a small footprint on my JS output, right now its still pretty big. Boysenberry Payne Habitat Life, Inc. http://www.habitatlife.com/ On Sep 19, 2007, at 12:49 PM, Graham TerMarsch wrote: On Wednesday 19 September

Re: Where to store uploads

2007-07-09 Thread Boysenberry Payne
I handle files with a db pointer. Works really good for me. I house all of the files on a static server and put pointers in the DB. Then I just update the DB with new pointers or remove pointers as needed. When looking up a file I request the DB file pointer then use that info to grab it from

Re: Simple examples?

2007-06-17 Thread Boysenberry Payne
Iļja, Try this recipe: http://perl.apache.org/docs/2.0/user/coding/ cooking.html#Sending_Cookies_Using_libapreq2 -bop On Jun 17, 2007, at 7:42 AM, Iļja Ketris wrote: Hello, I have read through many mod_perl docs from the site and still find myself unable to perform the simplest tasks to

Re: After retrieving data from DB, the memory doesn't seem to be freed up

2007-05-14 Thread Boysenberry Payne
re-send the Content-Length header for each chunk? I'm assuming the Bucket Brigade has something to do with this being received by the browser okay... Boysenberry Payne [EMAIL PROTECTED]

Re: Perl and ASP.Net

2007-04-30 Thread Boysenberry Payne
On Apr 27, 2007, at 12:19 AM, Foo JH wrote: Boysenberry Payne wrote: One of the draw back that seems to be evident to me as I've looked into the client side frameworks is changes in the code are ought of your control. WIth a purely server side solution it would seem to give the coder

Re: Perl and ASP.Net

2007-04-25 Thread Boysenberry Payne
One of the draw back that seems to be evident to me as I've looked into the client side frameworks is changes in the code are ought of your control. WIth a purely server side solution it would seem to give the coder the choice to upgrade when there is time, etc. With the 3rd party frameworks

Re: Perl and ASP.Net

2007-04-25 Thread Boysenberry Payne
On Apr 25, 2007, at 11:52 AM, Michael Peters wrote: Boysenberry Payne wrote: One of the draw back that seems to be evident to me as I've looked into the client side frameworks is changes in the code are ought of your control. WIth a purely server side solution it would seem to give the coder

File Uploads using MP2 best practises

2007-04-06 Thread Boysenberry Payne
into this... Thanks in advance, Boysenberry Payne [EMAIL PROTECTED]

using axkit with mod_perl

2007-01-10 Thread Boysenberry Payne
using proxy to the mod_perl server.) I'm hoping for the power of both without the overhead of extra hardware. Pipe dreams right? If so should I just look at building the xml tech into my current mod_perl build via cpan as best as I can? Any advice is much appreciated. Thanks, Boysenberry Payne

Using OO with mod_perl correctly to avoid leaks

2006-12-22 Thread Boysenberry Payne
Habitat::Definitions}? Is this kind of structure still prone to leak memory? What are the ramifications of not returning the $self blessed reference? Thanks for any help, Boysenberry Payne [EMAIL PROTECTED]

Re: getting to know more about mod_perl

2006-08-29 Thread Boysenberry Payne
I started as a PHP/Javascript guy, then moved to Perl. Perl has proven to be way more flexible a language to program in, a pro to me, a con to some. Besides its support for myriad programming styles, CPAN offers hundreds, if not thousands of open source modules to use with perl. This is good

Re: Protecting source code

2006-08-25 Thread Boysenberry Payne
What about products like CPANEL, how do they do it? There must be some standard usage already with Perl being as prevalent as it is. Currently we've separated our perl code out onto its own server and use proxies to get to and fro. It keeps a level of protection on our code. We just serve the

Re: urgent help needed

2006-07-27 Thread Boysenberry Payne
Here is what I used to install libapreq2: at command line: perl5.8.8 MakeFile.PL --with-apache2-apxs=/usr/local/apache2/bin/apxs --enable-perl-glue --with-perl=/usr/local/bin/perl5.8.8 make make test make install Then in the httpd.conf file: LoadModule apreq_module

Trying to get my old MP2 config to work with Apache2.2

2006-07-09 Thread Boysenberry Payne
I'm getting another error now that I seem to have all of the packages updated. In the webpage: Forbidden You don't have permission to access /pro/habitat.pl on this server. In the error log: [Sun Jul 09 03:20:35 2006] [error] [client 69.72.241.162] client denied by server configuration:

Re: Trying to get my old MP2 config to work with Apache2.2

2006-07-09 Thread Boysenberry Payne
wrote: Boysenberry Payne wrote: Any ideas on how I can get this working? Right now my production server is down because of this, so any help would be much appreciated. You mean you didn't test and upgrading before doing it in production first ? *Sigh

Re: Trying to get my old MP2 config to work with Apache2.2

2006-07-09 Thread Boysenberry Payne
need to install some modules via cpan and hopefully all is well... Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Jul 9, 2006, at 2:57 AM, Philip M. Gollucci wrote: Boysenberry Payne wrote: /usr/local/apache2/bin/httpd: relocation error: /usr/local/lib/perl5

make test fails on Red Hat Linux

2006-07-08 Thread Boysenberry Payne
Using Apache2.2.2 I get the following errors while trying to make test mp2.0.2 Failed Test Stat Wstat Total Fail List of Failed --- t/apache/content_length_header.t 271 17

Re: Is Apache::DB still the way to interactively debug via MP2

2006-07-03 Thread Boysenberry Payne
.\n On the second request, the debugger behaves as it should... Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Jul 3, 2006, at 10:00 AM, Frank Wiles wrote: On Sun, 2 Jul 2006 11:25:27 -0500 Boysenberry Payne [EMAIL PROTECTED] wrote: I little more info, the setgid

Re: Is Apache::DB still the way to interactively debug via MP2

2006-07-02 Thread Boysenberry Payne
| selfgnosis.com On Jul 1, 2006, at 9:49 PM, Philip M. Gollucci wrote: Boysenberry Payne wrote: print vs $r-print still works. Is it better to use one over the other? If I change all of my $r-print statements to read print instead will I need to expect trouble? do you have this in the file

Re: Is Apache::DB still the way to interactively debug via MP2

2006-07-02 Thread Boysenberry Payne
I little more info, the setgid error only happens on the first request and only while debugging, as far as I can tell. Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Jul 2, 2006, at 8:35 AM, Boysenberry Payne wrote: That fixed the print issue but I'm still getting

Re: Is Apache::DB still the way to interactively debug via MP2

2006-07-01 Thread Boysenberry Payne
it be from changing databases, e.g. starting in one database/user than switching to another database/user? Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Jun 30, 2006, at 6:36 PM, Philip M. Gollucci wrote: Boysenberry Payne wrote: That helped me get the Debugger

Re: Is Apache::DB still the way to interactively debug via MP2

2006-07-01 Thread Boysenberry Payne
On Jul 1, 2006, at 1:36 AM, Boysenberry Payne wrote: I'm not sure what your doing that you need to be running setgid though. Me either. Do any of these require setgid that you know of? use APR::Pool (); use Apache::DB (); Apache::DB-init(); use Apache::DBI (); use Apache2::Connection (); use

Re: Is Apache::DB still the way to interactively debug via MP2

2006-07-01 Thread Boysenberry Payne
To clarify, I get the error now whether I debug or not. Until I started to debug I wasn't getting the error. I don't think I changed anything in my code to cause this though... Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Jul 1, 2006, at 1:37 PM, Boysenberry Payne

Re: Is Apache::DB still the way to interactively debug via MP2

2006-07-01 Thread Boysenberry Payne
print vs $r-print still works. Is it better to use one over the other? If I change all of my $r-print statements to read print instead will I need to expect trouble? Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Jul 1, 2006, at 1:40 PM, Boysenberry Payne wrote

Is Apache::DB still the way to interactively debug via MP2

2006-06-30 Thread Boysenberry Payne
Are the instructions as: Home / Documentation / 1.0 / mod_perl 1.0 User Guide / Still valid for MP2? I can't find anything in the MP2 docs... Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com

Re: Is Apache::DB still the way to interactively debug via MP2

2006-06-30 Thread Boysenberry Payne
at 12:57 -0500, Boysenberry Payne wrote: Are the instructions as: Home / Documentation / 1.0 / mod_perl 1.0 User Guide / Still valid for MP2? I can't find anything in the MP2 docs... The Apache::DB docs say it supports mod_perl 2. - Perrin

Re: Is Apache::DB still the way to interactively debug via MP2

2006-06-30 Thread Boysenberry Payne
| selfgnosis.com On Jun 30, 2006, at 4:38 PM, Philip M. Gollucci wrote: Boysenberry Payne wrote: [notice] Apache::DB initialized in child 1441 Syntax error on line 74 of /Users/boysie/habitat/apache/conf/perl.conf: mod_perl is already running, too late for PerlSwitches I must be doing something

Off-line mod_perl documentation

2006-04-17 Thread Boysenberry Payne
Does anyone have any suggestions on how to go about getting the mod_perl documentation setup for local viewing. I'm trying to keep this from being an all-day project. I want to be able to get at the mp2 docs off-line or locally. It would be nice if it was html too rather than the less

Getting error on apache2 restart with TemplateToolkit

2006-03-17 Thread Boysenberry Payne
I'm using apache v2/mod_perl v2/perl v5.8.1/OS X v10.3.9/TemplateToolkit v2.14 I get the following error on apachectl restart: v-strings are deprecated at /Library/Perl/5.8.1/darwin-thread-multi-2level/Template/Document.pm line 41. v-strings are deprecated at

Re: Modperl2 question

2006-03-13 Thread Boysenberry Payne
Since we're on the subject of CGI vs libapreq. I've moved to using Apache2::Request and APache2::Cookie with no problems. Now I'm wondering if there isn't an equivalent for the rest of what CGI.pm offers. In particular, I wondering about it's html tag output. Are there any Apache2

Quick MP2 install questions

2006-02-23 Thread Boysenberry Payne
I have a couple of question while installing MP2 over again. Do I have to enable MP_DEBUG and MP_TRACE in order to debug or trace; does that mean I'll be stuck with everything being debugged or traced? Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com

Re: A question for the newbies

2006-02-16 Thread Boysenberry Payne
I guess I'm still considered a mod_perl / perl newbie. I started learning perl 6 months ago in anticipation of translating a CMS (Content Management System) I wrote in PHP. I considered Python, and C++ as alternatives. C++ was over kill and would require way too much development just to

Re: I'm getting max connection errors for Apache::DBI

2006-02-10 Thread Boysenberry Payne
Sorry about the extra posts I was having email difficulties that day... Everything is working fine now though. The AutoCommit = 0 fixed it all... Thanks again for all of the help, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Feb 8, 2006, at 11:55 AM, Boysenberry Payne

Re: read query params

2006-02-10 Thread Boysenberry Payne
x-tad-biggerP.S./x-tad-bigger x-tad-biggerWith the modification that you made for mod_perl2 you will loose a lot of perl programmer and I doubt that you will get new ones./x-tad-bigger x-tad-bigger /x-tad-bigger I think you might be mistaken here. I love MP2 even though I've had my fair share

Re: I'm getting max connection errors for Apache::DBI

2006-02-10 Thread Boysenberry Payne
-biggerThat's alright...it's Friday and no one was sending any jokes, anyway.  And I was getting a chuckle out of your name./x-tad-bigger x-tad-bigger /x-tad-bigger x-tad-biggermark/x-tad-bigger x-tad-bigger>>> Boysenberry Payne [EMAIL PROTECTED]> 10-Feb-06 13:30:46 PM >>>/x-tad-bigger x-

Re: I'm getting max connection errors for Apache::DBI

2006-02-09 Thread Boysenberry Payne
gnosis.com On Feb 8, 2006, at 6:22 PM, Perrin Harkins wrote: On Wed, 2006-02-08 at 11:51 -0600, Boysenberry Payne wrote: What I'm seeing is 37 mysql threads being created for 7 apache children. It would seem as though I would need to create a 5/1 ratio of mysql connections to apache children

Re: I'm getting max connection errors for Apache::DBI

2006-02-09 Thread Boysenberry Payne
I got rid of the disconnect, duh. I still have the errors, but no longer get the 12844 Apache::DBI disconnect (overloaded) Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Feb 9, 2006, at 9:14 AM, Boysenberry Payne wrote: The only difference in each

Re: I'm getting max connection errors for Apache::DBI

2006-02-09 Thread Boysenberry Payne
nts in a fully qualified manner? ---8--- SELECT * FROM $DB1.$TABLE1; SELECT * FROM $DB2.$TABLE1; ---8--- Tom Boysenberry Payne wrote: The only difference in each connection is the database. I tried connecting to the same database then using $h-do(

Re: I'm getting max connection errors for Apache::DBI

2006-02-09 Thread Boysenberry Payne
After reading up on Apache::DBI::Cache it seems like it might solve the issues, thanks. I'll reply again if it doesn't... Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Feb 9, 2006, at 10:03 AM, Torsten Foertsch wrote: On Thursday 09 February 2006 16:14, you wrote: I

Re: I'm getting max connection errors for Apache::DBI

2006-02-09 Thread Boysenberry Payne
, Boysenberry Payne wrote: After reading up on Apache::DBI::Cache it seems like it might solve the issues, thanks. I'll reply again if it doesn't... Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Feb 9, 2006, at 10:03 AM, Torsten Foertsch wrote: On Thursday 09 February

Re: I'm getting max connection errors for Apache::DBI

2006-02-09 Thread Boysenberry Payne
You're right it was a typo. Now that it's fixed it works using the do( USE database_name) syntax with AutoCommit = 0 Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Feb 9, 2006, at 12:02 PM, Clinton Gormley wrote: DBD::mysql::st execute failed: Table

I'm getting max connection errors for Apache::DBI

2006-02-09 Thread Boysenberry Payne
I'm using Apache/2.0.54 (Unix) mod_apreq2-20050712/2.1.3-dev mod_perl/2.0.1 Perl/v5.8.0 After a certain level of usage I get the following error: failed: Too many connections at /usr/lib/perl5/5.8.0/Habitat/Apache2/DB.pm line 64\n, When I do a server restart it's fine for a while. What do I

Re: I'm getting max connection errors for Apache::DBI

2006-02-09 Thread Boysenberry Payne
as though I would need to create a 5/1 ratio of mysql connections to apache children. Is that normal? Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Feb 8, 2006, at 9:59 AM, Perrin Harkins wrote: Boysenberry Payne wrote: What do I need to do to fix it? You probably

Re: I'm getting max connection errors for Apache::DBI

2006-02-09 Thread Boysenberry Payne
as though I would need to create a 5/1 ratio of mysql connections to apache children. Is that normal? Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Feb 8, 2006, at 9:59 AM, Perrin Harkins wrote: Boysenberry Payne wrote: What do I need to do to fix it? You probably

I'm getting max connection errors for Apache::DBI

2006-02-07 Thread Boysenberry Payne
I'm using Apache/2.0.54 (Unix) mod_apreq2-20050712/2.1.3-dev mod_perl/2.0.1 Perl/v5.8.0 After a certain level of usage I get the following error: failed: Too many connections at /usr/lib/perl5/5.8.0/Habitat/Apache2/DB.pm line 64\n, When I do a server restart it's fine for a while. What do I

For those familiar with HTML::TreeBuilder and HTML::Element

2006-02-05 Thread Boysenberry Payne
Hello, I'm trying to get upper case html with HTML::TreeBuilder via HTML::Element-as_HTML via: # Build HTML Tree $self-{tree} = HTML::TreeBuilder-new(); my $tree = $self-{tree}; # Parse HTML $tree-parse( $html ); $tree-eof; my $new_html = $tree-as_HTML( '', , {} ); $html was: P

Getting keep-alive sorted

2005-12-28 Thread Boysenberry Payne
Hello mod_perl list, I'm trying to sort out my keep-alive issues. It would seem to me (can't get my hands on some of my reference materials right now to confirm) that it's better to have keep-alive off while using a front end (static/php) apache to proxy (using mod_rewrite with an .htaccess

Re: Filtering and Separation of Presentation Layer

2005-12-26 Thread Boysenberry Payne
I use something similar to this with mod_perl to flash using xml. Flash then uses xml in a template fashion. Our templates are highly configurable this way. In the near future we will be doing it as mod_perl to ajax. Unfortunately we haven't decided on how we want to make our code public yet.

Re: go crazy with me

2005-12-21 Thread Boysenberry Payne
I have Apache 1.33 on my front end and an .htaccess file with the following RewriteRule ^(.*)habitat[/]?$ http://perl.habitatlife.com:81/habitat.pl [P] On the back end I have MP2 and Apache2. How can I be sure keep alive is off? Is it done via the front or back? Is this the wrong group

Re: Is $ENV{HTTP_X_FORWARDED_HOST} reliable

2005-12-18 Thread Boysenberry Payne
On Dec 17, 2005, at 5:56 PM, Frank Wiles wrote: The best way to do this is to use the virtual hosts on the front end to your advantage. So on the front end you tell the backend which domain it came from: VirtualHost domain.com:80 ProxyPass / http://localhost:8080/domain.com/

Is $ENV{HTTP_X_FORWARDED_HOST} reliable

2005-12-17 Thread Boysenberry Payne
Hello Everyone, I'm using a two server system. Front end Apache 1.33/php4 uses mod_proxy and mod_rewrite to proxy to the back end Apache2/MP2 system. I was wondering if $ENV{HTTP_X_FORWARDED_HOST} is a reliable way to determine the domain of the request; or is it easily spoofed?

Re: Is $ENV{HTTP_X_FORWARDED_HOST} reliable

2005-12-17 Thread Boysenberry Payne
| habitatlife.com | selfgnosis.com On Dec 17, 2005, at 5:24 PM, Randal L. Schwartz wrote: Boysenberry == Boysenberry Payne [EMAIL PROTECTED] writes: Boysenberry I'm using a two server system. Front end Apache 1.33/php4 Boysenberry uses mod_proxy Boysenberry and mod_rewrite to proxy to the back end

Need help troubleshooting error using Net::SSH::Perl

2005-11-17 Thread Boysenberry Payne
Hello, I'm on OS X 10.3.9 / AP2 / MP 2 / Perl 5.8.7 I've got a script that connects to a couple of ssh servers using Net::SSH::Perl. I've been able to log onto both servers using SSH in a terminal and previously my script worked for connecting to both servers. Now, one server

Re: Need help troubleshooting error using Net::SSH::Perl

2005-11-17 Thread Boysenberry Payne
Disregard this thread, I figured out what it was. SOmehow the ssh server got shut off. Sorry for the unnecessary noise. Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Nov 17, 2005, at 5:47 PM, Boysenberry Payne wrote: Hello, I'm on OS X 10.3.9 / AP2

Help getting a file handle for uploaded files using CGI

2005-11-11 Thread Boysenberry Payne
I'm getting an undefined value from the code below: $CGI::DISABLE_UPLOADS = 0; $CGI::POST_MAX = 100 * 1_048_576; # 100 MB my $cgi = new CGI; print Size: $ENV{CONTENT_LENGTH}; my $cgi_file = $cgi->param( uploaded_file ) || print Error Upload Failed No File Recieved...; my $fh = $cgi->upload(

Re: Help getting a file handle for uploaded files using CGI

2005-11-11 Thread Boysenberry Payne
I forgot I'm using Apache2 and MP2. Is there a way to handle file uploads using apreq2? Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Nov 11, 2005, at 2:36 PM, Boysenberry Payne wrote: I'm getting an undefined value from the code below: $CGI::DISABLE_UPLOADS = 0; $CGI

Re: Help getting a file handle for uploaded files using CGI

2005-11-11 Thread Boysenberry Payne
Never mind I guess Apache2::Upload is what I'm looking for... Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Nov 11, 2005, at 2:47 PM, Boysenberry Payne wrote: I forgot I'm using Apache2 and MP2. Is there a way to handle file uploads using apreq2? Boysenberry

Re: How to use Apache2::Upload

2005-11-11 Thread Boysenberry Payne
nberry boysenberrys.com | habitatlife.com | selfgnosis.com On Nov 11, 2005, at 5:48 PM, Philip M. Gollucci wrote: Boysenberry Payne wrote: Also, are there equivalents to: $CGI::DISABLE_UPLOADS and $CGI::POST_MAX ??? http://httpd.apache.org/apreq/docs/libapreq2/group__apreq__xs__apr__req

Re: 1. ActivePerl vs mod_perl: different results (how to clear the variables before restarts?)

2005-11-08 Thread Boysenberry Payne
my $counter; print Content-type: text/html\n\n; print $char.=*,br\n.++$counter using my to declare your variable should resolve your scoping issue Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Nov 8, 2005, at 9:52 PM, Plymouth Rock wrote: There is the problem: first

Questions about memory

2005-11-05 Thread Boysenberry Payne
Now that I'm at the tail end of my current project (not necessarily the best time to tackle this issue I know) I'm looking at my httpd processes using top: PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE 16970 httpd0.0% 0:00.01 1 9 247 108K

Re: Error while using Apache2::Reload

2005-11-01 Thread Boysenberry Payne
| habitatlife.com | selfgnosis.com On Oct 31, 2005, at 4:45 PM, Tyler MacDonald wrote: Boysenberry Payne [EMAIL PROTECTED] wrote: I would like to do the make uninstall approach below first before going through reinstalling perl and MP2. Before I do this I want to make sure I have the right syntax first

Re: Error while using Apache2::Reload

2005-11-01 Thread Boysenberry Payne
How do I apply the patch? I'm still a little wet behind the ears, please excuse me... Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Nov 1, 2005, at 10:20 AM, Geoffrey Young wrote: I think this is the same problem that just came up in a different circumstance -

DBD::mysql threads sleeping

2005-11-01 Thread Boysenberry Payne
I noticed that even after I use my database handle with the disconnect function (i.e. $dbh-disconnect()) the mysql thread that was used for the database connection hangs around in the sleep state, and reused later. When I use a non-mod_perl perl script using DBI the mysql thread goes away.

Re: Error while using Apache2::Reload

2005-10-31 Thread Boysenberry Payne
Should I just edit out the line in Apache2::Reload that checks for MP2? Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Oct 29, 2005, at 5:01 AM, Boysenberry Payne wrote: I still haven't been able to get Apache2::Reload working after my MP 2.0.0 RC5 upgrade. I even tried

Re: Error while using Apache2::Reload

2005-10-31 Thread Boysenberry Payne
::Reload. Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Oct 31, 2005, at 2:56 PM, Perrin Harkins wrote: On Mon, 2005-10-31 at 14:44 -0600, Boysenberry Payne wrote: Should I just edit out the line in Apache2::Reload that checks for MP2? The fact that you're having

Re: Error while using Apache2::Reload

2005-10-31 Thread Boysenberry Payne
I still have the original source. But I think the reason this is happening is because I used Darwin Port (a Darwin package installer) to install my original MP 2. Then, when I installed MP2 RC5 from source I started getting the error. I used the port uninstall the package first, but maybe it

Re: Error while using Apache2::Reload

2005-10-29 Thread Boysenberry Payne
On Oct 18, 2005, at 12:37 PM, Boysenberry Payne wrote: Did you specificy mod_perl.pm as file to reload in the config by accident? No, it started happening just after the MP 2.0.0 RC5 upgrade... This is what I got as a return from: find /Users/boysie/mod_perl_inc /opt/local/lib/perl5 -name

Re: Error while using Apache2::Reload

2005-10-18 Thread Boysenberry Payne
and Ask Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.com On Oct 18, 2005, at 12:49 AM, Philip M. Gollucci wrote: Boysenberry Payne wrote: I'm getting the following error while trying to use Apache2::Reload on Apache/2.0.55 (Unix) PHP/5.0.5 DAV/2 mod_apreq2-20050712

  1   2   >