Using PerlTypeHandler and PerlHandler for the same Location

2001-08-08 Thread Jay Buffington
Hi, In my httpd.conf file I have: Location /foo/ SetHandler perl-script PerlTypeHandler foo PerlHandler bar /Location and then in the foo and bar files I have: --file foo.pm- package foo; sub handler { my $r = shift; $r-log_error(I'm in foo.); } 1;

perl-status problems

2001-08-08 Thread Pawe Piecuch
With this config file, when I access /perl-status I got message in log file: [Wed Aug 8 14:09:00 2001] [error] Undefined subroutine Apache::Status::handler called. What does it mean? Pawel VirtualHost 195.216.96.8:80 ServerName www.energetyka.net ServerAdmin [EMAIL PROTECTED]

RE: perl-status problems

2001-08-08 Thread Robert Ahrendt
It sounds like you either don't have mod_perl(Apache::*) installed correctly or you don't have your Apache libs in your @INC. Try: (perldoc Apache::Status) from the command line and see if it finds the module. if it doesn't, make sure you are pointing to the right libs in your startup.pl.

Segmentation faults, some strace logs

2001-08-08 Thread Andrei A. Voropaev
Here's some output from strace on Linux Apache 1.13.19 with mod_perl 1.24 and perl 5.6.0 = 04:48:26 stat64(/proj/Web/EMIS/Mason/live/redirect, {st_mode=S_IFREG|0775, st_size=243, ...}) = 0 04:48:26 stat64(/proj/Web/EMIS/Mason/obj/live/redirect, {st_mode=S_IFREG|0644,

Re: module to hit back at default.ida atack ?

2001-08-08 Thread Reuven M. Lerner
Angel R Rivera writes: Angel how about a way to tell it not to report an ip?? i just Angel reported on myself. :) That feature is in the latest version (1.07), thanks to David Young. DeWitt So *that's* why Reuven has CodeRed.pm CC him on the warning DeWitt emails. DeWitt And I

Apache::GzipChain Apache::OutputChain

2001-08-08 Thread Riardas epas
Hi! What does this error messsage mean? untie attempted while 1 inner references still exist at /usr/local/lib/perl5/site_perl/5.6.1/Apache/OutputChain.pm line 28. Mozilla shows empty screen. I have in httpd.conf: Location /scripts SetHandler perl-script PerlHandler

RE: Apache::GzipChain Apache::OutputChain

2001-08-08 Thread Geoffrey Young
-Original Message- From: Ricardas Cepas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 2:08 PM To: [EMAIL PROTECTED] Subject: Apache::GzipChain Apache::OutputChain Hi! What does this error messsage mean? untie attempted while 1 inner references still

Help with cookies...

2001-08-08 Thread Rasoul Hajikhani
Can some one tell me why I can not set a cookie... I have a module that is supposed to set a cookie called Cookie_Check: package MIS_APPS::RHS::Control::Cookie_Check; use Apache::Constants qw(:common); use Apache::Request; use Apache::Cookie (); use strict; sub handler { my $r

Help with cookies

2001-08-08 Thread Rasoul Hajikhani
Can some one tell me why I can not set a cookie... I have a module that is supposed to set a cookie called Cookie_Check: package MIS_APPS::RHS::Control::Cookie_Check; use Apache::Constants qw(:common); use Apache::Request; use Apache::Cookie (); use strict; sub handler { my $r

Re: Help with cookies

2001-08-08 Thread Robert Landrum
At 3:50 PM -0400 8/8/01, Perrin Harkins wrote: It depends on what's happening in that second module. If you don't send an actual response to the client, headers (including cookies) will not be sent out. Umm... Is return OK; the correct thing to return when using multiple handlers? I

Re: knowledge base - was Re: RFC: mod_perl 2.0 documentation project

2001-08-08 Thread Jim Smith
On Wed, Aug 08, 2001 at 10:45:43AM +0800, Stas Bekman wrote: On Tue, 7 Aug 2001, Jim Smith wrote: On Tue, Aug 07, 2001 at 10:16:26PM +0800, Stas Bekman wrote: Just some pseudo-random ideation boiling down to let's use mod_perl to buils a knowledge base both to demonstrate it's power

Re: Help with cookies

2001-08-08 Thread Perrin Harkins
Long time no hear... I heard you moved to NY... This is true. I'm exploring new territory. I think I do send a response back to Apache! I mean I return OK status. Or do you mean something else? Like $r-header_out(...)? You need to send the headers (with $r-send_http_header or something

Re: Help with cookies

2001-08-08 Thread Perrin Harkins
Umm... Is return OK; the correct thing to return when using multiple handlers? Yes, according the mod_perl docs. It only stops if you return something other than OK or DECLINED. - Perrin

Re: Help with cookies

2001-08-08 Thread Alastair
On Wed, Aug 08, 2001 at 12:21:07PM -0700, Rasoul Hajikhani wrote: But I never get to set the cookie... Can someone tell me what I am doing wrong? As Perrin, said, is a cookie header being set and sent somewhere else in the code? In my experience, cookie programming can be extremely

Blank Page Returned by Mod_perl

2001-08-08 Thread Bob Foster
Hi, I'm using mod_backhand frontend and mod_perl backend (on 127.0.0.1). Many complex scripts are working fine but I'm getting behavior I don't understand with this simple script: #!/usr/local/bin/perl print Content-type: text/html\n\n; print This is a test\n\n; exit; 1. If the script is NOT

Cookies and Handlers

2001-08-08 Thread Rasoul Hajikhani
Why is setting cookies so complex in mod_perl... Can any one tell me how I can set a few cookies in one handler and hand over the operation to another handler to do some more stuff... I have tried everything that I know (that's not much) but I still can not set the cookies... here is the snippet

using DBI with apache

2001-08-08 Thread Greg Cobb
I can run this simple script through perl itself, but when I put it in the cgi-bin and try to run it using mod_perl Perl pops up in windows with an error. I assume this means I need something like Apache::DBI?... I originally got Apache in binary form with mod_perl installed and did not

Re: Cookies and Handlers

2001-08-08 Thread Tim Tompkins
Time abbreviations are case sensitive: =pod The following forms are all valid for the -expires field: +30s 30 seconds from now +10m ten minutes from now +1h one hour from now

cvs commit: modperl-2.0/pod modperl_dev.pod

2001-08-08 Thread sbekman
sbekman 01/08/08 20:29:32 Modified:pod modperl_dev.pod Log: add a note about using threaded perl Revision ChangesPath 1.32 +3 -0 modperl-2.0/pod/modperl_dev.pod Index: modperl_dev.pod

cvs commit: modperl-2.0/todo missing_old_features.txt

2001-08-08 Thread sbekman
sbekman 01/08/08 00:02:41 Modified:src/modules/perl mod_perl.c modperl_cmd.c modperl_cmd.h modperl_config.c modperl_config.h modperl_util.c modperl_util.h todo missing_old_features.txt Log: * implementing PerlModule

cvs commit: modperl-2.0/todo possible_new_features.txt

2001-08-08 Thread sbekman
sbekman 01/08/08 00:13:04 Modified:todo possible_new_features.txt Log: log the PerlOptions +Inherit idea Revision ChangesPath 1.7 +9 -0 modperl-2.0/todo/possible_new_features.txt Index: possible_new_features.txt