Re: [External] Re: [DISCUSS] The future of mod_perl

2021-03-17 Thread Kevin A. McGrail
we're waiting for the catalyst to come along that puts and end to it. EG.. some future Apache incompatibility.  I'd really like someone with mod_perl authority to tell me I'm wrong, but my take on Adam's reply pretty much leaves me with that conclusion. I don't see another

Re: Hello

2015-11-28 Thread Kevin A. McGrail
I am just coming out of my carb and turkey coma... Regards, KAM On November 28, 2015 11:38:17 AM EST, Davit Nergadze wrote: >Is there anyone? After perl porters mailing list, this feels like an >empty room ro something... :-/

Re: Enquiry about mod_perl project state

2015-09-02 Thread Kevin A. McGrail
On 9/2/2015 6:16 AM, Vincent Veyron wrote: On Tue, 1 Sep 2015 16:45:47 -0500 Igor Chudov wrote: I make many thousands of $$$ per month from my websites, all of which are based on mod_perl. I wrote everything myself. Do you think that if Apache makes some big changes, mod_perl will follow?

Re: mod_perl cannot find startup.pl

2015-07-08 Thread Kevin A. McGrail
On 7/8/2015 8:01 PM, Jim Garrison wrote: D'OH!!! I was sure I had turned off selinux, but had not. That was a very good call. No worries, we've all been there. regards, KAM

Re: Apache 2.4 Upgrade

2015-06-15 Thread Kevin A. McGrail
On 6/15/2015 5:02 PM, John Dunlap wrote: I am getting the client ip address in every request and checking it against an access control list which is stored in my database(so that the user can maintain the ACL's without the assistance of an administrator). These are the code snippets which are g

Re: Apache 2.4 Upgrade

2015-06-15 Thread Kevin A. McGrail
On 6/15/2015 4:56 PM, John Dunlap wrote: Could that result in inconsistent request behavior? Because one of the things that I'm noticing is that, for no apparent reason, sometimes I can log in normally and sometimes I can't with identical request parameters(even if I delete the session and rest

Re: Apache 2.4 Upgrade

2015-06-15 Thread Kevin A. McGrail
On 6/15/2015 3:30 PM, John Dunlap wrote: One thing I have noticed is that sometimes some of my objects seem to persist between Apache restarts(which makes no sense to me at all). The concrete behavior that I'm seeing is that I can't log into my application. The problem could very well be a bug

Re: Apache 2.4 Upgrade

2015-06-15 Thread Kevin A. McGrail
On 6/15/2015 3:14 PM, John Dunlap wrote: root@cosmos:~# dpkg -l libapache2-mod-perl2 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name

Re: Apache 2.4 Upgrade

2015-06-15 Thread Kevin A. McGrail
On 6/15/2015 1:38 PM, John Dunlap wrote: I'm trying to upgrade my application from Apache 2.2.22(Debian 7) to Apache 2.4.10(Debian 8) and I'm running into some truly weird behaviors that I'm having trouble tracking down. I'm not sure if it's a bug in my code(most likely) or a bug in mod_perl.

Re: [RELEASE CANDIDATE]: mod_perl-2.0.9 RC2

2015-05-30 Thread Kevin A. McGrail
On 5/30/2015 2:20 PM, Steve Hay wrote: Please download, test, and report back on this release candidate of the long-awaited mod_perl 2.0.9. http://people.apache.org/~stevehay/mod_perl-2.0.9-rc2.tar.gz MD5 = 6dbf61e0724a245f1c015687fb3e4213 SHA1 = faf63c98b338ef0373ccbbe775c52506270ff3b9 Change

Re: Apache 2.4 and AAA

2015-05-29 Thread Kevin A. McGrail
On 5/29/2015 1:52 PM, André Warnier wrote: Kevin A. McGrail wrote: On 5/29/2015 1:20 PM, André Warnier wrote: Over the years, I have created and modified and re-modified my own Apache/mod_perl authentication module, which was originally derived from Apache(2?)::AuthCookie (pilfered would be

Re: Apache 2.4 and AAA

2015-05-29 Thread Kevin A. McGrail
On 5/29/2015 1:20 PM, André Warnier wrote: Over the years, I have created and modified and re-modified my own Apache/mod_perl authentication module, which was originally derived from Apache(2?)::AuthCookie (pilfered would be the correct term I guess). It currently runs up to Apache 2.2, but I ha

Re: Upgrade to Apache 2.4 breaks encoding in a PerlOutputFilterHandler

2015-05-28 Thread Kevin A. McGrail
On 5/27/2015 6:45 PM, Vincent Veyron wrote: and what version of MP are you using? #dpkg -l *mod-perl* libapache2-mod-perl2 2.0.9~1624218-2 i386 OK, I can't tell if that's older or newer than rc1 but it's at least not the 2.0.7 issue I had to deal with recently.

Re: Upgrade to Apache 2.4 breaks encoding in a PerlOutputFilterHandler

2015-05-27 Thread Kevin A. McGrail
> When I upgrade to Apache 2.4, this happens How did you upgrade to 2.4 and what version of MP are you using? I ask because I've been running into distros running MP 2.0.7 with Apache httpd 2.4 so I want to help rule out that issue. Regards, KAM

Re: mod_perl and apache 2.4

2015-04-16 Thread Kevin A. McGrail
On 4/16/2015 10:22 AM, GLG wrote: Unless I am mistaken, it would appear that there is currently no solution as far as running Perl with Apache 2.4 via mod_perl 2.0.8 (or is there a version 2.0.9 out?). That is currently the case. I believe there is an SVN version that will build and work but

Re: [OT] AW: Unsuccessful stat on filename containing newline in RegistryCooker.pm

2013-02-28 Thread Kevin A. McGrail
On 2/28/2013 7:29 AM, André Warnier wrote: The person who invented that spaces and other unprintable characters were allowed in filenames and paths should be found, his PC and iPhone should be confiscated, he should be exiled to an isolated island in the middle of the Arctic Ocean, and he shoul

Re: Trouble installing mod_perl-2.0.7 with Perl v5.14.2 and Apache Apache/2.4.3 under FreeBSD 9.1

2013-02-21 Thread Kevin A. McGrail
On 2/21/2013 9:35 AM, Bernard Higonnet wrote: Everything seems to go OK with perl Makefile.PL but when I try make I get this: modperl_interp.c: In function 'modperl_interp_select': modperl_interp.c:503: error: 'conn_rec' has no member named 'remote_ip' *** [modperl_interp.lo] Error code 1 I ha

Re: MP and 2.4 Compilation Woes

2013-02-11 Thread Kevin A. McGrail
On 2/11/2013 4:54 AM, Jan Kaluža wrote: On 02/08/2013 04:39 PM, Kevin A. McGrail wrote: Following Jan's advice, I had to add this to ParseSource.pm + 'APACHE_HTTP_VHOST_H', #c-scan chokes on http_host.h + 'H_PERL', #"" That got me this far... Ha

Re: MP and 2.4 Compilation Woes

2013-02-08 Thread Kevin A. McGrail
On 2/8/2013 11:33 AM, Andy Colson wrote: XML_Memory_Handling_Suite is from expat. I have 2.0.1 installed. Do you have the expat-dev package installed? I did not, I do now, no apparent change. Regards, KAM

Re: MP and 2.4 Compilation Woes

2013-02-08 Thread Kevin A. McGrail
On 2/8/2013 11:04 AM, Kevin A. McGrail wrote: On 2/8/2013 11:01 AM, Andy Colson wrote: thought you had typed: >> > /usr/local/perl-5.14/bin/perl build/source_scan.pl Do you have multiple perl's installed? /usr/local/perl-5.14 seems unusual. I custom compiled a version o

Re: MP and 2.4 Compilation Woes

2013-02-08 Thread Kevin A. McGrail
On 2/8/2013 11:01 AM, Andy Colson wrote: thought you had typed: >> > /usr/local/perl-5.14/bin/perl build/source_scan.pl Do you have multiple perl's installed? /usr/local/perl-5.14 seems unusual. I custom compiled a version of perl in /usr/local/perl-5.14 Any chance your picking up headers o

Re: MP and 2.4 Compilation Woes

2013-02-08 Thread Kevin A. McGrail
On 2/8/2013 10:48 AM, Andy Colson wrote: On 2/8/2013 9:39 AM, Kevin A. McGrail wrote: Hi All, So picking back up on the thread from the httpd list, I am interested in helping with mod_perl. And I've written some patches for AuthenDBI and can work on those again as well. However, a

MP and 2.4 Compilation Woes

2013-02-08 Thread Kevin A. McGrail
Hi All, So picking back up on the thread from the httpd list, I am interested in helping with mod_perl. And I've written some patches for AuthenDBI and can work on those again as well. However, at the moment I can't compile 2.4 and the make source_scan stuff is not something I even understa

Re: Configuring mod-Perl to handle only some file types

2012-08-08 Thread Kevin A. McGrail
On 8/8/2012 2:13 PM, jniederber...@comcast.net wrote: Hello, I have a mod_perl program that is written to handle URL's that name either a directory or *.html type files. All other types I want Apache to just do its regular thing (e.g., serve image type files, or .doc, .pdf, .js, .css, etc.) What

Re: apache 2.4.x and mod_perl 2.0

2012-03-16 Thread Kevin A. McGrail
On 3/15/2012 2:17 PM, Torsten Förtsch wrote: IMHO, we should implement a compatibility function that maps remote_ip() to client_ip and provide the new structure members independently. Torsten Förtsch I've got a production box setup now with 2.4.1 installed so I can play with mod_perl if we n

Re: [OT] noatime

2006-11-15 Thread Kevin A. McGrail
It absolutely helps performance. Atime is access time. Otherwise basically everytime a file is accessed, the atime is updated. This causes a lot of little writes to the hard drive constantly. I have recently begun turning it off on our servers in the past 2 years because in 10 years, I've n

Re: AuthDBI & Apache 2.2 & mod_perl 2

2006-11-05 Thread Kevin A. McGrail
While I agree that it does work, I do believe he is right that 'use Apache::Access;' might be needed in the latest version. Regards, KAM You might want to grab the latest AuthDBI from CPAN. It's 1.04 at the moment. Speaking as maintainer, it works fine for me in 2.x. I'm pretty sure Kevin Mc

Re: Receiving user input

2006-08-31 Thread Kevin A. McGrail
KAM - Original Message - From: "Perrin Harkins" <[EMAIL PROTECTED]> To: "Kevin A. McGrail" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; Sent: Thursday, August 31, 2006 2:09 PM Subject: Re: Receiving user input On Thu, 2006-08-31 at 12:45 -0400, Kevin

Re: Receiving user input

2006-08-31 Thread Kevin A. McGrail
y, this is the first code snippet every release from this library.  Hopefully, it is helpful. Regards, KAM   # FUNCTION: GET FORM HASH - from PerlCMS under Perl Artistic License v1.0 by PCCC - Kevin A. McGrail # # Designed to deconstruct an apache server's GET & POST constructs. POSTS are

Re: chown executed by the apache user

2006-08-03 Thread Kevin A. McGrail
Write a daemon running as root that watches a db for files that need to be chowned and periodically runs the chown. Have your web app update the db which the daemon than watches. Make sure it can only chown files in certain directories. Fancy step 2 will be a wakeup message your web app sends

Re: nothing vs Registry vs module

2006-06-15 Thread Kevin A. McGrail
The vast majority of the speedup is in the compilation / interpreter loadtime. You will not see a another 20x increase in speed switching to a handler module. I bemoan the fact that some of our shared hosting servers run Perl and PHP via suexec for EVERY call. Ouch! Regards, KAM Firstly, r

Re: clusters

2006-05-09 Thread Kevin A. McGrail
Taking this another step further, I don't get the impression that perlbal or pound will achieve the "temporary" caching on the middle-proxy server allowing the back-end server to get back to other requests. Anyone know for sure? Sincerely, KAM > On Tue, 2006-05-09 at 13

Re: clusters

2006-05-09 Thread Kevin A. McGrail
> As a caveat to the E-mails about caching pages using a proxy, the usefulness > of such depends on how much traffic your site will see to static pages. In My understanding doesn't agree with this. The point about caching also deals with dynamic one time through away pages in a scenario as descri

Re: clusters

2006-05-09 Thread Kevin A. McGrail
I'm intrigued by Pound as I've never heard of it. I have been looking heavily at using Apache 2.2 for this same purpose but pound seems elegantly simple in it's approach. The only drawback I can see is that the lack of caching will cause dial-up users to stay connected to the backend servers long

Re: AppArmor - makes mod_perl/mod_php safer on linux

2006-04-09 Thread Kevin A. McGrail
I'm under the impression that this is the same as SELinux (http://www.nsa.gov/selinux/info/faq.cfm) Regards, KAM I was just at cansecwest (http://cansecwest.com/) here in Vancouver, and went to a talk by Crispin Cowan from Novell. He presented AppArmor which confines the application into a r

Apache::AuthDBI change for mp2 only

2006-04-05 Thread Kevin A. McGrail
Now that I am using a server without mp1, I noticed that I cannot perl -c my startup.pl because it uses AuthDBI and AuthDBI looks for MP1 files if I'm not running under MP2. Since I'm not running under MP2 for the perl -c check, I commented the if block to just load Apache2:Const. use constant M

Re: One more error with Apache::DBI

2005-12-18 Thread Kevin A. McGrail
I believe I had the same problem. It was related to my upgrade of mysql without recompiling a few things: "After much research, I believe I have the problem fixed and I found the problem to be two-fold: First, I had a mysql_config for v3.23.57 in the path Second, I had not updated by DBD for

Re: Persistent DB Connection problem

2005-12-14 Thread Kevin A. McGrail
I'm shocked that nobody mentioned Apache::DBI->connect_on_init() That's because he really doesn't want persistent connections. He's trying to get 1 db connection for XYZ number of child processes. ;-) Regards, KAM

Re: Persistent DB Connection problem

2005-12-13 Thread Kevin A. McGrail
nnections. How do you setup apache + mod_perl in this environment? Albert Kevin A. McGrail wrote: I'm having problems setting up the apache + mod_perl + Apache::DBI in order to get persistent db connections. I've added the following line in my httpd.conf: PerlRequire /home/

Re: Persistent DB Connection problem

2005-12-13 Thread Kevin A. McGrail
I'm having problems setting up the apache + mod_perl + Apache::DBI in order to get persistent db connections. I've added the following line in my httpd.conf: PerlRequire /home/xxx/startup.pl The persistent connection is one per child process so I don't know if your test is correct. Try i

Re: unrecognised attribute at /usr/local/lib/perl5/site_perl/5.8.0/Apache/DBI.pm line 227

2005-11-10 Thread Kevin A. McGrail
After much research, I believe I have the problem fixed and I found the problem to be two-fold: First, I had a mysql_config for v3.23.57 in the path Second, I had not updated by DBD for mySQL. Fixing the first allowed me to compile and install the second. Regards, KAM

unrecognised attribute at /usr/local/lib/perl5/site_perl/5.8.0/Apache/DBI.pm line 227

2005-11-10 Thread Kevin A. McGrail
Anyone ever seen this error before with Apache::DBI and Apache::AuthDBI? This is on a source-compiled apache v1 server and mysql 4.1.13. I'm checking through lots of things now to see where it might have gone wrong but hoping for some feedback. Regards, KAM

Re: Seg fault with Image::Magick on FreeBSD

2005-11-09 Thread Kevin A. McGrail
If it helps, I am under the opinion that ImageMagick on a Linux box is causing segfaults under modperl1 & 2 and I identified the issue years ago but have just started tracking it back to ImageMagick. I expect to be tackling this issue sometime very soon. Regards, KAM - Original Message -

Re: .htaccess question

2005-07-18 Thread Kevin A. McGrail
Thanks. I've read that paragraph before and never interpreted it that way until you pointed it out. As best I can tell, this is the correct syntax for the pseudocode I posted previously. From 5 minutes of testing, it looks like what we needed. AuthName "Private Site: Unauthorized Access Prohibi

Re: .htaccess question

2005-07-18 Thread Kevin A. McGrail
Not sure really. I'm trying to make sure that this is the case in pseudocode. Deny from everyone unless: 1. From intranet without a password -or- 2. Anywhere else with a password and valid-user using ApacheDBI Regards, KAM > > Satisfy Any > Allow from 192.168.2.10 > PerlAuthenHa

Re: .htaccess question

2005-07-17 Thread Kevin A. McGrail
> > Is there a way to do something like this in .htaccess or do I need to make > > another mod to AuthDBI? > Not that I know of. > > The closest thing I can think of is: (I'll bet you read it already) > http://httpd.apache.org/docs-2.0/howto/auth.html > > but that won't do it. :-) Already read tha

.htaccess question

2005-07-16 Thread Kevin A. McGrail
We have a .htaccess with AuthDBI working perfectly under MP1 and MP2. I've deleted the data source information but here is the .htaccess we use: AuthName "Private Site: Unauthorized Access Prohibited" AuthType Basic PerlAuthenHandler Apache::AuthDBI::authen PerlSetVar Auth_DBI_data_source dbi

re: MP2 - ("did not send an HTTP header")

2005-07-11 Thread Kevin A. McGrail
Bill: I am having the same problem. I thought it stemmed from the $|++ that we used to turn off buffering but that doesn't seem to be it for us. See http://perl.apache.org/docs/2.0/user/coding/coding.html#Generating_HTTP_Response_Headers for a hint but I haven't fixed it and I haven't turned on

Re: Apache2::Cookie confusing path and domain

2005-06-30 Thread Kevin A. McGrail
You know that after you set a cookie you cannot check for it's existence in the same session. Set a cookie. Reload. Then check for cookie existence. How are you checking that the cookie exists? One good way is to simply output the $ENV. foreach my $key (keys %ENV) { print "$key -> $ENV{$k

Re: Apache2::Cookie confusing path and domain

2005-06-30 Thread Kevin A. McGrail
Hmmm, won't printing a response header directly when not in assbackwards mode and using $!++ cause also sorts of issues in Registry (or Perl Run)? KAM > # print a response header > printf "Set-Cookie: %s\n", $cookie->as_string; > > > I'd have to look the the $r->send_headers_xxx API my memory is

Shared Memory Problem with Apache::DBI (AuthDBI.pm) Identified & Fixed [patch]

2005-06-29 Thread Kevin A. McGrail
he project ID for the shared memory key. http://www.thoughtworthy.com/downloads/Apache-DBI-0.97-KAM-patch Here's a list of the changes: Patch June 29, 2005 - Thanks to Kevin A. McGrail (ThoughtWorthy Media, Inc.) - Added a feature 'Apache::AuthDBI->setProjID(1)' to s

Re: [UPGRADE]: Apache::DBI 0.96 for mod_perl 2.0 RC5

2005-06-24 Thread Kevin A. McGrail
At the very worst, if you are using the AuthDBI portion of ApacheDBI, 0.94 is worthless with mp2: Fri Jun 24 18:01:08 2005] [error] Can't locate Apache/Const.pm in @INC (@INC contains: /htdocs/gamma.thoughtworthy.com/html/lib /usr/local/lib/perl5/5.8.6/i686-linux /usr/local/lib/perl5/5.8.6 /usr/lo

Re: Constants Coexistence

2005-06-24 Thread Kevin A. McGrail
Here's a new patch against Philip's Apache::DBI v0.96 that includes a patch per the constants coexistence notes that makes the program work in MP1 and 2 without any warnings because of the constants. I believe that this Apache::DBI works now quite well under mp1 and mp2. However, I would like to

Re: Apache2 Testing with AuthDBI 0.96 with SHA1/MD5 Patch

2005-06-24 Thread Kevin A. McGrail
n on CPAN hasn't been updated in a long time. Regards, KAM - Original Message - From: "Philip M. Gollucci" <[EMAIL PROTECTED]> To: "Frank Wiles" <[EMAIL PROTECTED]> Cc: "Kevin A. McGrail" <[EMAIL PROTECTED]>; Sent: Friday, June 24, 2005 2:

Apache2 Testing with AuthDBI 0.96 with SHA1/MD5 Patch

2005-06-23 Thread Kevin A. McGrail
Evening: I'm trying to testing AuthDBI for both mp1 and mp2 and I'm having poor luck trying to test this with mp2. Philip (or anyone): Can you send me your startup.pl you are using with mod_perl2? Currently, I am getting: [Thu Jun 23 18:27:11 2005] [error] [client 10.10.10.204] Can't locate obj

Re: [mp2] Small "bug" / feature request / documentation in make test needed

2005-06-23 Thread Kevin A. McGrail
perl.apache.org/bugs/ | ++ - Original Message - From: "Geoffrey Young" <[EMAIL PROTECTED]> To: "Kevin A. McGrail" <[EMAIL PROTECTED]> Cc: Sent: Thursday, June 23, 2005 3:32 PM Subject: Re: [mp2] Small

[mp2] Small "bug" / feature request / documentation in make test needed

2005-06-23 Thread Kevin A. McGrail
Wow, mod perl 2.0.1's make test is slick! That way it runs httpd with a configuration for testing is very cool. The bad part is that it just ran and didn't check if something else is bound on port 80. Adding a check for that would be good and adding a make test port=81 or something would be grea

Re: Apache::AuthDBI mp1 with SHA1 and MD5

2005-06-21 Thread Kevin A. McGrail
.97 or whatever) anyway. Regards, KAM - Original Message - From: "Philip M. Gollucci" <[EMAIL PROTECTED]> To: "Kevin A. McGrail" <[EMAIL PROTECTED]> Cc: ; "Jason Lamey" <[EMAIL PROTECTED]> Sent: Tuesday, June 21, 2005 1:32 PM Subject: Re:

Apache::AuthDBI mp1 with SHA1 and MD5

2005-06-21 Thread Kevin A. McGrail
I have finished patches against  Apache AuthDBI version 0.94 that definitely work with mod_perl1 to implement sha1 & md5 encryption in addition to crypt.   I have placed a patch, the original 0.94 and the patched 0.94KAM up for download at http://www.thoughtworthy.com/downloads/.   It uses a