Trouble writing to a file from mod_perl

2003-07-31 Thread Rod Brick
I'm trying to write for a file from a mod_perl script. I can write successfully to a file located in /tmp, but I cannot write to the dir containing the script, nor to the apache logs dir. How can this be accomplished? Is there a setting in httpd.conf that I need to specify? Is it a file

Re: Trouble writing to a file from mod_perl

2003-07-31 Thread Carl Brewer
Rod Brick wrote: I'm trying to write for a file from a mod_perl script. I can write successfully to a file located in /tmp, but I cannot write to the dir containing the script, nor to the apache logs dir. How can this be accomplished? Is there a setting in httpd.conf that I need to specify?

Re: Trouble writing to a file from mod_perl

2003-07-31 Thread Mike P. Mikhailov
Hello Rod Brick, Thursday, July 31, 2003, 3:01:57 PM, you wrote: RB I'm trying to write for a file from a mod_perl script. I can write RB successfully to a file located in /tmp, but I cannot write to RB the dir containing the script, nor to the apache logs dir. How can RB this be accomplished?

Privilege separation revisited

2003-07-31 Thread Joel Palmius
This is something I asked before, like one or two years ago. I just want to see if a solution has come up since then. The problem is that with the normal (linux-distro) installation of apache and mod_perl, all processes for all active scripting (cgi, perl, PHP..) run as the same user. Thus, if

Re: need your help to test mod_perl with perl-5.8.1-RC3

2003-07-31 Thread Stas Bekman
Stephen Clouse wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Jul 30, 2003 at 11:15:32PM +0200, Stas Bekman wrote: Jarkko has just released perl-5.8.1-RC3. Quite a few things have changed since 5.8.0. So it's *very* important that you test your code with this release and

Re: Apache-print() problem with UTF-8 data in Perl 5.8

2003-07-31 Thread Steve Hay
Steve Hay wrote: Randy Kobes wrote: On Tue, 29 Jul 2003, Steve Hay wrote: Is anybody going to take a serious look at the problem that I previously reported with Apache-print()'s handling of UTF-8 data in Perl 5.8? The patch that I sent

Re: Privilege separation revisited

2003-07-31 Thread Stas Bekman
Joel Palmius wrote: This is something I asked before, like one or two years ago. I just want to see if a solution has come up since then. The problem is that with the normal (linux-distro) installation of apache and mod_perl, all processes for all active scripting (cgi, perl, PHP..) run as the

Re: Privilege separation revisited

2003-07-31 Thread Mike P. Mikhailov
Hello Joel Palmius, Thursday, July 31, 2003, 3:12:02 PM, you wrote: JP This is something I asked before, like one or two years ago. I just want JP to see if a solution has come up since then. JP The problem is that with the normal (linux-distro) installation of apache JP and mod_perl, all

Re: Privilege separation revisited

2003-07-31 Thread pileswasp
From: Joel Palmius [EMAIL PROTECTED] Date: Thu, 31 Jul 2003 11:12:02 +0200 (CEST) The question is, what is the state-of-the-art approach for protecting data written to a file by mod_perl from being overwritten by an untrusted user? Is it possible to run all mod_perl things as a separate user

Re: Trouble with Apache::Request

2003-07-31 Thread Stas Bekman
On 6 Jun 2003, K Old wrote: [...] Well, here are the errors I'm getting: When I *force* and install of Apache::Request and a script calls Apache::Request, this is in the error_log: [Fri Jun 6 17:27:31 2003] [error] Can't locate object method new via package Apache::Request at

Re: need your help to test mod_perl with perl-5.8.1-RC3

2003-07-31 Thread Steve Hay
Stas Bekman wrote: Jarkko has just released perl-5.8.1-RC3. Quite a few things have changed since 5.8.0. So it's *very* important that you test your code with this release and immediatelly report to p5p if you have any problems, since Jarkko wants to release 5.8.1 any moment now. BAD NEWS:

Re: need your help to test mod_perl with perl-5.8.1-RC3

2003-07-31 Thread Stas Bekman
Steve Hay wrote: Stas Bekman wrote: Jarkko has just released perl-5.8.1-RC3. Quite a few things have changed since 5.8.0. So it's *very* important that you test your code with this release and immediatelly report to p5p if you have any problems, since Jarkko wants to release 5.8.1 any moment

RE: Trouble with Apache::Request

2003-07-31 Thread Glenn E. Bailey III
I had this exact same issue yesterday. I noticed that is was installing the libapreq.so.1 in /usr/local/lib and /usr/local/lib wasn't in my /etc/ld.so.conf file. Just add /usr/local/lib to your /etc/ld.so.conf file and then run ldconfig .. Worked for me and I was messing with the darn thing for

Re: compile latest CVS

2003-07-31 Thread jehan procaccia
Stas Bekman wrote: You can also try to use the latest src.rpm from rawhide, I'm not sure how recent it is http://fr.rpmfind.net//linux/RPM/rawhide/1.0/i386/RedHat/RPMS/mod_perl-1.99_09-6.i386.html says Jul 16, which is very recent. great, I got the source rpm of the above, after compiling and

Re: Trouble with Apache::Request

2003-07-31 Thread Stas Bekman
Glenn E. Bailey III wrote: I had this exact same issue yesterday. I noticed that is was installing the libapreq.so.1 in /usr/local/lib and /usr/local/lib wasn't in my /etc/ld.so.conf file. Just add /usr/local/lib to your /etc/ld.so.conf file and then run ldconfig .. Worked for me and I was messing

Re: problem with method auth_type

2003-07-31 Thread jehan procaccia
OK, it works now :-) On my redhat 9 system, I recompiled from rawhide latest source rpm, now I run with: $ rpm -q mod_perl httpd mod_perl-1.99_09-6 httpd-2.0.47-1 by using apache::compat, PerlOptions +GlobalRequest and cheating on the use strict it now works :-), i can authenticate through

Re: Privilege separation revisited

2003-07-31 Thread Andrew Ho
Hello, JPThe question is, what is the state-of-the-art approach for protecting data JPwritten to a file by mod_perl from being overwritten by an untrusted user? JPIs it possible to run all mod_perl things as a separate user (without JPhaving to keep two parallel apache installations)? pYou don't

uwinnipeg site down (ppm installation)?

2003-07-31 Thread Jean-Sebastien Guay
Hello, I am trying to install mod_perl 2 (1.99_10) from the http://theoryx5.uwinnipeg.ca/ppms/ site, but it seems to be down. Could anyone point me to a mirror or send me the necessary files off-list? It would be very appreciated, since I am in something of a hurry. BTW, I am looking

PerlAuthenHandler problem with mod_perl in a Cobalt Raq4

2003-07-31 Thread Antonio
Hi There, I need to use Apache::AuthDBI to authenticate users via MySQL and InterBase in a Cobalt Raq4. I'm using this method in another linux boxes but this particular Raq4 is driving me mad. Raq4 comes with an Apache with a pre compile mod_perl 1.25 withall hooks enable, including

Accessing environment variables prior to invoking the contenthandler.

2003-07-31 Thread Mark Deepak Puttnam
Hi Group, I have a need to access all the %ENV (cgi,mod_perl sent by the client) variables prior to invoking the content handler. I am using the modperl environment by running the cgi scripts under Perl::Registry. I wish to use the PerlTransHandler to check if the request for page A has orginated

Re: Accessing environment variables prior to invoking the contenthandler.

2003-07-31 Thread Perrin Harkins
On Thu, 2003-07-31 at 15:44, Mark Deepak Puttnam wrote: I have used the following code in the in my handler and I still do not get the values. Do you get anything at all? HTTP_REFERER is not always sent by browsers. - Perrin

Accessing environment variables prior to invoking thecontenthandler.

2003-07-31 Thread Mark Deepak Puttnam
Only PERL_SEND_HEADER=On. No other env. variables. I did run tests by clicking on links to check to see if the HTTP_REFERER is being set. Mark.

Filter brigades with rflush() not working?

2003-07-31 Thread Martin Wickman
Hello According to [1], $r-rflush() should create a new brigade with data. It does not. It seems the docs and/or my understanding of this is in error (probably the latter...). This is with: Apache/2.0.47 (Debian GNU/Linux) mod_perl/1.99_07-dev Perl/v5.8.0 And I am using the streaming filter

Re: Accessing environment variables prior to invoking thecontenthandler.

2003-07-31 Thread Perrin Harkins
On Thu, 2003-07-31 at 16:15, Mark Deepak Puttnam wrote: Only PERL_SEND_HEADER=On. No other env. variables. And you haven't turned off PerlSetupEnv in your httpd.conf? - Perrin

Re: Accessing environment variables prior to invoking the contenthandler.

2003-07-31 Thread Perrin Harkins
On Thu, 2003-07-31 at 15:44, Mark Deepak Puttnam wrote: sub handler { my $r=shift; my $env=$r-subprocess_env; %ENV=%$senv; my $referer=$ENV{'HTTP_REFERER'}; x } Come to think of it, you should just use the Apache API for this: my

Accessing environment variables prior to invoking the contenthandler.

2003-07-31 Thread Mark Puttnam
I did not have that directive in my config before. But now,I set it explicitly to PerlSetupEnv On , still no env variables other than the PERL_SEND_HEADER=On. Mark

Accessing environment variables prior to invoking thecontenthandler.

2003-07-31 Thread Mark Puttnam
Hi Perrin, my $referer = $r-header_in(Referer); Thanks, the above statement did give me the value. Mark

Re: need your help to test mod_perl with perl-5.8.1-RC3

2003-07-31 Thread Stephen Clouse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Jul 31, 2003 at 11:41:42AM +0200, Stas Bekman wrote: Iniital report: I just finished a build with ithreads and worker mpm. All perl and mod_perl tests pass. Thanks for the note Stephen, but this is not very useful if you don't tell

Re: Trouble with Apache::Request

2003-07-31 Thread Jie Gao
Hi All, perl-5.8.0 + mp1.99_10. --- I am having problem trying to get /perl-status work. It bombs out in Status.pm at the following location: -- if (eval {require Apache::Request}) { $newQ ||= sub {

Re: uwinnipeg site down (ppm installation)?

2003-07-31 Thread Randy Kobes
On Thu, 31 Jul 2003, Jean-Sebastien Guay wrote: Ok, now the site seems to be back up (it responds to pings, whereas it didn't before) but trying to add it to ppm gives this: ppm rep add Apache http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer58 Error: Unexpected Content-Type

Re: need your help to test mod_perl with perl-5.8.1-RC3

2003-07-31 Thread Stas Bekman
Here is what happens: MM 6.03 used to create libapreq.a but not libapreq.so, libapreq.a was just a by product and never was intented to be installed. Request.so was statically linking libapreq.a into it. Now with 6.12 it creates both libapreq.so and libapreq.so, so when Request.so is linked,

Re: need your help to test mod_perl with perl-5.8.1-RC3

2003-07-31 Thread Steve Hay
Stas Bekman wrote: Here is what happens: MM 6.03 used to create libapreq.a but not libapreq.so, libapreq.a was just a by product and never was intented to be installed. Request.so was statically linking libapreq.a into it. Now with 6.12 it creates both libapreq.so and libapreq.so, so when

Re: need your help to test mod_perl with perl-5.8.1-RC3

2003-07-31 Thread Stas Bekman
Steve Hay wrote: Stas Bekman wrote: Here is what happens: MM 6.03 used to create libapreq.a but not libapreq.so, libapreq.a was just a by product and never was intented to be installed. Request.so was statically linking libapreq.a into it. Now with 6.12 it creates both libapreq.so and

Re: need your help to test mod_perl with perl-5.8.1-RC3

2003-07-31 Thread Stas Bekman
Stas Bekman wrote: Steve Hay wrote: Stas Bekman wrote: Here is what happens: MM 6.03 used to create libapreq.a but not libapreq.so, libapreq.a was just a by product and never was intented to be installed. Request.so was statically linking libapreq.a into it. Now with 6.12 it creates both

Re: need your help to test mod_perl with perl-5.8.1-RC3

2003-07-31 Thread Steve Hay
Stas Bekman wrote: Steve Hay wrote: Stas Bekman wrote: Stas Bekman wrote: Steve Hay wrote: Stas Bekman wrote: Here is what happens: MM 6.03 used to create libapreq.a but not libapreq.so, libapreq.a was just a by product and never was intented to be installed. Request.so was statically

Re: need your help to test mod_perl with perl-5.8.1-RC3

2003-07-31 Thread Michael G Schwern
On Thu, Jul 31, 2003 at 03:23:36PM +0100, Steve Hay wrote: This patch finally fixes it for me: I'm glad you guys got it working, but there's still the problem of why MakeMaker's behavior changed. Since I tend not to touch the XS building code much its likely a bug. Try the snapshot on