Re: from the quick hacks department... x-bit controls mod_cgi

2001-04-17 Thread Cees Hek
On Thu, 12 Apr 2001, Tim Bunce wrote: On Wed, Apr 11, 2001 at 08:22:38PM -0700, Randal L. Schwartz wrote: In an .htaccess, I place: Options +ExecCGI PerlFixupHandler "sub { -f $_[0]-filename and -x _ and $_[0]-handler(q{cgi-script}) }" Now any executable file in this

Apache::AutoIndex - problem with special symbols in filenames (patch applied)

2001-04-17 Thread Alexei Barantsev
Dear colleagues! I have found that Apache::AutoIndex does not handle correctly filenames with special symbols - whitespaces, , and so on. The following patch solves the problem: bash$ diff -U1 `pwd`/AutoIndex.pm /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/AutoIndex.pm ---

Re: from the quick hacks department... x-bit controls mod_cgi

2001-04-17 Thread Perrin Harkins
Can you briefly explain why it leaks memory? I haven't tried it, but I'm guessing it's creating a new anonymous sub on every request. I have been playing with Apache::Leak and Devel::Leak trying to figure out what is happening when Perl code leaks memory, but I haven't got my head around it

Re: modperl security model question

2001-04-17 Thread Issac Goldstand
darren chamberlain wrote: Be sure to check that $line is defined: Even better: perl use IO::File; my $input = IO::File-new("/tmp/tmppswd") || die "Couldn't open /tmp/foo.pl"; my $line = $input-getline() || 'some safe default value, like ""'; die "\$line is

Re: Dynamic httpd.conf file using mod_perl...

2001-04-17 Thread Ask Bjoern Hansen
On Mon, 16 Apr 2001, Jim Winstead wrote: [...] you would have to do a "run config template expander HUP" instead of just doing a HUP of the apache parent process, but that doesn't seem like a big deal to me. And it has the big advantage of also working with httpd's without mod_perl. -

Re: modperl security model question

2001-04-17 Thread G.W. Haywood
Hi all, On Mon, 16 Apr 2001, darren chamberlain wrote: Thomas K. Burkholder ([EMAIL PROTECTED]) said [snip] my $input = IO::File-new("/tmp/tmppswd") || die "Couldn't open /tmp/foo.pl"; Probably doesn't matter in this case, but I'd try to get used to using the "or" operator instead of the

Re: Apache::AutoIndex - problem with special symbols in filenames (patch applied)

2001-04-17 Thread G.W. Haywood
Hi there, On Tue, 17 Apr 2001, Alexei Barantsev wrote: I have found that Apache::AutoIndex does not handle correctly filenames with special symbols - whitespaces, , and so on. Are you *sure* you want to have those symbols in your filenames?? 73, Ged.

What the heck actually happens in a perl section?

2001-04-17 Thread Thomas K. Burkholder
Hi again, I'm still beating my head against perl sections. Using PerlSetVar inside $Location seems really flaky - constants work, variables vanish. And using $Location{$key} = {...} causes odd spurious multiple-matching behaviour from a single matching hit. Frankly, I'm at a loss. I'm about

Undefined subroutine - what to try next?

2001-04-17 Thread Chris Searle
OK. This starts with what looks to be a FAQ: Undefined subroutine PicLib::handler called. I've found the entry in the FAQ that answers "What can cause a subroutine or variable to be sporadically undefined?" and so I've tried to check that all my code is packaged correctly. All the code

RE: Problem with ASP Pages

2001-04-17 Thread Bridges, Jon
"Bridges, Jon" wrote: I'm working on Windows 2000 and have finally managed to get the mod_perl and Apache::ASP extensions working. I can confirm this as when I open up .htm files with embedded asp everything works fine. However I come across a problem when trying to view .asp files as my

Fast DB access

2001-04-17 Thread Differentiated Software Solutions Pvt. Ltd.,
Hi, A few months back we asked modperl mailing list on alternate methods of DB access to postgres (with the same subject). We got some decent alternatives. We are putting back some of the work we have done on this issue. We had a project to program an ad server. This is not really an OLTP

Re: Fast DB access

2001-04-17 Thread Matt Sergeant
On Tue, 17 Apr 2001, Differentiated Software Solutions Pvt. Ltd., wrote: H/W : Celeron 433 with 64 MB RAM, IDE HDD using RH 6.1, perl 5.005, Postgres 6.5.3 This is a very very old version of postgresql. Try it again with 7.1 for more respectable results. -- Matt/ /||** Founder and

RE: What the heck actually happens in a perl section?

2001-04-17 Thread Geoffrey Young
-Original Message- From: Thomas K. Burkholder [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 6:40 AM To: [EMAIL PROTECTED] Subject: What the heck actually happens in a perl section? Hi again, I'm still beating my head against perl sections. Using PerlSetVar

Re: Strange mod_perl error. Help needed!

2001-04-17 Thread Stas Bekman
On Tue, 17 Apr 2001, Vladislav Safronov wrote: Hi, That is all server says on http://my.server.ru/kubok?aa=bb and http://my.server.ru/testmod1? [Tue Apr 17 15:44:16 2001] [error] Undefined subroutine main:: called. [Tue Apr 17 15:44:18 2001] [error] Undefined subroutine main:: called.

RE: umable to run cgi scripts under mod_perl

2001-04-17 Thread Brendan McAdams
you need to close your script with a END. -Original Message- From: Ratan Jha [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 13, 2001 06:33 To: [EMAIL PROTECTED] Subject: umable to run cgi scripts under mod_perl Running mod_perl-1.22 apache-1.3.11 I want to run plain perl scripts

Re: Problem with ASP Pages

2001-04-17 Thread Joshua Chamas
"Bridges, Jon" wrote: I have figured out why the .asp files were being downloaded instead of executed. This was because I had not declared .asp in the mime.types file. I couldn't do the lwp-request as I am running Apache on Windows 2000, is this a Linux command? In all my years (almost

debug info to log file

2001-04-17 Thread F.H
Hi ALl, I am trying to send debug info from an FTP session to a log file, I don't seem to redirect output to that log file. If somebody can hgelp I'd really appreciate. Thanks Here is my code: +++ use Net::FTP; $logfile = "mylog.log"; open (LOG, " $logfile " ); print LOG

Re: Simple password method?

2001-04-17 Thread Andrew Ho
Hello, MHWe are working with some financial folks who would like us to set MHpasswords when we bring apache up, rather than using a config file. MHWe tried various permutations of inputting variables in the 'setup.pl' MHfile and so on - although we could echo the variable, if we input it, MHit

Re: Dynamic httpd.conf file using mod_perl...

2001-04-17 Thread Simon Rosenthal
At 04:16 AM 4/17/01, Ask Bjoern Hansen wrote: On Mon, 16 Apr 2001, Jim Winstead wrote: [...] you would have to do a "run config template expander HUP" instead of just doing a HUP of the apache parent process, but that doesn't seem like a big deal to me. And it has the big advantage of

RE: Strange mod_perl error. Help needed!

2001-04-17 Thread Vladislav Safronov
Ok! Thanx! I found the bug :-) Try to install the AUTOLOAD sub and trace the calls: use Carp; sub AUTOLOAD{ Carp::cluck("trying to load $AUTOLOAD"); } at least you will figure out where the sub is called from. It looks

Re: What the heck actually happens in a perl section?

2001-04-17 Thread Thomas K. Burkholder
Geoffrey Young wrote I'm surprised that this works at all... what's in @kv at this point? if it's only two values then it might work if there is some magic behind the scenes, but generally you can't store references in PerlSetVars without having them stringified. Maybe PerlAddVar would

Re: Problem with ASP Pages

2001-04-17 Thread Randy Kobes
On Tue, 17 Apr 2001, Joshua Chamas wrote: "Bridges, Jon" wrote: [ ... ] Now all that happening is an error in the error log saying "No such file or directory: couldn't spawn child process" I personally have no idea about this, maybe someone else might? If you think this is an

Apache::ASP and no global.asa

2001-04-17 Thread Rick Glunt
I am trying to setup Apache::ASP to handle asp pages for one of my virtual domains in Apache but I am getting an 'Internal Server Error' on the browser and an error in the Apache log files that goes something like [error] Undefined subroutine

seeking lead programmer

2001-04-17 Thread Peter J. Schoenster
Hello, Small but growing webdev firm (2 employees when I started 1.5 years ago and now at 7) seeking lead programmer (Perl/mod_perl OO Perl is primary) and what might be known as technical lead. Location is Englewood, CO. Current employee breakdown: Project Manger : 1 Junior Perl

Re: Apache::AutoIndex - problem with special symbols in filenames (patch applied)

2001-04-17 Thread Philippe M . Chiasson
On Tue, Apr 17, 2001 at 09:29:22AM +0100, G.W. Haywood wrote: Hi there, On Tue, 17 Apr 2001, Alexei Barantsev wrote: I have found that Apache::AutoIndex does not handle correctly filenames with special symbols - whitespaces, , and so on. Are you *sure* you want to have those symbols

Re: Fast DB access

2001-04-17 Thread Bruce Albrecht
Matt Sergeant writes: On Tue, 17 Apr 2001, Differentiated Software Solutions Pvt. Ltd., wrote: H/W : Celeron 433 with 64 MB RAM, IDE HDD using RH 6.1, perl 5.005, Postgres 6.5.3 This is a very very old version of postgresql. Try it again with 7.1 for more respectable results.

How does one report a perl versioning problem

2001-04-17 Thread The Doctor
Recently, I got the following: Script started on Sat Apr 14 13:18:31 2001 root@doctor$ /usr/contrib/bin/perl5.6.1 -v This is perl, v5.6.0 built for i386-bsdos Copyright 1987-2000, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public

Re: Fast DB access

2001-04-17 Thread Perrin Harkins
b) Flat file : Create a Linux directory structure with the same hierarchy as the attributesi.e., directory structure has publishers/sizes/types/ip numbers. ip numbers is the file name which contains a list of ads. Objective is to pick the right file, open this file and create a hash with

Re: Fast DB access

2001-04-17 Thread clayton
Matt Sergeant wrote: On Tue, 17 Apr 2001, Differentiated Software Solutions Pvt. Ltd., wrote: H/W : Celeron 433 with 64 MB RAM, IDE HDD using RH 6.1, perl 5.005, Postgres 6.5.3 This is a very very old version of postgresql. Try it again with 7.1 for more respectable results. im

Re: Simple password method?

2001-04-17 Thread Mike Harding
Sorry if this wasn't exactly clear, it's the _database_ password we are trying to pass in manually. We did try exactly the following, and it did not work. This was a bit suprising and I was wondering why this was the case... - Mike H. Date: Tue, 17 Apr 2001 09:44:48 -0700 (PDT) From:

cvs commit: modperl Changes

2001-04-17 Thread dougm
dougm 01/04/17 14:30:09 Modified:src/modules/perl perl_util.c .Changes Log: make sure global for Apache-request is reset after configuring %ENV Revision ChangesPath 1.46 +2 -0 modperl/src/modules/perl/perl_util.c Index:

cvs commit: modperl/src/modules/perl mod_perl.c

2001-04-17 Thread dougm
dougm 01/04/17 15:01:20 Modified:.Changes src/modules/perl mod_perl.c Log: back out 'stop win32 crash when bringing down service' change, no longer needed with 1.3.19 Revision ChangesPath 1.586 +4 -0 modperl/Changes Index:

cvs commit: modperl Changes Makefile.PL

2001-04-17 Thread dougm
dougm 01/04/17 15:39:09 Modified:.Changes Makefile.PL Log: improve Apache::MyConfig Revision ChangesPath 1.587 +2 -0 modperl/Changes Index: Changes === RCS file:

cvs commit: modperl Makefile.PL

2001-04-17 Thread dougm
dougm 01/04/17 15:42:05 Modified:.Makefile.PL Log: need this alias for Apache::src backwards compat Revision ChangesPath 1.181 +3 -0 modperl/Makefile.PL Index: Makefile.PL ===

cvs commit: modperl Makefile.PL Changes

2001-04-17 Thread dougm
dougm 01/04/17 14:38:55 Modified:.Makefile.PL Changes Log: fix 'make tar_Apache' Revision ChangesPath 1.179 +1 -1 modperl/Makefile.PL Index: Makefile.PL === RCS file:

Re: cvs commit: modperl/src/modules/perl mod_perl.c

2001-04-17 Thread Doug MacEachern
On Wed, 7 Mar 2001, Ask Bjoern Hansen wrote: On 6 Oct 2000 [EMAIL PROTECTED] wrote: dougm 00/10/06 13:18:29 Modified:t/internal error.t src/modules/perl mod_perl.c Log: more for the "Apache::send_http_header was resetting r-status = 200" fix

cvs commit: modperl/apaci mod_perl.exp

2001-04-17 Thread dougm
dougm 01/04/17 14:48:57 Modified:.Changes src/modules/win32 mod_perl.def apacimod_perl.exp Log: export hvrv2table (needed by Apache::Request) for aix and win32 Revision ChangesPath 1.584 +3 -0 modperl/Changes

cvs commit: modperl-2.0/Apache-Test/lib/Apache Test.pm

2001-04-17 Thread dougm
dougm 01/04/17 21:36:58 Modified:Apache-Test/lib/Apache Test.pm Log: add Apache::TestToString class for feeding Test.pm output into a string Revision ChangesPath 1.3 +34 -3 modperl-2.0/Apache-Test/lib/Apache/Test.pm Index: Test.pm

cvs commit: modperl-2.0/src/modules/perl modperl_filter.c

2001-04-17 Thread dougm
dougm 01/04/17 21:37:47 Modified:src/modules/perl modperl_filter.c Log: pass the APR::Brigade to filter handlers Revision ChangesPath 1.11 +1 -0 modperl-2.0/src/modules/perl/modperl_filter.c Index: modperl_filter.c

cvs commit: modperl-2.0/lib/ModPerl Code.pm

2001-04-17 Thread dougm
dougm 01/04/17 21:40:02 Modified:lib/ModPerl Code.pm Log: include modperl_bucket Revision ChangesPath 1.57 +1 -1 modperl-2.0/lib/ModPerl/Code.pm Index: Code.pm === RCS file:

cvs commit: modperl-2.0/xs/tables/current/ModPerl FunctionTable.pm

2001-04-17 Thread dougm
dougm 01/04/17 21:42:54 Modified:xs/tables/current/Apache ConstantsTable.pm FunctionTable.pm StructureTable.pm xs/tables/current/ModPerl FunctionTable.pm Log: sync generated tables Revision ChangesPath 1.4 +1 -1

cvs commit: modperl-2.0/xs/APR/Brigade APR__Brigade.h

2001-04-17 Thread dougm
dougm 01/04/17 22:09:56 Modified:xs/APR/Brigade APR__Brigade.h Log: add some APR::Brigade methods Revision ChangesPath 1.2 +59 -2 modperl-2.0/xs/APR/Brigade/APR__Brigade.h Index: APR__Brigade.h

cvs commit: modperl-2.0/xs/maps apr_functions.map apr_structures.map apr_types.map

2001-04-17 Thread dougm
dougm 01/04/17 22:10:44 Modified:xs/maps apr_functions.map apr_structures.map apr_types.map Log: enable APR::Bucket module, add some APR::Brigade methods Revision ChangesPath 1.7 +46 -31modperl-2.0/xs/maps/apr_functions.map Index: apr_functions.map

cvs commit: modperl-2.0/t/filter/TestFilter buckets.pm

2001-04-17 Thread dougm
dougm 01/04/17 22:11:14 Added: t/filter/TestFilter buckets.pm Log: add a test for the brigade/buckets api Revision ChangesPath 1.1 modperl-2.0/t/filter/TestFilter/buckets.pm Index: buckets.pm

cvs commit: modperl-2.0/lib/ModPerl Code.pm

2001-04-17 Thread dougm
dougm 01/04/17 22:25:01 Modified:lib/ModPerl Code.pm Log: strip APR_ and AP_ prefixes from constant names Revision ChangesPath 1.58 +3 -2 modperl-2.0/lib/ModPerl/Code.pm Index: Code.pm

cvs commit: modperl-2.0/lib/Apache ParseSource.pm

2001-04-17 Thread dougm
dougm 01/04/17 22:27:39 Modified:lib/Apache ParseSource.pm Log: pickup apache_filter and input_mode constants Revision ChangesPath 1.15 +3 -2 modperl-2.0/lib/Apache/ParseSource.pm Index: ParseSource.pm

cvs commit: modperl-2.0/xs/tables/current/Apache ConstantsTable.pm

2001-04-17 Thread dougm
dougm 01/04/17 22:28:18 Modified:xs/tables/current/Apache ConstantsTable.pm Log: sync Revision ChangesPath 1.5 +53 -41modperl-2.0/xs/tables/current/Apache/ConstantsTable.pm Index: ConstantsTable.pm