Re: newbie question mod_perl2 ajax

2008-08-16 Thread Collin Monahan
> Under mod_perl, packages/scripts remain in memory across requests, for the > duration of the Apache child. > The second issue is that, due to the stateless nature of HTTP, requests are > dispatched to Apache/mod_perl children at random. You can't store > information about a particular user or

Re: newbie question mod_perl2 ajax

2008-08-15 Thread Dondi M. Stroma
From: "Collin Monahan" <[EMAIL PROTECTED]> I'm trying to learn how to use mod_perl2 along with Ajax. Everything was humming along until it seemed like perhaps Apache had a couple instances of my handler in memory, and what I had declared as module variables were existent in two different state

newbie question mod_perl2 ajax

2008-08-15 Thread Collin Monahan
I'm trying to learn how to use mod_perl2 along with Ajax. Everything was humming along until it seemed like perhaps Apache had a couple instances of my handler in memory, and what I had declared as module variables were existent in two different states. It seemed like Apache was handing off to

Re: Newbie question -- how to get Apache to pick up the latest version of perl?

2006-06-02 Thread Philip M. Gollucci
Chris Bucchere wrote: Please forgive the newbie question -- I've been searching but I'm not able to narrow my results because my search terms are too broad. As I sure is the case with many folks out there, I have more than one version of perl on my linux box. In order to in

Newbie question -- how to get Apache to pick up the latest version of perl?

2006-06-02 Thread Chris Bucchere
Please forgive the newbie question -- I've been searching but I'm not able to narrow my results because my search terms are too broad.As I sure is the case with many folks out there, I have more than one version of perl on my linux box. In order to install some opensource software, I

Re: Newbie question re: opendir

2005-05-25 Thread Simon Perreault
On Wednesday 25 May 2005 10:46, Paul Murphy wrote: > [...] Fedora Core 3 [...] > > opendir(DIR, '/usr/local/src/') or die ('Failed because of $!'); > > Gives > > ...[error] Can't open directory because of Permission denied. I guess that it's because of SELinux, which is enabled by default on FC3.

Newbie question re: opendir

2005-05-25 Thread Paul Murphy
Hi, Please excuse the newbie-ish nature of this question, but I have searched the mailing list archives and can't find an answer to my question. I've downloaded and installed LXR 0.9.4 on a Fedora Core 3 box to index our source here at our company, and there's a problem when I run the script name

Re: newbie question already searched the faqs and archives

2005-05-23 Thread Foo Ji-Haw
What does error.log say? Donald Lee wrote: Hello, I am looking for some help getting started with mod_perl. I am at a stopping point where I am at a loss... my setup is as follows: windows xp pro w/sp2 apache 2.0.54 active perl, v5.8.6 built for MSWin32-x86-multi-thread I am already consultin

newbie question already searched the faqs and archives

2005-05-20 Thread Donald Lee
Hello, I am looking for some help getting started with mod_perl. I am at a stopping point where I am at a loss... my setup is as follows: windows xp pro w/sp2 apache 2.0.54 active perl, v5.8.6 built for MSWin32-x86-multi-thread I am already consulting: http://perl.apache.org/docs/2.0/os/win32/confi

Re: which API to use for listing files ? (newbie question)

2004-05-09 Thread David Hodgkinson
On 9 May 2004, at 0:29, aravind elango wrote: Hi, I am new to programming in modperl and am trying to do a recursive listing of files in a directory. Sounds like you need the File::Find module from CPAN. -- Dave Hodgkinson CTO, Rockit Factory Ltd. http://www.rockitfactory.com/ Web sites for rock b

which API to use for listing files ? (newbie question)

2004-05-08 Thread aravind elango
Hi, I am new to programming in modperl and am trying to do a recursive listing of files in a directory. (very similar to ls -r). I am using this to get some execution time information. I tried reading up handlers etc, in perl.apache.org/docs but did not find this information on the part of the do

Re: Semi-newbie question.

2004-04-13 Thread Geoffrey Young
for the record, it's best to keep this stuff on-list, that way everyone can benefit :) >>>doesn't work under mod_cgi, >> >>hmm, are you sure? that's not right. > > > My bad-- that was wiout the PassEnv set. WIth PassEnv it does go through. :) > >>>and works >>>under mod_php ONLY after a .mp

Re: Semi-newbie question.

2004-04-13 Thread Geoffrey Young
> Perl*Handlers are probably it somehow, except the documentation at > http://perl.apache.org/docs/1.0/guide/config.html#Perl_Handlers doesn't > actually seem to bother saying WHAT all those Perl*Handlers are for (and if > someone out there thinks that the names make them self-explanatory -- > we

Semi-newbie question.

2004-04-13 Thread Dodger
Hi, all. I'm sort of a mod-perl newbie. That is to say, I've used mod-perl plenty of times just as a way of speeding up CGIs using Apache::Registry, but I haven't hacked into the server with it yet. At this point, however, I'm diving in. What I want to do is to set things up so that any .mp or .

Re: Total newbie question

2004-03-15 Thread David Wilde
ld do the trick. HTH, Dave Wilde - Original Message - From: "Ged Haywood" <[EMAIL PROTECTED]> To: "Stelian Iancu" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, March 13, 2004 11:11 AM Subject: Re: Total newbie question > Hi there

Re: Total newbie question

2004-03-13 Thread Ged Haywood
Hi there, On Fri, 12 Mar 2004, Stelian Iancu wrote: > I am trying to setup mod_perl on my server. I have apache 1.3.29 and > mod_perl 1.27-r4 (on a Gentoo box). > > Here is the relevant section of commonapache.conf: Er, section of what?! We normally call it httpd.conf - is this something that's

Total newbie question

2004-03-12 Thread Stelian Iancu
Hi! I am trying to setup mod_perl on my server. I have apache 1.3.29 and mod_perl 1.27-r4 (on a Gentoo box). Here is the relevant section of commonapache.conf: PerlModule Apache::Registry #set Apache::Registry Mode for /perl Alias SetHandler perl-script PerlHandl

Re: newbie question - how to trap an HTTP GET (pre & post) but letting apache do the real work?

2004-02-03 Thread Ged Haywood
Hi there, On Tue, 3 Feb 2004, Ian Huynh wrote: > Is it possible to use mod_perl to handle the following > > on a HTTP GET or POST, do the following > a) on invocation of GET or POST use perl/mod_perl to do an external call to > perform a task > b) let apache handle the GET/POST as normal >

newbie question - how to trap an HTTP GET (pre & post) but letting apache do the real work?

2004-02-03 Thread Ian Huynh
Hi Is it possible to use mod_perl to handle the following on a HTTP GET or POST, do the following a) on invocation of GET or POST use perl/mod_perl to do an external call to perform a task b) let apache handle the GET/POST as normal c) when apache has finished handling the GET/POST, use per

Re: Newbie question...

2003-11-13 Thread Tom Schindl
No that's not right. At least the tar.gz I downloaded does ***NOT*** include any mod_perl, anybody could correct me here but I think it should not get to the archives that apache ships with mod_perl, and one does not have to download it. I think that your mod_perl is coming from all commands/compi

Re: Newbie question...

2003-11-13 Thread Tom Schindl
Strange. I did completely the same last week on my mdk-9.2 installation and no problem. Have you really used the perl Makefile.PL call I did? The mod_perl Makefile.PL builds your apache automatically. I'd suggest removing all files and starting once more. Simply put your apache.tar.gz and mod_per

Re: Newbie question...

2003-11-13 Thread Ken Corey
Ah, okay, found out a solution (but not the cause). Turns out that apache 1.3.29 ships with mod_perl 1.29 as an extension already. When I configured apache with this: ./configure \ --activate-module=src/modules/perl/libperl.a and then did a make && make install, the mod_perl installatio

Re: Newbie question...

2003-11-13 Thread Ken Corey
Thanks for writing, but using 'EVERYTHING=1' doesn't solve it for me. Even worse, with EVERYTHING=1, the install fails the tests, too (in addition to Apache::Log not being provided). -Ken On Thu, 2003-11-13 at 13:28, Thomas Schindl wrote: > I had completely the same problem myself, starting Apac

Re: Newbie question...

2003-11-13 Thread Thomas Schindl
Hi, I had completely the same problem myself, starting Apache with AxKit. http://www.gossamer-threads.com/archive/mod_perl_C1/modperl_F7/Problems_installing_mp1_and_apache-1.3.28_P73387/ Tom On Thu, 2003-11-13 at 13:45, Ken Corey wrote: > Hi All. > > I've had a search through the archives, and

Newbie question...

2003-11-13 Thread Ken Corey
Hi All. I've had a search through the archives, and can't seem to find anything relevant. Pointers would be welcome. I've got a Mandrake linux 8.1 system (yeah, old), from which I've removed the provided apache 1.3.20 setup. So, I'm starting from scratch. I downloaded apache 1.3.29, mod_perl 1

Re: MP2 -> newbie question, virtual hosts

2003-11-12 Thread Larry Leszczynski
Hi Graeme - Don't be embarrassed - we've all been there before! :-) Larry > On Tue, 11 Nov 2003, Larry Leszczynski wrote: > > I think you mean: > > > > my ($vhostname,$vhostuser,$vhosthomedir,$vhostip) = split / /, $_; > > Oops. > > I shall now skulk off to a dark corner and be embarras

Re: MP2 -> newbie question, virtual hosts

2003-11-12 Thread Graeme Fowler
On Tue, 11 Nov 2003, Larry Leszczynski wrote: > I think you mean: > > my ($vhostname,$vhostuser,$vhosthomedir,$vhostip) = split / /, $_; Oops. I shall now skulk off to a dark corner and be embarrassed. The original script I had to do this was correct; I muddled it in transposition. Nothing

Re: MP2 -> newbie question, virtual hosts

2003-11-11 Thread Perrin Harkins
On Tue, 2003-11-11 at 13:16, Graeme Fowler wrote: > This is precisely the approach I'm using at the moment; however I'm > looking into reload speed and this will not scale far enough for me. I > could be looking at tens of thousands of virtual hosts per server in a > load balanced environment, so t

Re: MP2 -> newbie question, virtual hosts

2003-11-11 Thread Larry Leszczynski
Hi Graeme - > my ($vhostname,$vhostuser,$vhosthomedir,$vhostip) = split $_, / /; I think you mean: my ($vhostname,$vhostuser,$vhosthomedir,$vhostip) = split / /, $_; I'd suggest extracting the section code into a standalone script to verify it works, then pop it back into httpd.conf. L

Re: MP2 -> newbie question, virtual hosts

2003-11-11 Thread Graeme Fowler
On Tue, 2003-11-11 at 18:34, Chris Grau wrote: > Is there a particular reason you've chosen to generate many VirtualHost > directives in your configuration file? Have you tried mod_vhost_alias? > It sounds like a perfect fit for you. Yes - namely that this will be a migration from an existing env

Re: MP2 -> newbie question, virtual hosts

2003-11-11 Thread Chris Grau
On Tue, Nov 11, 2003 at 06:16:34PM +, Graeme Fowler wrote: > Hi > > On Tue, 2003-11-11 at 17:43, Cees Hek wrote: [snip] > > Flip your strategy around, and have a plain old perl script > > generate the proper Apache config files for your VirtualHosts > > and place those config files in a direct

Re: MP2 -> newbie question, virtual hosts

2003-11-11 Thread Graeme Fowler
Hi On Tue, 2003-11-11 at 17:43, Cees Hek wrote: > I could very well be wrong, but I have a feeling that the support in > mod_perl2 is not fully completed yet. Ah. I was beginning to think as much. I really don't want to spend a huge amount of time with the Apache 1.3.x + mod_perl 1.x combination

Re: MP2 -> newbie question, virtual hosts

2003-11-11 Thread Cees Hek
Quoting Graeme Fowler <[EMAIL PROTECTED]>: > I've searched, and searched, for a recipe and/or method for this; I can't > find > one that works :( > > Am using a home-rolled Apache 2.0.48 and mod_perl 1.99_10 setup. I could very well be wrong, but I have a feeling that the support in mod_perl2 i

Re: MP2 -> newbie question, virtual hosts

2003-11-11 Thread Graeme Fowler
On Tue, 11 Nov 2003, Thomas Schindl wrote: > Why not using conf.d all conf-files from there get loaded automatically? Only if the "Include conf.d/*.conf" statement still exists. I'm trying to move away from RedHat-derived semantics, because the system may have to run on a number of different pla

Re: MP2 -> newbie question, virtual hosts

2003-11-11 Thread Thomas Schindl
Hi, Why not using conf.d all conf-files from there get loaded automatically? Tom On Tue, 2003-11-11 at 17:37, Graeme Fowler wrote: > Howdy > > I've searched, and searched, for a recipe and/or method for this; I can't find > one that works :( > > Am using a home-rolled Apache 2.0.48 and mod_pe

MP2 -> newbie question, virtual hosts

2003-11-11 Thread Graeme Fowler
Howdy I've searched, and searched, for a recipe and/or method for this; I can't find one that works :( Am using a home-rolled Apache 2.0.48 and mod_perl 1.99_10 setup. Given a file containing lines of the form: lweb1.graemef.net root /root/public_html 192.168.100.211 and an "Include" statemen