[Question] Prototype Mismatch for Base64 under RunPerl

2003-02-14 Thread john . everitt

OS: Windows2000
Apache: 1.3.27
ModPerl: 1.27_01-dev

I have a script that ran perfectly well when not run under ModPerl but have recently tried to run it under modperl using the RunPerl module. It still seems to run OK, however my error log now seems to being filled with the following error messages ...

Prototype mismatch: sub Apache::ROOT::MSS_2dcgi::documents_2ecgi::encode_base64 vs ($;$) at c:/NMS/Perl/lib/Exporter.pm line 57.
Prototype mismatch: sub Apache::ROOT::MSS_2dcgi::documents_2ecgi::decode_base64 vs ($) at c:/NMS/Perl/lib/Exporter.pm line 57.

The errors are connected with the MIME::Base64 module when it defines the external subroutine names. The relevant section of my conf file is ...

Alias /MSS-cgi/C:/NMS/MSSWeb/cgi-bin/
Alias /MSS-js/ C:/NMS/MSSWeb/includes/
Alias /MSS-images/   C:/NMS/MSSWeb/images/

Location /MSS-cgi 
AllowOverride None
Order allow,deny
Allow from all
SetHandler perl-script
PerlHandler Apache::PerlRun
Options +ExecCGI
PerlSendHeader On
/Location

I've searched all potential areas on the net with no success. Can anyone here assist ?

John Everitt


[Question] Prototype mismatch from MIME::Base64 under RunPerl

2003-02-14 Thread john . everitt

OS: Windows2000
Apache: 1.3.27
ModPerl: 1.27_01-dev

I have a script that ran perfectly well when not run under ModPerl but have recently tried to run it under modperl using the RunPerl module. It still seems to run OK, however my error log now seems to being filled with the following error messages ...

Prototype mismatch: sub Apache::ROOT::MSS_2dcgi::documents_2ecgi::encode_base64 vs ($;$) at c:/NMS/Perl/lib/Exporter.pm line 57.
Prototype mismatch: sub Apache::ROOT::MSS_2dcgi::documents_2ecgi::decode_base64 vs ($) at c:/NMS/Perl/lib/Exporter.pm line 57.

The errors are connected with the MIME::Base64 module when it defines the external subroutine names. The relevant section of my conf file is ...

Alias /MSS-cgi/C:/NMS/MSSWeb/cgi-bin/
Alias /MSS-js/ C:/NMS/MSSWeb/includes/
Alias /MSS-images/   C:/NMS/MSSWeb/images/

Location /MSS-cgi 
AllowOverride None
Order allow,deny
Allow from all
SetHandler perl-script
PerlHandler Apache::PerlRun
Options +ExecCGI
PerlSendHeader On
/Location

I've searched all potential areas on the net with no success. Can anyone here assist ?

John Everitt

Re: Server side programming PHP Vs CGI Vs modPerl

2003-02-14 Thread Devi .M
Hello all,
Thanks for all ur reponses. With all ur suggestions and
comparisons, I have decided to use mod_perl and also wrote a sample
program on it which worked fine. I have installed apache-1.3.27 and
mod_perl-1.27. 
Now I tried authenticating the user, where I have to maintain
separate session for each user. When I saw how to do session management in
mod_perl a module called Apache::Session was told. But when I tried it,
that module was missing in my mod_perl. So I want to know, whether I have
to download this module separately, or what version of mod_perl will it be
available?

Thanks in advance,
Devi




Please wait Handler

2003-02-14 Thread Martin Moss



All,

I was wondering if it is possible to Create a 
Handler that points a user at a page with an animated gif saying something like 
"Please wait", and then when my other handlers have finisheddisplay the 
page results I want from my mod perl handlers.

I guess in a nutshell I'm wondering if there is a 
way to send HTML headers to a browser which tells it to scrap the html it has 
already received and display the new HTML I am passing it.

If this isn't possible, can somebody point me in 
the direction of a 'please wait' mechanism that is possible - Is there 
one?

Kind regards

Marty


Re: Please wait Handler

2003-02-14 Thread Lee Goddard
-BEGIN PGP SIGNED MESSAGE-
Hash: MD5

Hi Martin,

On Friday, February 14, 2003 at 2:24:49 PM, you wrote:
MM I was wondering if it is possible to Create a Handler that points a user at a page 
with an animated gif saying something like Please wait, and then when my other 
handlers have finished display
MM the page results I want from my mod perl handlers.
MM I guess in a nutshell I'm wondering if there is a way to send HTML headers to a 
browser which tells it to scrap the html it has already received and display the new 
HTML I am passing it.
MM If this isn't possible, can somebody point me in the direction of a 'please wait' 
mechanism that is possible - Is there one?

I don't know about the handlers, but I've never read of an
HTTP header to do as you ask.

What I do, good or not I don't know, is send the Please Wait message
as a load of HTML 'div' elements with their 'display' CSS attribute
set to 'hidden'. As my program works, it sends at regular intervals
little bits of JavaScript to tell the client to display another DIV.
This has the effect of a progress bar incrementing. When I do not
know how much I have to do, I have the progress bar reverse itself
once full.

When the program is ready to move on, it sends some JS to redirect
the client to the next URI.

I've found that animated GIFs don't work in this situation since
the IE client I work with needs to get the whole document before it
will look for elements linked to from that document - including
images and stylesheets.

Hope this helps.
- --
Cheers
 Leemailto:[EMAIL PROTECTED]

$$=qw$808273788400074285838400657879847269820080698276007265677569820727$;
$$=~s$(\d\d)$\$_.=chr(\$1+32)$ge;eval;

-BEGIN PGP SIGNATURE-
Version: 2.6

iQCVAwUAPkzzA6drfekeF/QBAQFgQwP/Sm/840HI2pD+I4jhRqoqino2P1+Cza56
OI9aA8UYutvreXkWaoaSrmGEiPMDuaLhcOHi1fAgDCZ8k33VPrhVlgZyHz97LqAG
pwrS0/cOPW+55SFQjw9RmmyIc9i6b4TPGOPury0RbaHbO+RIH23Dsag4Si5uEHuX
SncVZ6Adz50=
=I26o
-END PGP SIGNATURE-




Re: Server side programming PHP Vs CGI Vs modPerl

2003-02-14 Thread Thomas Klausner
Hi!

On Fri, Feb 14, 2003 at 03:52:35PM +0530, Devi .M wrote:

   Now I tried authenticating the user, where I have to maintain
 separate session for each user. When I saw how to do session management in
 mod_perl a module called Apache::Session was told. But when I tried it,
 that module was missing in my mod_perl. So I want to know, whether I have
 to download this module separately, or what version of mod_perl will it be
 available?

You'll have to download Apache::Session (and probably a lot of other usefull
modules) seperatly from CPAN, http://www.cpan.org (though I prefer
http://search.cpan.org)

Or, use the CPAN-shell that comes with Perl

(as root)
% cpan
or
% perl -MCPAN -eshell

cpan install Apache::Session



-- 
#!/usr/bin/perl   http://domm.zsi.at
for(ref bless{},just'another'perl'hacker){s-:+-$-gprint$_.$/}



Re: Server side programming PHP Vs CGI Vs modPerl

2003-02-14 Thread Valerio_Valdez Paolini

On Fri, 14 Feb 2003, Devi .M wrote:

   Now I tried authenticating the user, where I have to maintain
 separate session for each user. When I saw how to do session management in
 mod_perl a module called Apache::Session was told. But when I tried it,
 that module was missing in my mod_perl. So I want to know, whether I have
 to download this module separately, or what version of mod_perl will it be
 available?

Apache::Session is not shipped with mod_perl, but it is available from
CPAN (http://search.cpan.org)

Ciao, Valerio

 Valerio Paolini, http://130.136.3.200/~paolini
--
 Linux, the Cheap Chic for Computer Fashionistas




Re: Server side programming PHP Vs CGI Vs modPerl

2003-02-14 Thread Enrico Sorcinelli
On Fri, 14 Feb 2003 15:52:35 +0530 (IST)
Devi .M [EMAIL PROTECTED] wrote:

 Hello all,
   Thanks for all ur reponses. With all ur suggestions and
 comparisons, I have decided to use mod_perl [...]

Good! ;-)

   Now I tried authenticating the user, where I have to maintain
 separate session for each user. When I saw how to do session management in
 mod_perl a module called Apache::Session was told. But when I tried it,
 that module was missing in my mod_perl. So I want to know, whether I have
 to download this module separately, or what version of mod_perl will it be
 available?
 

As you've read, currently Apache::Session is not shipped with mod_perl and 
have to be installed separately.
Apache::Session is a persistence framework for session data. He not handles 
web sessions for you. For a transparent management you can:

1. Use an existent application server mod_perl-based that offers this
   capability like Apache::ASP, Ax-Kit, HTML::Mason or HTML::Embperl, etc...

2. If you prefer to write your own mod_perl modules, you can use 
Apache::SessionManager, 
   a mod_perl module that helps session management of a web application by 
   creating session object and making it available to all other handlers 
   transparenlty (you can found it on CPAN). It is a wrapper around 
   Apache::Session.

By

- Enrico



Re: Server returns nothing (solved)

2003-02-14 Thread Ged Haywood
Hi there,

On Thu, 13 Feb 2003, Viljo Marrandi wrote:

 On Thu, 13 Feb 2003, Ged Haywood wrote:
 
  Hi there,
 
  On Thu, 13 Feb 2003, Viljo Marrandi wrote:
 
   DBIx::Recordset::Fetchsizewarn = 0;
  
   while the correct is:
  
   $DBIx::Recordset::Fetchsizewarn = 0;
  
   Only one missing $ ! Can anyone explain why server acted so weirdly
   beacuse of this error? Why it didn't show anything at all in error_log?
 
  Did you
 
  use strict;
 
 Yes, use strict; was in all modules, this makes it even more interesting,
 doesn't it?

Hmmm.  This tells me that what we think is happening in your machine
isn't what is really happening.  (But it's often that way.:)
I think you will either have to take out that character and debug it,
or else forget all about it and get on with the rest of the project...

:)

73,
Ged.




Re: Please wait Handler

2003-02-14 Thread Perrin Harkins
Martin Moss wrote:

I was wondering if it is possible to Create a Handler that points a user 
at a page with an animated gif saying something like Please wait, and 
then when my other handlers have finished display the page results I 
want from my mod perl handlers.

The classic answer to this problem is described by Randal in one of his 
Web Techniques columns:
http://www.stonehenge.com/merlyn/WebTechniques/col20.html

You can also try server push (with the Content-type: 
multipart/x-mixed-replace header), but I'm not sure how consistently 
today's browsers implement that.

- Perrin



Apache, mod_perl, mod_proxy, mod_rewrite

2003-02-14 Thread Serguei Trouchelle
Today I tried to change my cgi-scripts to mod_perl ones.

I used mod_rewrite and mod_proxy just like this:

RewriteRule ^/system/select/isd/request/$ 
/cgi-bin/system-select-isd-request.cgi	[P]

But when I tried to change to mod_perl

RewriteRule ^/system/select/isd/request/$ 
/cgi-bin/system-select-isd-request.pl	[P]

I've got 404 Not Found error:
The requested URL /system/select/isd/request/ was not found on this server.

error.log says following:
[error] 
proxy:http://naive1.isd.dp.ua/cgi-bin/system-select-isd-request.pl not 
found or unable to stat

But request to 
http://naive1.isd.dp.ua/cgi-bin/system-select-isd-request.pl was 
successful.

What's up?
--
Serguei Trouchelle
  http://www.isd.dp.ua/



Re: Apache::Module installation issues

2003-02-14 Thread Geoffrey Young


dorian wrote:

I don't remember what was the outcome of the patch I've posted a long time 
ago. I sent it after having the same problem.


ah, so it's actually a problem with the mod_perl distribution then?


well, maybe not.

try this patch

http://marc.theaimsgroup.com/?l=apache-modperl-devm=98295430720401w=2

as you can see from the rest of the thread, doug applied it but it looks as 
if Apache::Module hasn't had a release since then.

HTH

--Geoff



Apache::DBI and mod_perl 2

2003-02-14 Thread Chris Faust
Hi,

My problem seems like one that would be well documented, but I can't find
anything in any of the docs and even goggle groups only had one message and
the solution didn't relate.

Anyway, I've updated to RedHat 8.0 and Apache 2.0.44 with Mod_Perl 1.99.08
and if I try to use Apache::DBI I receive the error of:

Can't locate Apache/Constants.pm in @INC 

I've learned in mod_perl 2 that Apache::Constants was replaced by 3 new
classes (Apache::Const,APR::Const,Modperl::Const).

But what do I do to get Apache::DBI to work?
Am I missing something really simple here (I hope)?

Thanks
-Chris





Re: Please wait Handler

2003-02-14 Thread Dmitri Tikhonov
On Fri, Feb 14, 2003 at 11:08:48AM -0500, Perrin Harkins wrote:
 Martin Moss wrote:
 I was wondering if it is possible to Create a Handler that points a user 
 at a page with an animated gif saying something like Please wait, and 
 then when my other handlers have finished display the page results I 
 want from my mod perl handlers.
 
 The classic answer to this problem is described by Randal in one of his 
 Web Techniques columns:
 http://www.stonehenge.com/merlyn/WebTechniques/col20.html
 
 You can also try server push (with the Content-type: 
 multipart/x-mixed-replace header), but I'm not sure how consistently 
 today's browsers implement that.

I know bugzilla does just that (Please wait message when a query is
performed), and it works on my Netscape 4.7, Mozilla, and IE browsers.
I think it is a much better solution than that given by Randal.

  - Dmitri.




ANNOUNCE: Loggerithim 6.2.1

2003-02-14 Thread Cory 'G' Watson
Hello again,

http://loggerithim.sourceforge.net

Loggerithim 6.2.1 is now available, abbreviated ChangeLog follows (I 
deleted the original by accident!):

- 6.2.1
	Don't draw data in filled mode when there is none to draw
	Take the 'thresholds' field out of the smeeplets table and objects
	Added LastSampled Smeeplet
	Rewritten threshold handling, fixes numerous bugs
	Set CPU attribute to use filled graph and max value of 100
	XHTML 1.1 Compliance
	Significantly improved installer

About Loggerithim:
	Loggerithim is a monitoring package that allows you to monitor your 
systems, proactively spot problems, perform post-mortems, throw alerts 
when bad (or good) things happen, and automate routine tasks.

As always, please report any problems to the appropriate mailing list 
(see the website).  Upgrading users can consult Appendix C of the 
documentation.


Cory 'G' Watson
http://gcdb.spleck.net



Re: Apache::DBI and mod_perl 2

2003-02-14 Thread Dr. Helmut Zeilinger
Hi Chris,

are you shure that is is the Apache::DBI, that needs the Apache::Constants
or is it another module?
For me Apache::DBI loads without problems (2.044/1.9908/5.8) even without 
the
use compat(); compatibility layer.

Helmut


--On Friday, February 14, 2003 09:00:31 -0500 Chris Faust 
[EMAIL PROTECTED] wrote:

Hi,

My problem seems like one that would be well documented, but I can't find
anything in any of the docs and even goggle groups only had one message
and the solution didn't relate.

Anyway, I've updated to RedHat 8.0 and Apache 2.0.44 with Mod_Perl 1.99.08
and if I try to use Apache::DBI I receive the error of:

Can't locate Apache/Constants.pm in @INC 

I've learned in mod_perl 2 that Apache::Constants was replaced by 3 new
classes (Apache::Const,APR::Const,Modperl::Const).

But what do I do to get Apache::DBI to work?
Am I missing something really simple here (I hope)?

Thanks
-Chris









Re: Apache::DBI and mod_perl 2

2003-02-14 Thread Nick Tonkin


Do you have the latest Apache::DBI ? Ask made a new one a couple of weeks
ago to run with mp2. 


On Fri, 14 Feb 2003, Chris Faust wrote:

 Hi,
 
 My problem seems like one that would be well documented, but I can't find
 anything in any of the docs and even goggle groups only had one message and
 the solution didn't relate.
 
 Anyway, I've updated to RedHat 8.0 and Apache 2.0.44 with Mod_Perl 1.99.08
 and if I try to use Apache::DBI I receive the error of:
 
 Can't locate Apache/Constants.pm in @INC 
 
 I've learned in mod_perl 2 that Apache::Constants was replaced by 3 new
 classes (Apache::Const,APR::Const,Modperl::Const).
 
 But what do I do to get Apache::DBI to work?
 Am I missing something really simple here (I hope)?
 
 Thanks
 -Chris
 
 
 

- nick

   
Nick Tonkin   {|8^)





RE: Apache::DBI and mod_perl 2

2003-02-14 Thread Chris Faust
Hey Helmut,

Yes, I'm sure its Apache::DBI - when I try to check for it directly via
perl -MModule::Name, I get the error..

Where is a copy paste from the command line.

[chrisf@web1 chrisf]$ perl -MApache::DBI -e 0
Can't locate Apache/Constants.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache.pm line 6.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache.pm line 6.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/Apache/DBI.pm line 3.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/Apache/DBI.pm line 3.
Compilation failed in require.
BEGIN failed--compilation aborted.
[chrisf@web1 chrisf]$

I get pretty much the same thing if I try to put it into my statup.pl,
scripts or httpd.conf.

Thanks
-Chris

 -Original Message-
 From: Dr. Helmut Zeilinger [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 9:26 AM
 To: Chris Faust; Modperl
 Subject: Re: Apache::DBI and mod_perl 2


 Hi Chris,

 are you shure that is is the Apache::DBI, that needs the
 Apache::Constants
 or is it another module?
 For me Apache::DBI loads without problems (2.044/1.9908/5.8)
 even without
 the
 use compat(); compatibility layer.

 Helmut


 --On Friday, February 14, 2003 09:00:31 -0500 Chris Faust
 [EMAIL PROTECTED] wrote:

  Hi,
 
  My problem seems like one that would be well documented, but I
 can't find
  anything in any of the docs and even goggle groups only had one message
  and the solution didn't relate.
 
  Anyway, I've updated to RedHat 8.0 and Apache 2.0.44 with
 Mod_Perl 1.99.08
  and if I try to use Apache::DBI I receive the error of:
 
  Can't locate Apache/Constants.pm in @INC 
 
  I've learned in mod_perl 2 that Apache::Constants was replaced by 3 new
  classes (Apache::Const,APR::Const,Modperl::Const).
 
  But what do I do to get Apache::DBI to work?
  Am I missing something really simple here (I hope)?
 
  Thanks
  -Chris
 
 
 






RE: Apache::DBI and mod_perl 2

2003-02-14 Thread Chris Faust
Maybe that is the problem?

I'm using 0.89 which is the newest from CPAN and that shows Jun 18..
Is there a later version available?

Thanks
-Chris

 -Original Message-
 From: Nick Tonkin [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 10:22 AM
 To: Chris Faust
 Cc: Modperl
 Subject: Re: Apache::DBI and mod_perl 2




 Do you have the latest Apache::DBI ? Ask made a new one a couple of weeks
 ago to run with mp2.


 On Fri, 14 Feb 2003, Chris Faust wrote:

  Hi,
 
  My problem seems like one that would be well documented, but I
 can't find
  anything in any of the docs and even goggle groups only had
 one message and
  the solution didn't relate.
 
  Anyway, I've updated to RedHat 8.0 and Apache 2.0.44 with
 Mod_Perl 1.99.08
  and if I try to use Apache::DBI I receive the error of:
 
  Can't locate Apache/Constants.pm in @INC 
 
  I've learned in mod_perl 2 that Apache::Constants was replaced by 3 new
  classes (Apache::Const,APR::Const,Modperl::Const).
 
  But what do I do to get Apache::DBI to work?
  Am I missing something really simple here (I hope)?
 
  Thanks
  -Chris
 
 
 

 - nick

 
 Nick Tonkin   {|8^)






RE: Apache::DBI and mod_perl 2

2003-02-14 Thread Nick Tonkin
On Fri, 14 Feb 2003, Chris Faust wrote:

 Maybe that is the problem?
 
 I'm using 0.89 which is the newest from CPAN and that shows Jun 18..
 Is there a later version available?

You can always search the archives of this list at 
http://marc.theaimsgroup.com/?l=apache-modperlr=1w=2

The message you want is
http://marc.theaimsgroup.com/?l=apache-modperlm=104225578207460w=2

- nick

   
Nick Tonkin   {|8^)





RE: Apache::DBI and mod_perl 2

2003-02-14 Thread Chris Faust
Awesome!! That must be my problem..

I searched everyplace else, but totally forgot searching the list..
Sorry about that.

Thanks Again!!
-Chris


 -Original Message-
 From: Nick Tonkin [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 14, 2003 10:46 AM
 To: Chris Faust
 Cc: Modperl
 Subject: RE: Apache::DBI and mod_perl 2
 
 
 On Fri, 14 Feb 2003, Chris Faust wrote:
 
  Maybe that is the problem?
  
  I'm using 0.89 which is the newest from CPAN and that shows Jun 18..
  Is there a later version available?
 
 You can always search the archives of this list at 
 http://marc.theaimsgroup.com/?l=apache-modperlr=1w=2
 
 The message you want is
 http://marc.theaimsgroup.com/?l=apache-modperlm=104225578207460w=2
 
 - nick
 
    
 Nick Tonkin   {|8^)
 




Re[2]: Please wait Handler

2003-02-14 Thread Lee Goddard
-BEGIN PGP SIGNED MESSAGE-
Hash: MD5

Hi Dmitri,

On Friday, February 14, 2003 at 6:11:01 PM, you wrote:

 You can also try server push (with the Content-type:
 multipart/x-mixed-replace header), but I'm not sure how consistently
 today's browsers implement that.

DT I know bugzilla does just that (Please wait message when a query is
DT performed), and it works on my Netscape 4.7, Mozilla, and IE browsers.
DT I think it is a much better solution than that given by Randal.

Have you got a URI to that, please? Last time I push with IE
I gave up unsatisfied, but now I feel optimistic :)


- --
Cheers
 Leemailto:[EMAIL PROTECTED]

$$=qw$808273788400074285838400657879847269820080698276007265677569820727$;
$$=~s$(\d\d)$\$_.=chr(\$1+32)$ge;eval;

-BEGIN PGP SIGNATURE-
Version: 2.6

iQCVAwUAPk1FoKdrfekeF/QBAQHifQP+OfKIuPHGuBlN/Sh/mo6NYEb1mkUliEAk
mi7Opyvhy2dhP5ytZG6bftJxGkjSQinIW+gErA8I5KYRqxLN0gYSOoWngjRc/wwK
o6iVi/AQQn/+itDsJeAXScGpyFBq3uhipr7q7hFUZr5kUNdXP+k74KJlk9GNL4Rn
tPqzWvvKliY=
=ldST
-END PGP SIGNATURE-




Re: modperl segfault with threaded Perl 5.8

2003-02-14 Thread Pavel Hlavnicka
Actually, I've used gdb to produce the stack trace. Although it seems, 
that installed version of libperl.so is not stripped, the output was as 
you could see it.

I'll try to investigate a bit more and let you know. Thanks so far.

Pavel

Stas Bekman wrote:
Pavel Hlavnicka wrote:


Hi all,

recently I upgraded to RH 8.0 with threaded Perl 5.8. I compiled 
Apache 1.3.27 with mod_perl 1.27 from source.

Now if I run Apache is works until I configure some location with 
mod_perl and PerlHandler like this:

Location /perl
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
allow from all
/Location

If PerlHandler line is commented out, the server starts fine.

Here is the backtrace of 'httpd -X'

#0  0x4003cfa0 in Perl_gv_fetchpv ()
   from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so
#1  0x40035635 in Perl_get_sv ()
   from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so
#2  0x08056b78 in mp_preload_module ()
#3  0x08056e32 in perl_cmd_handler_handlers ()
#4  0x08078a35 in invoke_cmd ()
#5  0x08078e3b in ap_handle_command ()
#6  0x08078ec2 in ap_srm_command_loop ()
#7  0x0807c6a8 in urlsection ()
#8  0x080783ef in invoke_cmd ()
#9  0x08078e3b in ap_handle_command ()
#10 0x08078ec2 in ap_srm_command_loop ()
#11 0x0807ceb3 in virtualhost_section ()
#12 0x080783ef in invoke_cmd ()
#13 0x08078e3b in ap_handle_command ()
#14 0x08078ec2 in ap_srm_command_loop ()
#15 0x08079651 in ap_process_resource_config ()
#16 0x08079f2f in ap_read_config ()
#17 0x0808466c in main ()
#18 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6

Has anyone seen it before?

and... here is what my perl says:

This is perl, v5.8.0 built for i386-linux-thread-multi

Many thanks in advance, and sorry if I overlooked something basic.


Your trace is not as useful as it could be, because it neither shows the 
arguments nor the line numbers in the source code. I suggest to debug it 
with gdb, set breakpoint in perl_cmd_handler_handlers and step through 
to see what's wrong. If you don't know how to debug see:
http://perl.apache.org/docs/1.0/guide/debug.html#Debugging_when_Server_Crashes_on_Startup_before_Writing_to_Log_File_ 

and previous sections as well, though you don't need Apache::DB since 
the problem doesn't happen during the request.

p.s. What app did you get this trace with? It'd be helpful to update the 
bug reporting section to explain how to get a more useful trace. The one 
that includes symbols, arguments and line numbers.

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

--
Pavel Hlavnicka
Ginger Alliance
www.gingerall.com




Re: Please wait Handler

2003-02-14 Thread Dmitri Tikhonov
On Fri, Feb 14, 2003 at 08:38:08PM +0100, Lee Goddard wrote:
 Have you got a URI to that, please? Last time I push with IE
 I gave up unsatisfied, but now I feel optimistic :)

I don't have _the_ way for you to do it, but one live example is Apache's
bug database: http://nagoya.apache.org/bugzilla/index.html.  Run some
queries and capture packets and see how it works.

  - Dmitri.




Re: Please wait Handler

2003-02-14 Thread Andrew Ho
Hello,

MMI guess in a nutshell I'm wondering if there is a way to send HTML
MMheaders to a browser which tells it to scrap the html it has already
MMreceived and display the new HTML I am passing it.
MM
MMIf this isn't possible, can somebody point me in the direction of a
MM'please wait' mechanism that is possible - Is there one?

If the long-running process will finish within the usual amount of time
that a browser waits before timing out, this is easy--use an HTTP Refresh
header. For example:

Long running operation is http://www.example.com/getresults.pl
Please wait page is at http://www.example.com/pleasewait.pl

Make an HTML page which does a form submit to pleasewait.pl. pleasewait.pl
just displays an HTML page with an animated please wait image on it, and
its headers include the following header:

Refresh: 1; url=http://www.example.com/getresults.pl?args...

The browser displays the HTML on that page, and then a second later (the 1
in the Refresh header, it could be longer), the browser fetches the second
page. Since the HTML and animated image are already loaded, the user sees
that while waiting for the second page to load.

If the process runs a very long time, you are safer writing getresults.pl
(in this example) to be able to kick off a long-running job in the
background, and just display the status of the job. You can snarf a
Refresh header in that too so that users see it constantly updated.

Humbly,

Andrew

--
Andrew Ho   http://www.tellme.com/   [EMAIL PROTECTED]
Engineer   [EMAIL PROTECTED]  Voice 650-930-9062
Tellme Networks, Inc.   1-800-555-TELLFax 650-930-9101
--




Re: Please wait Handler

2003-02-14 Thread Perrin Harkins
Andrew Ho wrote:

Make an HTML page which does a form submit to pleasewait.pl. pleasewait.pl
just displays an HTML page with an animated please wait image on it, and
its headers include the following header:

Refresh: 1; url=http://www.example.com/getresults.pl?args...


That's what Randal does in the article that I posted (although his puts 
it in a META tag).  It's called client pull, and was introduced by 
Netscape at the same time as server push.

- Perrin



Re: Please wait Handler

2003-02-14 Thread David Dick
Last time I experimented with Server-Push, the only browser that 
implemented it was Netscape 4.*.  Mozilla didn't and IE didn't.  Which 
is a pity cos it's a really useful technique.

Perrin Harkins wrote:

Martin Moss wrote:


I was wondering if it is possible to Create a Handler that points a 
user at a page with an animated gif saying something like Please 
wait, and then when my other handlers have finished display the page 
results I want from my mod perl handlers.


The classic answer to this problem is described by Randal in one of 
his Web Techniques columns:
http://www.stonehenge.com/merlyn/WebTechniques/col20.html

You can also try server push (with the Content-type: 
multipart/x-mixed-replace header), but I'm not sure how consistently 
today's browsers implement that.

- Perrin






Re: Server side programming PHP Vs CGI Vs modPerl

2003-02-14 Thread Devi .M
On Fri, 14 Feb 2003, Thomas Klausner wrote:

 You'll have to download Apache::Session (and probably a lot of other usefull
 modules) seperatly from CPAN, http://www.cpan.org (though I prefer
 http://search.cpan.org)

Thanks, I was able to install the Apache::Session. Now I wrote a program
for authenticating the user. After authentication I have to redirect to 
another page,if the user and passwd is right. I am able to view my HTML
page also correctly but below the page the following message is displayed.
When I checked the error.log , there was no error thrown in it. Can anyone 
help me how to overcome this

---
HTTP/1.1 200 OK Date: Sat, 15 Feb 2003 06:46:02 GMT Server: Apache/1.3.27 
(Unix)
mod_perl/1.27 Connection: close Content-Type: text/html Embedded Perl 
version v5.6.1 for
Apache/1.3.27 (Unix) mod_perl/1.27 process 1614, 
running since Sat Feb 15 11:49:25 2003

Perl Configuration
Loaded Modules
Inheritance Tree
Enabled mod_perl Hooks
Environment
PerlRequire'd Files
Signal Handlers
Symbol Table Dump
ISA Tree
Compiled Registry Scripts

---

Thanks in advance,
Devi.





Re: Server side programming PHP Vs CGI Vs modPerl

2003-02-14 Thread Thomas Klausner
Hi!

On Sat, Feb 15, 2003 at 12:07:28PM +0530, Devi .M wrote:

 After authentication I have to redirect to 
 another page,if the user and passwd is right. I am able to view my HTML
 page also correctly but below the page the following message is displayed.
 When I checked the error.log , there was no error thrown in it. Can anyone 
 help me how to overcome this
 
 ---
 HTTP/1.1 200 OK Date: Sat, 15 Feb 2003 06:46:02 GMT Server: Apache/1.3.27 
 (Unix)
 mod_perl/1.27 Connection: close Content-Type: text/html Embedded Perl 
 version v5.6.1 for
 Apache/1.3.27 (Unix) mod_perl/1.27 process 1614, 
 running since Sat Feb 15 11:49:25 2003

 Perl Configuration
 Loaded Modules
 Inheritance Tree
 Enabled mod_perl Hooks
 Environment
 PerlRequire'd Files
 Signal Handlers
 Symbol Table Dump
 ISA Tree
 Compiled Registry Scripts
 
 ---

This looks like the output of Apache::Status.

Without further information about your configuration etc, help is hardly
possible.

Please read the mod_perl documentation at
  http://perl.apache.org
and take an even closer look at
  http://perl.apache.org/docs/1.0/guide/help.html#How_to_Report_Problems




-- 
#!/usr/bin/perl   http://domm.zsi.at
for(ref bless{},just'another'perl'hacker){s-:+-$-gprint$_.$/}