Upload Meter with Apache::Request

2002-03-08 Thread Michael Dwyer

Hi, I'm sorry if this has been covered, but i've scoured the net and can't
find any documentation on exactly how to use the upload hook of
Apache::Request to create a meter, as it states in the Apache::Request
documentation.  Just wondering if anyone can point me in the right direction
to look for information on this.  Thanks in advance.

-Mike




RE: About Apache::DBI

2002-03-08 Thread Brendan W. McAdams

Once you use Apache::DBI; all calls to DBI should transparently use it.
You should not have to change any of your other code (connect
statements, etc)

-Original Message-
From: Axel Andersson [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 08, 2002 8:51 PM
To: modperl
Subject: About Apache::DBI


Hi

Okay, so I read up on Apache::DBI, but I still have a question or two.

Specifically, am I supposed to keep my "use DBI", "DBI->connect()", and
everything DBI related and not change a single thing in my source after
I've added "Apache::DBI->connect_on_init()" in startup.pl?

Right, I guess that's all. Thanks in advance,
Axel Andersson

-- 
[EMAIL PROTECTED]
http://www.animanga.nu/morris/

1. Radiant one, this experience may dawn between two breaths. After
breath comes in and just before turning up--the benefience.





About Apache::DBI

2002-03-08 Thread Axel Andersson

Hi

Okay, so I read up on Apache::DBI, but I still have a question or two.

Specifically, am I supposed to keep my "use DBI", "DBI->connect()", and
everything DBI related and not change a single thing in my source after
I've added "Apache::DBI->connect_on_init()" in startup.pl?

Right, I guess that's all. Thanks in advance,
Axel Andersson

-- 
[EMAIL PROTECTED]
http://www.animanga.nu/morris/

1. Radiant one, this experience may dawn between two breaths. After
breath comes in and just before turning up--the benefience.




RE: Simple configuration question

2002-03-08 Thread Kirk Rogers

Following the example to the "T" in
http://perl.apache.org/guide/install.html#mod_perl_and_apache_ssl_openss, if
I add "APACHE_PREFIX=/usr/local/apache_ssl" it shouldn't even touch anything
I have in my original installation at "/usr/local/apache".  Is this correct?

Then I can slowly migrate my configuration file over to the new installation
directories?

Thanks,
Kirk


>-Original Message-
>From: Ged Haywood [mailto:[EMAIL PROTECTED]]
>Sent: Friday, March 08, 2002 12:57 PM
>To: Kirk Rogers
>Cc: modperl
>Subject: Re: Simple configuration question
>
>
>Hi there,
>
>On Fri, 8 Mar 2002, Kirk Rogers wrote:
>
>> now I'd like to add SSL capabilities and dont want to clobber my
>> existing system How can I add SSL to my existing distribution
>> without overwriting any of my current configuration and files?
>
>Go ahead and rebuild with the latest sources in a new directory.  None
>of your existing files will be touched until you do '#make install'
>and your existing configuration files in .../apache/conf won't be
>overwritten at all.  Of course you have backups anyway, don't you?
>
>73,
>Ged.
>
>




Re: Simple configuration question

2002-03-08 Thread Ged Haywood

Hi there,

On Fri, 8 Mar 2002, Kirk Rogers wrote:

> now I'd like to add SSL capabilities and dont want to clobber my
> existing system How can I add SSL to my existing distribution
> without overwriting any of my current configuration and files?

Go ahead and rebuild with the latest sources in a new directory.  None
of your existing files will be touched until you do '#make install'
and your existing configuration files in .../apache/conf won't be
overwritten at all.  Of course you have backups anyway, don't you?

73,
Ged.




Re: Response->Debug and IIS

2002-03-08 Thread Joshua Chamas

Mike Martinet wrote:
> 
> Can anyone tell me if $Response->Debug from Apache::ASP is implemented
> in ActiveState Perl under IIS?
> 

Unlikely, as I specifically developed it for Apache::ASP.

Please post all Apache::ASP specific questions to its mailing list,
which you can get on at [EMAIL PROTECTED]

You could always develop your own method/sub for this which 
calls $Response->Debug under mod_perl & does something else
under IIS.  Also, if there is some IIS/PerlScript method missing
in Apache::ASP that you would like to use, please post your
API request to the asp list.

-- Josh
_
Joshua Chamas   Chamas Enterprises Inc.
NodeWorks Founder   Huntington Beach, CA  USA 
http://www.nodeworks.com1-714-625-4051



Re: Response->Debug and IIS

2002-03-08 Thread Perrin Harkins

Mike Martinet wrote:
> Can anyone tell me if $Response->Debug from Apache::ASP is implemented 
> in ActiveState Perl under IIS?

Since your questions is about Microsoft ASP, you might want to ask it on 
a Microsoft ASP list.  You already know that Apache::ASP supports it.

- Perrin




Simple configuration question

2002-03-08 Thread Kirk Rogers

Hello,
I've installed an Apache/mod_perl distribution some months ago and used the
standard installation guidelines.  However, now I'd like to add SSL
capabilities and dont want to clobber my existing system
How can I add SSL to my existing distribution without overwriting any of my
current configuration and files?  If there's documentation on this
particular request, please forgive as I haven't found it yet.

Thanks for the help,
Kirk




Response->Debug and IIS

2002-03-08 Thread Mike Martinet

Can anyone tell me if $Response->Debug from Apache::ASP is implemented 
in ActiveState Perl under IIS?

We are trying to develop one set of PerlScript pages to run under both 
Apache and IIS and it would be really great if we could settle on this 
for debugging.


Thanks,


MjM




Re: where is libperl.so.1?

2002-03-08 Thread J S

I found the cause of this error. Somehow I'd managed to install an apache 
build I did, where I was running mod_perl dynamically not static. I copied 
over my latest build where I run mod_perl statically and it was fine.


>From: Michael Peppler <[EMAIL PROTECTED]>
>To: darren chamberlain <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: where is libperl.so.1?
>Date: Thu, 7 Mar 2002 13:14:41 -0800
>MIME-Version: 1.0
>Received: from [63.251.56.142] by hotmail.com (3.2) with ESMTP id 
>MHotMailBE51235C00C44004324B3FFB388E106F0; Thu, 07 Mar 2002 13:15:08 -0800
>Received: (qmail 28237 invoked by uid 500); 7 Mar 2002 21:14:51 -
>Received: (qmail 28221 invoked from network); 7 Mar 2002 21:14:50 -
>From modperl-return-23386-vervoom Thu, 07 Mar 2002 13:15:21 -0800
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>list-help: 
>list-unsubscribe: 
>list-post: 
>Delivered-To: mailing list [EMAIL PROTECTED]
>Message-ID: <[EMAIL PROTECTED]>
>In-Reply-To: <[EMAIL PROTECTED]>
>References: 
><[EMAIL PROTECTED]><[EMAIL PROTECTED]>
>X-Mailer: VM 6.92 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>
>darren chamberlain writes:
>  > Quoting J S <[EMAIL PROTECTED]> [Mar 07, 2002 12:18]:
>  > > I've installed an apache build I did onto a Solaris
>  > > 2.6 box, and when I try to start it I get the following error 
>message:
>  > >
>  > > ld.so.1: /opt/apache_1.3.22/bin/httpd: fatal: libperl.so.1: open 
>failed:
>  > > No such file or directory
>  > > Killed
>  > >
>  > > I can't find libperl.so on either the original box, or the box
>  > > I'm installing to. Can anyone help me out please?
>  >
>  > You shouldn't need to find libperl.so if you've built it
>  > statically.
>
>He does need libperl.so if he built *perl* to use a shared libperl
>instead of a static libperl.a
>
>I guess setting LD_LIBRARY_PATH correctly (to include
>/usr/lib/perl5/5.6.x/i386-linux/CORE or wherever the main perl library
>is located on that box) should fix the problem.
>
>Michael
>--
>Michael Peppler  Data Migrations, Inc.
>[EMAIL PROTECTED]   *or*  [EMAIL PROTECTED]
>http://www.mbay.net/~mpeppler
>International Sybase User Group: http://www.isug.com


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx




Re: Newbie help - My cookies won't bake?

2002-03-08 Thread Geoffrey Young

Jeff Armstrong wrote:
> 
> Revered Chefs,
> 
> Please forgive a mere mod_perl kitchen-hand, undergoing early cookie
> training... I have the following cookie code, but no cookies come
> back when I refresh, and I don't see any $HTTP_COOKIE in %ENV.
> $cookies ends up as a hash ref pointing to an empty hash.
> 

your approach seems a bit wrong.  try looking over these two recipes

http://www.modperlcookbook.org/code/ch03/Cookbook/GetCookie.pm
http://www.modperlcookbook.org/code/ch03/Cookbook/SetCookie.pm

HTH

--Geoff



Apache::Status override keys in menu_item() sub

2002-03-08 Thread Enrico Sorcinelli

Hi all,
I've seen that there is a conflict situation in Apache::Status module 
(v 2.02, mod_perl 1.26) in handling plug-in items.
In effect when I install an Apache::Status menu item plug-in, there isn't 
control over pre-installed items.
For example I can add following item in my module:

# prepare menu item for Apache::Status
Apache::Status->menu_item(
   'inc' => 'Overriding Apache::Status menu item',
   sub {
  my($r, $q) = @_;
  my(@s) = "My dump...";
  return \@s;
   }
) if ( $INC{'Apache.pm'} && Apache->module('Apache::Status') );  

In this way, I will override the %status hash entry corresponding to 
'Loaded Modules'.
Any chances to patch this by checking existent items before typeglobbing?

This is a _very simple_ proposal patch:

---CUT HERE---
--- Status.pm   Fri Mar  8 13:11:05 2002
+++ Status.pm-patched   Fri Mar  8 13:10:55 2002
@@ -45,6 +45,12 @@
 
 sub menu_item {
 my($self, $key, $val, $sub) = @_;
+
+if ( defined $status{$key} ) {
+print STDERR "Apache::Status:key '$key' already defined! Plug-in 
+installation skipped\n";
+return;
+}
+
 $status{$key} = $val;
 no strict;
 *{"status_${key}"} = $sub 
---CUT HERE---

Bye,

Enrico


=
Enrico Sorcinelli - Gruppo E-Comm - Italia On Line S.p.a.
E-Mail: [EMAIL PROTECTED] - [EMAIL PROTECTED]
=



Re: [Patch] Apache::ProxyPassThru

2002-03-08 Thread Ask Bjoern Hansen

On Fri, 8 Mar 2002, Tatsuhiko Miyagawa wrote:

> here is a patch for Apache::ProxyPassThru, fixing the bug that
> multiple response headers are mungled into one (like double "Set-Cookie:"s)

Thanks.

Look for 0.94 on a mirror near you within a day or two.


 - ask

-- 
ask bjoern hansen, http://ask.netcetera.dk/   !try; do();





Newbie help - My cookies won't bake?

2002-03-08 Thread Jeff Armstrong

Revered Chefs,

Please forgive a mere mod_perl kitchen-hand, undergoing early cookie 
training... I have the following cookie code, but no cookies come 
back when I refresh, and I don't see any $HTTP_COOKIE in %ENV. 
$cookies ends up as a hash ref pointing to an empty hash.

I have the following in my httpd.conf:
  PerlWarn On
  PerlTaintCheck On
  PerlFreshRestart On
  PerlInitHandler Apache::Reload
  PerlSetVar ReloadAll On
  
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader Off
Options +ExecCGI
  


Help?? TIA

Jeff

# As you will note, this highly original recipe was lifted unchanged 
# from Delia Smith's 'How to Boil Eggs for Breakfast'.
#
# This is the cookie dough that don't want to bake
use strict;
require "dumpvar.pl";
use Apache;
use Apache::Cookie;

# read in the cookie if this is an old session
my $r = Apache->request();
my $cookies = Apache::Cookie->fetch;

my $sent = '';
if (!$cookies->{foo} ) {
  $sent = 'sending cookie';
  my $cookie = Apache::Cookie->new(
  $r,
  -name=>  'foo',
  -value   =>  'bar',
  -expires =>  '+1D',
  -domain  =>  undef,
  -path=>  '/',
  -secure  =>  undef,
 );
  
  $cookie->bake;
} else {
  $sent = 'received cookie';
}
$r->content_type("text/html");
$r->send_http_header;

print "$0 $sent", "";
main::dumpValue(\$cookies);
print "", $r->as_string, "";
map { print "  $_ => '$ENV{$_}' \n"; } sort keys %ENV;
#





Re: Site Host Providers that Support mod_perl?

2002-03-08 Thread Sergey Maretskiy

Hello.

Sorry my bad English.
There is ISP Zenon http://zenon.net
I think Zenon is the best of those providing professional hosting services
and they rank first
by number of clients hosted in Russia.
They offer personal httpd with mod_perl (running as backend), shell, gcc,
personal MySQL and PostgreSQL DBs etc. for $45/month.
They also pay a lot of attention to security (for example, personal httpd is
actually given to each client even on smaller plans where you don't have
access to httpd.conf, so users cannot walk by each other account data etc.)
Unfortunatly English part of their site is very poor and I don't know if
they provide same good international services as local. But may be you will
have success with them!

Sergey.

- Original Message -
From: "Fran Fabrizio" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 07, 2002 7:34 PM
Subject: Re: Site Host Providers that Support mod_perl?


>
> I thought I had posted to this thread yesterday but looking back I don't
> see that it showed up, so I'll try again. :)
>
> I'm also looking for good mod_perl-supporting ISPs.  Recently I went
> through the list on the web site, and either the links were broken, or
> the sites made no mention of supporting mod_perl.  The best I've managed
> to find on my own is an ISP that starts supporting it at the $250/month
> level!  Yikes. =)  The inaccuracy of the list doesn't surprise me since
> the ISP world has experienced so much turnover and turmoil in the last
> couple of years.  I'd be willing to compile a list of ISPs that you all
> know about and/or use, and forward that on to the web site maintainer.
>
> I know one option is to run your own mod-perl enabled apache but I
> imagine that a lot of ISPs would get pretty upset about you running
> servers (especially ones that love memory) on non-privileged ports, if
> they even allow connections to those ports in the first place.
>
> My ideal setup would be to be able to colocate one of my servers and
> just use the ISP's bandwidth, but those plans are all pretty pricey.
> So, I'd really like to have a good ISP that supports mod_perl that I can
> afford because I'd enjoy being able to play around and create sites that
> use mod_perl outside of work.  Of course, I can do it at home, but it's
> not the best place to host a web app, it'd have an audience of one. =)
>
> Thanks,
> Fran
>
> David Simcik wrote:
>
> > Alright, I'm a total mod_perl newbie and would like to find a host for
my
> > personal site that allows me to develop mod_perl scripts. First off, I'm
> > assuming that there is no way to install mod_perl on my current provider
due
> > to (obvious) access privilige restrictions to Apache? Secondly, the
obvious
> > question here, whom would you folks recommend for hosting services,
assuming
> > the afforementioned?
> >
> > Thanks!
> > David
> >
>
>




Re: segfaulting upon request

2002-03-08 Thread Ged Haywood

Hi there,

On Thu, 7 Mar 2002, Steev Hise wrote:

> On Thu, 7 Mar 2002, Ged Haywood wrote:
> 
> ->> on redhat 7.0 linux i686, kernel 2.2.19-7.0.1smp
> ->--
> ->> perl -V
> ->> Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
> ->>   Platform:
> ->--
> ->> osname=linux, osvers=2.2.16-22smp, archname=i686-linux
> ->--
> ->
> ->Hmmm.  That's interesting... do I smell RPMs?
> 
> i didnt use any rpms when i built apache, modssl, php, and modperl.
> i'm not sure what you mean or how your comment is intended to help.

I apologize if my message was not clear.  Did you build your own Perl?

73,
Ged.