Re: Environment variable problem in mod_perl 2

2009-06-03 Thread Philippe M. Chiasson
On 03/06/09 02:58 , Scott Gifford wrote: > [ also posted on PerlMonks ] > > I'm working on porting some code that's been running on mod_perl 1 for > a very long time to mod_perl 2. Mostly things have gone smoothly, but > I'm having trouble with environment variables. Sometimes my scripts go > off

Re: Environment variable problem in mod_perl 2

2009-06-03 Thread Scott Gifford
Paul Silevitch writes: > Scott, > > I had a similar problem and I used Env::C to get around it. Definitely read > the perldoc to see the gotchas with this module. > > Let me know if it works for you, Yeah, Env::C was the solution, thanks! It would be very nice to make this clearer in the docs,

Environment variable problem in mod_perl 2

2009-06-02 Thread Scott Gifford
[ also posted on PerlMonks ] I'm working on porting some code that's been running on mod_perl 1 for a very long time to mod_perl 2. Mostly things have gone smoothly, but I'm having trouble with environment variables. Sometimes my scripts go off and run other scripts, and expect to be able to set t

Re: set new environment variable

2009-03-13 Thread David Moreno
On 17:27 Fri 13 Mar 2009, Idel Fuschini wrote: >Hi, >I want to set new environment variable with Apache. How can I do it ? >For example I want to add the variable DEVICE=hello and I want to read >with PHP program.. > >Idel Are you using mod_perl t

set new environment variable

2009-03-13 Thread Idel Fuschini
Hi, I want to set new environment variable with Apache. How can I do it ? For example I want to add the variable DEVICE=hello and I want to read with PHP program.. Idel

environment variable

2008-03-12 Thread James. L
hi, the app i wrote is run under Apache::Registry only. i am wondering if SetEnv/PassEnv will cause any problem in this case (since setenv and passenv only affect %ENV for content generation phase and beyond)? also, a question on apache.. i have tried the following under plain CGI SetEnv PATH xx

Re: How to set Environment variable in a Perl script ?

2007-11-29 Thread Perrin Harkins
On Nov 29, 2007 8:06 AM, <[EMAIL PROTECTED]> wrote: > I try to setup the Perl section of the httpd.conf to 'pass' the 'VARIABLE' > environment variable but without success ! Those settings are for passing variables into mod_perl, not for passing them from mod_

How to set Environment variable in a Perl script ?

2007-11-29 Thread lienard . bruno
set an environment variable before launching the program. It's ok with mod_cgi, but it doesn't work with Mod_Perl. The environment variable is not set. I have written a small C program to test the case (LitEnv), it only display a given environmenet variable. I also write the following sc

Re: Environment variable problem after upgrade

2005-04-18 Thread Owen Berry
y in question was only protecting GET, not POST. No idea why this was setup this way ... I only inherited the code a few weeks ago. Anyway, apparently when setup this way the REMOTE_USER environment variable is not populated on posts. The code in question was doing this: $USER = remote_user

Re: Environment variable problem after upgrade

2005-04-18 Thread Markus Wichitill
Owen Berry wrote: I tried logging "$r->user()" to see if that was more reliable, but no luck there either. Apache 2.0.46 mod_perl 1.99_09 Perl 5.8.0 I haven't had any problems with $r->user() lately. And AFAIR Apache::AuthDBI worked for me with various 1.99 RCs before RC5, without Apache::compat

Re: Environment variable problem after upgrade

2005-04-18 Thread Owen Berry
On 4/18/05, Owen Berry <[EMAIL PROTECTED]> wrote: > I am experiencing a problem with the REMOTE_USER environment variable > after an upgrade to Apache 2. We are using AuthDBI to authenticate > users, which uses basic authentication with the browser to request > their details

Environment variable problem after upgrade

2005-04-18 Thread Owen Berry
I am experiencing a problem with the REMOTE_USER environment variable after an upgrade to Apache 2. We are using AuthDBI to authenticate users, which uses basic authentication with the browser to request their details. Hence the use of REMOTE_USER. Users authenticate fine and seem to be working

Re: SCRIPT_FILENAME Environment variable set wongly?

2004-12-15 Thread Stas Bekman
colin_e wrote: [...] What i'm unclear on is the output line from the script- 'SCRIPT_FILENAME' => 'I:/WWW/public/testapp', This is the publicly-visible URL of my script. Fine, but does the environment give me any way to find the physical location of my script (i.e. 'I:/WWW/private/lib/tes

SCRIPT_FILENAME Environment variable set wongly?

2004-12-15 Thread colin_e
Platforms: Solaris 9, Win XP Apache: 2.0.52 Perl: ActiveState Perl 5.8.4 I'm making the first tentative steps in getting scripts running under mod_perl. At this point i'm aiming to "encapsulate" a mod_perl script and all it's supporting images etc., so to the client they all appear under a singl