Re: Apache::ASP and Undefined subroutine #::handler called.

2001-02-10 Thread Joshua Chamas

Eric Bellotti wrote:
 
 Hello,
 
 I am having some strange problems with my apache + mod_perl + mod_ssl +
 Apache::ASP.
 I compiled all 3 from the latest sources as explained in the mod_perl
 directory.  After some light brain surgery, I had an httpd with mod_perl
 (EVERYTHING=1) and mod_ssl.  But, funny things happened.
 ...
 [Fri Feb  9 19:11:04 2001] [error] Undefined subroutine #::handler called.
 Now I can live with the error message, after all, this is not mission
 critical.  However, it puts a nasty error dump at the end of the page, see
 http://systemcrash.org/categories.asp

OK, checked out the URL, but couldn't tell from that error there, try 
setting PerlSetVar Debug 2, which is developer debugging, and PerlSetVar BufferingOn 
1, 
so the error is clean, and not mixed with prior HTML output.  If you'd post 
the full error message that you get under those conditions, that'd be great.
I cannot guess what #::handler is coming from quite yet.

--Josh

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



Re: Sessions on win 32

2001-02-10 Thread harilaos

If you have an example on how it works with apache::session::file
send it to me please, since we both have the same package it
should work on mine too.

Thanks

siberian wrote:
 
 I must have missed it, exactly what problems are you having? It is better
 to give a description of the problem so we can try to debug. Generally
 speaking the modperl list is not a tutorial list but a 'self-help' list.
 General 'How do I get it to work' questions are usually left for the perl
 newsgroups.
 
 So, give us your specific errors and perhaps we can help a bit more. (
 Sorry if I missed the specifics ).
 
 John-
 
 On Fri, 9 Feb 2001, harilaos wrote:
 
  Hello,
  thats whrere i have downloaded my apache+perl+mod_perl.
  You say that you have made it work. My question is how?
  And aslo my original question was about Apache::Session::File.
  I beleive that if somebody cannot help, should not
  just inform the user asking for help that they have got it
  to work on their machine. Nor they should tell the user
  to use perldoc Apache::Session. This is not help, its a joke.
 
   I have used apache::session on windows with great success. I downloaded
   the modules pre-built along with the modperl DSO from :
  Yes, How?
 
   I installed this on top of the latest ActivePerl with no problems.
   HTML::Mason worked like a champ as well.
  Yes, How?
 
   I believe this is all available in the archives linked to from
   perl.apache.org.
  Beleive? thats very helpfull, thanks.
 
  Haris
 
  siberian wrote:
  
   I have used apache::session on windows with great success. I downloaded
   the modules pre-built along with the modperl DSO from :
  
   ftp://theoryx5.uwinnipeg.ca/pub/
  
   They seem to work well. I even installed on top of OpenSA (
   www.opensa.org ) and obtained SSL features. I did have to do some oddities
   to get Session::DBI working properly but it did work in the end.
  
   I installed this on top of the latest ActivePerl with no problems.
   HTML::Mason worked like a champ as well.
  
   I believe this is all available in the archives linked to from
   perl.apache.org.
  
   Yes, the perl community does ask its users to sometimes be a bit more
   'independent' but its nothing to get testy about. Some of us on the list
   are actually really really really busy and like to wait it out and see if
   someone else will pop in with an answer.
  
   John-
  
   On Thu, 8 Feb 2001, harilaos wrote:
  
Thanks for the hint but i have already done this.
I ask this group in case people have got experience
i what i am asking and not to get vague answers.
Why don't i do a search on google?
I have emailed the author of the module but i don't
think i will get a reply.
Sparce documentention , and this is why PHP
is gaining ground on Perl.PHP comes preconfigured
with session management too, but i want to use perl.
Not because i don't know how to,(because I have already
did the session management myself with files on the server)
but because i wanted to implement a system that can switch
from file to cookie to DB session management anmd from
windows to linux.
Maybe if i hot perldoc again that will help.
   
Haris
   
Gunther Birznieks wrote:

 Have you tried doing a perldoc on the modules themselves?

 At 02:35 PM 2/7/2001 +, harilaos wrote:
 Hello,
 I have searched everywhere but there is documentation on
 how to implement Apache::Session on windows.
 Has anyone done this? Please point me to relevent
 docs if you know any.
 I have read about Apache::Session::Win32 but the package is
 removed and obsolete from the latest Apache::Session module.
 
 Thanks

 __
 Gunther Birznieks ([EMAIL PROTECTED])
 eXtropia - The Web Technology Company
 http://www.extropia.com/
   
   
 



RE: Apache::ASP and Undefined subroutine #::handler called.

2001-02-10 Thread Eric Bellotti


Hello,

I set BufferingOn = 1, Debug was already = 2.

access-log reports a 500,

216.221.202.194 - - [10/Feb/2001:14:47:22 -0500] "GET /categories.asp
HTTP/1.1" 500 578

error-log reports

[Sat Feb 10 14:52:05 2001] [error] Null filename used at (eval 23) line 2.
[Sat Feb 10 14:52:05 2001] [error] Undefined subroutine #::handler called.

And as you can see (at the URL), the error message is no more descriptive
than it was before.  I'm on
openbsd 2.8 GENERIC
apache_1.3.17
mod_perl-1.25
mod_ssl-2.8.0-1.3.17

There's another behavior I ran into with my new httpd that may be related
and might help shed some light; If persistent HTTP connections are enabled,
the client will receive only a part of a document, then on the next refresh,
receive the rest.

Regards,

Eric


-Original Message-
From: Joshua Chamas [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 10, 2001 12:26 PM
To: Eric Bellotti
Cc: [EMAIL PROTECTED]
Subject: Re: Apache::ASP and "Undefined subroutine #::handler called."


Eric Bellotti wrote:

 Hello,

 I am having some strange problems with my apache + mod_perl + mod_ssl +
 Apache::ASP.
 I compiled all 3 from the latest sources as explained in the mod_perl
 directory.  After some light brain surgery, I had an httpd with mod_perl
 (EVERYTHING=1) and mod_ssl.  But, funny things happened.
 ...
 [Fri Feb  9 19:11:04 2001] [error] Undefined subroutine
#::handler called.
 Now I can live with the error message, after all, this is not mission
 critical.  However, it puts a nasty error dump at the end of the page, see
 http://systemcrash.org/categories.asp

OK, checked out the URL, but couldn't tell from that error there, try
setting PerlSetVar Debug 2, which is developer debugging, and PerlSetVar
BufferingOn 1,
so the error is clean, and not mixed with prior HTML output.  If you'd post
the full error message that you get under those conditions, that'd be great.
I cannot guess what #::handler is coming from quite yet.

--Josh

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




Apache::SubProcess failures

2001-02-10 Thread Aaron Kennedy

Hi all,

I'm having some issues involving directing the output of system() to the
client.  I'm trying to use Apache::Subprocess to over-ride
system().  However, whenever I use it, I get the following errors in my
Apache error log:

--- test.pl ---

use strict;
use Apache::SubProcess qw(system);

select STDOUT; $| = 1;
print "Content-type: text/html\n\n";
system ("/usr/bin/ls");

--- error.log ---

[Sat Feb 10 22:54:29 2001] [error] fdopen failed! at
/usr/local/lib/perl5/site_perl/5.6.0/i586-linux/Apache/SubProcess.pm line
36.

[Sat Feb 10 22:54:29 2001] [error] (2)No such file or
directory: Apache::SubProcess exec of /usr/bin/ls failed

I'm using Apache version 1.3.17, mod_perl version 1.25 and
Apache::SubProcess version 0.02.  Any help would be greatly appreciated!

Cheers,

Aaron




Re: Apache::SubProcess failures

2001-02-10 Thread Steve Reppucci


Are you certain that your problem is in the output redirection?  That
message seems to indicate that the problem is in exec'ing /usr/bin/ls. Are
you sure that it (ls) exists at that path, rather than just /bin/ls?


On Sat, 10 Feb 2001, Aaron Kennedy wrote:

 Hi all,
 
 I'm having some issues involving directing the output of system() to the
 client.  I'm trying to use Apache::Subprocess to over-ride
 system().  However, whenever I use it, I get the following errors in my
 Apache error log:
 
 --- test.pl ---
 
 use strict;
 use Apache::SubProcess qw(system);
 
 select STDOUT; $| = 1;
 print "Content-type: text/html\n\n";
 system ("/usr/bin/ls");
 
 --- error.log ---
 
 [Sat Feb 10 22:54:29 2001] [error] fdopen failed! at
 /usr/local/lib/perl5/site_perl/5.6.0/i586-linux/Apache/SubProcess.pm line
 36.
 
 [Sat Feb 10 22:54:29 2001] [error] (2)No such file or
 directory: Apache::SubProcess exec of /usr/bin/ls failed
 
 I'm using Apache version 1.3.17, mod_perl version 1.25 and
 Apache::SubProcess version 0.02.  Any help would be greatly appreciated!
 
 Cheers,
 
 Aaron
 

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




Re: Accessing Global Configuration Directives

2001-02-10 Thread sterling

not sure quite what you're asking, but if you're looking for a global 
PerlSetVar/PerlAddVar type of thing - well, as of 1.21_01 i believe you
can do it - as long as you have access to Apache::Server.  Like in a child
init handler:



PerlAddVar foo bar
PerlAddVar foo bar2
PerlChildInitHandler myChildInitHandler::init

and then in the init handler do something like

sub init
{
my $s = shift;
my @values = $s-dir_config-get('foo');
}

@values will be [bar, bar2]

is that what you're lookin for?

sterling


On Fri, 9 Feb 2001, Stathy Touloumis wrote:

 Is it possible to access a global configuration directive without using the
 request object?
 
 Thanks,
 




Site running on mod_perl

2001-02-10 Thread Joachim Zobel


Hi.

We are running the a href="http:/www.music-head.de"Music Head Record
Store/a (vinyl for DJs) on mod_perl/MySQL. Because our pages are rather
large we give them a Last-Modified to take advantage of browser caching.
This is determined by the last catalog database update. We display the cart
information using small script generated images. This image script is
called 10 times for every catalog page, which would not be possible without
mod_perl.

Details about the making can be found on http:/www.catstep.de/zobel/.

Don't know if this site is important enough to be listed, but it is
beautiful (if you are using one of the major browsers).

Sincerely,
Joachim

--
"... ein Geschlecht erfinderischer Zwerge, die fuer alles gemietet werden 
koennen."- Bertolt Brecht - Leben des Galilei