location not working

2001-01-10 Thread robert_abarbanel



Following the beginners directions in Stein and MacEachern(SM),

I have built mod_perl 1.24_01for apache 1.3.14 on AIX.
I checked the perl.conf is being read.

My perl.conf contains: (according to page 31 of SM)
(Note: I have changed less-than to [ so that html-style mail and newreaders will
show the symbol.)
[Location /hello/world
 SetHandler perl-script
 PerlHandler Apache::Hello
[/Location

and I have Hello.pm in /usr/local/apache/lib/perl/Apache

all according to SM instruction.


NEVERTHELESS, I get 404 when I enter
 http://myserver//hello/world
and it is looking in the htdocs directory according to the error_log.

httpd -l
shows we are running with mod_perl.c, and putting a
syntax error in startup.pl confirms that we are reading that file.

All the directory are rwx and the files are all readable.


What am I doing wrong?






Re: location not working

2001-01-10 Thread G.W. Haywood

Hi there,

On Wed, 10 Jan 2001 [EMAIL PROTECTED] wrote:

 SM

I'd never looked at it that way before...

 (Note: I have changed less-than to [ so that html-style mail and
 newreaders will show the symbol.)

You don't have to worry about that on this List.

 I get 404 when I enter
  http://myserver//hello/world
 and it is looking in the htdocs directory according to the error_log.

What happens if you try

http://myserver/hello/world

?

73,
Ged.




Re: How to recognize server shutdown?

2001-01-10 Thread G.W. Haywood

Hi Dave,

On Wed, 10 Jan 2001, Dave Rolsky wrote:

 Is there any way to distinguish between a child being shutdown (say
 maxrequests has been exceeded) versus all of Apache going down (kill
 signal sent to the original process or something).

Don't you get a message in error_log to the effect that a signal has
been received?

73,
Ged.





Réf. : Re: location not working

2001-01-10 Thread robert_abarbanel

Good question. That was just an extra '/' in my email.
I really did just use
http://myserver/hello/world






"G.W. Haywood" [EMAIL PROTECTED] le 01/10/2001 10:15:17 AM

Pour :Robert ABARBANEL/exterieur@FRANCE
cc :  [EMAIL PROTECTED]
Objet :   Re: location not working



Hi there,

On Wed, 10 Jan 2001 [EMAIL PROTECTED] wrote:

 SM

I'd never looked at it that way before...

 (Note: I have changed less-than to [ so that html-style mail and
 newreaders will show the symbol.)

You don't have to worry about that on this List.

 I get 404 when I enter
  http://myserver//hello/world
 and it is looking in the htdocs directory according to the error_log.

What happens if you try

http://myserver/hello/world

?

73,
Ged.








Re: Installing mod_perl-1.24_01 w/o super user and with global perl

2001-01-10 Thread Alexander Farber (EED)

John D Groenveld wrote:
  No, I know how to use the modules in my home dir well enough.
 
 I don't see where you set PREFIX=/home/eedalf/lib/perl per perlfaq8. Are
 you sure you read it?

John, you are very correct - thanks! I was in fact missing the PREFIX.

perl Makefile.PL APACHE_PREFIX=/home/eedalf/apache PREFIX=/home/eedalf \
APACHE_SRC=/home/eedalf/src/apache_1.3.14 DO_HTTPD=1 USE_APACI=1 EVERYTHING=1

has installed everything cleanly into my home dir.

Regards
Alex

PS: The "make test" failed however on Solaris 2.6:

[...skipped...]

=== src
cp t/conf/mod_perl_srm.conf t/conf/srm.conf
../apache_1.3.14/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t 
httpd listening on port 8529
will write error_log to: t/logs/error_log
letting apache warm up...\c
done
/opt/local/perl-5.6.0/bin/perl t/TEST 0
modules/actions.ok   
modules/cgi.ok   
modules/constants...ok   
modules/cookie..ok   
modules/fileok   
modules/httpdconf...ok   
modules/include.ok   
modules/log.ok   
modules/module..skipped test on this platform
modules/perlrun.ok   
modules/psections...ok   
modules/request.ok   
modules/src.ok   
modules/ssi.ok   
modules/status..Internal Server Error
modules/status..dubious  
Test returned status 9 (wstat 2304, 0x900)
DIED. FAILED tests 8-10
Failed 3/10 tests, 70.00% okay

[...skipped...]

internal/taint..ok   
Failed Test  Status Wstat Total Fail  Failed  List of failed
---
modules/status.   9  2304103  30.00%  8-10
2 tests skipped.
httpd terminated
Failed 1/34 test scripts, 97.06% okay. 5/436 subtests failed, 98.85% okay.
*** Error code 29
make: Fatal error: Command failed for target `run_tests'

But maybe just some module was missing... That's a bit
strange, because I have Devel::Symdump installed in my 
home (and PERL5LIB points to it):

perl -M'Devel::Symdump' -e 1



Apache::Registry newbie question -- CGI state

2001-01-10 Thread robert_abarbanel

I am trying to implement Example 2-14 in Stein and MacEachern.
Here's my code:

#!/usr/bin/perl
# file: hello.cgi
use CGI qw(:standard);
use strict;
my $name = param('name') || 'Anonymous';
print header(),start_html(-title='Yo!', -bgcolor='yellow'),
  h1("Hello $name"),
  p(  "To change your name, enter it into the text field below and press",
em("change name.") ),

  start_form(),
"Name: ",
textfield(-name='name', -value='Anonymous'),
submit(-value='Change Name'),
  end_form(),

  hr(),
  end_html();

It works once -- BUT -- the value entered after the first appearance with
'Anonymous',
sticks and never changes
despite submitting the form again and again.

I thought that each invocation via CGI would change the value of param('name')?
I understand the code has been compiled once and is now running thru
Apache::Registry.
Nevertheless, shouldn't new param() values be visable?







corba mod_perl

2001-01-10 Thread Jesús Lasso Sánchez



Hello,

 anybody knows where can I get information 
about work with corba and mod_perl?

thanks
Jesús
__Jesús 
Lasso - Ya.com Internet Factory[EMAIL PROTECTED] - www.globalya.comTfno: +34 
912917675


Re: location not working

2001-01-10 Thread Glorfindel

Hi all,

Is your Apache::Hello loaded?
( look at perl-status )

If not

Replace PerlHandler Apache::Hello
By  perlHandler +Apache::Hello

Is your handler perform an internal_redirect?


[EMAIL PROTECTED] wrote:

 Following the beginners directions in Stein and MacEachern(SM),

 I have built mod_perl 1.24_01for apache 1.3.14 on AIX.
 I checked the perl.conf is being read.

 My perl.conf contains: (according to page 31 of SM)
 (Note: I have changed less-than to [ so that html-style mail and newreaders will
 show the symbol.)
 [Location /hello/world
  SetHandler perl-script
  PerlHandler Apache::Hello
 [/Location

 and I have Hello.pm in /usr/local/apache/lib/perl/Apache

 all according to SM instruction.

 NEVERTHELESS, I get 404 when I enter
  http://myserver//hello/world
 and it is looking in the htdocs directory according to the error_log.

 httpd -l
 shows we are running with mod_perl.c, and putting a
 syntax error in startup.pl confirms that we are reading that file.

 All the directory are rwx and the files are all readable.

 What am I doing wrong?

--
Don't be irreplaceable, if you can't be replaced, you can't be promoted.






RE: How do you run libapreq-0.31/eg/perl/file_upload.pl

2001-01-10 Thread Geoffrey Young



 -Original Message-
 From: Gerd Kortemeyer [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 09, 2001 6:43 PM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: How do you run libapreq-0.31/eg/perl/file_upload.pl
 

 
 might help the browser to figure out that the first page is 
 over. Also, if
 nothing helps, send an explicit no-cache in the header:
 
 $r-content_type('text/html');
 $r-header_out('Cache-control','no-cache');
 $r-header_out('Pragma','no-cache');
 $r-send_http_header;

all of that can be accomplished with 
  $r-no_cache(1);
  $r-send_http_header('text/html');

--Geoff

 
 - Gerd.
 



Unsubscribe Instructions

2001-01-10 Thread Vaughn Staples

What is the proper method to unsubscribe from the modperl list?

Thanks,
- Vaughn






RE: difference in 123, 124 = 124_01

2001-01-10 Thread Geoffrey Young



 -Original Message-
 From: Michael [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 09, 2001 5:47 PM
 To: [EMAIL PROTECTED]
 Subject: difference in 123, 124 = 124_01
 
 
 In upgrading to 1.24_01 I notice some warnings when the apache starts 
 that I don't remember being present.
 
 Specifically resulting from the inclusion of perl handlers i.e.
 
   PerlRequire /usr/local/apache/libhandlers/client23.pm
 
 where the identical handler is used for both http and https service
 

PerlRequire is not the standard way to load a pm - try using PerlModule or a
proper startup.pl instead...

--Geoff



Re: corba mod_perl

2001-01-10 Thread Matt Sergeant

On Wed, 10 Jan 2001, Jess Lasso Snchez wrote:

 Hello,

   anybody knows where can I get information about work with corba and
 mod_perl?

Its just like working with corba and ordinary perl. Try a search on
http://search.cpan.org for CORBA. If you're on linux you probably want to
check out CORBA::ORBit, which seems to be pretty good (and fast too).

-- 
Matt/

/||** Director and CTO **
   //||**  AxKit.com Ltd   **  ** XML Application Serving **
  // ||** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** Personal Web Site: http://sergeant.org/ **
 \\//
 //\\
//  \\




Re: corba mod_perl

2001-01-10 Thread John Edstrom

=?iso-8859-1?Q?Jes=FAs_Lasso_S=E1nchez?=

 Hello,
 
   anybody knows where can I get information about work with corba and =
 mod_perl?
 

The only Perl CORBA I know of is COPE.  It didn't work with mod_perl
the last time that I checked, about a year ago. 

http://www.lunatech.com/research/corba/

There is another COPE here:

http://www.ve3tla.ampr.org/~irving/

I don't know the current status of either project.

 thanks
 Jes=FAs
 __
 Jes=FAs Lasso - Ya.com Internet Factory
 [EMAIL PROTECTED] - www.globalya.com
 Tfno: +34 912917675
 

-- 
 John Edstrom | edstrom @ teleport.com



Apache::DBI and deleting temporary tables (Sybase ASE)

2001-01-10 Thread Alexander Farber (EED)

Hi,

I have read
http://perl.apache.org/guide/debug.html#Handling_the_User_pressed_Stop_
but still don't know the best solution for my problem:

I would like to port a bigger CGI-script to mod_perl.
This script uses DBD::Sybase and creates few temporary
tables (#temp1, #temp2) which are filled with some data,
manipulated and finally read out with a join. These
temporary tables are deleted automatically when the 
database connection is closed. However if I move from 
DBI to Apache::DBI, the connection won't be closed and 
the temporary tables will stay.

So what is the best way to handle it? I could add

  drop table #temp1
  drop table #temp2

to the SQL statements of my script, but what happens if
the user presses STOP or the script times out? Should I
move this SQL-code to $r-register_cleanup()? Isn't it
too much for this handler and will it always be executed? 

Or is it possible to use transactions/$dbh-commit somehow?

Also offtopic question: is it possible in Transact-SQL to
check if a table #temp1 exists already?

Regards
Alex



RE: Can't get DBI to work with mod_perl

2001-01-10 Thread Geoffrey Young



 -Original Message-
 From: Joe Grastara [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 09, 2001 7:02 PM
 To: [EMAIL PROTECTED]
 Subject: Can't get DBI to work with mod_perl
 

 I'm having trouble getting a script that uses the DBI module 
 to work under
 mod_perl. It works fine at the command line or as a normal cgi script.
[snip]
 
 #!/usr/local/bin/perl
  
 use strict; 
 use DBI; 
 use CGI
 qw(:standard); 
  
 ###Set Local Environmental Variable for Oracle###
  
 $ENV{"ORACLE_HOME"} = "/db/"; 

this should be done from a BEGIN block, exported globally in /etc/profile,
or as a PerlSetVar in httpd.conf  - DBD::Oracle needs it at compile time.
It may be in your local .profile, but apache usually runs as user nobody...

   
 ###Print out some HTML###
  
 print HTML_1;  
 Content-type: text/html\n
  
 html head titlePh Lookup/title /head body bgcolor=white
  HTML_1

this may be a typo, but HTML_1 has to be the at the start of the line - no
spaces...

if you are using a recent version of DBD::Oracle on linux and see an error
that has to do with libclntsh.so check out 
http://forum.swarthmore.edu/epigone/modperl/grahsehspor

other than that, DBI-trace and perl.apache.org/guide is your friend :)

--Geoff

 



building perl, Apache, mod_perl (on NT) with mod_perl built into Apache

2001-01-10 Thread John Poirier


I am looking for a jump start building perl, Apache,  mod_perl (on NT) with
mod_perl built into Apache.
My task is to find out how to build the latest versions perl 5.6.0, Apache
1.3.14 and mod_perl 1.24_01.

I have down loaded the sources from www.perl.com, www.apache.org and
perl.apache.org.
(Master Source distribution - Release http://perl.apache.org/dist)
I realize that NT is not yet a supported platform but we need to support it
(dam customers).
The binaries available are not the most recent.  We want to be able to stay
current and run the same version on all platforms we support.

All seemed to go well until mod_perl.
I run the makefile.pl with EVERYTHING=1 APACHE_PREFIX=c:/apache.
makefiles are generated but, those makefile do not produce apache or
mod_perl.

If I build mod_perl by using the ApacheModulePerl.dsp (with some tweeking) I
do get a DLL that appears to load, at least there are no errors reported,
But what I want is to build mod_perl into Apache.

OK hear it comes, HELP

I am new to Apache, perl web development. My first experience with this
environment was last November.
I have been unable to find any information so far searching the web sites,
books or the mailing lists.

Can any one point me to the resources I will need to work through this?
What are the issues in building mod_perl into apache for the NT platform?
What is the benefit of building mod_perl into Apache as opposed to using a
DLL?
Obviously it is possible to do this if  Jeffrey Baker can produce a binary
distribution for NT.

Any information will be greatly appreciated.

Regards
John Poirier





RE: Apache::Registry newbie question -- CGI state

2001-01-10 Thread Geoffrey Young



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 10, 2001 6:01 AM
 To: [EMAIL PROTECTED]
 Subject: Apache::Registry newbie question -- CGI state
 
 
 I am trying to implement Example 2-14 in Stein and MacEachern.
 Here's my code:
 
 #!/usr/bin/perl
 # file: hello.cgi
 use CGI qw(:standard);
 use strict;

I don't ever user CGI.pm, but aren't you forgetting to create a new CGI
object in here?

 my $name = param('name') || 'Anonymous';


HTH

--Geoff



Re: location not working

2001-01-10 Thread Bill Moseley

At 09:59 AM 01/10/01 +0100, [EMAIL PROTECTED] wrote:
NEVERTHELESS, I get 404 when I enter
 http://myserver//hello/world
and it is looking in the htdocs directory according to the error_log.

Can you please post the entire error_log message.




Bill Moseley
mailto:[EMAIL PROTECTED]



Re: Apache::DBI problem and writting a perl module!!!

2001-01-10 Thread R. K . Mallah


I faced the same problem and had posted similar email
but I found an workaround that is there in the posting.


I get following error when i do
perl -e 'use Apache::Status;use Apache::DBI'
Can't locate object method "module" via package "Apache" at /usr/lib/perl5/site_perl/5.6.0/Apache/DBI.pm
line 202.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

the problem is when preparing menu_item for Apache::Status method
module is
not found under Apache,
do i have to install some other Apache module?
anyway i commented out the if part and made it work like
Apache::Status->menu_item(
 'DBI' => 'DBI connections',
 sub {
 my($r,
$q) = @_;
 my(@s)
= qw(TABLE>TR>TD>Datasource/TD>TD>Username/TD>/TR>);
 for (keys
%Connected) {

push @s, 'TR>TD>', join('/TD>TD>', (split($;, $_))[0,1]),
"/TD>/TR>\n";
 }
 push @s,
'/TABLE>';
 return
\@s;
 }
);
# ) if ($INC{'Apache.pm'} and Apache->module('Apache::Status'));

is it correct ?
why shouldn't it load without any modifications ?
Regards
Mallah



--
Rajesh Kumar Mallah,
Learning Universe Pvt. Ltd,
Piccadily House, 4th Floor,
275-276, Capt. Gaur Marg,
Okhla, Sriniwas puri,
New Delhi 110 065.
M : +919811255597
T : 91-11 6931601-04
W : http://www.egurucool.com
E : [EMAIL PROTECTED]







Edmar Edilton da Silva wrote:
 Hi all,
 I still didn't solve the problem of the Apache::DBI.
It can not be
loaded into the apache's startup.pl file because happens a error during
the starting of the apache, the child processes are not created. For
using the Apache::DBI I had to add the "use Apache::DBI ()" code at
the
beginning of each perl script.
Is it correct? Is the performance of the system damaged? I am working
in
this problem for some days, How I dont solve it, I intend to write
my
own connection pool. Please, can anyone tell me where I can find docs
about this? Thanks for all.


Edmar Edilton da Silva
 Bacharel em Cincia da Computaco -
UFV
 Mestrando em Cincia da Computaco - UNICAMP


--
__ Technology Rules __
Rajesh Kumar Mallah,
M : +919811255597




Re: Apache::Registry newbie question -- CGI state

2001-01-10 Thread Alexander Farber (EED)

Geoffrey Young wrote:
  #!/usr/bin/perl
  # file: hello.cgi
  use CGI qw(:standard);
  use strict;
 
 I don't ever user CGI.pm, but aren't you forgetting to create a new CGI
 object in here?
 
  my $name = param('name') || 'Anonymous';

Geoff, I have another question: if you don't use 
CGI.pm, how do you generate the web form elements? 
Just "print qq{INPUT TYPE="text" ...}" or are
there some nicer tricks?



Apache::Status problems?..CGI::Cookie, (dont want no CGI.pm) (?)

2001-01-10 Thread JR Mayberry

While trying to do what the mod_perl guide reccomends as a performance
increaser (not loading CGI.pm, and using mod_perl's functions as
replacements for what CGI.pm does and doing PerlSetupEnv Off).. I
realized that CGI.pm was being loaded even if I had no pre loaded
modules..

All I had setup was Apache::Status perl handler for a Location

So, i looked at the code a little bit, and realized Apache::Status was
loading CGI.pm..  it does a check to see if Apache::Request is loaded or
can load and uses it if it can, and if it can't, it resorts to CGI.pm..

The catch? There is no Apache::Request module..at least that I could
find..in my 24 and 24_01 installs..

Instead, I replaced the require Apache::Request with Apache, and where
it tried to get a handle, I made it Apache-request() and it seemed to
work..

Another thing I noticed... CGI::Cookie was loading CGI.pm for three
functions, unescape, escape and another I didn't look at... in reality,
unescape and escape reside in a  module called CGI::Util, which CGI.pm
uses (in newer versions of CGI.pm)  wouldn't it be more efficient to
load CGI::Util.pm which is 5k, instead of CGI.pm which is 205k in newer
versions..?

Modifying all the above resulted in Apache::Status no longer saying
CGI.pm was loaded..

--



Re: Apache::Registry newbie question -- CGI state

2001-01-10 Thread Olivier Poitrey

On Wed Jan 10, 2001 at 03:41:12PM +0100, Alexander Farber (EED) wrote:
 Geoff, I have another question: if you don't use 
 CGI.pm, how do you generate the web form elements? 
 Just "print qq{INPUT TYPE="text" ...}" or are
 there some nicer tricks?
 

Are you know templates methode ? it's a realy nicer trick :)

-- 
___
 O  l  i  v  i  e  rP  o  i  t  r  e  y

"Si tous ceux qui n'ont rien n'en demandaient pas plus, il serait bien
 facile de contenter tout le monde."

Coluche



RE: Apache::Registry newbie question -- CGI state

2001-01-10 Thread Geoffrey Young



 -Original Message-
 From: Alexander Farber (EED) [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 10, 2001 9:41 AM
 Cc: [EMAIL PROTECTED]
 Subject: Re: Apache::Registry newbie question -- CGI state
 
 
 Geoffrey Young wrote:
   #!/usr/bin/perl
   # file: hello.cgi
   use CGI qw(:standard);
   use strict;
  
  I don't ever user CGI.pm, but aren't you forgetting to 
 create a new CGI
  object in here?
  
   my $name = param('name') || 'Anonymous';
 
 Geoff, I have another question: if you don't use 
 CGI.pm, how do you generate the web form elements? 
 Just "print qq{INPUT TYPE="text" ...}" or are
 there some nicer tricks?

see one of the many, many threads in the archives on templating :)

--Geoff

 



[ANNOUNCE] Apache::Reload 0.06

2001-01-10 Thread Matt Sergeant

Apache::Reload is a replacement for Apache::StatINC, with more features
and better debugging. Slated to replace Apache::StatINC in mod_perl 1.26.

Changes:

 - Fix a warning under perl 5.6

-- 
Matt/

/||** Director and CTO **
   //||**  AxKit.com Ltd   **  ** XML Application Serving **
  // ||** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** Personal Web Site: http://sergeant.org/ **
 \\//
 //\\
//  \\




[ANNOUNCE] HTTP::GHTTP 1.03

2001-01-10 Thread Matt Sergeant

HTTP::GHTTP is a very lightweight C/XS based HTTP downloader. It is many
times lighter than both LWP and HTTP::Lite, and also many times faster
than both.

No API changes or improvements in this release.

Changes:

 - Use gnome-config to get LIB and INC paths

-- 
Matt/

/||** Director and CTO **
   //||**  AxKit.com Ltd   **  ** XML Application Serving **
  // ||** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** Personal Web Site: http://sergeant.org/ **
 \\//
 //\\
//  \\




Re: Apache::DBI and deleting temporary tables (Sybase ASE)

2001-01-10 Thread Michael Peppler

Alexander Farber (EED) writes:
  So what is the best way to handle it? I could add
  
drop table #temp1
drop table #temp2
  
  to the SQL statements of my script, but what happens if
  the user presses STOP or the script times out? Should I
  move this SQL-code to $r-register_cleanup()? Isn't it
  too much for this handler and will it always be executed? 

You can definitely put this code in a cleanup handler.

  Or is it possible to use transactions/$dbh-commit somehow?

Don't use transactions around create table statements - this causes
the system tables in tempdb to be locked for the duration of the
transaction, effectively making your script single threaded.

  Also offtopic question: is it possible in Transact-SQL to
  check if a table #temp1 exists already?

It's a little tricky with temp tables as the name used in the
sysobjects table is extended with the spid of the connection, and some
other stuff.

You could do something like this:
if exists (select * from tempdb..sysobjects where name like '#temp1%')
  begin 
drop table #temp1
  end

This will return error #3701 if the table in fact does not exist for
this connection (you could also just go ahead and drop the tables at
the begining of the script and be prepared to ignore error 3701...)

Michael
-- 
Michael Peppler - Data Migrations Inc. - [EMAIL PROTECTED]
http://www.mbay.net/~mpeppler - [EMAIL PROTECTED]
International Sybase User Group - http://www.isug.com
Sybase on Linux mailing list: [EMAIL PROTECTED]



Re: location not working

2001-01-10 Thread robert_abarbanel


Ah - am I ever a dummy.
My Location  spec used  /home/world
not /hello/world
as I thought... so Apache worked as expected when my URI was
http://mysever/home/world

It was a quick edit back to

Location /hello/world

to fix the problem.
Thanks to many helpers.


---

That works!
I see -- I don't know how many times I read home as hello Thanks!





"G.W. Haywood" [EMAIL PROTECTED] le 01/10/2001 10:54:08 AM

Pour :Robert ABARBANEL/exterieur@FRANCE
cc :
Objet :   Re: location not working



Hi there,

  I get 404 when I enter
   http://myserver//hello/world
  and it is looking in the htdocs directory according to the error_log.

 What happens if you try

 http://myserver/hello/world

What happens if you try

http://myserver/home/world



73,
Ged.








Re: Unsubscribe Instructions

2001-01-10 Thread David Kenzik

  Vaughn Staples said...

  What is the proper method to unsubscribe from the modperl list?

Unsubscribe instructions are included in every email to the list. Look at
the headers.

You can also find instructions at the mod_perl website:

http://perl.apache.org/#maillists

-- 
David S. Kenzik
[EMAIL PROTECTED] -  http://kenzik.com
Original Music   -  http://text.org



Re: Classes, Methods? Error #29 in modules/src.t?

2001-01-10 Thread andrewl

While I don't want to be a C programmer, apparently I am going to have to learn
what "classes" and "methods" are in order to compile
mod_perl 1.24_01
into
Apache 1.3.14,
running
Perl 5.6.0 and
on top of
Linux 2.2.16 (RHL 7.0 base dist).

And I may even have to learn how to debug C code, to get rid of a nasty "error
#29 in modules/src.t" when attempting to compile.  I was hoping not; sometimes
one just wants to be a user.  To be braindead and enjoy that state of blisss.

The error I have been receiving,
"Use of unitialized value in concatenation (.) at modules/src.t at line 27"
appears to be a nasty one.  Unfortunately, the errors statements don't tell me
which variable values to intialize, although it IS smart enough to recognize that
the value has not been set.  I know these things take time...

If someone has a solution, I am at your mercy and will attempt to be eternally
grateful.

So, if someone could point me to the a URL that gives me the basics on
understanding this required paradigm shift into "C", maybe I can get started
helping to resolve this error.  I don't want to spend all of my time on this list
complaining.  I had just wanted to USE the package, not to have to help debug it,
yet if that is what is required, I guess I'd better roll up my sleeves and get
started...

Andrew Lietzow
Plantsman
Being drug kicking and screaming into being a Hacker?  Oh, no!!!














Re: How to recognize server shutdown?

2001-01-10 Thread Dave Rolsky

On Wed, 10 Jan 2001, G.W. Haywood wrote:

 Don't you get a message in error_log to the effect that a signal has
 been received?

Sure, but I don't think that would help me do what I want.

Let me illustrate:

1.  server is started
2.  config is read, modules are loaded, BEGIN blocks are run in this
process (just once)
3.  X children are created
4.  children are born, they die, yadda yadda.  The END block is run
whenever a child dies.
5.  the server is told to shut down
6.  the first server to start (the one running as root or whatever) sends
signals to the children telling them to shutdown.  END blocks run in all
children.
7.  the first server shuts down - I'd like to run something here because
it should only be happening to during a 'final' shutdown and only after
the children have finished serving their last requests.


-dave

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




Problem with installation mod_perl-1.24_01 and apache_1.3.14

2001-01-10 Thread Boris Lipsman


thanks for you support, ...

I have tried to install apache_1.3.14 and mod_perl-1.24_01.

No problems with perl Makefile.PL , and make, 

but after I tried to run the make test I got this error

"letting apache warm up ...\c 
Can't located loadable object for module Apache::Constants in @INC
...( @INC contains:
/usr/src/mod_perl-1.24_01/blib/lib
/usr/src/mod_perl-1.24_01/blib/arch   /usr/src/mod_perl-1.24_01/t/docs
/usr/lib/perl5/site_perl/5.005/i386-linux  blib/arch  blib/lib
/usr/lib/perl5/5.0053/i386-linux
/usr/lib/perl5/5.0053   /usr/lib/perl5/site_perl/5.005/i386-linux
/usr/lib/perl5/site_perl/5.005/ 
/usr/src/mod_perl-1.24_01/t//usr/src/mod_perl-1.24_01/t/lib/perl

at  /usr/src/mod_perl-1.24_01/blib/lib/mo_perl.pm line 16
Begin failed--compilation aborted at
/usr/src/mod_perl-1.24_01/blib/lib/Apache.pm line 6
Begin failed--compilation aborted at
/usr/src/mod_perl-1.24_01/t//docs/startup.pl line 38


The system is Linux red hat 6.1

Comipled mod_perl-1.24_01 first
perl Makefile.PL
APACHE_SRC=/usr/src/apache_1.3.14/src DO_HTTPD=1
APACHE_PREFIX=/usr/local/apache EVERYTHING=1
make
make test ( here I got the error)



   THANKS AGAIN





Edmund Mergl

2001-01-10 Thread John D Groenveld

Has anyone seen Edmund? He hasn't responded to mail sent to his
CPAN address, [EMAIL PROTECTED], for the last few months.
John
[EMAIL PROTECTED]




Re: How do you run libapreq-0.31/eg/perl/file_upload.pl

2001-01-10 Thread Alexander Farber

 Alexander Farber wrote:
  The only ways to see the expected results (like the initial empty web
  form, when entering http://localhost/cgi-perl/file_upload.pl into my
  Netscape 4.7) is to keep reloading or to go to the Edit-Preferences-
  Advanced-Cache and swith "Every Time" on.
 
 The currently missing 
 
 /BODY
 /HTML

Gerd, you are correct! I totally overlooked it and was staring at the headers.

Doug, don't you want to add "print '/BODY/HTML';" to the end of your file
libapreq-0.31/eg/perl/file_upload.pl?



Re: How to recognize server shutdown?

2001-01-10 Thread Danny Rathjens

Dave Rolsky wrote:
 
 On Wed, 10 Jan 2001, G.W. Haywood wrote:
 
  Don't you get a message in error_log to the effect that a signal has
  been received?
 
 Sure, but I don't think that would help me do what I want.
 
 Let me illustrate:
 
 1.  server is started
 2.  config is read, modules are loaded, BEGIN blocks are run in this
 process (just once)
 3.  X children are created
 4.  children are born, they die, yadda yadda.  The END block is run
 whenever a child dies.
 5.  the server is told to shut down
 6.  the first server to start (the one running as root or whatever) sends
 signals to the children telling them to shutdown.  END blocks run in all
 children.
 7.  the first server shuts down - I'd like to run something here because
 it should only be happening to during a 'final' shutdown and only after
 the children have finished serving their last requests.
 
Perhaps you could send a USR1 prior to your TERM signal and have your
END blocks perform your shutdown tasks if they see the USR1 signal.
But then you have the problem of new children being started due to the
USR1
not to mention it would preclude using USR1 for doing normal graceful
restarts, 8^)

Hrm, would be nice if $r-server had a method to tell you if apache is
in the process of shutting down or not.
-- 
struct Programmer/Analyst 'Danny Rathjens' {this.place =
"MyCity.com";}
I know you believe you understood what you think I said, but I
am not sure you realize that what you heard is not what I meant.



Re: How to recognize server shutdown?

2001-01-10 Thread Robin Berjon

At 18:55 10/01/2001 +, Danny Rathjens wrote:
Perhaps you could send a USR1 prior to your TERM signal and have your
END blocks perform your shutdown tasks if they see the USR1 signal.
But then you have the problem of new children being started due to the
USR1
not to mention it would preclude using USR1 for doing normal graceful
restarts, 8^)

What about USR2 ? Afair it isn't used and could probably be caught. In that
case it would be possible to use it prior to a TERM to signal imminent
shutdown.

-- robin b.
The computer can't tell you the emotional story.  It can give you the exact
mathematical design, but what's missing is the eyebrows. -- Frank Zappa




Re: How to recognize server shutdown?

2001-01-10 Thread Dave Rolsky

On Wed, 10 Jan 2001, Danny Rathjens wrote:

 Perhaps you could send a USR1 prior to your TERM signal and have your
 END blocks perform your shutdown tasks if they see the USR1 signal.
 But then you have the problem of new children being started due to the
 USR1 not to mention it would preclude using USR1 for doing normal
 graceful restarts, 8^)

This is for code that will be publicly distributed.  I don't want to
require people to send a nonstandard signal just to shut down their
server.

 Hrm, would be nice if $r-server had a method to tell you if apache is
 in the process of shutting down or not.

That's what I want.


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




Too many connections with DBI

2001-01-10 Thread Scott Alexander

HI,

I'm using a AuthAny handler to authenticate for every script. Today 
for the first time the production server was put thru it's paces. I had 
about 80 users at the same time. Checking the apache error log 
there were a lot of 

DBI-connect failed: Too many connections at 
/systems/humakpro/lib/library.pm line 213

I have 10 different databases. Would I solve this problem if I started 
using persistent connections? I've installed ApacheDBI on a test 
server but I can't produce the same load or can I ?

I'm also using a Apache::AuthAny.pm to authenticate for each script.

Those 80 users used today about 14000 scripts in 5 hours but each 
script has many queries sent to the database. The database handle 
is opened at the beginning and closed at the end of each script.
The handle is passed to a function in library.pm and from there it is 
closed. Is this wrong to do? Like wise the handle is opened from 
within a function. 

i.e. I have 

sub footer {
   # display a standard footer etc etc
if ($_[0] != 1  $_[0] ne ""){
$_[0]-disconnect ;
   }
}
  

It really peaked at 14:38:41 and then in the error_log

Ouch!  malloc failed in malloc_block()
DBI-connect failed: Too many connections at 
/systems/humakpro/lib/library.pm line 213
[Wed Jan 10 14:38:41 2001] [error] Can't call method "prepare" 
without a package or object reference at /syst$

Ouch!  malloc failed in malloc_block()
Ouch!  malloc failed in malloc_block()
Ouch!  malloc failed in malloc_block()
Ouch!  malloc failed in malloc_block()
Out of memory!
Ouch!  malloc failed in malloc_block()
Out of memory!
Ouch!  malloc failed in malloc_block()
Out of memory!

I wasn't running top at the time. 

BTW it's running redhat 7.0, 2 * 600 PIII with 256 MB, mysql 
3.22.27, Apache 1.3.14, mod_perl 1.24_01 Alll with just standard 
installations. I haven't tweaked anything.

Any help would be appreciated.

regards

Scott
_
scott alexander
tietoverkkosuunnittelija
humak amk - finland
+358(0)407505640



Re: How to recognize server shutdown?

2001-01-10 Thread G.W. Haywood

Hi there,

On Wed, 10 Jan 2001, Dave Rolsky wrote:

 On Wed, 10 Jan 2001, G.W. Haywood wrote:
 
  Don't you get a message in error_log to the effect that a signal has
  been received?
 
 Sure, but I don't think that would help me do what I want.

What I meant was you could perhaps find the place in the code where it
did that and do something else there too...

73,
Ged.




[SOLICITATION] Programmer available for contracting..

2001-01-10 Thread Michael Bacarella

Disclaimer: If these are unwanted, please let me know. I couldn't
find a list policy and Everyone Else Is Doing It(TM).

I am available for part time contracting via telecommute or in person
in the NYC area. I have a full time job but I am at liberty to do
outside work during business hours as well as in my free time.

I have 2 years experience with mod_perl and I actively develop and maintain
a variety of sites, including a popular (14M hits/month) personals site.

My rates are negotiable and I'd be willing to do work for non-profits
for a substantially reduced price. Please contact me directly regarding
offers or if you have further questions. 

Thanks

-- 
Michael Bacarella [EMAIL PROTECTED]




Re: building perl, Apache, mod_perl (on NT) with mod_perl builtinto Apache

2001-01-10 Thread Randy Kobes

On Wed, 10 Jan 2001, John Poirier wrote:

 
 I am looking for a jump start building perl, Apache,  mod_perl (on NT) with
 mod_perl built into Apache.
 My task is to find out how to build the latest versions perl 5.6.0, Apache
 1.3.14 and mod_perl 1.24_01.
 
 I have down loaded the sources from www.perl.com, www.apache.org and
 perl.apache.org.
 (Master Source distribution - Release http://perl.apache.org/dist)
 I realize that NT is not yet a supported platform but we need to support it
 (dam customers).
 The binaries available are not the most recent.  We want to be able to stay
 current and run the same version on all platforms we support.

Hi,
There are some other binaries, including ActivePerl ppm packages,
listed at http://perl.apache.org/distributions.html.

 
 All seemed to go well until mod_perl.
 I run the makefile.pl with EVERYTHING=1 APACHE_PREFIX=c:/apache.
 makefiles are generated but, those makefile do not produce apache or
 mod_perl.

The procedure for building on Win32 is different than that for
Unix - see INSTALL.win32 in the mod_perl sources for details.
Starting with the current cvs mod_perl version (1.24_02), there's
support for building everything from the command line on Win32;
see again INSTALL.win32 for details.

 
 If I build mod_perl by using the ApacheModulePerl.dsp (with some tweeking) I
 do get a DLL that appears to load, at least there are no errors reported,
 But what I want is to build mod_perl into Apache.
 
 OK hear it comes, HELP
 
 I am new to Apache, perl web development. My first experience with this
 environment was last November.
 I have been unable to find any information so far searching the web sites,
 books or the mailing lists.
 
 Can any one point me to the resources I will need to work through this?
 What are the issues in building mod_perl into apache for the NT platform?
 What is the benefit of building mod_perl into Apache as opposed to using a
 DLL?

All the apache modules use dlls for Win32, not just mod_perl ...

 Obviously it is possible to do this if  Jeffrey Baker can produce a binary
 distribution for NT.

A mod_perl binary distribution would contain the relevant
mod_perl modules for perl, plus the dll which you would copy
into an appropriate $APACHE/modules/ directory, where the
other apache modules are kept.

best regards,
randy kobes




Re: Classes, Methods? Error #29 in modules/src.t?

2001-01-10 Thread G.W. Haywood

Hi again Andrew,

On Wed, 10 Jan 2001, andrewl wrote:

 While I don't want to be a C programmer, apparently I am going to
 have to learn what "classes" and "methods" are in order to compile

Classes and methods apply to Perl as well (almost:) as to C.

 And I may even have to learn how to debug C code, to get rid of a
 nasty "error #29 in modules/src.t" when attempting to compile.

The nasty error is from the test scripts, not from the compilation of
Apache.  You've already compiled Apache at this stage.  'make test' is
an optional suite of tests.  src.t is written in Perl.  The suite of
tests *should* pass and I would recommend you find out why they don't
but you *could* just ignore the failed tests and see if your server
works by configuring it and asking it for a document...

 So, if someone could point me to the a URL that gives me the basics on
 understanding this required paradigm shift into "C",

I don't think you need to go there yet.  Lots of Apache users don't
program in C.  It's easier to understand what's going on while you're
building if you do, but most users don't build Apache very often.

73,
Ged.




Re: Apache::DBI and deleting temporary tables (Sybase ASE)

2001-01-10 Thread Stas Bekman

On Wed, 10 Jan 2001, Alexander Farber (EED) wrote:

 Hi,

 I have read
 http://perl.apache.org/guide/debug.html#Handling_the_User_pressed_Stop_
 but still don't know the best solution for my problem:

 I would like to port a bigger CGI-script to mod_perl.
 This script uses DBD::Sybase and creates few temporary
 tables (#temp1, #temp2) which are filled with some data,
 manipulated and finally read out with a join. These
 temporary tables are deleted automatically when the
 database connection is closed. However if I move from
 DBI to Apache::DBI, the connection won't be closed and
 the temporary tables will stay.

 So what is the best way to handle it? I could add

   drop table #temp1
   drop table #temp2

 to the SQL statements of my script, but what happens if
 the user presses STOP or the script times out? Should I
 move this SQL-code to $r-register_cleanup()?

END block for registry script. $r-register_cleanup for all.

 Isn't it
 too much for this handler and will it always be executed?

What do you mean? Previously you have deleted on connection close, what's
different now? Anyway the cleanup happens when the client has closed the
connection anyway (I mean after all the responce was send)



_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/





Re: Apache::DBI problem and writting a perl module!!!

2001-01-10 Thread Stas Bekman

On Wed, 10 Jan 2001, R. K . Mallah wrote:

  I faced the same problem and had  posted  similar email
 but I found an workaround that is there in the posting.


 
 I get following error when i do

 perl -e 'use Apache::Status;use Apache::DBI'

 Can't locate object method "module" via package "Apache" at
 /usr/lib/perl5/site_perl/5.6.0/Apache/DBI.pm line 202.
 Compilation failed in require at -e line 1.
 BEGIN failed--compilation aborted at -e line 1.


 the problem is when preparing menu_item for Apache::Status method module
 is
 not found under Apache,

 do i have to install some other Apache module?

it has nothing to do with this. You cannot test Apache modules from the
command line since you aren't running in mod_perl environment.

please read the documentation -- you have to load the Apache::Status
before Apache::DBI.

 anyway i commented out  the if part and made it work like

 Apache::Status-menu_item(

 'DBI' = 'DBI connections',
 sub {
 my($r, $q) = @_;
 my(@s) =
 qw(TABLETRTDDatasource/TDTDUsername/TD/TR);
 for (keys %Connected) {
 push @s, 'TRTD', join('/TDTD', (split($;,
 $_))[0,1]), "/TD/TR\n";
 }
 push @s, '/TABLE';
 return \@s;
}

 );

 # ) if ($INC{'Apache.pm'} and Apache-module('Apache::Status'));


 is it correct ?

 why shouldn't it load without any modifications ?

 Regards
 Mallah

 



 --
 Rajesh Kumar Mallah,
 Learning Universe Pvt. Ltd,
 Piccadily House, 4th Floor,
 275-276, Capt. Gaur Marg,
 Okhla, Sriniwas puri,
 New Delhi 110 065.
 M : +919811255597
 T : 91-11 6931601-04
 W : http://www.egurucool.com
 E : [EMAIL PROTECTED]










 Edmar Edilton da Silva wrote:

  Hi all,
 
  I still didn't solve the problem of the Apache::DBI. It can not be
 
  loaded into the apache's startup.pl file because happens a error
  during
  the starting of the apache, the child processes are not created. For
  using the Apache::DBI I had to add the "use Apache::DBI ()" code at
  the
  beginning of each perl script.
  Is it correct? Is the performance of the system damaged? I am working
  in
  this problem for some days, How I dont solve it, I intend to write my
  own connection pool. Please, can anyone tell me where I can find docs
  about this? Thanks for all.
 
  
  Edmar Edilton da Silva
  Bacharel em Ciência da Computacão - UFV
Mestrando em Ciência da Computacão - UNICAMP
  

 --
 __ Technology Rules __
 Rajesh Kumar Mallah,
 M : +919811255597








_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/





Re: Problem with installation mod_perl-1.24_01 and apache_1.3.14

2001-01-10 Thread G.W. Haywood

Hi there,

On Wed, 10 Jan 2001, Boris Lipsman wrote:

   Can't located loadable object for module Apache::Constants in @INC

Where is Constants.pm in your system?  (There might be several of
them, don't worry about it:)

73,
Ged.




Apache::Sandwich and DirectoryIndex

2001-01-10 Thread Clint Gilders

Hi
I have installed Apache::Sandwich on FreeBSD 3.4/Apache 1.3.12/mod_perl
1.24 and have noticed in working with it that if I call a URL like:
http://www.domain.com/test/index.html , it works fine and puts the
header and footer on the file. But, if I call:
http://www.domain.com/test/ , I get:
--
Not Found

The requested URL /test/ was not found on this server.
--
My perl.conf file contains:

Location /test
SetHandler perl-script
PerlHandler Apache::Sandwich
PerlSetVar HEADER "/body.html"
PerlSetVar FOOTER "/bottom.html"
/LOCATION

Another curious thing is that the 404 error is not being logged in my
error log.

Is there a way to allow directory indexes with Apache::Sandwich?

Thanks
-- 
Clint Gilders
Servermaster Onlinehobbyist Inc.
[EMAIL PROTECTED]



Re: Apache::DBI keeps re-connecting!

2001-01-10 Thread Edmund Mergl

Foskett Roger wrote:
 
 Hi, when using Apache::DBI, it keeps re-connecting even though the database
 and user is the same:
 
 I am using ApacheDBI-0.87, DBD-Oracle-1.06, DBI-1.14, perl5.6.0 on an 8.1.5
 Oracle database (perl -v  -V further below)
 
 My httpd.conf is setup as:
  PerlModule  Apache::DBI Apache Apache::Registry Apache::XPP CGI
  PerlInitHandler Apache::Reload
  PerlSetVar  ReloadAll Off
  PerlSetVar  XPPIncludeDir /opt/www/icl/htdocs/include
  PerlSendHeader  On
 
 I have an XPP perl script which uses one of my own perl modules to connect
 to a database.
 This works fine and I was able to both Connect  Disconnect as expected
 before using Apache::DBI
 
 When calling the XPP script multiple times using Apache::DBI (using the same
 username  password) as you can see, it connects twice - leaving an oracle
 process running for each connection.


is is supposed to make one connection per httpd.


 
 447 Apache::DBI push PerlCleanupHandler
 447 Apache::DBI need ping: yes
 447 Apache::DBI new connect to
 'PVCSNMPR_RPTNMPR_RPTPrintError=0RaiseError=0AutoCommit=0'
 447 Apache::DBI disconnect (overloaded)
 447 Apache::DBI PerlCleanupHandler
 447 Apache::DBI PerlCleanupHandler rollback for
 PVCSNMPR_RPTNMPR_RPTPrintError=0RaiseError=0AutoCommit=0

ok, so there is one connect for the httpd with pid = 447

 
 450 Apache::DBI push PerlCleanupHandler
 450 Apache::DBI need ping: yes
 450 Apache::DBI new connect to
 'PVCSNMPR_RPTNMPR_RPTPrintError=0RaiseError=0AutoCommit=0'
 450 Apache::DBI disconnect (overloaded)
 450 Apache::DBI PerlCleanupHandler
 450 Apache::DBI PerlCleanupHandler rollback for
 PVCSNMPR_RPTNMPR_RPTPrintError=0RaiseError=0AutoCommit=0

here is another connect for the httpd with pid = 450

 
 450 Apache::DBI disconnect (overloaded)
 450 Apache::DBI push PerlCleanupHandler
 450 Apache::DBI need ping: yes
 450 Apache::DBI already connected to
 'PVCSNMPR_RPTNMPR_RPTPrintError=0RaiseError=0AutoCommit=0'
 450 Apache::DBI disconnect (overloaded)
 450 Apache::DBI PerlCleanupHandler
 450 Apache::DBI PerlCleanupHandler rollback for
 PVCSNMPR_RPTNMPR_RPTPrintError=0RaiseError=0AutoCommit=0

this request is proccesed again by the httpd with pid = 450
and consequently it says: 'already connected to ...'

 
 Would you happen to have any idea as to why this might be happening? I have
 read/searched around everywhere but cant find any reason for this.
 
 What I have just noticed is that the reconnect works fine providing I access
 the script with the same url.  My URL was changing due to different CGI
 parameters that were being passed.  Does this make a difference? (perhaps
 the request bit needs to somehow first be stripped off - though I would have
 thought that it is totally independant of this, with Apache::DBI working on
 the DBI level)
 
 Many thanks
 
 Roger Foskett


everything looks ok.


Edmund

-- 
http://www.edmund-mergl.de
fon: +49 700 edemergl



Re: Apache::Status problems?..CGI::Cookie, (dont want no CGI.pm)(?)

2001-01-10 Thread Stas Bekman

On Wed, 10 Jan 2001, JR Mayberry wrote:

 While trying to do what the mod_perl guide reccomends as a performance
 increaser (not loading CGI.pm, and using mod_perl's functions as
 replacements for what CGI.pm does and doing PerlSetupEnv Off).. I
 realized that CGI.pm was being loaded even if I had no pre loaded
 modules..

 All I had setup was Apache::Status perl handler for a Location

 So, i looked at the code a little bit, and realized Apache::Status was
 loading CGI.pm..  it does a check to see if Apache::Request is loaded or
 can load and uses it if it can, and if it can't, it resorts to CGI.pm..

 The catch? There is no Apache::Request module..at least that I could
 find..in my 24 and 24_01 installs..

It's an external module. You can find it on CPAN.

 Instead, I replaced the require Apache::Request with Apache, and where
 it tried to get a handle, I made it Apache-request() and it seemed to
 work..

 Another thing I noticed... CGI::Cookie was loading CGI.pm for three
 functions, unescape, escape and another I didn't look at... in reality,
 unescape and escape reside in a  module called CGI::Util, which CGI.pm
 uses (in newer versions of CGI.pm)  wouldn't it be more efficient to
 load CGI::Util.pm which is 5k, instead of CGI.pm which is 205k in newer
 versions..?

I guess you could send the patch to the author of this module.

 Modifying all the above resulted in Apache::Status no longer saying
 CGI.pm was loaded..

 --




_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/





Re: How to recognize server shutdown?

2001-01-10 Thread Stas Bekman

On Wed, 10 Jan 2001, Dave Rolsky wrote:

 On Wed, 10 Jan 2001, G.W. Haywood wrote:

  Don't you get a message in error_log to the effect that a signal has
  been received?

 Sure, but I don't think that would help me do what I want.

 Let me illustrate:

 1.  server is started
 2.  config is read, modules are loaded, BEGIN blocks are run in this
 process (just once)
 3.  X children are created
 4.  children are born, they die, yadda yadda.  The END block is run
 whenever a child dies.
 5.  the server is told to shut down
 6.  the first server to start (the one running as root or whatever) sends
 signals to the children telling them to shutdown.  END blocks run in all
 children.
 7.  the first server shuts down - I'd like to run something here because
 it should only be happening to during a 'final' shutdown and only after
 the children have finished serving their last requests.

All we need is to add a $Apache::Server::Quitting or alike, in addition to
the existing $Apache::Server::Starting and $Apache::Server::ReStarting,
should be an easy patch in XS.



 -dave

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




_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/





Re: [SOLICITATION] Programmer available for contracting..

2001-01-10 Thread Stas Bekman

On Tue, 9 Jan 2001, Michael Bacarella wrote:

 Disclaimer: If these are unwanted, please let me know. I couldn't
 find a list policy and Everyone Else Is Doing It(TM).

I think that we have stated many times that job offers/seekers are welcome
to post as long as the proper tag is used, so others could ignore the
message if they aren't interested in it.

We are here to help each other with programming, ideology issues and of
course helping people to find the work with mod_perl, thus encouraging use
of mod_perl.

Just to suggest proper tags if you are in doubt:

 [JOB OFFER]
 [JOB SEEKER]

or anything else that comes to your mind...

Thanks!

_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/





ticketsystem

2001-01-10 Thread test



Hi

I am using a cookie based authentication scheme.
Cookie expires therefore login again. ( like the ticket master example in
O'reilly's.)




I noticed that the MS Explorer remembers both username and corresponding
password, making the cookie based authentication system useless.
(closing and reopening all windows does not help)

So using the default browser preferences is no good. Does anybody know 
which browser preference is involved here.

Arnold







Re: Too many connections with DBI

2001-01-10 Thread Stas Bekman

On Wed, 10 Jan 2001, Scott Alexander wrote:

 HI,

 I'm using a AuthAny handler to authenticate for every script. Today
 for the first time the production server was put thru it's paces. I had
 about 80 users at the same time. Checking the apache error log
 there were a lot of

 DBI-connect failed: Too many connections at
 /systems/humakpro/lib/library.pm line 213

 I have 10 different databases. Would I solve this problem if I started
 using persistent connections? I've installed ApacheDBI on a test
 server but I can't produce the same load or can I ?

Looks like you are not closing connections properly. Check your code. Use
trace to make sure that you do. See the guide.

As for Apache::DBI, again see the guide, to understand when Apache::DBI is
to be used and when not. It's all there.



_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/





Re: Edmund Mergl

2001-01-10 Thread John D Groenveld

Good to see you alive, well, and still coding Perl.

Months ago, about the time of the Perl conference so it may have slipped 
under everyone's radar, Jeff Horn from U of Wisconsin sent you some patches 
to Apache::DBI to use Oracle 8's re-authenticate function instead of 
creating and caching a separate Oracle connection for each user. Did you
decide whether to incorporate them or to suggest another module name for 
him to use? I wasn't  able to participate in the discussion at the time, 
but I now have need for that functionality. I don't know if Jeff Horn is 
still around, but I'll track him down if necessary and offer to work on it.

Also, I sent you a small patch to fix Apache::DBI warnings under Perl5.6.
I hate to be a pest, but I'm rolling out software where the installation 
procedure requires the user to fetch Perl from Active State and Apache::DBI
from CPAN. I'd rather not ship my own version of yours or any CPAN module.

Thanks,
John
[EMAIL PROTECTED]




RE: [SOLICITATION] Programmer available for contracting..

2001-01-10 Thread Paul Singh


e.g., Solicitation   :)

 -Original Message-
 From: Stas Bekman [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 10, 2001 5:07 PM
 To: Michael Bacarella
 Cc: [EMAIL PROTECTED]
 Subject: Re: [SOLICITATION] Programmer available for contracting..


 On Tue, 9 Jan 2001, Michael Bacarella wrote:

  Disclaimer: If these are unwanted, please let me know. I couldn't
  find a list policy and Everyone Else Is Doing It(TM).

 I think that we have stated many times that job offers/seekers are welcome
 to post as long as the proper tag is used, so others could ignore the
 message if they aren't interested in it.

 We are here to help each other with programming, ideology issues and of
 course helping people to find the work with mod_perl, thus encouraging use
 of mod_perl.

 Just to suggest proper tags if you are in doubt:

  [JOB OFFER]
  [JOB SEEKER]

 or anything else that comes to your mind...

 Thanks!

 _
 Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
 http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
 mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
 http://singlesheaven.com http://perl.apache.org http://perlmonth.com/






Re: [SOLICITATION] Programmer available for contracting..

2001-01-10 Thread Ajit Deshpande

On Wed, Jan 10, 2001 at 11:06:49PM +0100, Stas Bekman wrote:
 On Tue, 9 Jan 2001, Michael Bacarella wrote:
 
  Disclaimer: If these are unwanted, please let me know. I couldn't
  find a list policy and Everyone Else Is Doing It(TM).
 
 I think that we have stated many times that job offers/seekers are welcome
 to post as long as the proper tag is used, so others could ignore the
 message if they aren't interested in it.
 [..]

Is there interest in a YAJP? (YAJP == Yet Another Jobs Portal). I can 
start a sourceforge project for the following:

- MySQL backed
- Based on HTML Mason

Something like a  not-for-profit yajp.take23.org  as a forum for Job
seekers and Job hunters in mod_perl. Of course this will be a GPLed
project. Folks interested contact me off the list ([EMAIL PROTECTED])

Ajit



Re: How to recognize server shutdown?

2001-01-10 Thread Dave Rolsky

On Wed, 10 Jan 2001, Stas Bekman wrote:

 All we need is to add a $Apache::Server::Quitting or alike, in addition to
 the existing $Apache::Server::Starting and $Apache::Server::ReStarting,
 should be an easy patch in XS.

I'm not much of an C coder (much less XS) but maybe I'll poke around a
bit.


-dave

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




Re: How to recognize server shutdown?

2001-01-10 Thread Perrin Harkins

On Wed, 10 Jan 2001, Dave Rolsky wrote:
 Is there any way to distinguish between a child being shutdown (say
 maxrequests has been exceeded) versus all of Apache going down (kill
 signal sent to the original process or something).

Register an END block in your startup.pl, and have it check it's PID to
see if it's the parent.
- Perrin




Re: Too many connections with DBI

2001-01-10 Thread Perrin Harkins

On Wed, 10 Jan 2001, Scott Alexander wrote:
 It really peaked at 14:38:41 and then in the error_log
 
 Ouch!  malloc failed in malloc_block()
 DBI-connect failed: Too many connections at 
 /systems/humakpro/lib/library.pm line 213
 [Wed Jan 10 14:38:41 2001] [error] Can't call method "prepare" 
 without a package or object reference at /syst$

It looks like your real problem is that you ran out of memory.  Have a
look at the information in the guide about MaxClients and
Apache::SizeLimit.  You may not have a DBI problem at all.

- Perrin




[OT] Availability of Jobs -- was Re: [SOLICITATION] Programmer available for contracting..

2001-01-10 Thread Gunther Birznieks

I notice that there have been many more job postings from employment 
seekers have occurred in the last few weeks versus jobs. Whereas it used to 
be many more jobs wanting mod_perl vs seekers of jobs.

Is this an odd time of year for many contractors where the contract ends 
around the holiday season? Or is this starting to be a symptom of dotcoms 
going bust and the development market starting to level out?

Or perhaps I am being a bit paranoid. :)

u




Re: [OT] Availability of Jobs -- was Re: [SOLICITATION] Programmer available for contracting..

2001-01-10 Thread Sean C. Brady

I think it's your second question... in my opinion.

- Sean

On Thu, 11 Jan 2001, Gunther Birznieks wrote:

 I notice that there have been many more job postings from employment 
 seekers have occurred in the last few weeks versus jobs. Whereas it used to 
 be many more jobs wanting mod_perl vs seekers of jobs.
 
 Is this an odd time of year for many contractors where the contract ends 
 around the holiday season? Or is this starting to be a symptom of dotcoms 
 going bust and the development market starting to level out?
 
 Or perhaps I am being a bit paranoid. :)
 
 u
 




Re: [OT] Availability of Jobs -- was Re: [SOLICITATION] Programmer available for contracting..

2001-01-10 Thread mehryar


Im not sure about the contract positions but this is traditionally the
time of the year when people decide its time for a change, its endemic to
all other types of industries not just the software industry. 
And to alleviate your paranoia a little, a report I read last month said
software jobs were actually on the increase, rivalling the ever
hungry system administration job market.

cheers,
Mehryar


On Thu, 11 Jan 2001, Gunther Birznieks wrote:

 I notice that there have been many more job postings from employment 
 seekers have occurred in the last few weeks versus jobs. Whereas it used to 
 be many more jobs wanting mod_perl vs seekers of jobs.
 
 Is this an odd time of year for many contractors where the contract ends 
 around the holiday season? Or is this starting to be a symptom of dotcoms 
 going bust and the development market starting to level out?
 
 Or perhaps I am being a bit paranoid. :)
 
 u
 




Re: [OT] Availability of Jobs -- was Re: [SOLICITATION] Programmer available for contracting..

2001-01-10 Thread Michael Bacarella

 Is this an odd time of year for many contractors where the contract ends 
 around the holiday season? Or is this starting to be a symptom of dotcoms 
 going bust and the development market starting to level out?

I'm actually happily employed doing mod_perl (among things). I just
wouldn't mind some extra income as well as an opportunity to meet
new people.

*shrug*

-- 
Michael Bacarella [EMAIL PROTECTED]
Technical Staff / New York Connect.Net, Ltd
Daytime Phone: (212) 581-2831



Re: ticketsystem

2001-01-10 Thread Jeff Sheffield

 I noticed that the MS Explorer remembers both username and corresponding
 password, making the cookie based authentication system useless.
 (closing and reopening all windows does not help)
pure evil..!! (IMHO)
I don't use exploder very often...
is this really true..??


On Wed, Jan 10, 2001 at 11:08:37PM +0100, [EMAIL PROTECTED] wrote:
 
 
 Hi
 
 I am using a cookie based authentication scheme.
 Cookie expires therefore login again. ( like the ticket master example in
 O'reilly's.)
 
 
 
 
 I noticed that the MS Explorer remembers both username and corresponding
 password, making the cookie based authentication system useless.
 (closing and reopening all windows does not help)
 
 So using the default browser preferences is no good. Does anybody know 
 which browser preference is involved here.
 
 Arnold
 
 
 
Thanks, 
Jeff


| If you go to the zoo, always take somethin' to feed the animals  |
| even if the signs say "Do not Feed Animals." It wasn't the   |
| animals that put them signs up.  |
| -- Forrest Gump  |
| -- Winston Groom |

| Jeff Sheffield   |
| [EMAIL PROTECTED]   |
| AIM=JeffShef |




Re: [OT] Availability of Jobs -- was Re: [SOLICITATION] Programmeravailable for contracting..

2001-01-10 Thread Buddy Lee Haystack

Most year-end bonuses should be paid by the end of this month, while many were already 
paid out EOY 2000. Since the US stock market is in decline, many people assume their 
EOY 2001 bonuses will pale in comparison to 2000's. What better time to look for 
greener pastures. [Not including the over-compensated dot com folks who were over-paid 
anyway.;-)]

mehryar wrote:
 
 Im not sure about the contract positions but this is traditionally the
 time of the year when people decide its time for a change, its endemic to
 all other types of industries not just the software industry.
 And to alleviate your paranoia a little, a report I read last month said
 software jobs were actually on the increase, rivalling the ever
 hungry system administration job market.
 
 cheers,
 Mehryar
 
 On Thu, 11 Jan 2001, Gunther Birznieks wrote:
 
  I notice that there have been many more job postings from employment
  seekers have occurred in the last few weeks versus jobs. Whereas it used to
  be many more jobs wanting mod_perl vs seekers of jobs.
 
  Is this an odd time of year for many contractors where the contract ends
  around the holiday season? Or is this starting to be a symptom of dotcoms
  going bust and the development market starting to level out?
 
  Or perhaps I am being a bit paranoid. :)
 
  u
 

-- 
www.RentZone.org



Re: [SOLICITATION] Programmer available for contracting..

2001-01-10 Thread Ask Bjoern Hansen

On Wed, 10 Jan 2001, Ajit Deshpande wrote:

[...] 
 Is there interest in a YAJP? (YAJP == Yet Another Jobs Portal). I can 
 start a sourceforge project for the following:
 
   - MySQL backed
   - Based on HTML Mason

there's a project working on that already (jobs.perl.org).


 - ask

-- 
ask bjoern hansen - http://ask.netcetera.dk/
more than 70M impressions per day, http://valueclick.com




Re: [OT] Availability of Jobs -- was Re: [SOLICITATION] Programmer available for contracting..

2001-01-10 Thread Stas Bekman

On Wed, 10 Jan 2001, mehryar wrote:


 Im not sure about the contract positions but this is traditionally the
 time of the year when people decide its time for a change, its endemic to
 all other types of industries not just the software industry.
 And to alleviate your paranoia a little, a report I read last month said
 software jobs were actually on the increase, rivalling the ever
 hungry system administration job market.

Not really, if you didn't know about http://fuckedcompany.com/ you should
check it out. (It has nothing to do with XXX). While you are on the spot
especially look at how many layoffs reported per day lately!!! Then check
the NASDAQ and you will get even more ideas about what's going on.

It doesn't mean that we are in trouble, since mod_perl programmer are
scarce but the general trade is that many startups go busted.

From reading a lot lately about the current trends I've learned that the
dotcom business is still in fashion, since the money is there. It's just
that the investors are more careful now, and it's harder to get financing
for the vaporware ideas.

I believe that once the NASDAQ buble is over and analysts say that it has
to drop to 2000, which is very close, the dotcoms will go up again, but
probably under more careful watchful eye of investors.

I'm not an expert in these things, so this is just my opinion, which
shouldn't be taken too seriously :)

 On Thu, 11 Jan 2001, Gunther Birznieks wrote:

  I notice that there have been many more job postings from employment
  seekers have occurred in the last few weeks versus jobs. Whereas it used to
  be many more jobs wanting mod_perl vs seekers of jobs.
 
  Is this an odd time of year for many contractors where the contract ends
  around the holiday season? Or is this starting to be a symptom of dotcoms
  going bust and the development market starting to level out?
 
  Or perhaps I am being a bit paranoid. :)
 
  u
 




_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/





Re: How to recognize server shutdown?

2001-01-10 Thread Stas Bekman

On Wed, 10 Jan 2001, Perrin Harkins wrote:

 On Wed, 10 Jan 2001, Dave Rolsky wrote:
  Is there any way to distinguish between a child being shutdown (say
  maxrequests has been exceeded) versus all of Apache going down (kill
  signal sent to the original process or something).

 Register an END block in your startup.pl, and have it check it's PID to
 see if it's the parent.

It doesn't work. I've tested:

startup.pl:
---
package Cleanup;

$Cleanup::parent_pid = $$;

END{

eval q{
   if ($$ == $Cleanup::parent_pid) {
   `echo $Cleanup::parent_pid $$  /tmp/parent`;
   } else {
   `echo $Cleanup::parent_pid $$  /tmp/children`;
   }
  };
}

the parent process doesn't run the END block.

_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/





Re: ticketsystem [OT]

2001-01-10 Thread Brett Paden

Yes, it is true.  

Internet Explorer stores username and password values passed through
the Basic Auth dialog as well as anything entered into text fields or
text boxes.  Netscape 6 also incorporates these same "features."

I am not certain *where* these values are stored or how they are
stored.  I would like to know ...

It should be noted that the user has an opportunity to prevent the web
browser from storing these values, but it has been my experience that
most people find it convenient to have the browser remember
usernames/passwords.

Although users should certainly be educated as to the dangers of
allowing a dumb web browser to remember passwords to Ameritrade
accounts and on-line banks, I think the real problem is that too many
sites require registration with usernames/passwords.

Until personal digital ids and retinal scanners are at all
workstations, I think username/passwords security on the web will
always have user-introduced holes :-).

Jeff Sheffield once wrote:
  I noticed that the MS Explorer remembers both username and corresponding
  password, making the cookie based authentication system useless.
  (closing and reopening all windows does not help)
 pure evil..!! (IMHO)
 I don't use exploder very often...
 is this really true..??
 
 
 On Wed, Jan 10, 2001 at 11:08:37PM +0100, [EMAIL PROTECTED] wrote:
  
  
  Hi
  
  I am using a cookie based authentication scheme.
  Cookie expires therefore login again. ( like the ticket master example in
  O'reilly's.)
  
  
  
  
  I noticed that the MS Explorer remembers both username and corresponding
  password, making the cookie based authentication system useless.
  (closing and reopening all windows does not help)
  
  So using the default browser preferences is no good. Does anybody know 
  which browser preference is involved here.
  
  Arnold
  
  
  
 Thanks, 
 Jeff
 
 
 | If you go to the zoo, always take somethin' to feed the animals  |
 | even if the signs say "Do not Feed Animals." It wasn't the   |
 | animals that put them signs up.  |
 | -- Forrest Gump  |
 | -- Winston Groom |
 
 | Jeff Sheffield   |
 | [EMAIL PROTECTED]   |
 | AIM=JeffShef |
 

-- 

Brett Paden
President, TriMeros, Inc.
http://www.trimeros.com
[EMAIL PROTECTED]






Apache::DBI keeps re-connecting!

2001-01-10 Thread Foskett Roger

Hi, when using Apache::DBI, it keeps re-connecting even though the database
and user is the same:

I am using ApacheDBI-0.87, DBD-Oracle-1.06, DBI-1.14, perl5.6.0 on an 8.1.5
Oracle database (perl -v  -V further below)

My httpd.conf is setup as:
 PerlModule  Apache::DBI Apache Apache::Registry Apache::XPP CGI
 PerlInitHandler Apache::Reload
 PerlSetVar  ReloadAll Off
 PerlSetVar  XPPIncludeDir /opt/www/icl/htdocs/include
 PerlSendHeader  On

I have an XPP perl script which uses one of my own perl modules to connect
to a database.
This works fine and I was able to both Connect  Disconnect as expected
before using Apache::DBI

When calling the XPP script multiple times using Apache::DBI (using the same
username  password) as you can see, it connects twice - leaving an oracle
process running for each connection. 

447 Apache::DBI push PerlCleanupHandler 
447 Apache::DBI need ping: yes
447 Apache::DBI new connect to
'PVCSNMPR_RPTNMPR_RPTPrintError=0RaiseError=0AutoCommit=0'
447 Apache::DBI disconnect (overloaded) 
447 Apache::DBI PerlCleanupHandler 
447 Apache::DBI PerlCleanupHandler rollback for
PVCSNMPR_RPTNMPR_RPTPrintError=0RaiseError=0AutoCommit=0 

450 Apache::DBI push PerlCleanupHandler 
450 Apache::DBI need ping: yes
450 Apache::DBI new connect to
'PVCSNMPR_RPTNMPR_RPTPrintError=0RaiseError=0AutoCommit=0'
450 Apache::DBI disconnect (overloaded) 
450 Apache::DBI PerlCleanupHandler 
450 Apache::DBI PerlCleanupHandler rollback for
PVCSNMPR_RPTNMPR_RPTPrintError=0RaiseError=0AutoCommit=0 

450 Apache::DBI disconnect (overloaded) 
450 Apache::DBI push PerlCleanupHandler 
450 Apache::DBI need ping: yes
450 Apache::DBI already connected to
'PVCSNMPR_RPTNMPR_RPTPrintError=0RaiseError=0AutoCommit=0'
450 Apache::DBI disconnect (overloaded) 
450 Apache::DBI PerlCleanupHandler 
450 Apache::DBI PerlCleanupHandler rollback for
PVCSNMPR_RPTNMPR_RPTPrintError=0RaiseError=0AutoCommit=0

Would you happen to have any idea as to why this might be happening? I have
read/searched around everywhere but cant find any reason for this.  

What I have just noticed is that the reconnect works fine providing I access
the script with the same url.  My URL was changing due to different CGI
parameters that were being passed.  Does this make a difference? (perhaps
the request bit needs to somehow first be stripped off - though I would have
thought that it is totally independant of this, with Apache::DBI working on
the DBI level)

Many thanks

Roger Foskett 


 - output of perl -v,
v5.6.0 built for PA-RISC2.0

 - output of perl -V,
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
osname=hpux, osvers=11.00, archname=PA-RISC2.0
uname='hp-ux titan b.11.00 u 9000800 103901567 unlimited-user license '
config_args='-Ubincompat5005'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define 
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
cc='cc', optimize='-O', gccversion=
cppflags='-D_HPUX_SOURCE -Aa -I/usr/local/include'
ccflags =' +z -D_HPUX_SOURCE -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64  -Ae '
stdchar='unsigned char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
ld='ld', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lnsl -lnm -lndbm -lgdbm -ldld -lm -lc -lndir -lcrypt -lsec -lcl
-lpthread
libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags=' '
cccdlflags='+z', lddlflags=' -b +vnocompatwarnings -L/usr/local/lib'

Characteristics of this binary (from libperl): 
  Compile-time options: USE_LARGE_FILES
  Built under hpux
  Compiled at Dec 19 2000 19:17:00
  @INC:
/opt/www/perl5/lib/5.6.0/PA-RISC2.0
/opt/www/perl5/lib/5.6.0
/opt/www/perl5/lib/site_perl/5.6.0/PA-RISC2.0
/opt/www/perl5/lib/site_perl/5.6.0
/opt/www/perl5/lib/site_perl



FW: Problem after rebooting apache with Oracle

2001-01-10 Thread Thomas Moore

Does anyone have ideas why we would get this error periodically after our
system has been running for about 20 minutes?
thanks,
-tom


[Wed Jan 10 16:22:45 2001] [error] DBI-connect(RSPD1) failed: ORA-12154:
TNS:could not resolve service name (DBD ERROR: OCIServerAttach) at
/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris/DBI.pm line 411
DBI::connect('DBI', 'dbi:Oracle:RSPD1', 'username', 'password',
'HASH(0x192fb60)') called at /data/www/racesearch/htdocs/CGI/LIB/RSDBI.pm
line 323
RSDBI::connect('RSDBI') called at
/data/www/racesearch/htdocs/CGI/search_modules/SBPN.pm line 72
SBPN::main('SBPN', 'HASH(0x191d284)') called at
/data/www/racesearch/htdocs/CGImp/mhp line 132

Apache::ROOTwww_2eracesearch_2ecom::CGImp::mhp::mode_sbpn('HASH(0x191d284)')
called at /data/www/racesearch/htdocs/CGImp/mhp line 63

Apache::ROOTwww_2eracesearch_2ecom::CGImp::mhp::handler('Apache=SCALAR(0x237
cd74)') called at
/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris/Apache/Registry.pm line
143
require 0 called at
/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris/Apache/Registry.pm line
143
Apache::Registry::handler('Apache=SCALAR(0x237cd74)') called at
/dev/null line 0
require 0 called at /dev/null line 0



 Everything works fine for about 1/2 an hour and then we start getting the
 message below. We used to get an error that Oracle home was not found, so
we
 hard-coded it in and now we just get the message below.

was the ORACLE_HOME an error or just a warning?  if your oratab is
set up properly it shouldn't need ORACLE_HOME once the instance is
found.

 Does anyone have any suggestions? If our code produces an oracle error,
does
 that corrupt the mod_perl process and therefore give any future users who
 connect to that particular process the error below?

 perl version 5.6.0
 Oracle 8.1.5
 mod_perl 1.21
 apache 1.3.12

i have a similar setup (5.6.0, 8.1.6, 1.21_1, 1.3.14) w/o any
problems IFF tnslsnr is set up properly and started.  otherwise
there is chaos.

connecting via:

my @dbinfo =
qw(
dbi:Oracle:host=somehost;sid=foo
username
password
);


my $dbh = DBI-connect( @dbinfo ) or croak "Roadkill: $!";

the ORA-12154 gives me a freudian feeling that your tnslsnr is
not set up properly.

quick check:

. oraenv

lsnrctl;
 stop
 start

should tell you about stopping and starting properly.  if it doesn't
then fix this before worrying about DBD::Oracle (or dump oracle for
a database that isn't living hell to set up).

note:  i've just had to go through this in order to set up a demo
for one of our clients.  i can haul my system in on monday and
we can go over the setup steps if anyone else is interested in this.



--
 Steven Lembark   2930 W. Palmer St.
 Chicago, IL  60647
 [EMAIL PROTECTED]   800-762-1582




Re: [OT] Availability of Jobs -- was Re: [SOLICITATION] Programmer available for contracting..

2001-01-10 Thread Jeffrey W. Baker

On Thu, 11 Jan 2001, Stas Bekman wrote:

 On Wed, 10 Jan 2001, mehryar wrote:

 
  Im not sure about the contract positions but this is traditionally the
  time of the year when people decide its time for a change, its endemic to
  all other types of industries not just the software industry.
  And to alleviate your paranoia a little, a report I read last month said
  software jobs were actually on the increase, rivalling the ever
  hungry system administration job market.

 Not really, if you didn't know about http://fuckedcompany.com/ you should
 check it out. (It has nothing to do with XXX). While you are on the spot
 especially look at how many layoffs reported per day lately!!! Then check
 the NASDAQ and you will get even more ideas about what's going on.

 It doesn't mean that we are in trouble, since mod_perl programmer are
 scarce but the general trade is that many startups go busted.

It's hard to believe how far off topic this is, but I'll reply in kind
since the official list policeman has taken this path himself :)

The most important thing I learned from fuckedcompany.com is the term
"Javateer".

-jwb




Re: [OT] Availability of Jobs -- was Re: [SOLICITATION] Programmer available for contracting..

2001-01-10 Thread Sean C. Brady

I just want to thank Stas for the great link... very entertaining and
informative!

- Sean

On Wed, 10 Jan 2001, Jeffrey W. Baker wrote:

 On Thu, 11 Jan 2001, Stas Bekman wrote:
 
  On Wed, 10 Jan 2001, mehryar wrote:
 
  
   Im not sure about the contract positions but this is traditionally the
   time of the year when people decide its time for a change, its endemic to
   all other types of industries not just the software industry.
   And to alleviate your paranoia a little, a report I read last month said
   software jobs were actually on the increase, rivalling the ever
   hungry system administration job market.
 
  Not really, if you didn't know about http://fuckedcompany.com/ you should
  check it out. (It has nothing to do with XXX). While you are on the spot
  especially look at how many layoffs reported per day lately!!! Then check
  the NASDAQ and you will get even more ideas about what's going on.
 
  It doesn't mean that we are in trouble, since mod_perl programmer are
  scarce but the general trade is that many startups go busted.
 
 It's hard to believe how far off topic this is, but I'll reply in kind
 since the official list policeman has taken this path himself :)
 
 The most important thing I learned from fuckedcompany.com is the term
 "Javateer".
 
 -jwb
 




mod_perl + multiple Oracle schemas (was RE: Edmund Mergl)

2001-01-10 Thread Ed Park

John--

Another thing you may want to look into is just doing an
"alter session set current_schema" call at the top of your mod_perl page.
This is actually significantly faster than Tim's reauthenticate solution
(about 7X, according to my benchmarks).

It has become a supported feature as of Oracle 8i. For details on what I
did, see http://www.lifespree.com/modperl/ (which is still a total mess
right now-- I'll get around to cleaning it up sometime soon, I promise!)

cheers,
Ed

-Original Message-
From: John D Groenveld [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 5:10 PM
To: Edmund Mergl
Cc: [EMAIL PROTECTED]
Subject: Re: Edmund Mergl


Good to see you alive, well, and still coding Perl.

Months ago, about the time of the Perl conference so it may have slipped
under everyone's radar, Jeff Horn from U of Wisconsin sent you some patches
to Apache::DBI to use Oracle 8's re-authenticate function instead of
creating and caching a separate Oracle connection for each user. Did you
decide whether to incorporate them or to suggest another module name for
him to use? I wasn't  able to participate in the discussion at the time,
but I now have need for that functionality. I don't know if Jeff Horn is
still around, but I'll track him down if necessary and offer to work on it.

Also, I sent you a small patch to fix Apache::DBI warnings under Perl5.6.
I hate to be a pest, but I'm rolling out software where the installation
procedure requires the user to fetch Perl from Active State and Apache::DBI
from CPAN. I'd rather not ship my own version of yours or any CPAN module.

Thanks,
John
[EMAIL PROTECTED]




Re: [OT] Availability of Jobs -- was Re: [SOLICITATION] Programmer available for contracting..

2001-01-10 Thread Steve Smith

 The most important thing I learned from fuckedcompany.com is the
 term "Javateer".

So what does it mean?  The fuckedcompany search isn't very forthcoming :(



[JOB] : Perl Developer at EFI

2001-01-10 Thread siberian

Hi All,
This talk of jobs etc etc has reminded me that I need another
person to fill out my team here at Electronics For Imaging(
http://www.efi.com/ ). EFI is a big
player in the high end print solutions business and has a major presence
and history. Its a big company that does its best to act like a start-up.
Our group is being treated as an internal start-up and, as such, is
allowed to select our own technologies etc etc.

Our project is not another e-commerce bla engine, its not another
content management system, its not another portal or 'vortal'. Its an
honest to goodness service that will ( hopefully ) revolutionize how we
deal with the printed document. Ok, so revolutionize is a big word, maybe
we won't. However, its an opportunity to develop modperl apps in a fairly
high profile environment with a lot of creative and technical freedom.

What we are using : Currently its ModPerl running on Linux using
HTML::Mason on the front-end.

What we need : People who understand ( mod- )perl and have a
track
record of at least one successful, somewhat complex, project. Any
experience or skills in integrating random technologies is always a plus
in my book. Was your project high traffic? Thats another
bonus. Anyone who has done any financial software ( from ERP style
solutions to integration solutions to simple Authorize.net stuff ) would
come in super handy.

Where we are : We have offices in Foster City, CA( just south of
San Francisco ), Minneapolis MN ( near the Great Mall ) , New Jersey and
Tokyo. 

Drop me some email if you might be interested. We can chat more about the
opportunity.

John-




Re: How to recognize server shutdown?

2001-01-10 Thread Randal L. Schwartz

 "Stas" == Stas Bekman [EMAIL PROTECTED] writes:

Stas On Wed, 10 Jan 2001, Perrin Harkins wrote:
 On Wed, 10 Jan 2001, Dave Rolsky wrote:
  Is there any way to distinguish between a child being shutdown (say
  maxrequests has been exceeded) versus all of Apache going down (kill
  signal sent to the original process or something).
 
 Register an END block in your startup.pl, and have it check it's PID to
 see if it's the parent.

Stas It doesn't work. I've tested:

Here's an idea... in the startup code, create a pipe and fork.
block the kid on a read.  ni-night, kid.

when the parent quits, the kid will get EOF, and can go off and clean
things up.

in fact, it won't get the EOF until *all* the processes sharing the
write-end have quit, so it would seem to be exactly what is needed.

-- 
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: How to recognize server shutdown?

2001-01-10 Thread Perrin Harkins

On Thu, 11 Jan 2001, Stas Bekman wrote:
 the parent process doesn't run the END block.

Randal's solution is probably better, but it's a bummer that the parent
doesn't run END blocks.  Will it run cleanup handlers?
- Perrin




Apache::ASP compiling extensions

2001-01-10 Thread Joshua Chamas

Hey,

I am considering long belated compile time extensions
that would allow at least partial handling of other languages
formats like Cold Fusion, XSP, Embperl, ... a developer would 
be able to rewrite a template at compile time into ASP.

Here's what I have in mind:

PerlSetVar TagParseMatch ^xsp:   
## for XSP conversion of xsp:logic.../xsp:logic
# global.asa
sub Script_OnTagParse {
   my($tag, $begin, $args) = @_;
   if($tag eq 'xsp:logic') {
  my $replace = $begin ? '%' : '%';  
   } ...
}

PerlSetVar TokenParseMatch [+,+],[*,*]   
## for Embperl conversion of [* *] type constructs
# global.asa
sub Script_OnTokenParse {
   my $token = shift;
   if($token eq '[*') {
  '%';
   } elsif($token eq '*]') {
  '%';
   } ...
}

The results would then be inserted into the parse stream
for ASP before other language parsing is done.
Once compiled, there would be no extra overhead to 
running the code, unlike with XMLSubsMatch.  XMLSubsMatch
will continue to be the only way to handle the text 
contained within a tag like tag text /tag.

So what do you think?  Will anyone use this?

-- Josh



Re: Apache::ASP compiling extensions

2001-01-10 Thread Aaron Johnson

If what you are saying is that current EmbPerl code would be able to run
almost unchanged under ASP that would be very interesting, but presently
my biggest issues with Apache::ASP are:

- Doesn't "help" with any HTML.

- QueryString and Form from the Response are separate, this makes a
programming headache if you are used to Embperl or if you are not sure
what type of input is coming in for some reason.
Shouldn't they just be the same information?
Is there a need to keep them separate?
Why don't other modules do it that way if there is?

- Slow processing time, on the Hello World test it is one of the slower
ones.  EmbPerl 2.0 is supposed to be even faster then the present
version.

- Poor error reporting.  This seems to be possibly a resurfaced bug, but
when use strict is turned on ( not the global one, but on a per page
level ) when testing a page for compliance it gives no intelligent error
message as to where the problem might be.  I see in the docs where this
has been addressed (fixed) before.

- No automatic variable clean up.  I think EmbPerl runs each page as its
own package to keep things "clean" is that possible under Apache::ASP?

- No auto form fillin.  I know this has been discussed, I have even made
crude code that allows it.

To be fair I better list some of what I like:

- Script_OnStart and Stop: This makes it easy to build headers and
footers for even complex applications.
- Built in Session handling
- Only one type of tag to remember ( % ), well ok two if you count %=

There are others, but those are the main ones I can think of off the top
of my head.

I think making it do its job better and faster is more important then
trying to allow for other delimiters IMHO.

Aaron Johnson

Joshua Chamas wrote:

 Hey,

 I am considering long belated compile time extensions
 that would allow at least partial handling of other languages
 formats like Cold Fusion, XSP, Embperl, ... a developer would
 be able to rewrite a template at compile time into ASP.

 Here's what I have in mind:

 PerlSetVar TagParseMatch ^xsp:
 ## for XSP conversion of xsp:logic.../xsp:logic
 # global.asa
 sub Script_OnTagParse {
my($tag, $begin, $args) = @_;
if($tag eq 'xsp:logic') {
   my $replace = $begin ? '%' : '%';
} ...
 }

 PerlSetVar TokenParseMatch [+,+],[*,*]
 ## for Embperl conversion of [* *] type constructs
 # global.asa
 sub Script_OnTokenParse {
my $token = shift;
if($token eq '[*') {
   '%';
} elsif($token eq '*]') {
   '%';
} ...
 }

 The results would then be inserted into the parse stream
 for ASP before other language parsing is done.
 Once compiled, there would be no extra overhead to
 running the code, unlike with XMLSubsMatch.  XMLSubsMatch
 will continue to be the only way to handle the text
 contained within a tag like tag text /tag.

 So what do you think?  Will anyone use this?

 -- Josh




foggy mind needs help

2001-01-10 Thread Michael

I have the following test case.

test.plx invoked from a web page via apache modperl

test.plx 

require CodedModule;
CodedModule::handler(some args);


CodedModule

eval([my contents which are])
  package CodedModule;
  sub handler { blah.
  }
  
# end of contents
1;


using httpd -X 

the first time through everything works fine,
the handler function does it's duty, etc...

second invocation of test.plx fails with a server error that says 
that CodedModule::handler can not be found. 

Why is this? modperl should have loaded the contents of the package 
and added it to the run object. It clearly has marked the module as 
loaded, but now can not find the contents that were added to the 
package space via the eval when the second call occurs.

What did I miss??

Michael
[EMAIL PROTECTED]



RE: Apache::SizeLimit for unshared RAM ???

2001-01-10 Thread Vivek Khera

 "RB" == Rob Bloodgood [EMAIL PROTECTED] writes:

RB Alright, then to you and the mod_perl community in general, since
RB I never saw a worthwhile resolution to the thread "the edge of
RB chaos,"

The resolution is that the machine was powerful enough.  If you're
running your mission critical service at "the edge of chaos" then
you're not budgeting your resources properly.  You should have at
least a 50% room for expansion.  That is, you should run your machines
around 50% of their maximum load so you have room to absorb the spikes
in traffic.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.Khera Communications, Inc.
Internet: [EMAIL PROTECTED]   Rockville, MD   +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/



Re: How to recognize server shutdown?

2001-01-10 Thread Dave Rolsky

On Wed, 10 Jan 2001, Perrin Harkins wrote:

 Randal's solution is probably better, but it's a bummer that the parent
 doesn't run END blocks.  Will it run cleanup handlers?

I'm pretty sure the parent runs END blocks.  I just didn't want to have
the cleanup code run during child shutdown.

What I've done for now is this hack:


use vars qw($PID);

BEGIN
{

$PID = $$;
}

END
{
if ($$ == $PID )
{
# do cleanup
}
}

The only issue with that is what happens if the code is used in an
environment where a process starts up, forks a child, and then dies,
allowing the child to continue.

Hmm, I think I'll have to just doc it.

This is all related to clearing up an shared memory segment (and
semaphores) created by IPC::Shareable.  Except I realized IPC::Shareable
can do it.  Its just that for its boolean options it expects 'yes' or
'no', not 1 or 0.  That's freaking brilliant.  ARGH!


-dave

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




connecting apache to mysql

2001-01-10 Thread Al Abdullaev

Sorry guys for irrelevant question, but where can I find 
guide how to connect apache server to mysql database? 
thanks a lot.




Re: Apache::Sandwich and DirectoryIndex

2001-01-10 Thread Vivek Khera

 "CG" == Clint Gilders [EMAIL PROTECTED] writes:

CG Location /test
CG SetHandler perl-script
CG PerlHandler Apache::Sandwich
CG PerlSetVar HEADER "/body.html"
CG PerlSetVar FOOTER "/bottom.html"
CG /LOCATION

You should Sandwich based on a Files rather than Location, or else
you're gonna end up trying to sandwich images and possibly your
header/footer recursively.  I'd also recommend *not* naming your
headers/footers with the same extension as your files being
sandwiched.

I think what your immediate problem comes from is that you're telling
Apache to use a different handler on everything inside /test and that
means that the default handler that converts directory accesses to the
"index.html" file doesn't get run.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.Khera Communications, Inc.
Internet: [EMAIL PROTECTED]   Rockville, MD   +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/



Re: connecting apache to mysql

2001-01-10 Thread ___cliff rayman___

not irrelevant, and well covered here:
http://perl.apache.org/guide/databases.html

hth,

--
___cliff [EMAIL PROTECTED]http://www.genwax.com/


Al Abdullaev wrote:

 Sorry guys for irrelevant question, but where can I find
 guide how to connect apache server to mysql database?
 thanks a lot.







Re: Apache::DBI problem and writting a perl module!!!

2001-01-10 Thread R. K . Mallah


Stas , I do not face the problem anymore and Apache::DBI is loading
without any problem. But i remember of facing problem at one point
of time.
may be with some older version.
Could u please explain me what does Apache->module do and where
is
it defined ?
and Edmar could you please post the exact problem u are facing,
Regards
Mallah.

Stas Bekman wrote:
On Wed, 10 Jan 2001, R. K . Mallah wrote:
> I faced the same problem and had posted similar
email
> but I found an workaround that is there in the posting.
>
>
> 
> I get following error when i do
>
> perl -e 'use Apache::Status;use Apache::DBI'
>
> Can't locate object method "module" via package "Apache" at
> /usr/lib/perl5/site_perl/5.6.0/Apache/DBI.pm line 202.
> Compilation failed in require at -e line 1.
> BEGIN failed--compilation aborted at -e line 1.
>
>
> the problem is when preparing menu_item for Apache::Status method
module
> is
> not found under Apache,
>
> do i have to install some other Apache module?
it has nothing to do with this. You cannot test Apache modules from
the
command line since you aren't running in mod_perl environment.
please read the documentation -- you have to load the Apache::Status
before Apache::DBI.
> anyway i commented out the if part and made it work like
>
> Apache::Status->menu_item(
>
> 'DBI' => 'DBI connections',
> sub {
> my($r, $q) = @_;
> my(@s) =
> qw(TABLE>TR>TD>Datasource/TD>TD>Username/TD>/TR>);
> for (keys %Connected)
{
>
push @s, 'TR>TD>', join('/TD>TD>', (split($;,
> $_))[0,1]), "/TD>/TR>\n";
> }
> push @s, '/TABLE>';
> return \@s;
> }
>
> );
>
> # ) if ($INC{'Apache.pm'} and Apache->module('Apache::Status'));
>
>
> is it correct ?
>
> why shouldn't it load without any modifications ?
>
> Regards
> Mallah
>
> 
>
>
>
> --
> Rajesh Kumar Mallah,
> Learning Universe Pvt. Ltd,
> Piccadily House, 4th Floor,
> 275-276, Capt. Gaur Marg,
> Okhla, Sriniwas puri,
> New Delhi 110 065.
> M : +919811255597
> T : 91-11 6931601-04
> W : http://www.egurucool.com
> E : [EMAIL PROTECTED]
>
>
>
>
>
>
>
>
>
>
> Edmar Edilton da Silva wrote:
>
> > Hi all,
> >
> > I still didn't solve the problem of the
Apache::DBI. It can not be
> >
> > loaded into the apache's startup.pl file because happens a error
> > during
> > the starting of the apache, the child processes are not created.
For
> > using the Apache::DBI I had to add the "use Apache::DBI ()" code
at
> > the
> > beginning of each perl script.
> > Is it correct? Is the performance of the system damaged? I am working
> > in
> > this problem for some days, How I dont solve it, I intend to write
my
> > own connection pool. Please, can anyone tell me where I can find
docs
> > about this? Thanks for all.
> >
> > 
> >
Edmar Edilton da Silva
> > Bacharel em Cincia da Computaco
- UFV
> > Mestrando em Cincia da Computaco - UNICAMP
> > 
>
> --
> __ Technology Rules __
> Rajesh Kumar Mallah,
> M : +919811255597
>
>
>
>
>
_
Stas Bekman
JAm_pH -- Just Another mod_perl Hacker
http://stason.org/
mod_perl Guide http://perl.apache.org/guide
mailto:[EMAIL PROTECTED] 
http://apachetoday.com
http://logilune.com/
http://singlesheaven.com http://perl.apache.orghttp://perlmonth.com/

--
__ Technology Rules __
Rajesh Kumar Mallah,
M : +919811255597



Re: Apache::ASP compiling extensions

2001-01-10 Thread Joshua Chamas

Aaron Johnson wrote:
 
 If what you are saying is that current EmbPerl code would be able to run
 almost unchanged under ASP that would be very interesting, but presently
 my biggest issues with Apache::ASP are:
 
 - Doesn't "help" with any HTML.
 

I think I know what you mean, and I'm not sure that's its worth 
developing those things, is this a big priority?

Embperl:
table
  tr bgcolor="[+ $row % 2?'gray':'white' +]"
td align="center"font size="+1"[+ $multi[$row][$col] +]/font/td
  /tr
/table

 VS.

ASP:
table
 % for my $row (0..$#multi) { %
   tr bgcolor="%= $row % 2 ? 'gray' : 'white' %"
   % for my $col (0..$#array) { %
 td align="center"font size="+1"%= $multi[$row][$col] %/font/td
   % } %
   /tr
 % } %
/table

 - QueryString and Form from the Response are separate, this makes a
 programming headache if you are used to Embperl or if you are not sure
 what type of input is coming in for some reason.

That's the way the API is, I could create a config to merge them,
but its always seemed as easy to 

sub Script_OnStart {
  $Form = { %{$Request-{Form}}, %{$Request-{QueryString} };
}

does this need a config?

 Shouldn't they just be the same information?
 Is there a need to keep them separate?

Its the ASP API.  I just ported it.

 - Slow processing time, on the Hello World test it is one of the slower
 ones.  EmbPerl 2.0 is supposed to be even faster then the present
 version.
 

Huh?  From http://www.chamas.com/bench/hello.tar.gz, so you 
can run it yourself ...

hello]# ./bench.pl -version -time=15 ASP Embperl

Test Name  Test File  Hits/sec   Total Hits Total Time sec/Hits   
Bytes/Hit  
   -- -- -- -- -- 
-- 
Apache::ASP v2.09 2000 h2000.asp   229.1 3444 hits  15.03 sec  0.004365   
28997 byte 
HTML::Embperl v2.0a18 2000 h2000.epl   248.7 3732 hits  15.01 sec  0.004022   
28809 byte 
Apache::ASP v2.09  hello.asp   395.1 5933 hits  15.02 sec  0.002531   
241 bytes  
HTML::Embperl v2.0a18  hello.epl   461.4 6933 hits  15.03 sec  0.002167   
219 bytes  

Apache Server Header Tokens
---
(Unix)
Apache/1.3.14
OpenSSL/0.9.6
PHP/4.0.3pl1
mod_perl/1.24
mod_ssl/2.7.1

PERL Version: 5.00503

Operating System: Linux 2.2.14-5.0smp (root@porky) (gcc egcs-2.91.66) #1 2CPU [gate]

Sorry, I can't get it much faster on hello world, Embperl is written 
in C, Apache::ASP in perl.  But check out the h2000 tests, much more
representative of real world templates, not just startup time.

 - Poor error reporting.  This seems to be possibly a resurfaced bug, but
 when use strict is turned on ( not the global one, but on a per page
 level ) when testing a page for compliance it gives no intelligent error
 message as to where the problem might be.  I see in the docs where this
 has been addressed (fixed) before.

I haven't seen this in a while, give me a test script  I'll fix it.

 - No automatic variable clean up.  I think EmbPerl runs each page as its
 own package to keep things "clean" is that possible under Apache::ASP?
 

ASP does have a UniquePackages feature that could possibly make use
of this garbage collection, but then you are not in the same package
as global.asa where you get to init easy to use globals  such,
its a trade off.

To do things really cleanly, keep one global hash for per
process data, and then undef it in Script_OnEnd.  The rest
should be caught by the UseStrict config.

 - No auto form fillin.  I know this has been discussed, I have even made
 crude code that allows it.
 

I would like to develop this too.  Thanks for your feedback.
So I take it you're not particularly interested in the
compile time feature additions? :)

--Josh

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



Re: Too many connections with DBI

2001-01-10 Thread Scott Alexander

Hi,

Why do I see this in the log 

13402 Apache::DBI need ping: yes
13402 Apache::DBI new connect to 
'my_dbmy_usermy_passwdAutoCommit=1PrintError=1'

when I have in the startup.pl file

Apache::DBI-connect_on_init
 ("DBI:mysql:my_db",
  "my_user",
  "my_passwd",
  {
   PrintError = 1, # warn() on errors
   RaiseError = 0, # don't die on error
   AutoCommit = 1, # commit executes immediately
  }
 );

Is it because the child has reached it's maximum life ?

How many connections can you have open from DBI to mysql ?

I have 9 db's with 10 children ~ 90 connections .

All use the same user.

Should I increase the memory from 256 MB to ?

I have read http://perl.apache.org/guide/databases.html

Scott


_
scott alexander
tietoverkkosuunnittelija
humak amk - finland
+358(0)407505640



Form Fillin with Apache::ASP

2001-01-10 Thread T.J. Mather

There is an easy way of doing auto form fillin with Apache::ASP using
HTML::FillInForm - for details see (credit goes to Paul Lindner)

http://search.cpan.org/doc/TJMATHER/HTML-FillInForm-0.07/lib/HTML/FillInForm.pm#Apache_ASP

and

http://forum.swarthmore.edu/epigone/modperl/malskalko

  - No auto form fillin.  I know this has been discussed, I have even made
  crude code that allows it.
 
 I would like to develop this too.  Thanks for your feedback.
 So I take it you're not particularly interested in the
 compile time feature additions? :)




[RFC] Mysql Failsafe Cluster Project (MyFCP)

2001-01-10 Thread Constantin Bogomolnyi



Hi ,
Here the situation :
Many of us , are using MYSQL in Web production , and in this 
case we have many 
loadbalancing systems (Hardware like Alteon or foundry or 
software like LVS , and hybrid like BigIP) so we can say that if you want an 
failsafe and scalable WEB cluster it not a problem any more .
But can we say the same about our databases ?

Here things are more complicated because even if you use an 
replication sheme , you cannot say that it is fail safe , because :
1) If the master die : Your updates are in 
/dev/null
2) If one of slaves die : You have to update your progs to use 
an other slave 
3) If you use an Mod_perl enabled cluster you have to update 
your scripts and restart your dyns to make the whole thing work (this is only in 
a very wired setup)

So we can safe that it is a real pain in the ass 
...

The purpose of MyFCP is :
1)Write a set of perl scripts witch allows an automatic master 
election in case of the master death or slave death .

2)Write an SQL wrapper to allow an mod_perl (or modcgi) 
cluster acces the database ,
this wrapper will make the difference between SELECT and 
UPDATE requests
and for the SELECT requests it will send them to the right 
ACTIVE SLAVE.
so ti whill have some hash like this :
updates---master 
# this is for the updates
dynperl1---sqlslave1
dynperl2---sqlslave2
dynperl3---sqlslave3
so if the deamon detect than sqlslave1 is dead , he update 
this list so it becomes :

dynperl1---sqlslave2 
dynperl2---sqlslave2
dynperl3---sqlslave3

3)Add an backup system

Any sugestions are very welcome .

Very best 
CB