MP2 Apache Settings

2003-09-18 Thread Chris Faust
Hello Group, Hope this isn't too apache related and considered off topic. I have a bunch of sites, each have their own IP. Some of those sites have subsites within them with different domain names, these subsites are virtual's based on domainname with all the same parent IP. If I have MP2

Re: Coding Style Question - Using exit

2003-08-19 Thread Chris Faust
Thanks for the reply Thomas, Why not let determine_proper_action() return undef (or OK, or whatever) if you do not want to redirect? And in your handler do: my $rv=determine_proper_action(); if ($rv) { # or ($rv == Apache::Constants::OK) # redirect } else # done } One

Coding Style Question - Using exit

2003-08-18 Thread Chris Faust
Folks, In the continuing effort to make my code better, I'm trying to get rid"exit" in my scripts and clean up some things that just don't sit well (but they work). Almost 95% of my pages are served up via a template system (H::T) and the rest are a redirects. Currently I use a subroutine

Re: $r-headers_out Location and Set-Cookie

2003-08-11 Thread Chris Faust
I haven't had any problems setting a cookie and redirecting on MP2 by using the below $r-err_headers_out-add('Set-Cookie' = $packed_cookie); $r-header_out('Location' = $url); $r-status(REDIRECT); $r-send_http_header; -Chris - Original Message - From: gerard uolaquetalestem

Re: mod_perl 1.0 and 2.0

2003-07-10 Thread Chris Faust
There is a 0.92 version of Apache::DBIis mp2 aware (there may even be a later version at this point). We started with mp1 and do to problems we decided to goto mp2 (which turned out to be non mod_perl and apache related), there wasn't any major performance increase or anything like that and

Re: select multiple

2003-07-10 Thread Chris Faust
CGI.pm does the trick for me, the multi values are seperated by \0 select name=yadda multi optionyadda1 optionyadda2 optionyadda3 /select my $CGI = new CGI(); %form_data = $CGI-Vars; @options = split(\0,$form_data{'yadda'}); $options[0] = yadda1, $options[1] = yadda2 etc . Not usable

Re: Apache Error of $r-read failed to read

2003-06-12 Thread Chris Faust
I FOUND IT!! Like you said, it was in CGI.pm. It happens when doing a file upload ## while ($bytesread=read($image_filename_one,$buffer,1024)) { print OUTFILE $buffer; } ## If during the upload the user stops, drops or dies then the errors come through which makes me think now

Re: is anybody using mp2 in production?

2003-06-09 Thread Chris Faust
(Btw, Chris, are you using the worker mpm ? Is it stable ? We'd like to go the worker mpm way would like to know if any1 is using it yet in production.) On our dev server yes, and all seems well - but we haven't rolled it out in production yet. Its one of those things we want to do but keep

Re: is anybody using mp2 in production?

2003-06-08 Thread Chris Faust
not to do things the best possible way the first time around! Thanks to Everyone on the Mod_perl Team Chris Faust Developer of http://www.isoldmyhouse.com - Original Message - From: Stas Bekman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 08, 2003 1:50 AM Subject

Apache Error of $r-read failed to read

2003-05-29 Thread Chris Faust
Hi, We have been having some problems where all of a sudden apache will start logging the error of: [error] mod_perl: $r-read failed to read Multiple times (100s in less then 10th ofa sec), often it will get to the point where load on the machine goes through the roof and apache has

Recompiling Apache

2003-03-31 Thread Chris Faust
Hello Group, I want to add the rewrite module to my apache and it would appear I have to recompile apache to do so.. Does this mean I'll need to redo mod_perl after Apache as well? RH 8 Apache 2.044 mod_perl 1.99.09 Thanks -Chris

RE: MP2 - New Install - Make Test Errors - Resolved

2003-03-23 Thread Chris Faust
(Unix) mod_perl/1.99_09-dev Perl/v5.8.0 configured Sweet! Thanks -Chris -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED] Sent: Saturday, March 22, 2003 11:54 PM To: Chris Faust Cc: Modperl Subject: Re: MP2 - New Install - Make Test Errors Chris Faust wrote

MP2 - New Install - Make Test Errors

2003-03-22 Thread Chris Faust
I'm installing mod_perl for the 3rd time using pretty much the same config (machine, OS etc) as before but this time around I'm getting a lot of strange errors when I run make test. Here is a bug report: http://tagteam.prevare.com/mp2bug.txt Here is the Error Log

RE: MP2 - New Install - Make Test Errors

2003-03-22 Thread Chris Faust
to dev at perl.apache.org. To subscribe to the list send an empty email to [EMAIL PROTECTED] -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 8:47 PM To: Chris Faust Cc: Modperl Subject: Re: MP2 - New Install - Make Test Errors I'm installing

MP2 - New Install - Make Test Errors

2003-03-21 Thread Chris Faust
(sorry if this hits the list twice, I didn't use my registered email on the first note and I don't think it made it) I'm installing mod_perl for the 3rd time using pretty much the same config (machine, OS etc) as before but this time around I'm getting a lot of strange errors when I run make

Using a Startup.pl

2003-03-18 Thread Chris Faust
Hello All, This may be a stupid question, but I'm not finding any clear documentation to give me a answer. I'm running mod_perl 2 on RedHat with Apache 2.0.44 and I'm using NamedBased Virtual Hosting in apache (so I have a number of virtual hosts and apache directs properly based on hostname).

RE: Using a Startup.pl

2003-03-18 Thread Chris Faust
Thanks Thomas, that is what I wanted to know!! -Chris -Original Message- From: Thomas Klausner [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 1:50 PM To: Modperl Subject: Re: Using a Startup.pl Hi! On Tue, Mar 18, 2003 at 01:39:41PM -0500, Chris Faust wrote

RE: Using a Startup.pl

2003-03-18 Thread Chris Faust
, Chris Faust wrote: I'm running mod_perl 2 on RedHat with Apache 2.0.44 and I'm using NamedBased Virtual Hosting in apache (so I have a number of virtual hosts and apache directs properly based on hostname). I use a startup.pl to load up common things like DBI, CGI, HTML::Template etc

RE: Apache is exiting....

2003-02-27 Thread Chris Faust
Hey Paolo, Did you try to add some die statements to see if it made any difference, so something like: use Image::Magick; my $image=Image::Magick-new(size='75x75'); $image-Read('null:white'); die display_error(Read Error Error: Image: null:white $image \n) if ($image); my @x =

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: 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

Apache::DBI and mod_perl 2

2003-02-14 Thread Chris Faust
Hi, My problem seems like one that would be well documented, but I can't find anything in any of the docs and even goggle groups only had one message 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

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
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? Thanks -Chris -Original Message- From: Nick Tonkin [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 10:22 AM To: Chris Faust Cc: Modperl

RE: Apache::DBI and mod_perl 2

2003-02-14 Thread Chris Faust
Awesome!! That must be my problem.. I searched everyplace else, but totally forgot searching the list.. Sorry about that. Thanks Again!! -Chris -Original Message- From: Nick Tonkin [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 10:46 AM To: Chris Faust Cc: Modperl