Re: apache2, mod_perl: problem with CGI

2003-09-08 Thread Philip M. Gollucci
Stas Wrote:

I believe it's not the problem Bart was talking about. You are most 
likely talking about Apache-request failing, which is how it should be 
if the GlobalRequest option is not set.  Bart's problem was finding 
the request method.

If you'll read carefully, you'll see that I'm talking about mod_perl 1.x 
not mod_perl 2.
Otherwise, I would completely agree.  The _exact_ same code _does_ work 
under mod_perl2.

I also see that the problem Bart was referring to was fixed in 2.93



Philip M. Gollucci wrote:

I'll disagree on this being a windows only problem in CGI. I'll also 
disagree about the version number.

As late as CGI 3.00 this problem exists in Apache 1.3.27 and mod_perl 
1.27 on SunOS.

The pdf troubleshooting doc on apache.org site suggest fix (I think 
its 5.17) also does _not_ work either

a temp work around I've come up with is

eval {
 $query = CGI-new();
};
return 1 if $@;
instead of just
$query = CGI-new();


Stas Bekman wrote:

Thanks that did it.


Great.

It would be nice though if the minimum rev level of the CGI.pm could be
mentioned in the doc.
Or maybe it is there somewhere and I skimmed over it.


It's a a CGI.pm problem, really. We can't go and support all possible 
modules that may or may not run under mod_perl 2.0. However we do 
have this section:
http://perl.apache.org/products/apache-modules.html#Porting_CPAN_modules_to_mod_perl_2_0_Status 

We probably should specify the version number of each of these 
modules. Can somebody please lookup those modules and send me a patch 
with the version number which starts to support mod_perl 2.0?

No need for Apache::Peek, CGI and CGI::Cookie since I know these 
versions already.

I'm CC'ing Shannon, since he has ported most of the auth modules.

The 'Configuring mod_perl2.0 page for win32' at
http://perl.apache.org/docs/2.0/os/win32/config.html would a nice 
place to
mention this.


Certainly not there, since it's windows specific and CGI.pm is used 
on all platforms. However we could link to the URL I have mentioned 
from other docs. I think porting docs are more relevant, than config.

  [Fri Sep 05 00:17:12 2003] [error] 1688: ModPerl::Registry: Can't 
locate
  object method request via package Apache at 
C:/Perl/lib/CGI.pm line
269.

upgrade your CGI.pm to 2.93 or higher.




__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com








Re: apache2, mod_perl: problem with CGI

2003-09-08 Thread Stas Bekman
Philip M. Gollucci wrote:
Stas Wrote:

 I believe it's not the problem Bart was talking about. You are most 
likely talking about Apache-request failing, which is how it should be 
if the GlobalRequest option is not set.  Bart's problem was finding 
the request method.

If you'll read carefully, you'll see that I'm talking about mod_perl 1.x 
not mod_perl 2.
Otherwise, I would completely agree.  The _exact_ same code _does_ work 
under mod_perl2.
Ah, sorry, so what exact problem you are talking about? Can you post a link to 
the HTML version of the relevant section in the guide, I'm not sure what 5.17 is?

I also see that the problem Bart was referring to was fixed in 2.93

Philip M. Gollucci wrote:

I'll disagree on this being a windows only problem in CGI. I'll also 
disagree about the version number.

As late as CGI 3.00 this problem exists in Apache 1.3.27 and mod_perl 
1.27 on SunOS.

The pdf troubleshooting doc on apache.org site suggest fix (I think 
its 5.17) also does _not_ work either

a temp work around I've come up with is

eval {
 $query = CGI-new();
};
return 1 if $@;
instead of just
$query = CGI-new();


__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: apache2, mod_perl: problem with CGI

2003-09-06 Thread Stas Bekman
speeves wrote:
Stas Bekman wrote:

Thanks that did it.


Great.

It would be nice though if the minimum rev level of the CGI.pm could be
mentioned in the doc.
Or maybe it is there somewhere and I skimmed over it.


It's a a CGI.pm problem, really. We can't go and support all possible 
modules that may or may not run under mod_perl 2.0. However we do have 
this section:
http://perl.apache.org/products/apache-modules.html#Porting_CPAN_modules_to_mod_perl_2_0_Status 

We probably should specify the version number of each of these 
modules. Can somebody please lookup those modules and send me a patch 
with the version number which starts to support mod_perl 2.0?

No need for Apache::Peek, CGI and CGI::Cookie since I know these 
versions already.

I'm CC'ing Shannon, since he has ported most of the auth modules.


Sorry, I wasn't following the thread, so don't know what the patch is 
for. :(  But, here is a listing of the version numbers for the auth mods 
that are stable, and work with mod_perl2:

Apache-AuthenNIS-0.11
Apache-AuthenNTLM-2.04
Apache-AuthenPasswd-0.12
Apache-AuthenSmb-0.70
Apache-AuthExpire-0.38
Apache-AuthNetLDAP-0.25
Apache-AuthPerLDAP-2.01
Apache-AuthzNetLDAP-0.07
Apache-AuthzNIS-0.11
Apache-AuthzPasswd-0.11
Thanks, speeves

So these are the versions required to run properly with mod_perl 2.0? Here is 
an updated table:

  Module Name Required Dist Package
  -
  Apache::AuthExpire Apache-AuthExpire-0.38
  Apache::AuthNetLDAPApache-AuthNetLDAP-0.25
  Apache::AuthPerLDAPApache-AuthPerLDAP-2.01
  Apache::AuthenNIS  Apache-AuthenNIS-0.11
  Apache::AuthenPasswd   Apache-AuthenPasswd-0.12
  Apache::AuthenSmb  Apache-AuthenSmb-0.70
  Apache::AuthzNIS   Apache-AuthzNIS-0.11
  Apache::AuthzNetLDAP   Apache-AuthzNetLDAP-0.07
  Apache::AuthzPasswdApache-AuthzPasswd-0.11
  Apache::Clean  Apache-Clean-2.00_4 (not released)
  Apache::Peek   Apache-Peek-1.01
  CGICGI.pm-2.93
  CGI::CookieCGI.pm-2.93 (comes in the CGI dist)
I can't see Apache-AuthenNTLM-2.04 being ported yet, though. Here is the list 
of modules that are being in progress of being ported:

  Module Porters
  --
  Apache::MP3Stas Bekman stas AT stason.org
 Clemens Schrimpe csch AT Kiez.NET
  Apache::Scoreboard Stas Bekman stas AT stason.org
  Apache::VMonitor   Stas Bekman stas AT stason.org
  Apache::AuthenNTLM Shannon Eric Peevey speeves AT unt.edu
  Apache::Requesthttp://httpd.apache.org/apreq/
  Apache::Language   Philippe M. Chiasson gozer AT cpan.org
  Apache::AutoIndex  Philippe M. Chiasson gozer AT cpan.org
__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: apache2, mod_perl: problem with CGI

2003-09-06 Thread Stas Bekman
Philip M. Gollucci wrote:
I'll disagree on this being a windows only problem in CGI. I'll also 
disagree about the version number.

As late as CGI 3.00 this problem exists in Apache 1.3.27 and mod_perl 
1.27 on SunOS.
I believe it's not the problem Bart was talking about. You are most likely 
talking about Apache-request failing, which is how it should be if the 
GlobalRequest option is not set. Bart's problem was finding the request method.

The pdf troubleshooting doc on apache.org site suggest fix (I think its 
5.17) also does _not_ work either

a temp work around I've come up with is

eval {
 $query = CGI-new();
};
return 1 if $@;
instead of just
$query = CGI-new();
You don't need a workaround. You need to setup PerlOptions +GlobalRequest if 
you get this error. Unless you are talking about something else, in which case 
please tell use the exact error you are talking about.

Thanks.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: apache2, mod_perl: problem with CGI

2003-09-06 Thread Shannon Eric Peevey
Stas Bekman wrote:

speeves wrote:

Stas Bekman wrote:

Thanks that did it.




Great.

It would be nice though if the minimum rev level of the CGI.pm 
could be
mentioned in the doc.
Or maybe it is there somewhere and I skimmed over it.




It's a a CGI.pm problem, really. We can't go and support all 
possible modules that may or may not run under mod_perl 2.0. However 
we do have this section:
http://perl.apache.org/products/apache-modules.html#Porting_CPAN_modules_to_mod_perl_2_0_Status 

We probably should specify the version number of each of these 
modules. Can somebody please lookup those modules and send me a 
patch with the version number which starts to support mod_perl 2.0?

No need for Apache::Peek, CGI and CGI::Cookie since I know these 
versions already.

I'm CC'ing Shannon, since he has ported most of the auth modules.


Sorry, I wasn't following the thread, so don't know what the patch is 
for. :(  But, here is a listing of the version numbers for the auth 
mods that are stable, and work with mod_perl2:

Apache-AuthenNIS-0.11
Apache-AuthenNTLM-2.04
Apache-AuthenPasswd-0.12
Apache-AuthenSmb-0.70
Apache-AuthExpire-0.38
Apache-AuthNetLDAP-0.25
Apache-AuthPerLDAP-2.01
Apache-AuthzNetLDAP-0.07
Apache-AuthzNIS-0.11
Apache-AuthzPasswd-0.11


Thanks, speeves

So these are the versions required to run properly with mod_perl 2.0? 
Here is an updated table:

  Module Name Required Dist Package
  -
  Apache::AuthExpire Apache-AuthExpire-0.38
  Apache::AuthNetLDAPApache-AuthNetLDAP-0.25
  Apache::AuthPerLDAPApache-AuthPerLDAP-2.01
  Apache::AuthenNIS  Apache-AuthenNIS-0.11
  Apache::AuthenPasswd   Apache-AuthenPasswd-0.12
  Apache::AuthenSmb  Apache-AuthenSmb-0.70
  Apache::AuthzNIS   Apache-AuthzNIS-0.11
  Apache::AuthzNetLDAP   Apache-AuthzNetLDAP-0.07
  Apache::AuthzPasswdApache-AuthzPasswd-0.11
  Apache::Clean  Apache-Clean-2.00_4 (not released)
  Apache::Peek   Apache-Peek-1.01
  CGICGI.pm-2.93
  CGI::CookieCGI.pm-2.93 (comes in the CGI dist)
I can't see Apache-AuthenNTLM-2.04 being ported yet, though. Here is 
the list of modules that are being in progress of being ported:
Hi!

Apache-AuthenNTLM-2.04 is indeed ported, I guess I just didn't make a 
formal announcement.   People can download it from the CPAN site under 
my name.

speeves
cws


--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: apache2, mod_perl: problem with CGI

2003-09-06 Thread Stas Bekman

So these are the versions required to run properly with mod_perl 2.0? 
Here is an updated table:

  Module Name Required Dist Package
  -
  Apache::AuthExpire Apache-AuthExpire-0.38
  Apache::AuthNetLDAPApache-AuthNetLDAP-0.25
  Apache::AuthPerLDAPApache-AuthPerLDAP-2.01
  Apache::AuthenNIS  Apache-AuthenNIS-0.11
  Apache::AuthenPasswd   Apache-AuthenPasswd-0.12
  Apache::AuthenSmb  Apache-AuthenSmb-0.70
  Apache::AuthzNIS   Apache-AuthzNIS-0.11
  Apache::AuthzNetLDAP   Apache-AuthzNetLDAP-0.07
  Apache::AuthzPasswdApache-AuthzPasswd-0.11
  Apache::Clean  Apache-Clean-2.00_4 (not released)
  Apache::Peek   Apache-Peek-1.01
  CGICGI.pm-2.93
  CGI::CookieCGI.pm-2.93 (comes in the CGI dist)
I can't see Apache-AuthenNTLM-2.04 being ported yet, though. Here is 
the list of modules that are being in progress of being ported:


Hi!

Apache-AuthenNTLM-2.04 is indeed ported, I guess I just didn't make a 
formal announcement.   People can download it from the CPAN site under 
my name.
Thanks Shannon, I have updated the page.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


RE: apache2, mod_perl: problem with CGI

2003-09-05 Thread Bart Terryn
Stas,

Thanks that did it.

It would be nice though if the minimum rev level of the CGI.pm could be
mentioned in the doc.
Or maybe it is there somewhere and I skimmed over it.

The 'Configuring mod_perl2.0 page for win32' at
http://perl.apache.org/docs/2.0/os/win32/config.html would a nice place to
mention this.

Kind Regards

Bart
-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 1:20 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: apache2, mod_perl: problem with CGI


  Just trying to get up and running with Apache/2.0.47 (Win32)
  mod_perl/1.99_10-dev Perl/v5.8.0 Server
  Have installed AS Perl 5.8 and the mod_perl ppm that Randy provides the
  world with.
 
  Running my mod_perl code using the ModPerl::Registry handler.
 
  Now everything is fine until I put the following in my code:
 
  use CGI();
  my $q = CGI-new();
 
 From that point on I get a servererror and the following entry in the
apache
  logfile:
 
  [Fri Sep 05 00:17:12 2003] [error] 1688: ModPerl::Registry: Can't locate
  object method request via package Apache at C:/Perl/lib/CGI.pm line
269.

upgrade your CGI.pm to 2.93 or higher.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html



Re: apache2, mod_perl: problem with CGI

2003-09-05 Thread Stas Bekman
Thanks that did it.
Great.

It would be nice though if the minimum rev level of the CGI.pm could be
mentioned in the doc.
Or maybe it is there somewhere and I skimmed over it.
It's a a CGI.pm problem, really. We can't go and support all possible modules 
that may or may not run under mod_perl 2.0. However we do have this section:
http://perl.apache.org/products/apache-modules.html#Porting_CPAN_modules_to_mod_perl_2_0_Status

We probably should specify the version number of each of these modules. Can 
somebody please lookup those modules and send me a patch with the version 
number which starts to support mod_perl 2.0?

No need for Apache::Peek, CGI and CGI::Cookie since I know these versions already.

I'm CC'ing Shannon, since he has ported most of the auth modules.

The 'Configuring mod_perl2.0 page for win32' at
http://perl.apache.org/docs/2.0/os/win32/config.html would a nice place to
mention this.
Certainly not there, since it's windows specific and CGI.pm is used on all 
platforms. However we could link to the URL I have mentioned from other docs. 
I think porting docs are more relevant, than config.

  [Fri Sep 05 00:17:12 2003] [error] 1688: ModPerl::Registry: Can't locate
  object method request via package Apache at C:/Perl/lib/CGI.pm line
269.
upgrade your CGI.pm to 2.93 or higher.


__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: apache2, mod_perl: problem with CGI

2003-09-05 Thread Philip M. Gollucci
I'll disagree on this being a windows only problem in CGI. I'll also 
disagree about the version number.

As late as CGI 3.00 this problem exists in Apache 1.3.27 and mod_perl 
1.27 on SunOS.

The pdf troubleshooting doc on apache.org site suggest fix (I think its 
5.17) also does _not_ work either

a temp work around I've come up with is

eval {
 $query = CGI-new();
};
return 1 if $@;
instead of just
$query = CGI-new();


Stas Bekman wrote:

Thanks that did it.


Great.

It would be nice though if the minimum rev level of the CGI.pm could be
mentioned in the doc.
Or maybe it is there somewhere and I skimmed over it.


It's a a CGI.pm problem, really. We can't go and support all possible 
modules that may or may not run under mod_perl 2.0. However we do have 
this section:
http://perl.apache.org/products/apache-modules.html#Porting_CPAN_modules_to_mod_perl_2_0_Status 

We probably should specify the version number of each of these 
modules. Can somebody please lookup those modules and send me a patch 
with the version number which starts to support mod_perl 2.0?

No need for Apache::Peek, CGI and CGI::Cookie since I know these 
versions already.

I'm CC'ing Shannon, since he has ported most of the auth modules.

The 'Configuring mod_perl2.0 page for win32' at
http://perl.apache.org/docs/2.0/os/win32/config.html would a nice 
place to
mention this.


Certainly not there, since it's windows specific and CGI.pm is used on 
all platforms. However we could link to the URL I have mentioned from 
other docs. I think porting docs are more relevant, than config.

  [Fri Sep 05 00:17:12 2003] [error] 1688: ModPerl::Registry: Can't 
locate
  object method request via package Apache at C:/Perl/lib/CGI.pm 
line
269.

upgrade your CGI.pm to 2.93 or higher.


__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com






--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: apache2, mod_perl: problem with CGI

2003-09-04 Thread Stas Bekman
[please don't reply to another thread when starting a new one. don't be 
surprised if your question is ignored if you do that.]

 Just trying to get up and running with Apache/2.0.47 (Win32)
 mod_perl/1.99_10-dev Perl/v5.8.0 Server
 Have installed AS Perl 5.8 and the mod_perl ppm that Randy provides the
 world with.

 Running my mod_perl code using the ModPerl::Registry handler.

 Now everything is fine until I put the following in my code:

 use CGI();
 my $q = CGI-new();

From that point on I get a servererror and the following entry in the apache
 logfile:

 [Fri Sep 05 00:17:12 2003] [error] 1688: ModPerl::Registry: Can't locate
 object method request via package Apache at C:/Perl/lib/CGI.pm line 269.
upgrade your CGI.pm to 2.93 or higher.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html