Running scripts as OS user other than apache/nobody

2009-08-19 Thread Dan Horne
Hi I have a need to run various CGI scripts as different OS users, perhaps by Apache directory or via Apache virtual hosts. This isn't for security reasons, but because we need to interact with different OS environments via a web interface, and each environment will require a different OS user. I

RE: Apache dies with mod_perl under Windows

2008-05-27 Thread Dan Horne
> From: Octavian Rasnita > What version of perl are you using? > I know that ActivePerl 5.8.8 build 822 gives errors when using it with Apache and mod_perl. > So I use ActivePerl build 820. > Octavian Ah, well I'm running 822, so that might be the problem... Attention: This email together with

Re: [Maybe Spam] Re: mod_perl, shared memory and solaris

2005-09-20 Thread dan . horne
>> >Any advice on memory use on Solaris is appreciated >< > >Take a look at: > >http://people.ee.ethz.ch/~oetiker/tobjour/2003-02-12-09-00-f-1.html > >There's some useful information, including a chunk covering what you're >after. Specifically try: > >   pmap -x  PID > >the private/anon co

mod_perl, shared memory and solaris

2005-09-19 Thread dan . horne
Hi I've set up mod_perl v1.29 with apache 1.3.33 and I'm trying to maximise the amount of memory shared between the httpd processes. I've created a startup.pl file and have entered all modules I use, and have loaded the specific the DB driver etc.  I'm not using CGI, and only one custom module

RE: Can't retrieve page I just created with LWP under mod_perl

2005-05-09 Thread Dan Horne
> > It might be that, on Windows, you're running into the > multithreading limitations of mod_perl 1: > http://perl.apache.org/docs/1.0/os/win32/multithread.html Thanks, Randy - I had a nagging thought that I had read about a single-threading issue, so I scoured the Apache docs, but to no avail

RE: Can't retrieve page I just created with LWP under mod_perl

2005-05-09 Thread Dan Horne
> > > This works fine under standard CGI, but the LWP request times out > > > under mod_perl. The temporary page name is random, so I know that > > > it's not a > > file > > > conflict. > > > > > > Have I missed something? I'm using Apache 1.3.31 and > mod_perl 1.29 > > > on Windows XP, but wha

RE: Can't retrieve page I just created with LWP under mod_perl

2005-05-09 Thread Dan Horne
> -Original Message- > From: Stas Bekman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 10 May 2005 1:39 a.m. > To: [EMAIL PROTECTED] > Cc: modperl@perl.apache.org > Subject: Re: Can't retrieve page I just created with LWP under mod_perl > > Dan Horne wrote:

Can't retrieve page I just created with LWP under mod_perl

2005-05-08 Thread Dan Horne
my $request = HTTP::Request->new(GET => $request_page); This works fine under standard CGI, but the LWP request times out under mod_perl. The temporary page name is random, so I know that it's not a file conflict. Have I missed something? I'm using Apache 1.3.31 and mod_perl 1.29 on Windows XP, but whatever I do has to also work under vanilla CGI. regards Dan Horne

Re: Apache::Cookie seems to read different Cookie than CGI

2004-10-21 Thread dan . horne
Thanks Ian It occurred to me after I send the original email that the space may be escaped with a +. It's not clear to me whether spaces are permitted in cookie values - I found different web pages that seemed to contradict each other. Resorting to the regex replace works - and I'm happy with the

Apache::Cookie seems to read different Cookie than CGI

2004-10-21 Thread dan . horne
Hi All I have to read a domain cookie set by a ColdFusion Web Server on a different host. CF sets a cookie value like [EMAIL PROTECTED]|2004-10-22 16:16:41|70DC39BB99CB4CB826E3F30AA25D97FE I can read this cookie with CGI.pm, and it seems to identical. When I try to get the same cookie value usi

RE: Proxying access to restricted information

2004-08-12 Thread Dan Horne
Thanks for everyone's responses. I managed to get this working in principle by: 1) using mod_proxy and mod_rewite to create the proxy through to the server. 2) PerlAuth* handlers to determine user access Thanks Dan -Original Message- From: Dan Horne [mailto:[EMAIL PROTECTED]

RE: Proxying access to restricted information

2004-08-12 Thread Dan Horne
allow users through depending on their access rights. It's due to this authentication requirement that I can't use mod_rewrite by itself Dan -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED] Sent: Thursday, 12 August 2004 5:07 p.m. To: Dan Horne Cc: [EMAIL PROTECTED] S

Re: Proxying access to restricted information

2004-08-11 Thread Dan Horne
the request and perform access checks, and I don’t know if I can do this before mod_rewrite kicks in during the request lifecycle. Quoting Dan Horne <[EMAIL PROTECTED]>: > Hi all > > I’m sure that this has been asked before, but I couldn’t seem to find the > right > terms when

Proxying access to restricted information

2004-08-11 Thread Dan Horne
Hi all I’m sure that this has been asked before, but I couldn’t seem to find the right terms when searching the archive. We have a website (not written in Perl or mod_perl), where we would now like to protect certain parts of the content. The business is loath to change the architecture, as there