Re: system(), exec()?

2001-04-05 Thread Stas Bekman
On Thu, 5 Apr 2001, Mike Austin wrote: > On Thu, 5 Apr 2001, Stas Bekman wrote: > > > httpd.conf: > > PerlSetEnv PERL5OPT -Mops=system > > Doesn't work. I'm still able to use the system() call. > > Here's the stanza I used: > > > PerlSetEnv PERL5OPT -M-ops=system > SetHandler pe

RE: Apache::Request problem (possible bug)

2001-04-05 Thread Geoffrey Young
this was fixed in cvs this past month. check out the archive of the apreq-dev list (if there is one somewhere) to see the details. basically it was because using param() to set a variable was calling Apache::Table->set, which stringifies its arguments. Now it calls Apache::Table->add and does

Re: Apache::Compress and Apache::Filter

2001-04-05 Thread Ken Williams
Hi JR, I've been avoiding this bug to my peril. Does the following patch fix it? = --- Filter.pm 2000/12/20 03:43:44 1.16 +++ Filter.pm 2001/04/06 05:05:24 @@ -120,8 +120,8 @@ sub send_fd { my $self = shift; - if ($s

Apache::Request problem (possible bug)

2001-04-05 Thread Cees Hek
Either I've found a problem with Apache::Request, or I don't know what I'm doing :) Setting variables with $r->param() doesn't seem to work for array references. ie the following line from the man page doesn't work correctly $r->param('foo' => [qw(one two three)]); When you look at foo afterw

Hangs / Out of memory

2001-04-05 Thread Gregor Mosheh, Programmer
VERSIONS The problem exists with various combinations. The ones I'm currently testing are: Apache 1.3.12+mod_perl 1.17+perl 5.5.3 Apache 1.3.14+mod_perl 1.3.24+Perl 5.6.0 PROBLEM / SYMPTOMS The combination of Apache 1.3.12 + mod_perl 1.27 + perl 5.5.3 is working beautifully on our existing serv

Re: Apache::DBI->forcibly_disconnect?

2001-04-05 Thread Tim Bunce
On Thu, Apr 05, 2001 at 05:00:40PM -0400, Daniel wrote: > Has anybody attempted to modify Apache::DBI to force a handle to disconnect? > > eg. $dbh->forcibly_disconnect; Fetch the latest -> read the docs -> if not found -> implement yourself -> send a patch -> help save the world. Tim.

Re: Problem with Apache::DBI

2001-04-05 Thread Cees Hek
On Thu, 5 Apr 2001, Alec Smith wrote: > In my module I've got: > > use DBI; > use Apache::DBI; > $db = DBI->connect('DBI:mysql:dbname', 'username', 'password', {RaiseError > => 1, AutoCommit => 1}); Have a read of the Apache::DBI man page and it will explain what is wrong here. You don't need

Apache::Compress and Apache::Filter

2001-04-05 Thread JR Mayberry
Does anyone know anything about the above combo, and getting an error message: Bad filehandle at Filter.pm line 123 when using a client that doesnt support gzip..(specifically 'ab', apache bench) I may be something wrong but its only breaking when a client doesnt support gzip thanks

Apache::DBI->forcibly_disconnect?

2001-04-05 Thread Daniel
Has anybody attempted to modify Apache::DBI to force a handle to disconnect? eg. $dbh->forcibly_disconnect; Thanks, -- Daniel Bohling NewsFactor Network

Re: Apache::ASP -- Corruption of statedir files/truncation of methodnames

2001-04-05 Thread Carl Lipo
The statedir is local so it doesnt seem to be an NFS issue. There definitely seems to be a corruption of the StateDir files: here is a error that crops up in our error log. [Thu Apr 5 08:09:07 2001] [notice] child pid 11555 exit signal Segmentation fault (11) Use of uninitialized value at /usr/

mod_perl BOF

2001-04-05 Thread Geoffrey Young
hi all... over a few beers last night, we (anyone who was drinking:) decided that tonight would be a better time for the BOF than 9am this morning (or any morning for that matter) seeing as how we don't have a room though, I thought that the pool was as good a place to meet as anywhere...

Apache::AuthTicket and MD5 question

2001-04-05 Thread Bolt Thrower
In version 0.20 of Apache::AuthTicket, there are a few calls to Digest::MD5->md5_hex(). According to the documentation for Digest::MD5, md5_hex is a function, not a method call. So, for example, when AuthTicket compares my password to the MD5 digest in my database that was placed there by php (m

Re: Problem with Apache::DBI

2001-04-05 Thread Alec Smith
In my module I've got: use DBI; use Apache::DBI; $db = DBI->connect('DBI:mysql:dbname', 'username', 'password', {RaiseError => 1, AutoCommit => 1}); and in startup.pl: use DBI; use Apache::DBI; Apache::DBI->connect_on_init('DBI:mysql:dbname', 'username', 'password',{RaiseError => 1, AutoCommi

Re: system(), exec()?

2001-04-05 Thread Mike Austin
On Thu, 5 Apr 2001, Stas Bekman wrote: > httpd.conf: > PerlSetEnv PERL5OPT -Mops=system Doesn't work. I'm still able to use the system() call. Here's the stanza I used: PerlSetEnv PERL5OPT -M-ops=system SetHandler perl-script PerlHandler Apache::Registry Optio

Re: Optimizing memory use of modperl servlets

2001-04-05 Thread Stas Bekman
[ an extensive description of sharing memory question snipped ] Please read (or reread) these sections of the guide: http://perl.apache.org/guide/performance.html#Sharing_Memory http://perl.apache.org/guide/performance.html#Improving_Performance_by_Prevent http://perl.apache.org/guide/strategy.

Re: system(), exec()?

2001-04-05 Thread Stas Bekman
On Thu, 5 Apr 2001, Mike Austin wrote: > On Thu, 5 Apr 2001, Stas Bekman wrote: > > > % perldoc ops > > % perldoc Opcode > > But this appears to be a global change, correct? > > Can I restict access to these commands for most directories, but still > enable them for a few, trusted directories? >

Optimizing memory use of modperl servlets

2001-04-05 Thread Bryce Pasechnik
I've done extensive reading in both the guide and the maillist archives and haven't found a very comprehensive explanation of this topic. First I'll explain the setup of the scripts and webserver that we're using: I have 1 accessor script that the public would connect to "test.pl". Inside that

Re: system(), exec()?

2001-04-05 Thread Mike Austin
On Thu, 5 Apr 2001, Stas Bekman wrote: > % perldoc ops > % perldoc Opcode But this appears to be a global change, correct? Can I restict access to these commands for most directories, but still enable them for a few, trusted directories? " Since the ops pragma currently has an irreversible

Re: system(), exec()?

2001-04-05 Thread Robin Berjon
At 18:52 05/04/2001 -0700, Stas Bekman wrote: >On Thu, 5 Apr 2001, Mike Austin wrote: >> I'm used to mod_php4, and we use "safe_mode" to allow our developers to >> write applications, but restrict their access to files they don't own, and >> to stop them from using system() or exec() type calls. >

Re: system(), exec()?

2001-04-05 Thread Stas Bekman
On Thu, 5 Apr 2001, Mike Austin wrote: > > Hi, I'm new to mod_perl, but I haven't been able to find an answer to this > question. > > I'm used to mod_php4, and we use "safe_mode" to allow our developers to > write applications, but restrict their access to files they don't own, and > to stop them

system(), exec()?

2001-04-05 Thread Mike Austin
Hi, I'm new to mod_perl, but I haven't been able to find an answer to this question. I'm used to mod_php4, and we use "safe_mode" to allow our developers to write applications, but restrict their access to files they don't own, and to stop them from using system() or exec() type calls. Is there

Re: returning HTTP error code

2001-04-05 Thread Helios de Creisquer
"Jeffrey W. Baker" wrote: > sub handler { > my $r = shift; > $r->status(503); > $r->send_http_header; > > return OK; #or return SERVER_ERROR; depends on how want to do it. > } Wow, pretty simple, in fact, thx a lot ! :-) Cheers. -- Helios de Creisquer mail: [EMAIL P

Re: returning HTTP error code

2001-04-05 Thread Jeffrey W. Baker
On Thu, 5 Apr 2001, Helios de Creisquer wrote: > Hi ! > > I've got a mod_perl script calling an external program which > use much memory. And I would like to send a 503 instead of > calling this external program when there is less than xxxMB > of memory free. > > Is mod_perl provides this abili

returning HTTP error code

2001-04-05 Thread Helios de Creisquer
Hi ! I've got a mod_perl script calling an external program which use much memory. And I would like to send a 503 instead of calling this external program when there is less than xxxMB of memory free. Is mod_perl provides this ability to decide to send an HTTP return code or another ? Thx for

[JOB] Web/Database Programmer/Analyst (US-NY-Ithaca)

2001-04-05 Thread Ray Zimmerman
The Applied Economics & Management department at Cornell University invites applications for a Web/Database Programmer/Analyst for the Laboratory for Experimental Economics and Decision Research. To work in close partnership with team leadership to design & implement a flexible web-based platf

Re: Apachecon folks

2001-04-05 Thread Paul Cotter
From: "Gunther Birznieks" <[EMAIL PROTECTED]> > I'm here... and I think Stas, Eric Cholet, and others were interested in > doing dinner around 7 or 8. They'll probably check their mail soon? > > Up until an hour ago, I didn't realize how beat I'm still feeling from > Jetlag (normally I'm 15 hour

Re: Problem with Apache::DBI

2001-04-05 Thread BeerBong
I have exactly the same errors in my log. AutoCommit not specified in connect method, therefore 'on' by default. Now, specify AutoCommit explicitly and wait for errors. - Sergey Polyakov aka "BeerBong" Chief of WebZavod http://www.webz

Build problems on Mandrake

2001-04-05 Thread Dave Hodgkinson
I'm trying to build mod_perl on my Mandrake 7.2 laptop, apache 1.3.19, mod_perl 1.25 and perl 5.6.0 and I'm getting: cc -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_HSREGEX -DNO_DL_NEEDED -fno-strict-aliasing -D_LARGEFILE_SOURCE -D

Re: access log and the request object

2001-04-05 Thread test
I once used this: Is PerlCleanupHandler the same as LogHandler? As far as I remember putting the code in the cleanup phase would mean logging after finishing the request cycle with no delay for the client. Is that true? SetHandler perl-script PerlHandler Bankers::

Re: Problem with Apache::DBI

2001-04-05 Thread test
Similar problem here but not quite First time now I want to use a database handler more persistent. Not yet by using Apache::DBI but in a global $DBH Shouldn't this just work? I did not put Apache::DBI in startup file I also tried code outside handler and I tried server restarts. I always

RE: Getting AuthCookie to return a wml page

2001-04-05 Thread Michael Smith
Thanks for the help Tim Well in our situation we have a different server for wap - (mobile.iii.co.uk) - so I can check what to send them back based on the 'Host:' header. I do have a RewriteRule which checks for mobile devices trying to connect the web site: RewriteCond %{HTTP_ACCEPT} text/vnd

Re: PerlAccessHandler causes '500 Server Error' on 'return OK'

2001-04-05 Thread Jochen Schnapka
Hi. Sometimes, one has to answer one's own questions On Fri, Mar 30, 2001 at 03:00:08PM +0200, Jochen Schnapka wrote: > Hi. > > I'm trying some of the well-known Apache-Perl-Modules, such as > DayLimit.pm. > Strangely, the server throws an internal error (500), when the Perl module > returns 'OK

Re: Getting AuthCookie to return a wml page

2001-04-05 Thread tim fulcher
Delivering text/html to a wap browser will definitely make it choke a bit :-) If you are using the same access mechanism for both web & wap access then you have to sniff the client details to work out what to send back. Now you *could* look at the USER_AGENT string of the request and work off of

Re: Problem with Apache::DBI

2001-04-05 Thread Tim Bunce
You would only get that message if AutoCommit was off. It should not be off for DBD::mysql (since it doesn't yet support the transaction features of newer versions). Plus, disconnect doesn't do anything when using Apache::DBI (by design). Tim. On Wed, Apr 04, 2001 at 11:49:17PM -0400, Alec Smit

Re: no_cache & pragma/cache-control headers : confusion

2001-04-05 Thread Andrew Ho
Hello, KO>From the code in Apache.xs, it seems like setting $r->no_cache(0) will KO>unset the flag, but not remove the headers. Well, the Expires header is also removed. But it's still broken; you can verify this buggy behavior with this simple script: use Apache (); my $r = Apache->req