Re: mod_perl / Perl5.10 / Win32 ?

2008-02-20 Thread Foo JH

Thanks!

I mean for compiling for 5.10!

Randy Kobes wrote:


As there's been several requests for this, I've put up an
ActivePerl 10xx ppm package of mod_perl2, based on the
current svn sources, at
   http://cpan.uwinnipeg.ca/PPMPackages/10xx/
which you can install via
  C:\> ppm install
 http://cpan.uwinnipeg.ca/PPMPackages/10xx/mod_perl.ppd
There's also a ppm package of libapreq2 (which supplies,
amongst other things, Apache2::Request and Apache2::Cookie)
in the same repository. Please let me know if you have
any problems installing these - thanks.

Both these packages are based on Apache/2.2, and hence are 
incompatible with Apache/2.0. If you're using

Apache/2.0 and would like a ppm package, let me
know and I'll make one up.





Re: mod_perl / Perl5.10 / Win32 ?

2008-02-20 Thread Randy Kobes

On Wed, 20 Feb 2008, Dami Laurent (PJ) wrote:


Hi all,

I don't know where to find answers to the following questions, so better
ask the list :

- 1) is modperl2 currently compatible with Perl 5.10 ? If not, are some
people working on it ? For which target date ?

- 2) if the answer is YES, then did anybody compile it into a PPM for
Win32 ? Didn't find it at ActiveState nor at uwinnipeg.


As there's been several requests for this, I've put up an
ActivePerl 10xx ppm package of mod_perl2, based on the
current svn sources, at
   http://cpan.uwinnipeg.ca/PPMPackages/10xx/
which you can install via
  C:\> ppm install
 http://cpan.uwinnipeg.ca/PPMPackages/10xx/mod_perl.ppd
There's also a ppm package of libapreq2 (which supplies,
amongst other things, Apache2::Request and Apache2::Cookie)
in the same repository. Please let me know if you have
any problems installing these - thanks.

Both these packages are based on Apache/2.2, and hence 
are incompatible with Apache/2.0. If you're using

Apache/2.0 and would like a ppm package, let me
know and I'll make one up.

--
best regards,
Randy Kobes


[Fwd: [RELEASE CANDIDATE] Apache-Reload-0.10-RC5]

2008-02-20 Thread Fred Moyer
FYI - RC5 has gone through some vetting on the dev list and no test
failures have been found so far.  Please take if for a spin if you have a
chance and report back success or failure.

http://people.apache.org/~phred/Apache-Reload-0.10-RC5.tar.gz

 Original Message 
Subject: [RELEASE CANDIDATE] Apache-Reload-0.10-RC5
From:"Fred Moyer" <[EMAIL PROTECTED]>
Date:Thu, February 14, 2008 7:16 am
To:  [EMAIL PROTECTED]
--

Greetings,

RC5 for Apache::Reload is now available.  RC4 was a bust since I didn't
follow my own additions to the RELEASE document :)  Note to self -
caffeinate before releasing.

Thanks to Steve Hay for working through some win32 related issues with me.
 I'd like to get that resolved at some point but it appears to be
non-trivial.

There are a few other nits I would like to get taken care of but if this
candidate passes tests I'd like to let it into the main list, then into
the wild if passing reports come back.  One nit is that 'perl Makefile.PL'
will die on platforms that don't have mod_perl installed, causing a test
failure in CPAN testers.  I ran into this issue with Apache::Dispatch - no
solution yet.

http://people.apache.org/~phred/Apache-Reload-0.10-RC5.tar.gz

- all tests skipped successfully in environment without mod_perl.c on
Linux 2.6, perl 5.8.8
- all tests pass on mp1, perl 5.8.8, darwin 10.5.2
- all tests pass on mp2, perl 5.8.8, darwin 10.5.2
- all tests pass on mp2, perl 5.8.8, darwin 10.5.2,
APACHE_TEST_PRETEND_NO_LWP=1


- To
unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






$r->add_output_filter using core filters

2008-02-20 Thread Fred Moyer
Greetings,

Is it possible to dynamically add core output filters such as INCLUDE with
$r->add_output_filter('INCLUDE')?  The docs indicate that
PerlSetOutputFilter INCLUDE is ok, but it looks like $r->add_output_filter
is restricted to perl handlers.  I tried add_output_filter with INCLUDE,
but received an error saying no such handler.

Thanks,

Fred



Re: mp2 and post/get params

2008-02-20 Thread Perrin Harkins
On Feb 20, 2008 12:54 PM, Kirk <[EMAIL PROTECTED]> wrote:
> I'm new to mp2 and have a relatively old application that used the mp1
> implementation of grabbing get/post params from incoming requests

Use Apache2::Request (in the libapreq2 distribution on CPAN) or CGI.pm.

> # assign some value
> $r->param('key' => 'val');

You can't do that anymore.  You should never have been able to.  The
request params show you what the client sent in.  You can't change the
past.

If you need to keep track of internal filtering and changes to params,
just make your own data structure for them and copy in what you want
from the original params.

> And of course, I need to consolidate both request type into one hash or
> string so I can access either, or both, on demand.

Both Apache2::Request and CGI handle this.

- Perrin


unsuscribe

2008-02-20 Thread RGKärcher
unsuscribe

Ricardo german Kärcher

[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]


  Yahoo! Encuentros.

Ahora encontrar pareja es mucho más fácil, probá el nuevo Yahoo! Encuentros 
http://yahoo.cupidovirtual.com/servlet/NewRegistration


Re: mp2 and post/get params

2008-02-20 Thread Colin Wetherbee

Kirk wrote:

I'm new to mp2 and have a relatively old application that used the mp1
implementation of grabbing get/post params from incoming requests:


$r = shift;

# grab incoming value 
my $value = $r->param('name');

...
...
# assign some value
$r->param('key' => 'val');

And of course, I need to consolidate both request type into one hash or
string so I can access either, or both, on demand.

What is the equivalent in mp2?  I can't seem to find a general answer in the
docs and it's a bit confusing where this functionality disappeared to.


I use the following in mod_perl 2.

my $r = Apache2::RequestUtil->request;
my $req = Apache2::Request->new($r);

my $foo = $req->param('foo');

Colin



mp2 and post/get params

2008-02-20 Thread Kirk
I'm new to mp2 and have a relatively old application that used the mp1
implementation of grabbing get/post params from incoming requests:


$r = shift;

# grab incoming value 
my $value = $r->param('name');
...
...
# assign some value
$r->param('key' => 'val');

And of course, I need to consolidate both request type into one hash or
string so I can access either, or both, on demand.

What is the equivalent in mp2?  I can't seem to find a general answer in the
docs and it's a bit confusing where this functionality disappeared to.

Thx,
Kirk





Re: mod_perl / Perl5.10 / Win32 ?

2008-02-20 Thread Colin Wetherbee

Dami Laurent (PJ) wrote:

I don't know where to find answers to the following questions, so
better ask the list :

- 1) is modperl2 currently compatible with Perl 5.10 ? If not, are
some people working on it ? For which target date ?

- 2) if the answer is YES, then did anybody compile it into a PPM
for Win32 ? Didn't find it at ActiveState nor at uwinnipeg.


I believe the following message from this month's archives is still 
applicable.


http://mail-archives.apache.org/mod_mbox/perl-modperl/200802.mbox/[EMAIL 
PROTECTED]

Colin


mod_perl / Perl5.10 / Win32 ?

2008-02-20 Thread Dami Laurent (PJ)
Hi all,

I don't know where to find answers to the following questions, so better
ask the list :

- 1) is modperl2 currently compatible with Perl 5.10 ? If not, are some
people working on it ? For which target date ?

- 2) if the answer is YES, then did anybody compile it into a PPM for
Win32 ? Didn't find it at ActiveState nor at uwinnipeg.

Thanks in advance, 

Laurent Dami



Re: mod_perl

2008-02-20 Thread Kaushal Shriyan
On Feb 20, 2008 8:54 PM, André Warnier <[EMAIL PROTECTED]> wrote:
>
>
> Kaushal Shriyan wrote:
> > hi
> >
> > I am running apache2 and have installed libapache2-mod-perl2 on Ubuntu 7.04
> >
> [...]
> > How can i verify whether my apache2 has mod_perl support into it
>
> Restart your Apache server, then look in it's "error.log" file
> (/var/log/apache2/error.log ?)
> It should have a line like this (one line) :
>
> [Fri Feb 15 03:36:57 2008] [notice] Apache/2.2.3 (Debian) DAV/2
> mod_jk/1.2.18 PHP/4.4.4-8+etch4 mod_ssl/2.2.3 OpenSSL/0.9.8c
> mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations
>
> If you see "mod_perl" in it, then you have it.
> If not, you may still have it, but maybe it is not loaded in your Apache
> configuration.
>
> André
>
>

Thanks Andre :-)

Appreciate it

Thanks and Regards

Kaushal


Re: mod_perl

2008-02-20 Thread André Warnier



Kaushal Shriyan wrote:

hi

I am running apache2 and have installed libapache2-mod-perl2 on Ubuntu 7.04


[...]

How can i verify whether my apache2 has mod_perl support into it


Restart your Apache server, then look in it's "error.log" file 
(/var/log/apache2/error.log ?)

It should have a line like this (one line) :

[Fri Feb 15 03:36:57 2008] [notice] Apache/2.2.3 (Debian) DAV/2 
mod_jk/1.2.18 PHP/4.4.4-8+etch4 mod_ssl/2.2.3 OpenSSL/0.9.8c 
mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations


If you see "mod_perl" in it, then you have it.
If not, you may still have it, but maybe it is not loaded in your Apache 
configuration.


André



mod_perl

2008-02-20 Thread Kaushal Shriyan
hi

I am running apache2 and have installed libapache2-mod-perl2 on Ubuntu 7.04

$dpkg -l | grep apache2
ii  apache22.2.3-3.2ubuntu2.1
Next generation, scalable, extendable web server


$ dpkg -l | grep libapache2
ii  libapache2-mod-perl2   2.0.2-2.3ubuntu1
Integration of perl with the Apache2 web server

How can i verify whether my apache2 has mod_perl support into it

Thanks and Regards

Kaushal


RE: Problem running Perl scripts with mod_perl from Alias directory

2008-02-20 Thread Billeb, Andrew (ATS, IT)
Thanks Colinyou're right, my wording wasn't great.  

If I click the submit button, the page just resets to the default page.
(To be more clear.there is a popup_menu and a submit button.  If I
select a value in the popup_menu, and then click submit, the page just
resets to how it appeared before I even selected the value from the
popup_menu.)

Note: The same script works fine when called from the non-alias path.

Thanks,
Andrew

Andrew Billeb | ATS - Config | 860-547-5983 |
[EMAIL PROTECTED]

-Original Message-
From: Colin Wetherbee [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 19, 2008 5:05 PM
To: Billeb, Andrew (ATS, IT)
Cc: modperl@perl.apache.org
Subject: Re: Problem running Perl scripts with mod_perl from Alias
directory

Billeb, Andrew (ATS, IT) wrote:
> The result is that when I click on a URL like the following (i.e. 
> missing the the /cgi-bin/):
> 
> _http://localhost/ridhwan/script_name.pl_
> 
> the script displays finebut clicking the submit button doesn't do

> anythingit just redisplays the same page. But it's the *same
> script* as in the first link.  It's just being accessed through the 
> alias. So, I don't understand why it doesn't work.

Could you be more specific here?

For example, "doesn't do anything" and "redisplays the same page" are
contradictory statements.  What exactly happens?

Colin


*
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*



[MP2][QUESTION]Attribute::Handlers usage with mod_perl

2008-02-20 Thread titetluc titetluc
Hello all,

I would like to use attributes (Attribute::Handlers) in a mod_perl module.

I defined my attribute:

use Attribute::Handlers;
sub Catch_error  ATTR(CODE, BEGIN) { ... }

My module uses this attribute:

sub foo :Catch_error{
}

But this does not work.
I searched in the mod_perl mailing list and found interesting threads
("OO handlers" and "Attribute::Handlers - cant use under mod_perl?").

Attribute::Handlers would be incompatible with mod_perl (CHECK phase
is not handled by mod_perl). But according to Geoffrey Young and James
Smith, it should work (Apache::Handler module uses the
Attribute::Handlers module).
I had a look at the Apache::Handler but I can not see any declaration
differences with my module.

Could someone give some tips to make my attribute usable in mod_perl ?

Thanks

Gaetan

PS: I already send this post on this mailing list but it seems that
the post was not received. Is this mailing list


Re: handler using a module

2008-02-20 Thread Raymond Wan


Hi Perrin,

Perrin Harkins wrote:

Yes, there is.  Read the information in the Mason documentation about
namespaces.  There should be examples in there of how to do it.  



Thanks for the tip; I found it quite easily in the documentation and 
indeed there are examples and at least two options to try.  Thanks!




The best way to do this is actually to not import it at all and just
call myOwnFunctions::myFunction().  That saves some memory.  It is
more typing though.  If that way of calling it isn't working for you,
I suspect you might have a typo somewhere.  It should not be affected
by Mason.  


I see.  I probably made a careless mistake somewhere...thank you for 
your help!


Ray