Embeded perl question

2000-10-09 Thread Genocchio, Anthony
I am having trouble returing a variable from a sub?...below is my effort to do this...is there some fundamental place where i am going wrong and can you help me?!...thanks [$ sub get_date $] [- $var = shift; $path = ("/home/genoccaj/public_html/lookup/"); use File::

Re: Patch for easy testing of Apache::* modules (resend)

2000-10-09 Thread Ken Williams
[EMAIL PROTECTED] (Doug MacEachern) wrote: >ken, i have a feature request too :) i would like to be able to test if >mod_include is linked static with httpd, otherwise Makefile.PL will >disable PERL_SSI. a hash of parsed `httpd -l`, something like: > >my $static_modules = Apache::test->http_stat

Re: PerlWarn On being ignored on win32

2000-10-09 Thread Randy Kobes
On Mon, 9 Oct 2000 [EMAIL PROTECTED] wrote: > Hi, > I have problems having mod_perl show his warnings: setting PerlWarn to On, > nothing appears into the ErrorLog. > I tried to change che LogLevel down to "debug": other messages do appear, > but not the perl warnings. > > I'm using Perl 5.6.0, m

Re: Bug in mod_perl

2000-10-09 Thread Ken Williams
[EMAIL PROTECTED] (Greg Williams) wrote: >>I'm using mod_perl 1.24/Apache 1.3.12/Perl 5.00503 and find that I receive >>no output after the \0. Is this a mod_perl or Apache bug? Or is it a >>client bug (using Netscape 4.75) or is it the expected behavior. > >It would be expected, I'd assume. pe

Re: Third post. PLease help. PerlHandler configuration question.

2000-10-09 Thread Perrin Harkins
On Mon, 9 Oct 2000, Todd Chapman wrote: > That only solves half the problem. Since it is a virtual directory, how > will Apache::Registry know where 'cgifile' really exists so it can run it? Either put it under your docroot or use the standard Alias stuff: Alias /perl/ /home/httpd/perl

Re: [Apache::ASP] $Request->QueryString->('foo')->Item() support

2000-10-09 Thread Daniel Chetlin
On Mon, Oct 09, 2000 at 05:03:44PM -0700, Joshua Chamas wrote: > When I execute $Request->Form->('test')->Item() > on a real life code sample, even after building in > support for $Request->Form('test')->Item(), I get > this error: > > Not a CODE reference at (eval 14) line 10. > > I have see

Re: Third post. PLease help. PerlHandler configuration question.

2000-10-09 Thread Todd Chapman
Thanks. It seems like I would want to write a PerlTransHandler. However I don't want to change the filename until after the authorization phase. Can I change the uri to filename mapping at the end of the authorization phase but before the content handler phase? Thanks. -Todd On Mon, 9 Oct 200

Re: [Apache::ASP] $Request->QueryString->('foo')->Item() support

2000-10-09 Thread Joshua Chamas
So what you are saying is that either this: > my $uid = $Request->QueryString('foo')->Item(); or this > $Request->QueryString->Item('foo')->Item() works natively in PerlScript. I see, so with the CollectionItem Apache::ASP config, I will enable the latter to work too. The

Re: [Apache::ASP] $Request->QueryString->('foo')->Item() support

2000-10-09 Thread joel w. reed
On Oct 09, [EMAIL PROTECTED] contorted a few electrons to say... Joshua> $Request->QueryString->('foo')->Item() isn't valid perl syntax, Joshua> is it? Are you going for $Request->QueryString('foo')->Item() Joshua> support here? yes $Request->QueryString('foo')->Item() seems to be the way AP61

Re: having several mod_perl virtualhosts on the same machine

2000-10-09 Thread Joshua Chamas
Make sure the MaxClients & MaxRequestsPerChild is set low enough so that your machine doesn't start swapping excessively. Try a benchmark against your system with "ab -c 100 -n 1 modperl-URL" and see what happens. If your MaxClients is 100 and MaxRequests 100, this will be a decent test a

Re: Third post. PLease help. PerlHandler configuration question.

2000-10-09 Thread Todd Chapman
That only solves half the problem. Since it is a virtual directory, how will Apache::Registry know where 'cgifile' really exists so it can run it? For example: http://www.mydoamin.com/dirA/dirB/cgifile dirA and dirB don't really exist. If 'cgifile' is stored somewhere else how will Apache::Reg

Re: [Apache::ASP] $Request->QueryString->('foo')->Item() support

2000-10-09 Thread Joshua Chamas
Greg Williams wrote: > > At 14:23 -0700 2000/10/09, Joshua Chamas wrote: > >$Request->QueryString->('foo')->Item() isn't valid perl syntax, > >is it? > > >perl -c > $Request->QueryString->('foo')->Item() > __END__ > - syntax OK When I execute $Request->Form->('test')->Item() on a real life code

Re: Bug in mod_perl

2000-10-09 Thread Greg Williams
>I'm using mod_perl 1.24/Apache 1.3.12/Perl 5.00503 and find that I receive >no output after the \0. Is this a mod_perl or Apache bug? Or is it a >client bug (using Netscape 4.75) or is it the expected behavior. It would be expected, I'd assume. perl5-porters discussed this back in January wh

Re: Bug in mod_perl

2000-10-09 Thread Tom Brown
Interesting, the Mason bug report I just filed is obviously mis-filed. Apache::Registry scripts suffer the same behaviour. On Mon, 9 Oct 2000, Dave Rolsky wrote: > Try the following handler: > > package Foo; > > use Apache::Request; > > sub handler > { > my $r = shift; > > my (@va

Third post. PLease help. PerlHandler configuration question.

2000-10-09 Thread Todd Chapman
I need to get this problem solved for a project I am working on. Any help is appreciated. Thanks. -Todd -- Forwarded message -- I am servicing requests from a virtual document tree. Most of the time I want the request to be serviced by a PerlHandler module I wrote. However, i

Bug in mod_perl

2000-10-09 Thread Dave Rolsky
Try the following handler: package Foo; use Apache::Request; sub handler { my $r = shift; my (@vars) = ( 'abc', "abc\0def", "def" ); $r->send_http_header; $r->print("$_\n") foreach @vars; } 1; I'm using mod_perl 1.24/Apache 1.3.12/Perl 5.00503 and find that I receive no ou

RE: :Parse segmentation fault

2000-10-09 Thread Shane Adams
Title: RE: :Parse segmentation fault no clue.  I emailed your comment to a friend at work and see what he can make of it.  He's the fellow that found the cause of the segfault in the first place.   Shane   -Original Message-From: Herrington, Jack [mailto:[EMAIL PROTECTED]]Sent:

RE: :Parse segmentation fault

2000-10-09 Thread Herrington, Jack
Title: RE: :Parse segmentation fault This allows for XML parsing with no change to the Perl code.  I'm just not sure what I am losing in Apache (which is where I make the change).  What does losing EXPAT do to Apache? -Original Message-From: Shane Adams [mailto:[EMAIL PROTECTED]

RE: :Parse segmentation fault

2000-10-09 Thread Shane Adams
Title: RE: :Parse segmentation fault Hmmm well I *have* to have Xml parsing. Not sure if what you are suggesting totally turns it off or just does something else? -Original Message-From: Herrington, Jack [mailto:[EMAIL PROTECTED]]Sent: Monday, October 09, 2000 3:49 PMTo: Shane

RE: :Parse segmentation fault

2000-10-09 Thread Herrington, Jack
Title: RE: :Parse segmentation fault I did a little more digging around and found that you could also avoid the problem by turning off EXPAT in apache with:   Rule EXPAT=no   Which fix is more preferable? -Original Message-From: Shane Adams [mailto:[EMAIL PROTECTED]]Sent: Monda

RE: :Parse segmentation fault

2000-10-09 Thread Shane Adams
Title: RE: :Parse segmentation fault Yes.  We found a problem in Expat.pm line 451 (in sub parse).  The following chunk of code (latest version from cpan) sub parse {   my $self = shift;   my $arg = shift;   croak "Parse already in progress (Expat)" if $self->{_State_};   $self->{_State_} =

Re: Bug#74416: apache-perl: Apache::MyConfig should provide path to `apxs' (/usr/bin/apxs) in %Setup

2000-10-09 Thread Daniel Jacobowitz
[Please keep the CC: to bugs.debian.org] On Mon, Oct 09, 2000 at 10:59:29PM +0200, [EMAIL PROTECTED] wrote: > Package: apache-perl > Version: 1.3.9-13.1-1.21.2309-1 > Severity: normal > > I've tried to create a package `libapache-request-perl' > (Module Apache::Request). (Such a package does

XML::Parse segmentation fault

2000-10-09 Thread Herrington, Jack
This code works as a perl script executed off the command line: use XML::Parser; my $parser = new XML::Parser(); $parser->parse( "" ); This code fails with a segmentation fault when called from mod_perl: package CBL::mod_perl::test1; use strict;

Re: [Apache::ASP] $Request->QueryString->('foo')->Item() support

2000-10-09 Thread Greg Williams
At 14:23 -0700 2000/10/09, Joshua Chamas wrote: >$Request->QueryString->('foo')->Item() isn't valid perl syntax, >is it? >perl -c $Request->QueryString->('foo')->Item() __END__ - syntax OK ;-) .g -- Greg Williams, Cnation, (310) 228-6924 "Wow, no intel, no microsoft, sounds like a computer

having several mod_perl virtualhosts on the same machine

2000-10-09 Thread Frédéric Schwien
Hi,   i'am encouring problems with a machine that is hosting several completly independant modperl featured host. It is crashing without any apparent reason (nothing in the logs), and it seems to be a lack of memory (1 GB !). The only visual aspect is that it becomes impossible to login in

Re: Apache::ASP - RH install tip

2000-10-09 Thread Joshua Chamas
I'll add this fix to the error messaging for Apache::ASP. Thanks for figuring out an alternative solution. -- Joshua Tyler Vallillee wrote: > > A tip that may fix somebody else's problems. My system is RH 6.2 and I > installed Apache and mod_perl from RPM's (please no flames :) > > Upon ins

Re: [Apache::ASP] $Request->QueryString->('foo')->Item() support

2000-10-09 Thread Joshua Chamas
$Request->QueryString->('foo')->Item() isn't valid perl syntax, is it? Are you going for $Request->QueryString('foo')->Item() support here? There is already a Collection class that is used to emulate this kind of behavior, which can possibly be extended to meet this need. One of the behavio

[Apache::ASP] $Request->QueryString->('foo')->Item() support

2000-10-09 Thread joel w. reed
I'm trying to write an ASP app that runs under PerlScript and Apache::ASP. i've found that with ActivePerl 618 -- $Request->QueryString->('foo') return a reference to a Win32::OLE hash. to get a string from the hash you must write -- $Request->QueryString->('foo')->Item() or you must us

Apache::ASP - RH install tip

2000-10-09 Thread Tyler Vallillee
A tip that may fix somebody else's problems. My system is RH 6.2 and I installed Apache and mod_perl from RPM's (please no flames :) Upon installing Apache::ASP I got the dreaded SCALAR error in my error log when testing the site/eg directory: - no valid request object (Apache=SCALAR(0x831a

Re: test fails with "[warn] [notice] child_init for process..."

2000-10-09 Thread Shimon Rura
I had similar symptoms this summer while trying to build a mod_perl-enabled apache 1.3.12 on an HP-UX 10.20 box (this was with perl 5.6.0 and mod_perl probably 1.2.4). I don't think anything useful showed up in error_log, but I serendipitously found later that the test httpd *worked* when I ran t

[mod_rewrite] Remember to set your logLevel down!

2000-10-09 Thread martin langhoff
hi, I've got a 2 tier apache setup running a lightweight apache with mod_rewrite proxying *.pl requests to the heavyweight apache. I'm posting this to share a bit of practical info on how to build such a setup on a per-file basis, as the Guide only deals with per domain/directory rewritin

PerlWarn On being ignored on win32

2000-10-09 Thread Franco . Radice
Hi, I have problems having mod_perl show his warnings: setting PerlWarn to On, nothing appears into the ErrorLog. I tried to change che LogLevel down to "debug": other messages do appear, but not the perl warnings. I'm using Perl 5.6.0, mod_perl 1.24, apache 1.3.12 as localhost. The same script i

How i will set The Environment ??

2000-10-09 Thread Sambit Nanda
Hi Group Sorry to bother u again. But due to my poor knowledge i am looking for the help . I am having Web Server on solaris 2.7 SPARC , running Apache 1.3.11 + PERL + SSL + Etc. .. i am trying to install Apache::AuthCookie . when i do perl Makefile.PL it give some information on cons

RE: How tp Prevent This

2000-10-09 Thread Jason Bodnar
That'll be fixed in the next version of AuthenCache. Hopefully, due out sometime this week now that I am unemployed. On 09-Oct-2000 Sambit Nanda wrote: > Hi Friends > I Applied AuthenCache to My Apache 1.3.11 + SSL + > PERL + Etc, web Server My server is also having > AuthenSmb with it. What

PerlHandler configuration question.

2000-10-09 Thread Todd Chapman
I am servicing requests from a virtual document tree. Most of the time I want the request to be serviced by a PerlHandler module I wrote. However, if the requested filename is 'cgifile' I would rather have Apache::Registry handle the request, but since this is a virtual document tree the CGI prog

Re: mod_perl and ActiveState perl (v5.6.0 618)

2000-10-09 Thread Randy Kobes
On Mon, 9 Oct 2000, oliver wrote: > On Fri, 6 Oct 2000 15:48:20 -0500 (CDT), Randy Kobes wrote: > >It would be good to try to track this down ... > > > >- if you use a non-mod_perl apache config file, but simply > >add in a line to load ApacheModulePerl.dll, does the problem > >occur? > > Using

How tp Prevent This

2000-10-09 Thread Sambit Nanda
Hi Friends I Applied AuthenCache to My Apache 1.3.11 + SSL + PERL + Etc, web Server My server is also having AuthenSmb with it. What i found When any user sign in the user name and password goes to log file. So in my log file some line gets appended whenever any user sign in. like this [Sun

[mod_perl for ISPs] The User-mode Linux Kernel

2000-10-09 Thread Stas Bekman
In the light of the guide's section "mod_perl for ISPs" http://perl.apache.org/guide/multiuser.html There is a new project called: The User-mode Linux Kernel http://user-mode-linux.sourceforge.net/ User-Mode Linux is a safe, secure way of running Linux versions and Linux processes. Run buggy s

Re: mod_perl and ActiveState perl (v5.6.0 618)

2000-10-09 Thread oliver
On Fri, 6 Oct 2000 15:48:20 -0500 (CDT), Randy Kobes wrote: >It would be good to try to track this down ... > >- if you use a non-mod_perl apache config file, but simply >add in a line to load ApacheModulePerl.dll, does the problem >occur? Using the a stripped down httpd.conf, with just the line: