Apache::Reload

2012-06-17 Thread cfaust-dougot
Hello, I'm having a problem with Apache::Reload and I'm not sure what I can do to debug. Long story short, I use Apache::Reload all the time but I recently setup a new development server and its under the new machine that its a problem. The module is installed and when I add to my conf: Pe

RE: Content-Disposition

2012-01-22 Thread cfaust-dougot
I'm all set, I had to use err_headers_out for some reason so, $r->err_headers_out->add('Content-Disposition' => 'attachment; filename="' . $download_name . '"'); Works. -Chris From: cfaust-dougot [mail

RE: Content-Disposition

2012-01-22 Thread cfaust-dougot
Thanks for the reply Earle, I actually did try both "attachment" and "inline" and neither worked (I should have said that in the org post). -Chris From: Earle Ake [mailto:e...@woh.rr.com] Sent: Sat 1/21/2012 9:19 PM To: cfaust-dougot; mod

Content-Disposition

2012-01-21 Thread cfaust-dougot
Hello, I'm guessing there is a real simple answer to my question but as uasual, I can't find it :) Simply put I'm trying to create a Zip file and push it to the user using a filename I've defined. Everything works except the name of the file that comes up in the browser dialog. It always def

Same script with different locations

2011-05-29 Thread cfaust-dougot
Folks, I wanted to know if there was anything wrong with using the same MP2 content handler with multiple Location directives in apache and using $r->location() to determine the script that should be used in forms, redirects etc. We have someone that insists in having different URL's doing so

RE: [ot] Perl Survey

2010-06-04 Thread cfaust-dougot
Closed now, just missed it :( From: Fred Moyer [mailto:f...@redhotpenguin.com] Sent: Wed 6/2/2010 12:45 PM To: mod_perl list Subject: [ot] Perl Survey I just read that the Perl Survey will be closing in 24 hours so if you get this I'd encourage you to fill it o

RE: Is this an acceptable way to multipurpose a sub?

2010-04-26 Thread cfaust-dougot
I'm sure someone where will pipe in a better way, but you could pass via a hash, something like ($result_code, $error) = submit_changes({ 'apache_request' = >$r, 'user_name' => \...@user_names, 'latest_news' => $latest_news_file, 'archived_news' =>$archived_news_file, 'cgi_obj' =>$q); sub

RE: Apache Blank Pages

2010-01-14 Thread cfaust-dougot
impression that if it was a module that I was going to be using in the majority of my scripts then I should put it in startup. Was that thinking wrong? TIA!!! From: Perrin Harkins [mailto:phark...@gmail.com] Sent: Thu 1/14/2010 4:30 PM To: cfaust-dougot C

RE: Apache Blank Pages

2010-01-13 Thread cfaust-dougot
__ From: Perrin Harkins [mailto:phark...@gmail.com] Sent: Wed 1/13/2010 5:36 PM To: cfaust-dougot Cc: modperl@perl.apache.org Subject: Re: Apache Blank Pages On Wed, Jan 13, 2010 at 5:31 PM, cfaust-dougot wrote: > Do you mean on apache startup? I'm not calling DBI or DBD in star

RE: Apache Blank Pages

2010-01-13 Thread cfaust-dougot
Do you mean on apache startup? I'm not calling DBI or DBD in startup.pl. Any other module would be after the fork, wouldn't? Thanks!! From: Perrin Harkins [mailto:phark...@gmail.com] Sent: Wed 1/13/2010 12:07 PM To: cfaust-dougot Cc: ??

RE: Apache Blank Pages

2010-01-13 Thread cfaust-dougot
___ From: ??? [mailto:chen...@maxthon.net] Sent: Wed 1/13/2010 7:08 AM To: cfaust-dougot Cc: modperl@perl.apache.org Subject: Re: Apache Blank Pages what is your apache's mpm? worker or prefork? Our site sometimes also rise similar error(like glibc detected ... in error log ) under

RE: Apache Blank Pages

2010-01-13 Thread cfaust-dougot
_ From: ??? [mailto:chen...@maxthon.net] Sent: Wed 1/13/2010 7:08 AM To: cfaust-dougot Cc: modperl@perl.apache.org Subject: Re: Apache Blank Pages what is your apache's mpm? worker or prefork? Our site sometimes also rise similar error(like glibc detected ... in error log )

RE: Apache Blank Pages

2010-01-12 Thread cfaust-dougot
the one that doesn't work. No closer to a solution though - any method I try to use to connect to the DB from VH2 results in this problem. Still doesn't make a lot of sense. From: William T [mailto:dietbud...@gmail.com] Sent: Tue 1/12/2010

Apache Blank Pages

2010-01-12 Thread cfaust-dougot
Hello, I have a bizarre problem I'm hoping someone could give me some suggestions with. I have a couple of MP2 scripts running on a server, they are both similar in use of modules and structure. Without any recent changes, one of the scripts is producing a blank apache page on SOME requests.

$r->connection->remote_ip with proxy and non proxy env

2008-10-06 Thread cfaust-dougot
Folks, I'm guessing this has been answered but I couldn't find it. We need to do some IP checking and need to support it on both a load balanced environment and in a dedicated machine setup. In the load balanced situation $r->connection->remote_ip returns 1 - Is that correct and consistent

RE: Caching a hash - am I missing something?

2008-08-20 Thread cfaust-dougot
Thanks Andre and Tyler. Believe it or not I never even thought of that until you guys pointed it out (that the hash would live for the the life of the apache child). I can be such a fool sometimes :) In this case I assume %cache is global - it only appers in that sub, there is no "my %cache

RE: Cookie help - using both cgi.pm and APR::Request::Cookie

2008-05-28 Thread cfaust-dougot
AIL PROTECTED] Sent: Wed 5/28/2008 6:27 AM To: cfaust-dougot Cc: modperl@perl.apache.org Subject: Re: Cookie help - using both cgi.pm and APR::Request::Cookie I don't guarantee that this is the real issue you're having, but be careful of the following : either of the Apache2::Request

Cookie help - using both cgi.pm and APR::Request::Cookie

2008-05-27 Thread cfaust-dougot
Folks, I taking over some really old code and I'm in the process of converting it over to mp2. I want to be able to use APR::Request::Cookie to create the cookie for the new things I'm doing but I need to create it exactly like CGI.pm is currently doing so the old code will continue to work un

RE: Replacement for CGI.pm escape and unescape

2007-06-07 Thread cfaust-dougot
That's what I needed!! Thanks Geoff! -Chris From: Geoffrey Young [mailto:[EMAIL PROTECTED] Sent: Thu 6/7/2007 11:40 AM To: cfaust-dougot Cc: Michael Peters; Jonathan Vanasco; modperl@perl.apache.org Subject: Re: Replacement for CGI.pm escape and une

RE: Replacement for CGI.pm escape and unescape

2007-06-07 Thread cfaust-dougot
Yes, I'm trying to HTML escape/unescape, although looking at URI::Escape it seems like it might work. I'll have to give it a try. Thanks!! From: Michael Peters [mailto:[EMAIL PROTECTED] Sent: Thu 6/7/2007 10:32 AM To: Jonathan Vanasco Cc: cfa

Replacement for CGI.pm escape and unescape

2007-06-07 Thread cfaust-dougot
Hi All, I'm running the latest mp2 with Libapreq. Is there some method to duplicate CGI.pm's escape and unescape methods? I found escape_path, but obviously that isn't the same thing. I'm trying to remove CGI.pm from all my code and these are the last 2 things I need to take care of. TIA!

RE: Help with Manual removal of libapreq2

2007-05-14 Thread cfaust-dougot
rking!!! Thanks! -Chris From: Frank Wiles [mailto:[EMAIL PROTECTED] Sent: Mon 5/14/2007 1:25 PM To: cfaust-dougot Cc: Jonathan Vanasco; modperl@perl.apache.org Subject: Re: Help with Manual removal of libapreq2 On Mon, 14 May 2007 11:40:46 -0400 "cfa

RE: Help with Manual removal of libapreq2

2007-05-14 Thread cfaust-dougot
Thanks Jonathan, I think that helped get me closer. I removed the Request.so (don't know where it came from if it shouldn't have been there), now I get " Can't locate loadable object for module APR::Request" which is coming from "use APR::Request ();" in my startup.pl Am i just missing somethin

Help with Manual removal of libapreq2

2007-05-14 Thread cfaust-dougot
Hi All, I'm trying to remove libapreq2 via "make clean" without a whole lot of success. Below is what I get back from "make clean" (and Request.so still exists afterwards) Any ideas? The long story is I decided to run the Ubuntu update to bring one of our dev servers up to date. Now I keep g

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread cfaust-dougot
WooHoo!!! Thanks John, Clinton and Philip, you guys rock!! -Chris From: John ORourke [mailto:[EMAIL PROTECTED] Sent: Sat 12/9/2006 1:19 PM To: cfaust-dougot Cc: modperl@perl.apache.org Subject: Re: Apache2::Cookie/APR::Request::Cookie Ummm... this should b

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread cfaust-dougot
sing libapreq2, does that mean it doesn't work with redirects?? Thanks -Chris From: Philip M. Gollucci [mailto:[EMAIL PROTECTED] Sent: Sat 12/9/2006 12:26 PM To: cfaust-dougot Cc: Clinton Gormley; modperl@perl.apache.org Subject: Re: Apache2::Cookie/APR::Re

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread cfaust-dougot
x27;+7d', ); $r->err_headers_out->add('Set-Cookie' => $packed_cookie->as_string); Its never easy :(.. Thanks!! From: Clinton Gormley [mailto:[EMAIL PROTECTED] Sent: Sat 12/9/2006 12:24 PM To: cfaust-dougot Cc: modperl@perl.apache.org Subject: RE: Apach

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread cfaust-dougot
ing for a cookie that was saved the last time you were on the site. Thanks -Chris From: Clinton Gormley [mailto:[EMAIL PROTECTED] Sent: Sat 12/9/2006 11:07 AM To: cfaust-dougot Cc: modperl@perl.apache.org Subject: RE: Apache2::Cookie/APR::Request::Cookie

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread cfaust-dougot
error of "Missing Input Data" and I'm sure apreq2 is loaded. Man, I wish getting rid of CGI.pm was as easy as using it :) - Back to the drawing board!! Thanks -Chris From: Clinton Gormley [mailto:[EMAIL PROTECTED] Sent: Sat 12/9/2006 10:00 AM To: c

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread cfaust-dougot
e2::Cookie (); use Apache2::Const -compile => qw(REDIRECT); use Apache2::Const -compile => qw(OK); use APR::Table (); use APR::Request (); use APR::Request::Cookie (); Am I doing anything that is clearly wrong? Thanks -Chris From: Clinton Gormley [mailt

Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread cfaust-dougot
I'm down to the last thing I need to handle without CGI.pm to get rid of it, cookies... But I'm having a problem.. I've tried both Apache2::Cookie and APR::Request::Cookie (from the posts I read I got the impression it was better to use ARP::Request::Cookie then Apache2::Cookie). The problem

RE: Apache2::Upload and End of file found error Part 2

2006-12-08 Thread cfaust-dougot
pm's "escape" and "unescape" methods I won't need CGI.pm at all.. Thanks! > ________ > > From: Fred Moyer [mailto:[EMAIL PROTECTED] > Sent: Thu 12/7/2006 2:33 AM > To: cfaust-dougot > Cc: modperl@perl.apache.org > Subject: Re: Apache2::Up

RE: Apache2::Upload and End of file found error Part 2

2006-12-07 Thread cfaust-dougot
there no way to get them to work together?? Thanks -Chris From: Fred Moyer [mailto:[EMAIL PROTECTED] Sent: Thu 12/7/2006 2:33 AM To: cfaust-dougot Cc: modperl@perl.apache.org Subject: Re: Apache2::Upload and End of file found error Part 2 cfaust-dougot wrot

Apache2::Upload and End of file found error Part 2

2006-12-06 Thread cfaust-dougot
();" in the sub "init_global_vals" then the update works fine, if its uncommented then the server error of "End of file found" happens. http://208.3.90.212/test.pm.txt I have no idea how one relates to the other, any ideas? Thanks -Chris ________

Apache2::Upload and End of file found error

2006-12-05 Thread cfaust-dougot
Hi, I'm trying to use Apache2::Upload as shown in the examples and the only thing I get is "End of file found" in the error log. I've found quite a few messages on the subject, but I'm not using Mason and I'm using libapreq2.0.7.1. I've tried the fh and slurp methods and both are the same.

RE: MP2 Script within another script AND via SSI

2006-07-11 Thread cfaust-dougot
cript within another script AND via SSI On Tue, 2006-07-11 at 09:50 -0400, cfaust-dougot wrote:> What I have below works, but for some reason I'm not all thatcomfortable with> it.. Could someone tell me if I'm doing anything evil with myapproach??Looks fine to me.  SSI virtua

MP2 Script within another script AND via SSI

2006-07-11 Thread cfaust-dougot
Morning All,   What I have below works, but for some reason I'm not all that comfortable with it.. Could someone tell me if I'm doing anything evil with my approach??   MP2 (ParseNav.pm) Script Description: Needed a script to create page navigation, the nav needs to be called within other MP2 sc

RE: Previous Pages/Requests appearing

2005-05-30 Thread cfaust-dougot
Sorry, should have said I was running MP2 under RH   Apache/2.0.54 (Unix) mod_perl/2.0.0 Perl/v5.8.0 configured   From: cfaust-dougot [mailto:[EMAIL PROTECTED]Sent: Mon 5/30/2005 10:30 AMTo: modperl@perl.apache.orgSubject: Previous Pages/Requests appearing Folks,   I am having problems

Previous Pages/Requests appearing

2005-05-30 Thread cfaust-dougot
Folks,   I am having problems with previous pages/requests showing up on refreshes and/or the clicking on links not going to the proper page etc. etc.   Its a new server and I didn't think it was the code so I commented out all mod_perl scripts and added the simple script below.   I also got th

RE: Is mod_perl installed

2005-05-20 Thread cfaust-dougot
Chris     From: Perrin Harkins [mailto:[EMAIL PROTECTED]Sent: Thu 5/19/2005 5:06 PMTo: modperl@perl.apache.orgSubject: Re: Is mod_perl installed On Thursday 19 May 2005 2:49 pm, cfaust-dougot wrote:> The box is RH enterprise and Apache and MP2 were installed via RPMWell, you know that's

RE: Is mod_perl installed

2005-05-19 Thread cfaust-dougot
Title: Re: Is mod_perl installed Thanks Stas, as always - you da man!!!   -Chris From: Stas Bekman [mailto:[EMAIL PROTECTED]Sent: Thu 5/19/2005 7:18 PMTo: cfaust-dougotCc: [EMAIL PROTECTED]; mod_perlSubject: Re: Is mod_perl installed cfaust-dougot wrote:> Hey Jay,> >

RE: Is mod_perl installed

2005-05-19 Thread cfaust-dougot
adModule perl_module modules/mod_perl.soThen look for the perl_module in /etc/httpd/modules.This is standard placement for Redhat Linux RPMs.I have found that I can edit this perl.conf to customize my modPerl anddirectories and script aliasesOn Thu, 2005-05-19 at 14:49 -0400, cfaust-dougot wrote:&

Is mod_perl installed

2005-05-19 Thread cfaust-dougot
Hey Stas,   I know this has been asked a ton of time and I have read everything on the site to check if MP is installed - my problem now is I have a client who has told me over and over again that mod_perl is installed - every method documented on the site says it is not (string doesn't appear i

RE: Code fix/suggestion after MP2 update

2005-04-30 Thread cfaust-dougot
Title: Re: Code fix/suggestion after MP2 update cfaust-dougot wrote:>>> Folks,>>> >>> I hope my brain is just not functioning properly yet as its Saturday, but I'm having a tough time figuring out the best way to handle the needed changed of "Apache::*&

Code fix/suggestion after MP2 update

2005-04-30 Thread cfaust-dougot
Folks,   I hope my brain is just not functioning properly yet as its Saturday, but I'm having a tough time figuring out the best way to handle the needed changed of "Apache::*" to  "Apache2::Const*" automatically so I don't have to edit anything with a script going up on 2 different servers wit

RE: [MP2] - Failure on Make Install

2005-04-18 Thread cfaust-dougot
Title: Re: [MP2] - Failure on Make Install [...]> It tried the patch and got the same error:> > /usr/bin/perl -Iblib/lib -I/home/zerobrokerfees/mod_perl-2.0.0-RC5/Apache-Test/lib -MModPerl::BuildMM -e ModPerl::BuildMM::glue_pod ModPerl-Registry/lib/ModPerl/RegistryLoader.pm /home/zerobrok

RE: [MP2] - Failure on Make Install

2005-04-18 Thread cfaust-dougot
Title: Re: [MP2] - Failure on Make Install cfaust-dougot wrote:[...]> It tried the patch and got the same error:> > /usr/bin/perl -Iblib/lib -I/home/zerobrokerfees/mod_perl-2.0.0-RC5/Apache-Test/lib -MModPerl::BuildMM -e ModPerl::BuildMM::glue_pod ModPerl-Registry/li

RE: [MP2] - Failure on Make Install

2005-04-18 Thread cfaust-dougot
Title: Re: [MP2] - Failure on Make Install > cfaust-dougot wrote:>>>Folks, have what I hope is a little problem during the install of mod_perl.>>>>1. Problem Description:>>>>I just downloaded the current mod_perl from the site.>>mod_perl-2.0-c

RE: [MP2] - Failure on Make Install

2005-04-18 Thread cfaust-dougot
Title: Re: [MP2] - Failure on Make Install cfaust-dougot wrote:> Folks, have what I hope is a little problem during the install of mod_perl.> > 1. Problem Description:> > I just downloaded the current mod_perl from the site.> mod_perl-2.0-current.tar.gz 4/18/2005> &

RE: [MP2] - Failure on Make Install

2005-04-18 Thread cfaust-dougot
Title: Re: [MP2] - Failure on Make Install Thanks Philip, I'll do that right now...   -Chris From: Philip M. Gollucci [mailto:[EMAIL PROTECTED]Sent: Mon 4/18/2005 1:39 PMTo: cfaust-dougotCc: modperl@perl.apache.orgSubject: Re: [MP2] - Failure on Make Install cfaust-dougot

[MP2] - Failure on Make Install

2005-04-18 Thread cfaust-dougot
Folks, have what I hope is a little problem during the install of mod_perl.   1. Problem Description:   I just downloaded the current mod_perl from the site. mod_perl-2.0-current.tar.gz 4/18/2005   Configured and built as outlined in the docs - everything went fine, test showed all testes bein

RE: MP2 Won't Install

2005-01-11 Thread cfaust-dougot
Title: Re: MP2 Won't Install >>That means only one thing: your httpd.conf is broken. Start with a hello>>world config from the documentation, see it working and then proceed to>>ensure that your own stuff is configured to run modperl. Awesome!!! Looks like that was the problem I d

MP2 Won't Install

2005-01-11 Thread cfaust-dougot
Morning,   I'm having problems just getting MP2 to install.. I can build MP2, make, make test make install with no errors at all, mod_perl.so is built and is put into the proper modules directory and is called correctly in the httpd.conf file - but its not installed, it doesn't show up in the e

RE: MP2 - Make test Error - t/api/request_rec.t

2005-01-10 Thread cfaust-dougot
Title: Re: MP2 - Make test Error - t/api/request_rec.t >>It's possible that you create a closure somewhere, but you don't show that>>somewhere. Otherwise why would you have defined all those globals. Try to>>get rid of those and pass things by value.I think I found the problem, I've been o

RE: MP2 - Make test Error - t/api/request_rec.t

2005-01-10 Thread cfaust-dougot
Title: Re: MP2 - Make test Error - t/api/request_rec.t >>You realize that this is not an a-few-lines-test-case. How can we analyze>>or run it if it requires a database connection and non-existing>>auth_incoming_user and other functions. Please reduce it to the case that>>has no external d

RE: MP2 - Make test Error - t/api/request_rec.t

2005-01-10 Thread cfaust-dougot
Title: Re: MP2 - Make test Error - t/api/request_rec.t >> sorry, I have no idea. If you reduce your code to a simple few-lines>> script/handler and post it here, I'm sure someone will figure out what the>> problem is, and whether it's an issue with your code or a bug in mp2. Thanks Stas, I

RE: MP2 - Make test Error - t/api/request_rec.t

2005-01-10 Thread cfaust-dougot
nything I could have done during the apache and/or mod_perl builds to do this?   Thanks -Chris From: cfaust-dougot [mailto:[EMAIL PROTECTED]Sent: Mon 1/10/2005 1:33 PMTo: Stas BekmanCc: modperl@perl.apache.orgSubject: RE: MP2 - Make test Error - t/api/request_rec.t Thanks Stas, that did t

RE: MP2 - Make test Error - t/api/request_rec.t

2005-01-10 Thread cfaust-dougot
Title: Re: MP2 - Make test Error - t/api/request_rec.t Thanks Stas, that did the trick, test and install both ran without a problem!!   Thanks Again! -Chris   From: Stas Bekman [mailto:[EMAIL PROTECTED]Sent: Mon 1/10/2005 11:17 AMTo: cfaust-dougotCc: modperl@perl.apache.orgSubject: Re: M