RE: [DIGEST] mod_perl digest 03/24/01

2001-03-28 Thread Geoffrey Young



 -Original Message-
 From: Gunther Birznieks [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 27, 2001 9:04 AM
 To: Geoffrey Young; '[EMAIL PROTECTED]'
 Subject: Re: [DIGEST] mod_perl digest 03/24/01
 
 
 At 08:57 AM 3/26/01 -0500, Geoffrey Young wrote:
 
 mod_perl status
 
o mod_perl
  - stable: 1.25 (released January 29, 2001) [1]
  - development: 1.25_01-dev [2]
o Apache
  - stable: 1.3.19 (released February 28, 2001) [3]
  - development: 1.3.20-dev [4]
o Perl
  - stable: 5.6 (released March 23, 2000) [5]
  - development: 5.7 [6]
 
 Is Perl 5.6 really the "stable" release? 

according to perl.com's front page 5.6 is stable and 5.7 is dev.

 I've seem some 
 discussion out of 
 the corner of my eye here about people complaining about 5.6 
 and to get 
 so-and-so latest version instead. To someone like me who 
 doesn't really use 
 5.6 specific features, I just avoid getting 5.6 altogether because of 
 seeing posts like this.
 
 Also, is 5.6 really the release that works the most stably 
 with mod_perl 
 1.25? Or would a variant of 5.005 really be better instead if people 
 complain about 5.6?
 
 I just noticed this in the digest and it started me thinking 
 about this. 
 Because if I read the digest as a newbie, I would be taking 
 it to mean that 
 if I want the most stable mod_perl server I would use Perl 5.6 with 
 mod_perl 1.25.

I suppose you could draw that conclusion.  The information I was including,
though, was merely meant to be the status of things as repored by the
various bodies.  If a newbie went to perl.com looking for the latest stable
version of perl, he would be directed to 5.6.

there have been lots of reports about 5.6 being broken, but I thought that
it was mostly a few broken features of the language rather than blanket
incompatibility with mod_perl.  I can't recall, really...

I think that short of Doug stating which version of perl he wants to endorse
with 1.25 we should go with what is the official listing on perl.com.

of course, I don't follow p5p as well as I should - if they are pretty much
pushing 5.6.1-trial (or whatever) instead of 5.6 then maybe I'll link to
that instead.  But they ought to propigate that message out to the masses, I
would think.

--Geoff

 
 



RE: [OT] ApacheCon BOF

2001-03-28 Thread Geoffrey Young

well, I am embarrassed to have to say that the sponsor who had committed to
the shirts this year bailed on us.

it has nothing to do with the contents of this thread - apparently the
product they wanted to market isn't fully baked yet and they thought that
the shirts were premature (and too costly to just give us).

a million apologies for wasting everyone's bandwidth (and trying everyone's
patience) - it's out of my control.

--Geoff




Re: [OT] ApacheCon BOF

2001-03-28 Thread darren chamberlain

Geoffrey Young ([EMAIL PROTECTED]) said something to this effect on 03/28/2001:
 well, I am embarrassed to have to say that the sponsor who had committed to
 the shirts this year bailed on us.
 
 it has nothing to do with the contents of this thread - apparently the
 product they wanted to market isn't fully baked yet and they thought that
 the shirts were premature (and too costly to just give us).

Might this be a good time to consider Cafe Press, then?

(darren)

-- 
The kind of thinking we do sets the stage for the action we are
likely to take. Because of this, a man who refuses to develop his
thinking is likely to act on the impressions made upon him by others.
-- Dr. Clause R. Baker, "Coin In The Air"




RE: [OT] ApacheCon BOF

2001-03-28 Thread Geoffrey Young



 -Original Message-
 From: darren chamberlain [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 28, 2001 8:22 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [OT] ApacheCon BOF
 
 
 Geoffrey Young ([EMAIL PROTECTED]) said something to this 
 effect on 03/28/2001:
  well, I am embarrassed to have to say that the sponsor who 
 had committed to
  the shirts this year bailed on us.
  
  it has nothing to do with the contents of this thread - 
 apparently the
  product they wanted to market isn't fully baked yet and 
 they thought that
  the shirts were premature (and too costly to just give us).
 
 Might this be a good time to consider Cafe Press, then?

as it turns out, the graphics house was actually the sponsor

them bailing means that we don't even get a design...

 
 (darren)
 
 -- 
 The kind of thinking we do sets the stage for the action we are
 likely to take. Because of this, a man who refuses to develop his
 thinking is likely to act on the impressions made upon him by others.
 -- Dr. Clause R. Baker, "Coin In The Air"
 



RE: DBD - Oracle Error connecting to Oracle

2001-03-28 Thread Geoffrey Young



 -Original Message-
 From: EXT-Sethi, Arun [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 27, 2001 10:07 PM
 To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
 Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'; 
 '[EMAIL PROTECTED]'
 Subject: DBD - Oracle "Error connecting to Oracle"
 
 
 Geoff / Daniel,
 
 this is in ref. to your emails (as given below) in the 
 "mod_perl" users group.
 
 I am going through the same errors in my error_log ie
 
 getting:
 Use of inherited AUTOLOAD for non-method 
 DBD::Oracle::ORA_OCI() is deprecated at 
 /oracle/product/9iAS/Apache/perl/lib/site_perl/5.005/PA-RISC2.
 0-thread/DBD/Oracle.pm line 48.

I was never able to figure out that exact error but I think it had something
to do with DBI trying (unsucessfully) to load DBD::Oracle twice.  That is, I
would only see it from my log handler after my content handler bombed for
the other reasons listed in the thread.  In both cases I was just use()ing
DBI and relying on DBI to pull in DBD::Oracle (however it does that)

 
 when I try to connect to oracle from aperl program from the 
 web using DBD::Oracle (1.0.3 as wel as DBD 1.0.6)
 and I have no problem connecting to oracle when I run the 
 perl program from thw shell (command line)
 
 
 It looks like you are on linux platform, and in my case I am 
 on hp-ux 11.0 box.  I am not sure if Daniel is also on linux 
 box or some other box.

I have experience with this on both solaris and linux - the below patch
helped on both platforms.
no experience on HP for me, though.

sorry

--Geoff

 
 
 I have also tried as follows but that does not help in my case
 
  the short answer/path is to edit DBD::Oracle Makefile.PL and 
 build it again
 
   -$::opt_b = 1;   # try to use Oracle's own 'build' rule
   +$::opt_b = 0;   # try to use Oracle's own 'build' rule
 
 
 Question:
 
 I would appreciate to know if there is some thing I am 
 missing or if this is some bug in DBD:Oracle (1.03/1.0.6) on 
 HP-UX or any other information that can help me 
 resolve/workaround this problem.
 
 
 
 thanks
 Arun
 
 
 
[snip]



/dev/null problems

2001-03-28 Thread Matthew Kennedy

Hello,

From the mod_perl guide:

  syntax error at /dev/null line 1, near "line arguments:"
  Execution of /dev/null aborted due to compilation errors.
  parse: Undefined error: 0
  There is a chance that your /dev/null device is broken. Try:
  % sudo echo  /dev/null

This is exactly the problem I have been getting when starting Apache
mod_perl, however the suggested fix does not work for me. We're on a
HPUX 11 machine. Is there another way to solve this problem? As I
understand it, if /dev/null is being used as the $0 argument to the
handler, perhaps I could somehow explicitly set it to another (empty)
file? How would I go about that?

Does anyone have any suggestions?

Thanks,

Matt




mod_perl based Authentication ...

2001-03-28 Thread Sumit Babu

Hi,
I am very new to mod_perl, and would like to know
if there are any pointers that provide help/examples
for authentication for web sites. Although I am
familiar with the cgi scripting, I have not written
any kind of authentication on my own. So, if somebody
can give some good pointers to this it will be of
great help to me. 

Thanks for your time and help. I have joined this list
of-late and I am sorry if this is answered earlier.

Regards,

Sumit/

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text



RE: [OT] ApacheCon BOF

2001-03-28 Thread Robin Berjon

At 08:29 28/03/2001 -0500, Geoffrey Young wrote:
 From: darren chamberlain [mailto:[EMAIL PROTECTED]]
 Might this be a good time to consider Cafe Press, then?

as it turns out, the graphics house was actually the sponsor
them bailing means that we don't even get a design...

But if there _was_ some good artwork, would Cafe Press (or any similar
service) be a possible option ? I'd need to discuss this with my partners,
but if it is seen as a viable way to have shirts, and if there is a hole
somewhere in one of the graphic guys' planning, it would be possible for us
to provide the artwork (perhaps against a small mention in a corner).

-- robin b.
Give a man a fish and he will eat for a day. Teach him how to fish, and he
will sit in a boat  drink beer all day.




Re: mod_perl based Authentication ...

2001-03-28 Thread Mike Cameron

Try this

http://search.cpan.org/search?mode=modulequery=Apache%3A%3AAuth

I found browsing existing code and implementing existing modules really
helps a guy understand the whole process.


Sumit Babu wrote:

 Hi,
 I am very new to mod_perl, and would like to know
 if there are any pointers that provide help/examples
 for authentication for web sites. Although I am
 familiar with the cgi scripting, I have not written
 any kind of authentication on my own. So, if somebody
 can give some good pointers to this it will be of
 great help to me.

 Thanks for your time and help. I have joined this list
 of-late and I am sorry if this is answered earlier.

 Regards,

 Sumit/

 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail.
 http://personal.mail.yahoo.com/?.refer=text




Re: [OT] ApacheCon BOF

2001-03-28 Thread Randal L. Schwartz

 "Geoffrey" == Geoffrey Young [EMAIL PROTECTED] writes:

 Might this be a good time to consider Cafe Press, then?

Geoffrey as it turns out, the graphics house was actually the sponsor

Geoffrey them bailing means that we don't even get a design...

If it's designs you want, I could probably get Stonehenge's graphic
house to contribute the design.  Same guy that did the new Stonehenge
logo and the "knife" brochure last year.  He's very good.

Especially if it's my "mod_perl: over 42 billion served" idea. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
[EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



Re: mod_perl based Authentication ...

2001-03-28 Thread Carlos Ramirez


You can also read the Authentication  Authorization chapter of the
"Writing Apache Modules with Perl
and C" book online: http://www.modperl.com/book/chapters/ch6.html
Or even better, buy the book ;)
-Carlos
Mike Cameron wrote:
Try this
http://search.cpan.org/search?mode=modulequery=Apache%3A%3AAuth
I found browsing existing code and implementing existing modules really
helps a guy understand the whole process.
Sumit Babu wrote:
> Hi,
> I am very new to mod_perl, and would like
to know
> if there are any pointers that provide help/examples
> for authentication for web sites. Although I am
> familiar with the cgi scripting, I have not written
> any kind of authentication on my own. So, if somebody
> can give some good pointers to this it will be of
> great help to me.
>
> Thanks for your time and help. I have joined this list
> of-late and I am sorry if this is answered earlier.
>
> Regards,
>
> Sumit/>
>
> __
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/?.refer=text

--
---
Carlos Ramirez + Boeing + Reusable Space Systems + 714.372.4181
---
# ifconfig eth0.net "Carlos Ramirez" netmask 255.255.255.0 up
# route add -net smtp [EMAIL PROTECTED]
# route add -net http http://www.roses.bna.boeing.com/~ramirezc



File upload bug

2001-03-28 Thread Tomas Eriksson



When I try to upload big files (small files works) 
an error occurs and script page cannot be displayed.

Error log:
[Wed Mar 28 19:31:57 2001] [error] [client 
127.0.0.1] Invalid method in request 
-7d11a539304ee

Seems like the posting data is at the wrong place 
or something.

(using Perl-5.6.0, mod_perl-1.23, and Apache_1.3.12 
on win2k)



is this the right place to post stuff like 
this..?

kind regards
Tomas


Re: mod_perl based Authentication ...

2001-03-28 Thread Sumit Babu

Hi,

Thank you Mike and Carlos for your early replay. 

I am trying to install Apache::AuthCookie from CPAN,
but I am getting the following error (during make test
stage) and I am not able to get what is wrong here:
---
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/local/perl/5.6.0/lib/i686-linux
-I/usr/local/perl/5.6.0/lib -e 'use Te
st::Harness qw(runtests $verbose); $verbose=0;
runtests @ARGV;' t/*.t
t/real..ok 1/12[Thu Mar 29 00:10:32 2001]
[error] Can't load
'/usr/local/perl/5.6.0/site_lib/i686-linux/auto/Apache/Apache.so'
for module Apache:
/usr/local/perl/5.6.0/site_lib/i686-linux/auto/Apache/Apache.so:
undefined symbol: mod_perl_set_opmask at
/usr/local/perl/5.6.0/lib/i686-linux/DynaLoader.pm
line 200.
 at
/usr/local/perl/5.6.0/site_lib/i686-linux/mod_perl.pm
line 14
Compilation failed in require at (eval 2) line 3.
---

The following is the configuration I am using:
Apache - 3.1.19
mod_perl - 1.25 ( compiled with EVERYTHING=1)
Linux - Redhat 6.2

Regards

Sumit/

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text



DBD - Oracle Error connecting to Oracle

2001-03-28 Thread EXT-Sethi, Arun

Geoff / Daniel,

this is in ref. to your emails (as given below) in the "mod_perl" users group.

I am going through the same errors in my error_log ie

getting:
Use of inherited AUTOLOAD for non-method DBD::Oracle::ORA_OCI() is deprecated at 
/oracle/product/9iAS/Apache/perl/lib/site_perl/5.005/PA-RISC2.0-thread/DBD/Oracle.pm 
line 48.

when I try to connect to oracle from aperl program from the web using DBD::Oracle 
(1.0.3 as wel as DBD 1.0.6)
and I have no problem connecting to oracle when I run the perl program from thw shell 
(command line)


It looks like you are on linux platform, and in my case I am on hp-ux 11.0 box.  I am 
not sure if Daniel is also on linux box or some other box.


I have also tried as follows but that does not help in my case

 the short answer/path is to edit DBD::Oracle Makefile.PL and build it again

  -$::opt_b = 1;   # try to use Oracle's own 'build' rule
  +$::opt_b = 0;   # try to use Oracle's own 'build' rule


Question:

I would appreciate to know if there is some thing I am missing or if this is some bug 
in DBD:Oracle (1.03/1.0.6) on HP-UX or any other information that can help me 
resolve/workaround this problem.



thanks
Arun



To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED], [EMAIL PROTECTED] 
Subject: DBD-Oracle and mod_perl 
From: Geoffrey Young [EMAIL PROTECTED] 
Date: Wed, 26 Jul 2000 08:27:06 -0400 
Delivered-To: [EMAIL PROTECTED] 
Delivered-To: mailing list [EMAIL PROTECTED] 
list-help: mailto:[EMAIL PROTECTED] 
list-post: mailto:[EMAIL PROTECTED] 
list-unsubscribe: mailto:[EMAIL PROTECTED] 
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm 



hi everyone...

I was just wondering if anyone has been able to get the newer releases of
DBD-Oracle to work under mod_perl?

that is, using DBD-Oracle 1.04, 1.05, and 1.06, under perl 5.005 (RH6.0
standard) and DBI-1.14 I get consistently non-working results, but only when
running under mod_perl.  If I revert to 1.03, all is fine again...

I was getting these errors before the conference, but wanted to investigate
further.  Yesterday I rolled my own perl 5.6 ( with -Dusethreads) and
rebuilt everything, mod_perl, DBI, DBD::Oracle, etc.  Still the same
results...

basically, I get the following errors on a simple connect and 'select
sysdate from dual':

use DBD::Oracle;  
# results in:
# Can't load
'/usr/local/lib/perl5/site_perl/5.6.0/i686-linux-thread-multi/auto/DBD/Oracl
e/Oracle.so' for module DBD::Oracle: libclntsh.so.1.0: cannot open shared
object file: No such file or directory at
/usr/local/lib/perl5/5.6.0/i686-linux-thread-multi/DynaLoader.pm line 200.
 at /usr/local/apache/perl-bin/dbtest.pl line 9

letting DBI load DBD::Oracle itself, my trace looks like this:
 DBI 1.14-nothread dispatch trace level set to 6
- DBI-connect(dbi:Oracle:HELM, www, , HASH(0x86e040c))
- DBI-install_driver(Oracle) for perl=5.006 pid=3393 ruid=99 euid=99

and that's all, but the script manages to release control of the phase,
because I use a cleanup handler to log to (a different) database, which then
gets:
- DBI-connect(dbi:Oracle:PORTAL, porter, , HASH(0x8480178))
- DBI-install_driver(Oracle) for perl=5.006 pid=3393 ruid=99 euid=99
   install_driver: DBD::Oracle loaded (version 1.06)
Use of inherited AUTOLOAD for non-method DBD::Oracle::ORA_OCI() is
deprecated at
/usr/local/lib/perl5/site_perl/5.6.0/i686-linux-thread-multi/DBD/Oracle.pm
line 48.
Use of uninitialized value.

of course, the same script running from shell runs just fine (with the three
mod_perl related lines removed, of course), both use()ing DBD::Oracle and
without.

anyway, it's probably just me. I don't have a problem with DBD::Oracle 1.03
so it's no biggie but I wanted to point it out, just in case...

--Geoff


   -Original Message
-
   From: Daniel Hutchison [mailto:[EMAIL PROTECTED]]
   Sent: Sunday, October 22, 2000 2:16 PM
   To: [EMAIL PROTECTED]
   Subject: DBD-Oracle
   
   
   I just transplanted our website from a computer that had only Net8
   installed, to a computer that has an entire Oracle Database 
   installed.  As
   far as I can tell I otherwise fully replicated the original 
   system on the
   new machine.
   
   These errors are appearing in error_log:
   
   [Sun Oct 22 14:03:49 2000] Carp.pm: Use of uninitialized value at
   /usr/local/lib/perl5/5.6.0/Carp.pm
 line 119.
   [Sun Oct 22 14:03:49 2000] Carp.pm: Use of inherited AUTOLOAD 
   for non-method
 DBD::Oracle::ORA_OCI() is
   deprecated at

   /usr/local/lib/perl5/site_perl/5.6.0/i686-linux/DBD/Oracle.pm line 48.
   
   I've done a search on the web that return this that seems to 
   indicate the
   AUTOLOAD error has something to do with LD_LIBRARY_PATH, but 
   my I have set
 

Prob with configuring CGI.

2001-03-28 Thread Vikram Hari Deshmukh


Hi , 

Well I have started with CGI, 2 days back. But some aspects makes me confused.
I am having Apache server over Redhat linux 6.2.

I put my .cgi files in proper directory configured in access.conf,
to, /home/httpd/cgi-bin

Group access set in httpd.conf is none.

Access rights set to 755 to all .cgi files.

If I execute perl -cw something.cgi,
It gives message as Syntax OK.

If I execute perl something.cgi 
over command prompt, the scipt gets executed.

Now problem is some of these scripts when called thr' 
browser gets executed, but others wont.
Those scripts which cannot be executed successfully over 
browser, gives error message as,
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to 
complete your request."

And the funniest part is, those which called thr' browser, gives error, can execute 
over command prompt 
successfully.
Also there is no Qn of wrong URL. Because some of other CGIs execute properly, which 
are in the same 
directory, as these are.

I can show you this script for a CGI, which cannot be executed over browser,

#!/usr/bin/perl

print "Content-type:text/html\n\n";
print "htmlheadtitleTest Page/title/head";
print "bodyh2Hello World/h2/body";
print "/html\n";

But the same code with different .cgi filename, in the same directory executes. Both 
are having same access rights.

As well setting in access.conf is,
# /home/httpd/cgi-bin should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
# Options ExecCGI - +ExecCGI *** BY VIKRAM  -  This setting I found from one site
# Added AddHandler cgi-script .cgi *** BY VIKRAM  -  This setting I found from one 
site 

Directory /home/httpd/cgi-bin

AllowOverride None
Options +ExecCGI
AddHandler cgi-script .cgi   

/Directory
 
Also there is one more setting in srm.conf, is
# To use CGI scripts:
# Uncommented the following line
AddHandler cgi-script .cgi

Do I need anything other than this ? 

waiting for your reply,

from,
vikram.

_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com







Prob with configuring CGI.

2001-03-28 Thread Vikram Hari Deshmukh


Hi , 

Well I have started with CGI, 2 days back. But some aspects makes me confused.
I am having Apache server over Redhat linux 6.2.

I put my .cgi files in proper directory configured in access.conf,
to, /home/httpd/cgi-bin

Group access set in httpd.conf is none.

Access rights set to 755 to all .cgi files.

If I execute perl -cw something.cgi,
It gives message as Syntax OK.

If I execute perl something.cgi 
over command prompt, the scipt gets executed.

Now problem is some of these scripts when called thr' 
browser gets executed, but others wont.
Those scripts which cannot be executed successfully over 
browser, gives error message as,
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to 
complete your request."

And the funniest part is, those which called thr' browser, gives error, can execute 
over command prompt 
successfully.
Also there is no Qn of wrong URL. Because some of other CGIs execute properly, which 
are in the same 
directory, as these are.

I can show you this script for a CGI, which cannot be executed over browser,

#!/usr/bin/perl

print "Content-type:text/html\n\n";
print "htmlheadtitleTest Page/title/head";
print "bodyh2Hello World/h2/body";
print "/html\n";

But the same code with different .cgi filename, in the same directory executes. Both 
are having same access rights.

As well setting in access.conf is,
# /home/httpd/cgi-bin should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
# Options ExecCGI - +ExecCGI *** BY VIKRAM  -  This setting I found from one site
# Added AddHandler cgi-script .cgi *** BY VIKRAM  -  This setting I found from one 
site 

Directory /home/httpd/cgi-bin

AllowOverride None
Options +ExecCGI
AddHandler cgi-script .cgi   

/Directory
 
Also there is one more setting in srm.conf, is
# To use CGI scripts:
# Uncommented the following line
AddHandler cgi-script .cgi

Do I need anything other than this ? 

waiting for your reply,

from,
vikram.

_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com







Help with Apache::ASP

2001-03-28 Thread Sean Coyle

Alright guys, do I have an interesting question:

Let us start with the output that ends up in the browser, if I try and load
the ./eg/index.htm page:

--
#!/usr/local/bin/perl5 asp
--

Then the output to browser when I load the ./eg/index.html page:

--
#!/usr/local/bin/perl5 asp = $#keys; $i++) { if($i  $half) { push(@col1,
$keys[$i]); } else { push(@col2, $keys[$i]); } } $Response-Debug('col1',
\@col1, 'col2', \@col2); $title = 'Example ASP Scripts'; %

"; next; } next unless $_-[0]; # last col / last row # clean up the
descriptions $_-[1] =~ s/\s*\.\s*$//s; $_-[1] .= '.'; %
[0]%[0]% [0] =~ /\.(htm|asp|ssi|xml)$/) { %  ([0]%source)
[1]%
--

It almost seems to me, like ASP is half working, half not.

Keep in mind these are just the example scripts that come with the package.
And, as far as I know, everything was installed 100% correctly from the CPAN
sources.

Any Ideas?

Cheers,

Sean




Help with Apache::ASP (new Information)

2001-03-28 Thread Sean Coyle

Well, I did the Apache::ASP instal again from the straigh .tar.gz file and
this is the output that I get from the install (usless information has been
removed where ever you see "~~").  So what does it mean when the tests
say "Can't call method "FETCH" on an undefined value at
blib/lib/Apache/ASP.pm"? :


Apache-ASP-2.09/~~

  CPAN.pm: Going to build C/CH/CHAMAS/Apache-ASP-2.09.tar.gz

Checking for the prerequisite modules...
 ... found Apache !
 ... found Carp !
 ... found Data::Dumper !
 ... found Fcntl !
 ... found HTTP::Date !
 ... found MD5 !
 ... found MLDBM !
 ... found SDBM_File !

Checking for the optional modules...
 ... found Apache::Filter !
 ... found Apache::SSI !
 ... found CGI !
 ... found Compress::Zlib !
 ... found DB_File !
 ... found Devel::Symdump !
 ... found HTML::Clean !
 ... found HTML::FillInForm !
 ... found Net::Config !
 ... found Net::SMTP !
 ... found Tie::Cache !
 ... found Time::HiRes !
 ... found XML::XSLT !
Looks good!

Writing Makefile for Apache::ASP
mkdir blib~~

cp ASP.pm blib/lib/Apache/ASP.pm
cp lib/Bundle/Apache/ASP.pm blib/lib/Bundle/Apache/ASP.pm
Manifying blib/man3/Apache::ASP.3
Manifying blib/man3/Bundle::Apache::ASP.3
  /usr/bin/make  -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/local/lib/perl5/5.6.0/ppc-linux -I/usr/local/lib/perl5/5.6.0 -e 'use
Test::Harness qw(runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/application...(in cleanup) Can't call method "FETCH" on an
undefined value at blib/lib/Apache/ASP.pm line 4280 during global
destruction.
t/application...ok
t/collection(in cleanup) Can't call method "FETCH" on an
undefined value at blib/lib/Apache/ASP.pm line 4280 during global
destruction.
t/collectionok
t/collectionitem(in cleanup) Can't call method "FETCH" on an
undefined value at blib/lib/Apache/ASP.pm line 4280 during global
destruction.
t/collectionitemok
t/general...(in cleanup) Can't call method "FETCH" on an
undefined value at blib/lib/Apache/ASP.pm line 4280 during global
destruction.
t/general...ok
t/include...(in cleanup) Can't call method "FETCH" on an
undefined value at blib/lib/Apache/ASP.pm line 4280 during global
destruction.
t/include...ok
t/loops.(in cleanup) Can't call method "FETCH" on an
undefined value at blib/lib/Apache/ASP.pm line 4280 during global
destruction.
t/loops.ok
t/request...(in cleanup) Can't call method "FETCH" on an
undefined value at blib/lib/Apache/ASP.pm line 4280 during global
destruction.
t/request...ok
t/response..(in cleanup) Can't call method "FETCH" on an
undefined value at blib/lib/Apache/ASP.pm line 4280 during global
destruction.
t/response..ok
t/server(in cleanup) Can't call method "FETCH" on an
undefined value at blib/lib/Apache/ASP.pm line 4280 during global
destruction.
t/serverok
t/session...(in cleanup) Can't call method "FETCH" on an
undefined value at blib/lib/Apache/ASP.pm line 4280 during global
destruction.
t/session...ok
t/xmlsubs...(in cleanup) Can't call method "FETCH" on an
undefined value at blib/lib/Apache/ASP.pm line 4280 during global
destruction.
t/xmlsubs...ok
All tests successful.
Files=11, Tests=84, 85 wallclock secs (67.11 cusr +  3.63 csys = 70.74 CPU)
  /usr/bin/make test -- OK
Running make install
Skipping /usr/local/lib/perl5/site_perl/5.6.0/Bundle/Apache/ASP.pm
(unchanged)
Skipping /usr/local/lib/perl5/site_perl/5.6.0/Apache/ASP.pm (unchanged)
Installing /usr/local/man/man3/Apache::ASP.3
Installing /usr/local/man/man3/Bundle::Apache::ASP.3
Writing 
/usr/local/lib/perl5/site_perl/5.6.0/ppc-linux/auto/Apache/ASP/.packlist
Appending installation info to
/usr/local/lib/perl5/5.6.0/ppc-linux/perllocal.pod
  /usr/bin/make install  -- OK


--
Alright guys, do I have an interesting question:

Let us start with the output that ends up in the browser, if I try and load
the ./eg/index.htm page:

--
#!/usr/local/bin/perl5 asp
--

Then the output to browser when I load the ./eg/index.html page:

--
#!/usr/local/bin/perl5 asp = $#keys; $i++) { if($i  $half) { push(@col1,
$keys[$i]); } else { push(@col2, $keys[$i]); } } $Response-Debug('col1',
\@col1, 'col2', \@col2); $title = 'Example ASP Scripts'; %

"; next; } next unless $_-[0]; # last col / last row # clean up the
descriptions $_-[1] =~ s/\s*\.\s*$//s; $_-[1] .= '.'; %
[0]%[0]% [0] =~ /\.(htm|asp|ssi|xml)$/) { %  ([0]%source)
[1]%
--

It almost seems to me, like ASP is half working, half not.

Keep in mind these are just the example scripts that come with the package.
And, as far as I know, everything was installed 100% correctly from the CPAN
sources.

Any Ideas?

Cheers,

Sean




RE: Getting a Cache::SharedMemoryCache started

2001-03-28 Thread Rob Bloodgood

Thanks for the pointers, unfortunately I've got a problem with the Shared
 cache in that I need IPC::ShareLite, no problem, except it won't test ok,
 I get:

 PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
 -I/usr/lib/perl5/i386-linux -I/usr/lib/perl5 test.pl
 1..8
 ok 1
 ok 2
 IPC::ShareLite store() error: Identifier removed at test.pl line 33

It took me forever, but I finally figured out HOW to deal w/ share memory!
As in, what is the status, what can I change, how can I make garbage go
away?

On Linux (and Solaris, probably others) there is a program called ipcs(8).
This will give you a listing of all shared memory segments, message queues,
and semaphore arrays.

An example (Linux):
-- Shared Memory Segments 
keyshmid owner perms bytes nattchstatus
0x00280267 1 root  644   1048576   0

-- Semaphore Arrays 
key   semid owner perms nsems status
0x00280269 0 root  666   14

-- Message Queues 
key   msqid owner perms used-bytes  messages


NOW, if I wanted to make these go away (AFTER checking that nothing critical
is actually USING these segments!), I would use the companion program
ipcrm(8).

ipcrm shm 1
ipcrm sem 0

the shm 1 line corresponds to the lines above that show shmid 1 under shared
memory.  Likewise, the sem 0 is for the semaphore w/ semid 0.  See the
manpages!

Anyway, whenever I've seen that message, it means that something is barfing
in shared memory.  Usually, something got left behind instead of being
cleaned up.  A quick removal usually takes care of it.   BUT!!!  Don't do
something silly (and dangerous) like deleting ORACLE's shared memory
segments, while it's running.  Fortunately, ipcs(8) shows the owners of
shared memory segments, so this should be reasonable simple to identify.

Hope this helps!

(is this OT? :-)

L8r,
Rob




[OT] RE: Getting a Cache::SharedMemoryCache started

2001-03-28 Thread Matt

Hi all,

I eventually found the problem with getting shm to work. I had the
Openwall Linux kernel patch enabled with the "Destroy shared memory
segments not in use" option set, which most Perl IPC functions seem to not
like. Apache and PostgreSQL seem to work fine with this patch in place,
however. Removed the option, and IPC::ShareLite compiles and tests fine so
my SharedMemoryCache now works as exampled.

Thanks

Matt






RE: [BUG-REPORT] missing header (minor)

2001-03-28 Thread Rob Bloodgood

 Version: Apache/1.3.12 (Unix) mod_perl/1.24
 What: PerlAuthenHandler returns headers without WWW-Authenticate field
 Work-around: set with $r-err_header_out

It looks like you haven't fully read the book/docs/manpages/samples for auth
handling.
*All* of the code for Basic auth (i.e. browser based user/password from the
popup dialog) handlers have the following snippet:

$r-note_basic_auth_failure;
return AUTH_REQUIRED;

as in:

  # get username  password
  (my $res, $sent_pw) = $r-get_basic_auth_pw;
  return $res if $res != OK;
  $user = $r-connection-user;

  # need both username  password
  unless ( $user  $sent_pw) {
$r-note_basic_auth_failure;
return AUTH_REQUIRED;
  }

From http_protocol.h:
 * note_basic_auth_failure arranges for the right stuff to be scribbled on
 * the HTTP return so that the client knows how to authenticate itself the
 * next time. As does note_digest_auth_failure for Digest auth.
 *
 * note_auth_failure does the same thing, but will call the correct one
 * based on the authentication type in use.

The C API works the same way.  From src/modules/standard/mod_auth.c:

ap_note_basic_auth_failure(r);
return AUTH_REQUIRED;

AND, the actual function ap_note_basic_auth_failure, from Apache's
http_protocol.c:
   API_EXPORT(void) ap_note_basic_auth_failure(request_rec *r)
   {
/* sanity checks here*/

ap_table_setn(r-err_headers_out,
  r-proxyreq ? "Proxy-Authenticate" : "WWW-Authenticate",
  ap_pstrcat(r-pool, "Basic realm=\"", ap_auth_name(r),
"\"",
  NULL));
   }

which in mod_perl would be:
$r-err_header_out( $r-proxyreq ? "Proxy-Authenticate" :
"WWW-Authenticate",
  "Basic realm=" . $r-auth_name );

which looks alot like your workaround. :-)

L8r,
Rob




Re: mod_perl 1.25 install crashes with IBM HTTP Server 1.3.12.2 on AIX 4.3.3

2001-03-28 Thread G.W. Haywood

Hi there,

On Tue, 27 Mar 2001, Mohammed Azam wrote:

 I am trying to install mod perl 1.25 on my aix machine.

 I am using
   -- AIX 4.3.3
   -- IBM HTTP Server 1.3.12.2

Get the latest Apache, I think 1.3.12 is too old to work with
mod_perl 1.25.

73,
Ged.




Re: mod_perl based Authentication ...

2001-03-28 Thread G.W. Haywood

Hi there,

On Wed, 28 Mar 2001, Sumit Babu wrote:

 I am trying to install Apache::AuthCookie from CPAN,
 but I am getting the following error (during make test
 stage) and I am not able to get what is wrong here:
 ---
 [error] Can't load
 '/usr/local/perl/5.6.0/site_lib/i686-linux/auto/Apache/Apache.so'

Either the shared object can't be loaded, or something it's trying to
do when it initializes is failing.

Is it actually there?

73,
Ged.





Re: /dev/null problems

2001-03-28 Thread G.W. Haywood

Hi there,

On 28 Mar 2001, Matthew Kennedy wrote:

 From the mod_perl guide:
 
   syntax error at /dev/null line 1, near "line arguments:"

 This is exactly the problem I have been getting when starting Apache

 Does anyone have any suggestions?

Have you checked to make sure that your /dev/null is really broken?
My feeling is that this is unlikely.  The symptom might indicate that
something is not configured correctly but there's no information to 
work with.

73,
Ged.





RE: /dev/null problems

2001-03-28 Thread Rob Bloodgood

 From the mod_perl guide:

   syntax error at /dev/null line 1, near "line arguments:"
   Execution of /dev/null aborted due to compilation errors.
   parse: Undefined error: 0
   There is a chance that your /dev/null device is broken. Try:
   % sudo echo  /dev/null

 This is exactly the problem I have been getting when starting Apache
 mod_perl, however the suggested fix does not work for me. We're on a
 HPUX 11 machine. Is there another way to solve this problem? As I
 understand it, if /dev/null is being used as the $0 argument to the
 handler, perhaps I could somehow explicitly set it to another (empty)
 file? How would I go about that?

I've never seen this to be an actual /dev/null problem.  I've seen this in
HTML::EmbPerl and Apache::Registry, where the "/dev/null" is what gets put
in $0 when mod_perl has lost track of the original filename (and line 1
because it forget WHERE it was, too :-).

According to the sample:
   syntax error at /dev/null line 1, near "line arguments:"
   Execution of /dev/null aborted due to compilation errors.
   parse: Undefined error: 0

Which says to me that one of your (scripts/server-parsed pages/modules) has
the string "line arguments:" in it, and there is a syntax error near there.

So (for example, on my Linux system):
find /home/httpd /etc/httpd/lib/perl -type f -exec grep -l 'line arguments:'
{} \;

the result should show you which file to fix.

HTH!

L8r,
Rob




Re: /dev/null problems

2001-03-28 Thread Matthew Kennedy

On 28 Mar 2001 21:33:51 +0100, G.W. Haywood wrote:
 Hi there,
 
 Have you checked to make sure that your /dev/null is really broken?
 My feeling is that this is unlikely.  The symptom might indicate that
 something is not configured correctly but there's no information to 
 work with.


As Kee wrote in the thread, removing /dev/null and re-creating it worked
for me. I did check /dev/null before I fixed it -- it did seem to have
the right major/minor numbers.






Re: Running Mod-Perl on Solaris 2.8

2001-03-28 Thread G.W. Haywood

Hi there,

On Tue, 27 Mar 2001, Melissa Matthews wrote:

 We have installed mod_perl-1.25 under apache-1.3.14 and Solaris 8,

 Whenever I browse my test page www.my.com/perl/test.pl, I
 get a Netscape pop-up message stating:
 
   "The document contained no data. 

This often indicates that a child segfaulted.

 The apache error_log provides the message:
 
[date/time] [notice] child pid 19616 exit signal Segmentation Fault (11)"

Yup.

 All the evidence leads me to assume that their is something basic that I am
 missing.

A LoadModule directive?

73,
Ged.




RE: /dev/null problems

2001-03-28 Thread Matthew Kennedy

On 28 Mar 2001 12:42:46 -0800, Rob Bloodgood wrote:
 
 According to the sample:
syntax error at /dev/null line 1, near "line arguments:"
Execution of /dev/null aborted due to compilation errors.
parse: Undefined error: 0
 
 Which says to me that one of your (scripts/server-parsed pages/modules) has
 the string "line arguments:" in it, and there is a syntax error near there.

That "line arguments:" string will throw you off -- each time I tried
restarting the server I'd see different junk in it's place (debug
messages from various daemons mostly). It was almost as if /dev/null had
decided to be a FIFO for some reason.






RE: [OT] ApacheCon BOF

2001-03-28 Thread julie wang

HI,

Just wondering, can someone buy these t-shirt online somewhere if they can't
attend ApacheCon?

Why hasn't anyone made tanktops for the ladies?

-Original Message-
From: Geoffrey Young [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 12:53 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: RE: [OT] ApacheCon BOF




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 28, 2001 11:17 AM
 To: Geoffrey Young
 Cc: 'darren chamberlain'; '[EMAIL PROTECTED]'
 Subject: Re: [OT] ApacheCon BOF


  "Geoffrey" == Geoffrey Young [EMAIL PROTECTED] writes:

  Might this be a good time to consider Cafe Press, then?

 Geoffrey as it turns out, the graphics house was actually the sponsor

 Geoffrey them bailing means that we don't even get a design...

 If it's designs you want, I could probably get Stonehenge's graphic
 house to contribute the design.  Same guy that did the new Stonehenge
 logo and the "knife" brochure last year.  He's very good.

 Especially if it's my "mod_perl: over 42 billion served" idea. :)

since I'm not coordinating the actual delivery (like I did last year), if
someone else wants to go about subsidizing a design and throwing it over to
Cafe Press I'm game...

go nuts :)

--Geoff




Re: /dev/null problems

2001-03-28 Thread Steve Reppucci


Not answering your mod_perl question here, but I believe this
suggestion in the guide isn't useful advice in any event -- 
this isn't 'echo'ing to /dev/null as su (root); rather it's 'echo'ing
a line as su, and you (normal user) are redirecting that output to 
/dev/null.

I.e., the grouping of that command is like so (yeah, I know, this is
in no way intended to be real shell syntax, just to show the
semantics...):

(sudo echo)  /dev/null

rather than:

sudo (echo /dev/null)

Not sure what is trying to be accomplished by either of these, but in
the interests of clarity in the guide, I think this ought to be either
corrected or removed entirely.  I'll volunteer to make the changes, if
someone can clarify exactly what the intended result is.

Stas? What do you say? Am I missing something here?

Steve Reppucci


On 28 Mar 2001, Matthew Kennedy wrote:

 Hello,
 
 From the mod_perl guide:
 
   syntax error at /dev/null line 1, near "line arguments:"
   Execution of /dev/null aborted due to compilation errors.
   parse: Undefined error: 0
   There is a chance that your /dev/null device is broken. Try:
   % sudo echo  /dev/null
 
 This is exactly the problem I have been getting when starting Apache
 mod_perl, however the suggested fix does not work for me. We're on a
 HPUX 11 machine. Is there another way to solve this problem? As I
 understand it, if /dev/null is being used as the $0 argument to the
 handler, perhaps I could somehow explicitly set it to another (empty)
 file? How would I go about that?
 
 Does anyone have any suggestions?
 
 Thanks,
 
 Matt
 

-- 
=-=-=-=-=-=-=-=-=-=-  My God!  What have I done?  -=-=-=-=-=-=-=-=-=-=
Steve Reppucci   [EMAIL PROTECTED] |
Logical Choice Software  http://logsoft.com/ |





RE: [Very OT] ApacheCon BOF

2001-03-28 Thread Paul


--- julie wang [EMAIL PROTECTED] wrote:
[...]
 Why hasn't anyone made tanktops for the ladies?

T-tops! woo-hoo!

Actually, I really do think it's a great idea. =o)

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text



mod_perl BOF

2001-03-28 Thread Dave Rolsky

Why was this scheduled during Matt Sergeant's AxKit presentation?

Why not during a time slot when there are no mod_perl presentations?

This is not rocket science here.


-dave

/*==
www.urth.org
We await the New Sun
==*/




Re: Running Mod-Perl on Solaris 2.8

2001-03-28 Thread Jonathan Gardner

On Wed, 28 Mar 2001, G.W. Haywood wrote:
 Hi there,
 
 On Tue, 27 Mar 2001, Melissa Matthews wrote:
 
  We have installed mod_perl-1.25 under apache-1.3.14 and Solaris 8,
 
  Whenever I browse my test page www.my.com/perl/test.pl, I
  get a Netscape pop-up message stating:
  
  "The document contained no data. 
 
 This often indicates that a child segfaulted.
 
  The apache error_log provides the message:
  
 [date/time] [notice] child pid 19616 exit signal Segmentation Fault (11)"
 
 Yup.

I had a problem with XML::Parser, which seg faulted only when run from apache.
It may be a similar problem, perhaps? Expat has caused problems for many...
Walk through your script and see where it seg faults, if it seg faults in the
script...

-- 
Jonathan Gardner
[EMAIL PROTECTED]
(425)820-2244 x123




apache config error

2001-03-28 Thread swapnau

hi ,
I have installed Apache 1.3.12 and mod_perl 1.24 on redhat linux 7.0 with Perl5.6 .
 But getting the following error while configuring the httpd.conf file . Pl help me.
error

Canot locate loadable object for module Apache::Constants in @INC( @INC contains 
/usr/loacl/lib/perl5/5.6.0/i686-linux ...etc)at 
/usr/loacl/lib/perl5/site_perl/5.6.0/i686-linux/mod_perl.pm  line no 14.

Compilation failed in require at 
/usr/loacl/lib/perl5/site_perl/5.6.0/i686-linux/Apache.pm line 6

Thanks


__
123India.com - India's Premier Portal 
Get your Free Email Account at http://www.123india.com





Re: ASP / Apache

2001-03-28 Thread Victor Michael Blancas

I've been using Apache::ASP for our clients for more than a year already.
Check out www.alumni.net, it's one of our biggest clients, all pages are
dynamic, database backend is Oracle via DBI.

I'm planning to implement a DBI session management integrated with
Apache::ASP, much like how Apache::Session works. Is this better for
clustered web servers with a single database server or do I just nfs mount
a shared directory and put the global directory there? Anyone doing this
already or do I just install Apache::Session and use its DBI session
management? Thanks.

On Tue, 27 Mar 2001, Joshua Chamas wrote:

 Samuel Lellouche wrote:
 
  I'm planning on porting a website w/ ASP pages, from an IIS server, to
  an Apache Server...
 

 Well the model is similar, but there is no support for VBScript.
 I'd be happy to give a go a writing a VBScript emulation layer
 which could help your port but I'll need a site's source to base
 my work on, will you volunteer yours?

  Does Apache::ASP work well ?
 

 Yes.  It has the original ASP API mostly implemented, as
 well as extra features like:

   More Events http://www.apache-asp.org/events.html
   Custom Tags w/XMLSubs   http://www.apache-asp.org/xml.html
   HTML Compressionhttp://www.apache-asp.org/config.html#CompressGzip
   Auto FormFill   http://www.apache-asp.org/config.html#FormFill
   Site Errors Emailed http://www.apache-asp.org/config.html#MailErrorsTo
   Cookieless Sessions http://www.apache-asp.org/config.html#Cookieless%20Sessions

 Its also very fast, you can download a benchmark suite
 I wrote for comparing Apache development environments at:

   http://www.chamas.com/bench/hello.tar.gz

 Note the h2000 benchmarks are more indicative of real world
 performance, as it tries to measure the runtime speed.

  Does Anyone have good experiences whit it ?
 

 Yes, I'm the author so I'm biased.  You might contact
 admins running the sites listed at:

   http://www.apache-asp.org/sites.html

 Skip chamas.com  nodeworks.com as those are my sites.

  Does Apache::ASP interacts with SQLServer or MySql ?
 

 Check out this faq on database support:

   http://www.apache-asp.org/faq.html#How%20is%20database%20connectivity%20handled%3F

 Also note that DBD::Sybase is probably the way to go to
 get to a MS SQLServer.  They both share a common code
 base, and that driver is reputed to work.  Lots of
 people use DBD::mysql, including myself, and its very
 fast.  Should you got that route DBD::Oracle is
 very robust.

 Best of luck.

 --Josh

 _
 Joshua Chamas Chamas Enterprises Inc.
 NodeWorks  free web link monitoring Huntington Beach, CA  USA
 http://www.nodeworks.com1-714-625-4051


-- 
Mike




Re: ASP / Apache

2001-03-28 Thread Perrin Harkins

On Thu, 29 Mar 2001, Victor Michael Blancas wrote:
 I'm planning to implement a DBI session management integrated with
 Apache::ASP, much like how Apache::Session works.

Might as well just use Apache::Session, if it already does what you need.

 Is this better for clustered web servers with a single database server
 or do I just nfs mount a shared directory and put the global directory
 there?

In general, a good database will give you better performance and
scalability than NFS.  NFS gets clunky when you need locking and
synchronization.  However, a relatively small site should do fine on NFS.  
Since NFS-shared sessions already work with Apache::ASP, you could try it,
benchmark it for your expected traffic, and then decide.

- Perrin




Re: Help with Apache::ASP

2001-03-28 Thread Joshua Chamas

Sean Coyle wrote:
 
 Alright guys, do I have an interesting question:
 
 Let us start with the output that ends up in the browser, if I try and load
 the ./eg/index.htm page:
 
 --
 #!/usr/local/bin/perl5 asp
 --
 
 Then the output to browser when I load the ./eg/index.html page:
 
 --
 #!/usr/local/bin/perl5 asp = $#keys; $i++) { if($i  $half) { push(@col1,
 $keys[$i]); } else { push(@col2, $keys[$i]); } } $Response-Debug('col1',

This is an FAQ ( you are not alone! ), check out:

 http://www.apache-asp.org/faq.html#Installation
 http://www.apache-asp.org/install.html#Quick%20Start

--Josh

_
Joshua Chamas   Chamas Enterprises Inc.
NodeWorks  free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com1-714-625-4051



Re: ASP / Apache

2001-03-28 Thread Joshua Chamas

Victor Michael Blancas wrote:
 
 I've been using Apache::ASP for our clients for more than a year already.
 Check out www.alumni.net, it's one of our biggest clients, all pages are
 dynamic, database backend is Oracle via DBI.
 
 I'm planning to implement a DBI session management integrated with
 Apache::ASP, much like how Apache::Session works. Is this better for
 clustered web servers with a single database server or do I just nfs mount
 a shared directory and put the global directory there? Anyone doing this
 already or do I just install Apache::Session and use its DBI session
 management? Thanks.
 

Until I've writting a native Apache::ASP database session layer, 
I'd recommend setting up a shared StateDir on a samba mount/CIFS
share, which supports flock() semantics, unlike linux NFS.  

Also, you could set up a $Session variable in your global.asa
Script_OnStart using Apache::Session.  Just set NoState 1,
or AllowApplicationState 0, so the ASP $Session won't get created.
With an Apache::Session session, you do not get Session_OnEnd
and Session_OnStart events.

You can get away with NFS for a low volume app, about 40 writes
per seconds in testing before internal session data starts getting 
lost, but you will lose $Session-Lock()  SessionSerialize 
functionality.

--Josh

_
Joshua Chamas   Chamas Enterprises Inc.
NodeWorks  free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com1-714-625-4051



Re: Help with Apache::ASP (new Information)

2001-03-28 Thread Joshua Chamas

 t/application...(in cleanup) Can't call method "FETCH" on an
 undefined value at blib/lib/Apache/ASP.pm line 4280 during global
 destruction.

The global destruction errors are annoying, but harmless.
I believe this is specific to perl 5.6, which I have not
yet installed.  Its about time I take that great leap!

-- Josh

_
Joshua Chamas   Chamas Enterprises Inc.
NodeWorks  free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com1-714-625-4051


Sean Coyle wrote:
 
 Well, I did the Apache::ASP instal again from the straigh .tar.gz file and
 this is the output that I get from the install (usless information has been
 removed where ever you see "~~").  So what does it mean when the tests
 say "Can't call method "FETCH" on an undefined value at
 blib/lib/Apache/ASP.pm"? :
 
 Apache-ASP-2.09/~~
 
   CPAN.pm: Going to build C/CH/CHAMAS/Apache-ASP-2.09.tar.gz
 
 Checking for the prerequisite modules...
  ... found Apache !
  ... found Carp !
  ... found Data::Dumper !
  ... found Fcntl !
  ... found HTTP::Date !
  ... found MD5 !
  ... found MLDBM !
  ... found SDBM_File !
 
 Checking for the optional modules...
  ... found Apache::Filter !
  ... found Apache::SSI !
  ... found CGI !
  ... found Compress::Zlib !
  ... found DB_File !
  ... found Devel::Symdump !
  ... found HTML::Clean !
  ... found HTML::FillInForm !
  ... found Net::Config !
  ... found Net::SMTP !
  ... found Tie::Cache !
  ... found Time::HiRes !
  ... found XML::XSLT !
 Looks good!
 
 Writing Makefile for Apache::ASP
 mkdir blib~~
 
 cp ASP.pm blib/lib/Apache/ASP.pm
 cp lib/Bundle/Apache/ASP.pm blib/lib/Bundle/Apache/ASP.pm
 Manifying blib/man3/Apache::ASP.3
 Manifying blib/man3/Bundle::Apache::ASP.3
   /usr/bin/make  -- OK
 Running make test
 PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
 -I/usr/local/lib/perl5/5.6.0/ppc-linux -I/usr/local/lib/perl5/5.6.0 -e 'use
 Test::Harness qw(runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
 t/application...(in cleanup) Can't call method "FETCH" on an
 undefined value at blib/lib/Apache/ASP.pm line 4280 during global
 destruction.
 t/application...ok
 t/collection(in cleanup) Can't call method "FETCH" on an
 undefined value at blib/lib/Apache/ASP.pm line 4280 during global
 destruction.
 t/collectionok
 t/collectionitem(in cleanup) Can't call method "FETCH" on an
 undefined value at blib/lib/Apache/ASP.pm line 4280 during global
 destruction.
 t/collectionitemok
 t/general...(in cleanup) Can't call method "FETCH" on an
 undefined value at blib/lib/Apache/ASP.pm line 4280 during global
 destruction.
 t/general...ok
 t/include...(in cleanup) Can't call method "FETCH" on an
 undefined value at blib/lib/Apache/ASP.pm line 4280 during global
 destruction.
 t/include...ok
 t/loops.(in cleanup) Can't call method "FETCH" on an
 undefined value at blib/lib/Apache/ASP.pm line 4280 during global
 destruction.
 t/loops.ok
 t/request...(in cleanup) Can't call method "FETCH" on an
 undefined value at blib/lib/Apache/ASP.pm line 4280 during global
 destruction.
 t/request...ok
 t/response..(in cleanup) Can't call method "FETCH" on an
 undefined value at blib/lib/Apache/ASP.pm line 4280 during global
 destruction.
 t/response..ok
 t/server(in cleanup) Can't call method "FETCH" on an
 undefined value at blib/lib/Apache/ASP.pm line 4280 during global
 destruction.
 t/serverok
 t/session...(in cleanup) Can't call method "FETCH" on an
 undefined value at blib/lib/Apache/ASP.pm line 4280 during global
 destruction.
 t/session...ok
 t/xmlsubs...(in cleanup) Can't call method "FETCH" on an
 undefined value at blib/lib/Apache/ASP.pm line 4280 during global
 destruction.
 t/xmlsubs...ok
 All tests successful.
 Files=11, Tests=84, 85 wallclock secs (67.11 cusr +  3.63 csys = 70.74 CPU)
   /usr/bin/make test -- OK
 Running make install
 Skipping /usr/local/lib/perl5/site_perl/5.6.0/Bundle/Apache/ASP.pm
 (unchanged)
 Skipping /usr/local/lib/perl5/site_perl/5.6.0/Apache/ASP.pm (unchanged)
 Installing /usr/local/man/man3/Apache::ASP.3
 Installing /usr/local/man/man3/Bundle::Apache::ASP.3
 Writing
 /usr/local/lib/perl5/site_perl/5.6.0/ppc-linux/auto/Apache/ASP/.packlist
 Appending installation info to
 /usr/local/lib/perl5/5.6.0/ppc-linux/perllocal.pod
   /usr/bin/make install  -- OK




ANNOUCE: HTML::Mason 1.01

2001-03-28 Thread Jonathan Swartz

The URL

http://www.masonhq.com/download/HTML-Mason-1.01.tar.gz

has entered CPAN as

  file: $CPAN/authors/id/J/JS/JSWARTZ/HTML-Mason-1.01.tar.gz
  size: 272936 bytes
   md5: 6275b2717355dfb2f09c46d38135de93

Most notably, this release introduces the ability to configure Mason
entirely from the httpd.conf. Simple sites will no longer need to create a
separate handler.pl script.

Jon

Other changes in 1.01:
  - Revamped ApacheHandler tests to use a real Apache web server and
  mod_perl (assuming this is installed).  This allows for much better
  testing of Mason.  However, the test suite takes a bit longer to run
  as starting and stopping the server can take a second or two each
  time.
  - ** Fixed handling of POST requests with query strings via CGI.pm;
  the query string arguments were previously ignored, and are now merged
  with POST arguments. This is an incompatible change only for those
  whose code relied on the arguments missing.
  - Added basic validation of arguments to Parser, Interp,
  and ApacheHandler constructors.
  - Added interp-die_handler, allowing you to install your own
  subroutine as $SIG{__DIE__} to catch errors during component
  execution.  Alternately, you can simply turn the special error
  handling off.  L{Interp/die_handler}
  - Added interp-use_dhandlers and interp-use_autohandlers, more
  intuitive ways to turn on/off dhandlers and autohandlers.
  - Eliminated interp-verbose_compile_error, which is no longer needed
  and has not worked for some time.
  - Wrapped each component call in eval, allowing us to simplify the
  request stack code.  No visible user change.
  - Documented that you cannot call return() from a %shared or %once
  section.  (reported by Paolo Campanella)
  - Fixed documentation of escaped newline behavior.
  - Fixed incorrect code for using mod_perl args method in
  eg/session_handler.pl.




RE: mod_perl BOF

2001-03-28 Thread Geoffrey Young

-Original Message-
From: Dave Rolsky
To: mod_perl list
Sent: 3/28/01 6:08 PM
Subject: mod_perl BOF

Why was this scheduled during Matt Sergeant's AxKit presentation?

I dunno.  Stas asked me to reserve a slot for it.  I didn't specify a time
so this is what we got I guess.


Why not during a time slot when there are no mod_perl presentations?

Absolutely.  I've CC'd the ApacheCon planners so hopefully they can step in
and fix things.

--Geoff


This is not rocket science here.


-dave



RE: mod_perl BOF

2001-03-28 Thread Dave Rolsky

On Wed, 28 Mar 2001, Geoffrey Young wrote:

 Absolutely.  I've CC'd the ApacheCon planners so hopefully they can step in
 and fix things.

Doh, I should've done this in the first place.  I ended up mailing Stewart
Quealy separately.  Sorry for everyone who's seeing this multiple times.


-dave

/*==
www.urth.org
We await the New Sun
==*/




Re: Help with Apache::ASP!

2001-03-28 Thread Sean Coyle

Josh,

I am not entirely sure that is the issue here.  Just to cover off all
the bases, I am familiar with the FAQ, and several others.  However, it is
actually not unparsed ASP that I am viewing in the browser output, but
seemingly partially parsed output.

Within one of my VirtualHost directives I have this enabled (tried
enabled/disabled, and made no difference):

VirtualHost 64.69.78.221
DocumentRoot /home/httpd/www/omail
ServerName admin.worldvibe.org
ServerPath /omail
ScriptAlias /cgi-bin/ "/usr/local/cgi-bin/"
Directory /
Options FollowSymLinks
AllowOverride All
/Directory
CustomLog /var/log/httpd/mailadmin_log common
/VirtualHost

I have even gone so far as to enable that as a global (as you can see from
the example below:

Directory /
Options FollowSymLinks
#AllowOverride None
AllowOverride All
/Directory

In case anyone is wondering, I am performing an apachectl restart after each
httpd.conf change, and making sure to clear browser cache before attempting
a reload on the page.  Basically, everything I have tried has failed
miserably..  (lol)

The exact contents can be found at http://admin.worldvibe.org/eg/ this is
the eg directory that comes with Apache-ASP-2.09  (oh, and I have tried 2.07
as well with the same amount of success.

Any ideas anyone?  BTW, I am not a list member, so please send all replies
CC'd to me, thanks.

Sean


On 3/28/01 5:13 PM, "Joshua Chamas" [EMAIL PROTECTED] wrote:

 Sean Coyle wrote:
 
 Alright guys, do I have an interesting question:
 
 Let us start with the output that ends up in the browser, if I try and load
 the ./eg/index.htm page:
 
 --
 #!/usr/local/bin/perl5 asp
 --
 
 Then the output to browser when I load the ./eg/index.html page:
 
 --
 #!/usr/local/bin/perl5 asp = $#keys; $i++) { if($i  $half) { push(@col1,
 $keys[$i]); } else { push(@col2, $keys[$i]); } } $Response-Debug('col1',
 
 This is an FAQ ( you are not alone! ), check out:
 
 http://www.apache-asp.org/faq.html#Installation
 http://www.apache-asp.org/install.html#Quick%20Start
 
 --Josh
 
 _
 Joshua ChamasChamas Enterprises Inc.
 NodeWorks  free web link monitoringHuntington Beach, CA  USA
 http://www.nodeworks.com1-714-625-4051
 




Re: Help with Apache::ASP!

2001-03-28 Thread Sean Coyle

Guys,

One more thing to note...  I get the exact same output even if I turn
off the Directory options in either of the two httpd.conf areas I have
tried.

Have any ideas on what I am missing?

Cheers,

Sean


Josh,

I am not entirely sure that is the issue here.  Just to cover off all
the bases, I am familiar with the FAQ, and several others.  However, it is
actually not unparsed ASP that I am viewing in the browser output, but
seemingly partially parsed output.

Within one of my VirtualHost directives I have this enabled (tried
enabled/disabled, and made no difference):

VirtualHost 64.69.78.221
DocumentRoot /home/httpd/www/omail
ServerName admin.worldvibe.org
ServerPath /omail
ScriptAlias /cgi-bin/ "/usr/local/cgi-bin/"
Directory /
Options FollowSymLinks
AllowOverride All
/Directory
CustomLog /var/log/httpd/mailadmin_log common
/VirtualHost

I have even gone so far as to enable that as a global (as you can see from
the example below:

Directory /
Options FollowSymLinks
#AllowOverride None
AllowOverride All
/Directory

In case anyone is wondering, I am performing an apachectl restart after each
httpd.conf change, and making sure to clear browser cache before attempting
a reload on the page.  Basically, everything I have tried has failed
miserably..  (lol)

The exact contents can be found at http://admin.worldvibe.org/eg/ this is
the eg directory that comes with Apache-ASP-2.09  (oh, and I have tried 2.07
as well with the same amount of success.

Any ideas anyone?  BTW, I am not a list member, so please send all replies
CC'd to me, thanks.

Sean


On 3/28/01 5:13 PM, "Joshua Chamas" [EMAIL PROTECTED] wrote:

 Sean Coyle wrote:
 
 Alright guys, do I have an interesting question:
 
 Let us start with the output that ends up in the browser, if I try and load
 the ./eg/index.htm page:
 
 --
 #!/usr/local/bin/perl5 asp
 --
 
 Then the output to browser when I load the ./eg/index.html page:
 
 --
 #!/usr/local/bin/perl5 asp = $#keys; $i++) { if($i  $half) { push(@col1,
 $keys[$i]); } else { push(@col2, $keys[$i]); } } $Response-Debug('col1',
 
 This is an FAQ ( you are not alone! ), check out:
 
 http://www.apache-asp.org/faq.html#Installation
 http://www.apache-asp.org/install.html#Quick%20Start
 
 --Josh
 
 _
 Joshua ChamasChamas Enterprises Inc.
 NodeWorks  free web link monitoringHuntington Beach, CA  USA
 http://www.nodeworks.com1-714-625-4051
 




Re: mod_perl BOF

2001-03-28 Thread Matt Sergeant

On Wed, 28 Mar 2001, Dave Rolsky wrote:

 Why was this scheduled during Matt Sergeant's AxKit presentation?
 
 Why not during a time slot when there are no mod_perl presentations?
 
 This is not rocket science here.

I'm creating my own "Beer BOF", every night in the hotel bar. You and Stas
(and any other non-drinkers) are welcome, of course :-)

-- 
Matt/

/||** Founder and CTO  **  **   http://axkit.com/ **
   //||**  AxKit.com Ltd   **  ** XML Application Serving **
  // ||** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources: http://take23.org  **
 \\//
 //\\
//  \\




Installing new modules via CPAN?

2001-03-28 Thread Bolt Thrower

I've got a working mod_perl installation on a Linux 2.2.14 /
Apache/1.3.17 (Unix) mod_perl/1.25 / perl 5.005_03 machine.  I'm trying
to install Apache::AuthCookieDBI via my CPAN shell, and I keep getting
errors of the sort:

Can't locate object method "module" via package "Apache" at
/usr/lib/perl5/site_perl/5.005/Apache/DBI.pm line 202.

It seems that something doesn't like the Apache-module() call, which
wouldn't be available unless it's actually in a mod_perl environment.  

So how am I supposed to install Apache::AuthCookieDBI via the CPAN
shell?

Thanks,
-- 
Steve Chadsey [EMAIL PROTECTED]
"And when you walk in golden halls, you get to keep the gold that falls"
-- Black Sabbath, "Heaven and Hell"



ANNOUNCE: HTML::Embperl 2.0b2

2001-03-28 Thread Gerald Richter

The second beta of Embperl 2.0 is now available from

ftp://ftp.dev.ecos.de/pub/perl/embperl/HTML-Embperl-2.0b2.tar.gz

The main news are the support for interactive debuggers and the possibility
to use different syntaxes (Embperl, SSI, ASP, pure Perl, Text only etc.)
along with various bugfixes.

Embperl is a system for building dynamic websites with Perl.
It gives you the power to embed Perl code in your HTML documents
and the ability to build your Web site out of small reusable objects in
an object-oriented style. You can also take advantage of all the
usual Perl modules, (including DBI for database access) use their
functionality and easily include their output in your web pages.

Embperl has several features which are especially useful for creating
HTML, including dynamic tables, form field processing, URL
escaping/unescaping, session handling, and more.

See http://perl.apache.org/embperl/ (english) or
http://www.ecos.de/embperl/ (german) for more information.

For all Embperl 1.x users here is a sumary of the difference of Embperl 2.0:

Hints for using Embperl 2.x
---

Embperl 2 has a totaly rewritten core. It contains nearly 7500 lines
new (mostly C-) code. Also I have done a lot of testing, there may
be still undiscovered bugs!

Please report any weired behaviour to the embperl mailing list, but
be sure to read this whole README to understand what can't work so far.

The Embperl core now works in a totaly different way. It is divided into
smaller steps:

1 reading the source
2 parseing
3 compiling
4 executing
5 outputing

Further version will allow to replace every single step of this pipeline
with custom modules. Also it will be possible to cascade multiple
processors. This allows for example to have Embperl and SSI in one file
and to parse the file only once, feeding it first to the SSI processor and
afterwards to the Embperl processor. Also the parser will be exchangeable
in future version to allow for example to use an XML parser and an
XSLT stylesheet processor.

These new execution scheme is also faster, because html tags and
metacommands
are parsed only once (Perl code was also (and is still) cached in 1.x)
My first benchmarks show 50%-100% faster execution under mod_perl for pages
longer then 20K (For short pages (  5K ouput) you won't see such a great
difference)
and without any external database access.

Another new feature is that the syntax of the Embperl parser is defined
within the module HTML::Embperl::Syntax and can be modified as nessecary.
Embperl comes with a set syntax definitons which can be extened modified by
the user. So far there are syntaxdefinitions for SSI, Text only, Perl only,
ASP and a Mail taglib. You can tell Embperl which syntax to use either in
the configuration via EMBPERL_SYNTAX, or with the syntax parameter of
Execute or you change the syntax dynamicly inside the page via the
[$syntax   $] command. You also could specify more then one syntax at the
same
time e.g. [$syntax Embperl SSI $] to mix Embperl tags and SSI tags in the
same
page.

If you like to create your own syntax read

perldoc HTML::Embperl::Syntax

and look at the files under Embperl/Syntax/ for examples how to do it.

Also new is the possibility to cache (parts of) the output. See
for the new configuration directives below


Debugging
-

Starting with 2.0b2 Embperl files can debugged via the interavtive debugger.
The debugger shows the Embperl page source along with the correct
linenumbers.
You can do anything you can do inside a normal Perl programm via the
debugger,
e.g. show variables, modify variables, single step, set breakpoints etc.

You can use the Perl interacive command line debugger via

perl -d embpexec.pl file.epl

or if you prefer a graphical debugger, try ddd
(http://www.gnu.org/software/ddd/)
it's a great tool, also for debugging any other perl script:

ddd --debugger 'perl -d embpexec.pl file.epl'


NOTE: embpexec.pl could be found in the Embperl source directory

If you want to debug your pages, while running under mod_perl, Apache::DB is
the
right thing. Apache::DB is available from CPAN.


The following difference to Embperl 1.x apply:
--

- The following options can currently only set from the httpd.conf:
 optRawInput, optKeepSpaces

- The following options are currently not supported:
 optDisableHtmlScan, optDisableTableScan,
 optDisableInputScan, optDisableMetaScan

  optDisableHtmlScan can be replaced by switching the syntax e.g.

  [$syntax EmbperlBlocks $]  # same as [- $optDisableHtmlScan = 1 -]

  here goes your code, Embperl will not interpret any html tags here

  [$syntax Embperl $]# same as [- $optDisableHtmlScan = 0 -]


- Nesting must be properly. I.e. you cannot put a table tag (for an
  dynamic table) inside an if and the /table inside another if.
  (That still works for static tables)

- optUndefToEmptyValue is always set and