RE: Compiling modperl on unixware

1999-10-08 Thread Tom Hughes

In message <[EMAIL PROTECTED]>
  "Feldman, Leonid" <[EMAIL PROTECTED]> wrote:

>   src/helpers/GuessOS doesnt know about version 2.1.3:

Which may be at least part of your problem ;-)

>4.2MP)
>if [ "x$VERSION" = "x2.1.1" ]; then
>echo "${MACHINE}-whatever-unixware211"; exit 0
>elif [ "x$VERSION" = "x2.1.2" ]; then
>echo "${MACHINE}-whatever-unixware212"; exit 0

Try adding:

   elif [ "x$VERSION" = "x2.1.3" ]; then
   echo "${MACHINE}-whatever-unixware213"; exit 0

You may also need to check what src/Configure does with the result
to make sure it generates -DUW213 on the command line.

>else
>echo "${MACHINE}-whatever-unixware2"; exit 0
>fi
>;;
>
>   I assume that -whatever-unixware2 means Unixware 2.0

In this case yes.

>   Is there a lot of difference between 2.0 and 2.1.3 ?

I believe there are some differences in how Apache does some things
between the two, yes. I'd be surprised if it stopped it building but
it won't work too well when built if you get it wrong.

Tom

-- 
Tom Hughes ([EMAIL PROTECTED])
http://www.compton.nu/
...USAF : Usually Shooting At Friends



Re: httpd.conf problem.

1999-10-08 Thread Michael Hall

On Fri, Oct 08, 1999 at 11:54:58AM -0700, Cliff Rayman wrote:

> I've never used perl sections, but unless $RewriteRule is some magic variable,
> the second assignment simply overwrites the first one.
  
  Sorry for my previous post, I see the problem now after re-reading things.
At first glance I thought he was having different problems and suggested the
'L' switch. I've never done anything similar to what he's doing so I don't
have a suggestion for that, sorry about any confusion, got to try and
remember to fully read before replying :-)



--
If I told you you had a beautiful body, would you hold it against me ?

Mike Hall <[EMAIL PROTECTED]>, ICQ: #37292579, http://www.riverside.org
System Administrator (MH993) (*nix, OS/2 certified - C, Perl, CGI hacker)



Re: httpd.conf problem.

1999-10-08 Thread Mark Cogan

At 04:25 PM 10/8/99 +0200, Terje Malmedal wrote:
>
>Hi,
>
>Inside a  section I want to configure mod_rewrite dynamically,
>this works:
>
>  $RewriteRule = "/cgi-bin/printenv  /cgi-bin/slave.pl [PT]";
>
>If I do this:
>
>  $RewriteRule = "/cgi-bin/printenv  /cgi-bin/slave.pl [PT]";
>  $RewriteRule = "/cgi-bin/test  /cgi-bin/slave.pl [PT]";
>
>the last RewriteRule will hide the first one. 
>
>The following attempts to not work at all: 
>  push(@RewriteRule , "/cgi-bin/printenv  /cgi-bin/slave.pl [PT]");
>  push(@RewriteRule , "/cgi-bin/printenv" , "/cgi-bin/slave.pl [PT]");
>  push(@RewriteRule , "/cgi-bin/printenv" , "/cgi-bin/slave.pl", "[PT]");
>  $RewriteRule{'/cgi-bin/printenv'} = "/cgi-bin/slave.pl [PT]";

Try:

push @RewriteRule, [qw(/cgi-bin/printenv /cgi-bin/slave.pl [PT])];

(Using an arrayref for the values of the rule.) 

(I have no idea if that will work or not, but that seems to be how things
like [Perl]SetEnv work.) 
---
Mark Cogan[EMAIL PROTECTED] 
Director of Engineering +1 520-881-8101
ArtToday   www.arttoday.com



Re: 2 servers setup: mod_proxy cacheing

1999-10-08 Thread Leslie Mikesell

According to Oleg Bartunov:

> Hmm, very interesting solution but I can't explain every user
> please configure your browser in special way to browse my site.

I didn't mean that was a solution - just that I set everything
up according to directions and it did cache when it had an
explict proxy request from a client, but I still didn't get
the internal proxy requests to cache.  Not much of my dynamic
content could be meaningfully cached anyway so it is working
out pretty well to have a strict split between static files
and uncached proxy passthrough.  There are a couple of exceptions
where I rebuild static files every few minutes.  If I had a
lot of those I would probably work harder on controlling a
cache.

> The problem becomes more complex if we'll take into account
> not only proxy cacheing feature but also clients browser
> cache. 

It turns out to be hard to get this exactly right.  Most clients
won't cache anything with a '?' at all and intermediate caches
have differing policies about /cgi-bin/ and other well-known
hints about dynamic content.  Also the original Expires: header
uses the clients concept of time which may not match yours
(and there is a bug in an old version of Netscape that causes
it to reload animated gifs for each animation step if an
Expires: header is present).  There are now Cache-Control: headers
that give a finer grained control but not everything uses them.

  Les Mikesell
   [EMAIL PROTECTED]



Re: 2 servers setup: mod_proxy cacheing

1999-10-08 Thread Oleg Bartunov

On Fri, 8 Oct 1999, Leslie Mikesell wrote:

> Date: Fri, 8 Oct 1999 16:22:58 -0500 (CDT)
> From: Leslie Mikesell <[EMAIL PROTECTED]>
> To: Stas Bekman <[EMAIL PROTECTED]>
> Cc: Oleg Bartunov <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> Subject: Re: 2 servers setup: mod_proxy cacheing
> 
> According to Stas Bekman:
> > > I have 2 servers setup and would like to configure
> > > frontend to cache output from backend using mod_proxy.
> > > I tried to add various headers but never seen any files
> > > in proxy directory. I didn't find any recommendation in your
> > > guide how to configure servers to get Apache cacheing works.
> > 
> > A good question... Any of the mod_proxy users care to give Oleg (and the
> > guide :) a hand here? I use squid as a front end, that's why I don't have
> > any examples from mod_proxy...
> 
> I tried it several versions of apache ago and never got it to 
> cache anything as a reverse proxy, but with the same setup I
> could configure a browser to use the box as a normal proxy and
> it would cache those pages.  I used squid for a while, then
> switched to an apache that serves the images and static pages
> directly and proxies everything else to mod_perl (using mod_rewrite
> to decide). 

Hmm, very interesting solution but I can't explain every user
please configure your browser in special way to browse my site.
I'd prefer to get apache's mod_proxy cacheing mechanism to work
as supposed. It's very mysterious part of apache code 
Who's the author of mod_proxy ? May be he will be able to 
show us some working example. Also I found one very interesting
posting by Andreas concerning http headers and caching
but lost URL. I remember it had to be a part of Guide.
What's the status of this chapter ? Is it possible to find
it in Web ? We really need working example to play with.
The problem becomes more complex if we'll take into account
not only proxy cacheing feature but also clients browser
cache. I'd prefer to have control on both of them,
for example proxy-frontend caches output from cgi-backend and
browser also could cache documents, so user could
go back and forward without contacting even with  proxy.
Moreover, user could also  use proxy server and this
proxy will contact with proxy-frontend. What's the mess :-(
I use Mason on cgi-backend to produce dynamic output
(semantically static using Andreas terminology)
which also has some internal cache.  Fortunately
it's fully controlled without any headers :-) 

I'd prefer to stay with HTTP 1.0 because most proxies
doesn't support 1.1 yet (btw, what's about apache proxy)


Regards,
Oleg

> 
>   Les Mikesell
>[EMAIL PROTECTED]
> 

_
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: [EMAIL PROTECTED], http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83



Re: 2 servers setup: mod_proxy cacheing

1999-10-08 Thread Leslie Mikesell

According to Stas Bekman:
> > I have 2 servers setup and would like to configure
> > frontend to cache output from backend using mod_proxy.
> > I tried to add various headers but never seen any files
> > in proxy directory. I didn't find any recommendation in your
> > guide how to configure servers to get Apache cacheing works.
> 
> A good question... Any of the mod_proxy users care to give Oleg (and the
> guide :) a hand here? I use squid as a front end, that's why I don't have
> any examples from mod_proxy...

I tried it several versions of apache ago and never got it to 
cache anything as a reverse proxy, but with the same setup I
could configure a browser to use the box as a normal proxy and
it would cache those pages.  I used squid for a while, then
switched to an apache that serves the images and static pages
directly and proxies everything else to mod_perl (using mod_rewrite
to decide). 

  Les Mikesell
   [EMAIL PROTECTED]



Re: 2 servers setup: mod_proxy cacheing

1999-10-08 Thread Stas Bekman

> I have 2 servers setup and would like to configure
> frontend to cache output from backend using mod_proxy.
> I tried to add various headers but never seen any files
> in proxy directory. I didn't find any recommendation in your
> guide how to configure servers to get Apache cacheing works.

A good question... Any of the mod_proxy users care to give Oleg (and the
guide :) a hand here? I use squid as a front end, that's why I don't have
any examples from mod_proxy...

> Is it possible to cache script output using Apache proxy
> and what headers should be used ?
> Any working examples would be quite useful.

Andreas Koenig have prepared a good remedy!
http://cpan.org/modules/by-authors/Andreas_K%f6nig/Apache-correct_headers-1.16.tar.gz

> 
>   Regards,
> 
>   Oleg
> _
> Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
> Sternberg Astronomical Institute, Moscow University (Russia)
> Internet: [EMAIL PROTECTED], http://www.sai.msu.su/~megera/
> phone: +007(095)939-16-83, +007(095)939-23-83
> 
> 



___
Stas Bekman  mailto:[EMAIL PROTECTED]www.singlesheaven.com/stas  
Perl,CGI,Apache,Linux,Web,Java,PC at  www.singlesheaven.com/stas/TULARC
www.apache.org  & www.perl.com  == www.modperl.com  ||  perl.apache.org
single o-> + single o-+ = singlesheavenhttp://www.singlesheaven.com



Re: httpd.conf problem.

1999-10-08 Thread Cliff Rayman

I've never used perl sections, but unless $RewriteRule is some magic variable,
the second assignment simply overwrites the first one.

I thought it had to be something along the lines of:

push(@RewriteRule , "/cgi-bin/printenv" , "/cgi-bin/slave.pl [PT]");

or

$RewriteRule{"/cgi-bin/printenv"}="/cgi-bin/slave.pl [PT]";

cliff rayman
genwax.com

Michael Hall wrote:

> On Fri, Oct 08, 1999 at 04:25:39PM +0200, Terje Malmedal wrote:
>
> > Inside a  section I want to configure mod_rewrite dynamically,
> > this works:
> >
> >   $RewriteRule = "/cgi-bin/printenv  /cgi-bin/slave.pl [PT]";
> >
> > If I do this:
> >
> >   $RewriteRule = "/cgi-bin/printenv  /cgi-bin/slave.pl [PT]";
> >   $RewriteRule = "/cgi-bin/test  /cgi-bin/slave.pl [PT]";
> >
> > the last RewriteRule will hide the first one.
> >
> > The following attempts to not work at all:
> >   push(@RewriteRule , "/cgi-bin/printenv  /cgi-bin/slave.pl [PT]");
> >   push(@RewriteRule , "/cgi-bin/printenv" , "/cgi-bin/slave.pl [PT]");
> >   push(@RewriteRule , "/cgi-bin/printenv" , "/cgi-bin/slave.pl", "[PT]");
> >   $RewriteRule{'/cgi-bin/printenv'} = "/cgi-bin/slave.pl [PT]";
> >
> > Am I missing something obvious?
>
>   Have you tried using the 'L' flag (see Apache manual) this will stop
> further processing, ie:
>
> $RewriteRule = "/cgi-bin/printenv  /cgi-bin/slave.pl [PT,L]";
> $RewriteRule = "/cgi-bin/test  /cgi-bin/slave.pl [PT,L]";
>
> --
> I've been dead before. - Captain Spock, Star Trek VI
>
> Mike Hall <[EMAIL PROTECTED]>, ICQ: #37292579, http://www.riverside.org
> System Administrator (MH993) (*nix, OS/2 certified - C, Perl, CGI hacker)



RE: Compiling modperl on unixware

1999-10-08 Thread Feldman, Leonid


src/helpers/GuessOS doesnt know about version 2.1.3:

 4.2MP)
if [ "x$VERSION" = "x2.1.1" ]; then
echo "${MACHINE}-whatever-unixware211"; exit 0
elif [ "x$VERSION" = "x2.1.2" ]; then
echo "${MACHINE}-whatever-unixware212"; exit 0
else
echo "${MACHINE}-whatever-unixware2"; exit 0
fi
;; 

I assume that -whatever-unixware2 means Unixware 2.0 

Is there a lot of difference between 2.0 and 2.1.3 ?

Thanks
Leonid



-Original Message-
From: Tom Hughes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 07, 1999 6:10 PM
To: [EMAIL PROTECTED]
Subject: RE: Compiling modperl on unixware


In message <[EMAIL PROTECTED]>
  "Feldman, Leonid" <[EMAIL PROTECTED]> wrote:

>I am running Unixware 2.1.3.

Well I suggest you look at src/helpers/GuessOS in the Apache source
tree then, to see why it thinks you're running Unixware 2.0.x...

Tom

-- 
Tom Hughes ([EMAIL PROTECTED])
http://www.compton.nu/
...My NOSE is NUMB!



Re: httpd.conf problem.

1999-10-08 Thread Michael Hall

On Fri, Oct 08, 1999 at 04:25:39PM +0200, Terje Malmedal wrote:

> Inside a  section I want to configure mod_rewrite dynamically,
> this works:
> 
>   $RewriteRule = "/cgi-bin/printenv  /cgi-bin/slave.pl [PT]";
> 
> If I do this:
> 
>   $RewriteRule = "/cgi-bin/printenv  /cgi-bin/slave.pl [PT]";
>   $RewriteRule = "/cgi-bin/test  /cgi-bin/slave.pl [PT]";
> 
> the last RewriteRule will hide the first one. 
> 
> The following attempts to not work at all: 
>   push(@RewriteRule , "/cgi-bin/printenv  /cgi-bin/slave.pl [PT]");
>   push(@RewriteRule , "/cgi-bin/printenv" , "/cgi-bin/slave.pl [PT]");
>   push(@RewriteRule , "/cgi-bin/printenv" , "/cgi-bin/slave.pl", "[PT]");
>   $RewriteRule{'/cgi-bin/printenv'} = "/cgi-bin/slave.pl [PT]";
> 
> Am I missing something obvious? 

  Have you tried using the 'L' flag (see Apache manual) this will stop
further processing, ie:

$RewriteRule = "/cgi-bin/printenv  /cgi-bin/slave.pl [PT,L]";
$RewriteRule = "/cgi-bin/test  /cgi-bin/slave.pl [PT,L]";

--
I've been dead before. - Captain Spock, Star Trek VI

Mike Hall <[EMAIL PROTECTED]>, ICQ: #37292579, http://www.riverside.org
System Administrator (MH993) (*nix, OS/2 certified - C, Perl, CGI hacker)



Re: Guide addition?

1999-10-08 Thread Stas Bekman

On Fri, 8 Oct 1999, Matt Sergeant wrote:

> On Fri, 08 Oct 1999, Stas Bekman wrote:
> > On 7 Oct 1999, Randal L. Schwartz wrote:
> > 
> > > > "Stas" == Stas Bekman <[EMAIL PROTECTED]> writes:
> > > 
> > > Stas> yes, there are... you get a code like:
> > > 
> > > Stas> sub handler{
> > > Stas> print "hi\n";
> > > 
> > > Stas> =pod
> > > 
> > > Stas> =head1 Hi
> > > 
> > > Stas> =cut
> > >
> > > Stas> }
> > > 
> > > Stas> which is syntaxically incorrect, pod directives should not appear inside
> > > Stas> the subs... I'll add this note too...
> > > 
> > > What's incorrect about that?  Pod is meant to be intertwined with
> > > Perl.
> > 
> > Heh, did you try to run the code which includes, pod directives inside the
> > subroutine? At least it didn't work for me with perl5.00503. Does it work
> > for you?
> 
> Works for me - perhaps you indented the pod directives? (5.00503)

Yup, I was wrong - it works!!!
The problem indeed was the indented pod directives :( My mistake
Somehow I thought that Registry indents the code it wraps, like
cperl-mode.el ... 

Thanks, Matt!

___
Stas Bekman  mailto:[EMAIL PROTECTED]www.singlesheaven.com/stas  
Perl,CGI,Apache,Linux,Web,Java,PC at  www.singlesheaven.com/stas/TULARC
www.apache.org  & www.perl.com  == www.modperl.com  ||  perl.apache.org
single o-> + single o-+ = singlesheavenhttp://www.singlesheaven.com



Re: Apache::ASP ( directive) & Authentication?

1999-10-08 Thread Jeremy Domingue

Sorry about the double post, you guys can ignore this one... I sent this
yesterday afternoon and when it didn't go through I subscribed to the list
and sent another...

Not sure why this one took almost 24 hours to go through

Jeremy Domingue
[EMAIL PROTECTED]


- Original Message -
From: "Jeremy Domingue" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 07, 1999 2:54 PM
Subject: Apache::ASP ( directive) & Authentication?


Hey all,

I just upgraded to Apache::ASP 0.16 last night and I've run into an
interesting problem. This only started happening after the upgrade so I'm
assuming that it's something that was changed in Apache::ASP.

For some reason, when I have the  directive enabled (so that
Apache::ASP will run), it seems to cause Apache to stop requesting
authentication information from a client when that client requests a
document (or directory) that is protected by the
AuthName/AuthUserFile/AuthGroupFile directives. As soon as I remove the
 directive, it works like normal.

This doesn't really make sense to me considering the  directive
only looks at *.asp files, why would it be effecting security on other
files? Is this a bug in Apache, mod_perl, or Apache::ASP? Has anyone run
into this before?

Another interesting thing is that it doesn't effect any virtual hosts... it
only affects the main web server.

I've tried changing various options, and also tried the 
directive instead of , but I always run into the same thing... the
only way I can get Apache to request the authentication information is if I
remove the  and/or  directive from the root .htaccess
file.

I am running Apache 1.3.9, mod_perl 1.21, and Apache::ASP 0.16.

Any input, suggestions, or ideas would be greatly appreciated! Please CC
your replies to me as I am not subscribed to the modperl list.

TIA!

Jeremy Domingue
[EMAIL PROTECTED]





Apache::ASP ( directive) & Authentication?

1999-10-08 Thread Jeremy Domingue

Hey all,

I just upgraded to Apache::ASP 0.16 last night and I've run into an
interesting problem. This only started happening after the upgrade so I'm
assuming that it's something that was changed in Apache::ASP.

For some reason, when I have the  directive enabled (so that
Apache::ASP will run), it seems to cause Apache to stop requesting
authentication information from a client when that client requests a
document (or directory) that is protected by the
AuthName/AuthUserFile/AuthGroupFile directives. As soon as I remove the
 directive, it works like normal.

This doesn't really make sense to me considering the  directive
only looks at *.asp files, why would it be effecting security on other
files? Is this a bug in Apache, mod_perl, or Apache::ASP? Has anyone run
into this before?

Another interesting thing is that it doesn't effect any virtual hosts... it
only affects the main web server.

I've tried changing various options, and also tried the 
directive instead of , but I always run into the same thing... the
only way I can get Apache to request the authentication information is if I
remove the  and/or  directive from the root .htaccess
file.

I am running Apache 1.3.9, mod_perl 1.21, and Apache::ASP 0.16.

Any input, suggestions, or ideas would be greatly appreciated! Please CC
your replies to me as I am not subscribed to the modperl list.

TIA!

Jeremy Domingue
[EMAIL PROTECTED]



SelfLoader.pm observation & question.

1999-10-08 Thread J. Robert von Behren


Hey all - 

I've put together a slightly modified version of SelfLoader.pm that works
inside Apache::Registry, Apache::PerlRun and normal CGI scripts.  (I
needed to have a script that runs unmodified in several environments.) In
doing so, I noticed a minor bug in the file parsing in SelfLoader.pm - it 
doesn't find subroutines for which the "sub" statement has blank space 
preceeding it.  

So here's the question: I wanted to submit this fix & the mod_perl changes
to the maintainer, but the module doesn't mention the author's name and I 
can't find on CPAN.  Does anyone know who I should send this mod to?  

Thanks,

-Rob von Behren



RE: Urgent--Any limit on Hash table in Shared Memory?

1999-10-08 Thread Sheth, Niraj

(for solaris, don't know much about other os)

/etc/system
set shmsys:shminfo_shmmax=
set shmsys:shminfo_shmmni=
set shmsys:shminfo_shmseg=

(kernel load this at boot time).
shmmax is maximum amount of memory you can request ...
shmmni is the maximum number of shared-memory id available in system
shmseg is the maximum number of shared-memory id per process..
(looks like shmseg is 127)

If needed also modify Shareable.pm for SHM_BUFSIZ to higher value ...

make sure you have enough ...

also try sysdef to see settings ..
Hope this helps.

Niraj


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 07, 1999 3:51 PM
To: [EMAIL PROTECTED]
Subject: Urgent--Any limit on Hash table in Shared Memory?


I used IPC::shareable module to construct a nested HASH table in 
shared memory. It worked fine during "on-demand" test. When I move 
from "on-demand" to "preload", An error came up saying that "No space 
left on device". The machine has 0.5GB menory and most is still 
available. Each entry in the Hash table is less than 1K. The logfile I 
printed out during Httpd start indicates that each time, this error 
shows up when the 128th entry is constructed. So I wonder whether 
there is any limitation on Shared Hash table and whether there is a 
way around this problem. 

Right now, each buffer_size is set to SHMMAX (32M). total 4096 seg is 
allowed. 
Another quick question is that whether there is a way to get info on 
how many share memory segments has been allocated and how many 
physical memory still available?

Any suggestion is appreciated!

-Martin




RE: Compiling modperl on unixware

1999-10-08 Thread Tom Hughes

In message <[EMAIL PROTECTED]>
  "Feldman, Leonid" <[EMAIL PROTECTED]> wrote:

>I am running Unixware 2.1.3.

Well I suggest you look at src/helpers/GuessOS in the Apache source
tree then, to see why it thinks you're running Unixware 2.0.x...

Tom

-- 
Tom Hughes ([EMAIL PROTECTED])
http://www.compton.nu/
...My NOSE is NUMB!



modperl Terminal Size error

1999-10-08 Thread NRL Web Master

Greetings,

Testing a simple script under modperl  using Registry and -X and Apache::DB,
as explained by Stas Bekman

It runs OK about seven times then it fails.  Here is the error_log output:

resize:  can't open terminal /dev/tty
[Fri Oct  8 07:47:39 1999] [error] Unable to get Terminal Size. The TIOCGWINSZ
ioctl didn't work. The COLUMNS and LINES environment va
riables didn't work. The resize program didn't work. at
/users/webuser/lib/perl5/site_perl/5.005/sun4-solaris/Term/ReadKey.pm line 323
.
diagnostics::death_trap('Unable to get Terminal Size. The TIOCGWINSZ
ioctl didn\'t work. ...') called at /users/webuser/lib/pe
rl5/site_perl/5.005/sun4-solaris/Term/ReadKey.pm line 323
Term::ReadKey::GetTerminalSize('GLOB(0x9c7e6c)') called at
/users/webuser/lib/perl5/site_perl/5.005/Term/ReadLine/readline.pm
line 242
readline::get_window_size called at
/users/webuser/lib/perl5/site_perl/5.005/Term/ReadLine/readline.pm line 610
readline::init called at
/users/webuser/lib/perl5/site_perl/5.005/Term/ReadLine/readline.pm line 92
require Term/ReadLine/readline.pm called at
/users/webuser/lib/perl5/site_perl/5.005/Term/ReadLine/Perl.pm line 58
eval {...} called at
/users/webuser/lib/perl5/site_perl/5.005/Term/ReadLine/Perl.pm line 58
Term::ReadLine::Perl::new('Term::ReadLine', 'perldb', 'GLOB(0x9ec63c)',
'GLOB(0x9c7e6c)') called at /users/webuser/lib/perl5/s
ite_perl/5.005/sun4-solaris/Apache/perl5db.pl line 1462
DB::setterm called at
/users/webuser/lib/perl5/site_perl/5.005/sun4-solaris/Apache/perl5db.pl line
476
DB::DB called at (eval 2949) line 1
Apache::ROOT::perl::tc_test::handler('Apache=SCALAR(0x9c7ea8)') called
at /users/webuser/lib/perl5/site_perl/5.005/sun4-solari
s/Apache/Registry.pm line 140
eval {...} called at
/users/webuser/lib/perl5/site_perl/5.005/sun4-solaris/Apache/Registry.pm line
140
Apache::Registry::handler('Apache=SCALAR(0x9c7ea8)') called at
/users/webuser/lib/perl5/site_perl/5.005/Term/ReadLine/readline
.pm line 0
eval {...} called at
/users/webuser/lib/perl5/site_perl/5.005/Term/ReadLine/readline.pm line 0

#

Here are the two pieces of code, tc_test and Test_Package.pm

#!/usr/local/bin/perl   -w
# tc_test
use strict;
use diagnostics;

use lib qw(./Modules);
use Test_Package;

print "TCLIST=$Test_Package::TCLIST\n";
print "Colors = \n";
foreach my $color (@Test_Package::COLORS){
print "$color\n";
}

and in my Modules directory

package Test_Package;
#use strict;
use vars qw (@EXPORT $VERSION @ISA );
use Exporter;
$VERSION = 1.00;
@ISA = qw(Exporter);
@EXPORT = qw ($TCLIST @COLORS);

#
$TCLIST = "./tc_list_storms";
@COLORS = qw (red orange yellow green blue violet);

1;
~~

It also fails under PerlRun.   However under  PerlRun it prints the variables
a variable number of times, then suddenly stops and will not print again
till the server is restarted.

Appreciate any assistance as to why this is failing.  As you can see
I tried the Package::some_variable trick suggested by Stas but it doesn't
seem to solve the problem.

Thank you very much,

John Kent
Naval Research Laboratory
Monterey California
~~



httpd.conf problem.

1999-10-08 Thread Terje Malmedal


Hi,

Inside a  section I want to configure mod_rewrite dynamically,
this works:

  $RewriteRule = "/cgi-bin/printenv  /cgi-bin/slave.pl [PT]";

If I do this:

  $RewriteRule = "/cgi-bin/printenv  /cgi-bin/slave.pl [PT]";
  $RewriteRule = "/cgi-bin/test  /cgi-bin/slave.pl [PT]";

the last RewriteRule will hide the first one. 

The following attempts to not work at all: 
  push(@RewriteRule , "/cgi-bin/printenv  /cgi-bin/slave.pl [PT]");
  push(@RewriteRule , "/cgi-bin/printenv" , "/cgi-bin/slave.pl [PT]");
  push(@RewriteRule , "/cgi-bin/printenv" , "/cgi-bin/slave.pl", "[PT]");
  $RewriteRule{'/cgi-bin/printenv'} = "/cgi-bin/slave.pl [PT]";

Am I missing something obvious? 

I am using Apache/1.3.9 with mod_perl/1.21 in case ut matters. 

-- 
 - Terje
[EMAIL PROTECTED]



make target tar_Apache broken in 1.21?

1999-10-08 Thread Mark Doyle

Hi,

I am upgrading some machines to Apache 1.3.9 and mod_perl 1.21 and would  
like to use the tar_Apache target to tar up the mod_perl portion. The  
Makefile has:

tar_Apache:
(cd $(INSTALLSITELIB); \
 $(TAR) -cf $(PWD)/Apache.tar mod_perl.pm Apache.pm Apache  
$(ARCHNAME)/auto/Apache; )

but when I run 'make tar_Apache' I get:

tar -cf /src/web/mod_perl-1.21/Apache.tar mod_perl.pm Apache.pm Apache  
sun4-solaris/auto/Apache; )
tar: mod_perl.pm: No such file or directory
tar: Apache.pm: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `tar_Apache'

Anyone know what the proper tar command should be to gather everything up?

Thanks,
Mark

Mark Doyle
Research and Development
The American Physical Society



Re: ISP's that support mod_perl?

1999-10-08 Thread Stas Bekman

>   Does anyone know where I can get a list of ISP's that support mod_perl?

it was answered by Tobias. I'm sure there are many more who aren't listed

> Any recomendations? What kind of concerns/questions should I have when
> asking about ISP's support for mod_perl?

http://perl.apache.org/guide/multiuser.html

___
Stas Bekman  mailto:[EMAIL PROTECTED]www.singlesheaven.com/stas  
Perl,CGI,Apache,Linux,Web,Java,PC at  www.singlesheaven.com/stas/TULARC
www.apache.org  & www.perl.com  == www.modperl.com  ||  perl.apache.org
single o-> + single o-+ = singlesheavenhttp://www.singlesheaven.com




Re: new for embperl...

1999-10-08 Thread Jearanai Vongsaard

On Wed, 6 Oct 1999, G.Richter wrote:

> This is an effect off FreshRestart On, when the server is restarted the
> module is loaded, again and so the subroutine get redefined. It's only an
> warning.
> 
> Try to stop and start the server, then request your document and take a look
> at the error.log. Anythingelse there?
> 
> Gerald
> 

I found a lot of errors that talk about constant.pm and found that the
apache cannot call loop.htm in /usr/local/apache/htdocs/emperl/eg/x/loop.htm
So, it should call from
/opt/local/download/apache_1.3.9/emperl/eg/x/loop.htm, shouldn't it?
Please help!!!
--apple

Here is the output in error_log's apache
 ...
[Fri Oct  8 12:39:38 1999] Embperl.pm: Constant subroutine
rcCallInputFuncFailed redefined at
/usr/freeware/lib/perl5/5.00502/constant.pm line 161.
[Fri Oct  8 12:39:38 1999] Embperl.pm: Constant subroutine
rcCallOutputFuncFailed redefined at
/usr/freeware/lib/perl5/5.00502/constant.pm line 161.
[Fri Oct  8 12:39:38 1999] Embperl.pm: Constant subroutine rcSubNotFound
redefined at /usr/freeware/lib/perl5/5.00502/constant.pm line 161.
[Fri Oct  8 12:39:38 1999] Embperl.pm: Constant subroutine
rcImportStashErr redefined at /usr/freeware/lib/perl5/5.00502/constant.pm
line 161.
[Fri Oct  8 12:39:38 1999] Embperl.pm: Constant subroutine rcCGIError
redefined at /usr/freeware/lib/perl5/5.00502/constant.pm line 161.
[Fri Oct  8 12:39:38 1999] [notice] Apache/1.3.9 (Unix) mod_perl/1.21
configured -- resuming normal operations
[Fri Oct  8 12:43:43 1999] [error] [client 129.174.124.121] File does
not exist: /usr/local/apache/htdocs/emperl/x/loop.htm
[Fri Oct  8 12:44:01 1999] [error] [client 129.174.124.121] File does
not exist: /usr/local/apache/htdocs/emperl/eq/x/loop.htm
[Fri Oct  8 12:44:54 1999] [error] [client 129.174.124.121] File does
not exist: /usr/local/apache/htdocs/emperl/eq/loop.htm
[Fri Oct  8 12:45:01 1999] [error] [client 129.174.124.121] File does
not exist: /usr/local/apache/htdocs/emperl/x/
[Fri Oct  8 12:47:55 1999] [error] [client 129.174.124.121] File does
not exist: /usr/local/apache/htdocs/emperl/eg/x/loop.htm
[Fri Oct  8 12:49:41 1999] [notice] caught SIGTERM, shutting down
...




RE: sybase / mod_perl / linux question? [OFFTOPIC]

1999-10-08 Thread Ed Park

Interesting.

I tested an identical setup of Apache/modperl/Embperl/Oracle on NT and
Linux, and I experienced a huge slowdown on NT. When I looked into it, I
found that the more database-intensive the page, the slower the relative
performance of the NT platform. I took that to mean that it was actually
Oracle on NT that was the root of the problem, but wasn't sure. I guess now
I know.

-Ed

>Doesn't seem to have hindered it in any way for me. Linus has
> discussed raw
> partitions several times - the upshot being that they tend to be no faster
> than using e2fs because e2fs is very fast anyway, and you'd simply have to
> implement a lot of the e2fs functions inside of your database anyway.
>
> Anyhow - I don't know about all the internal workings of these things -
> just that it works and is damn quick for me.
>
> BTW: Someone benchmarked Oracle on Linux vs Oracle on NT (using TPC code)
> and found the Linux version to be about 4-7 (depending on the test) times
> faster. So I guess that's a finger in the eye to raw partitions (I think
> the NT version can use raw partitions - correct me if I'm wrong).
>
> --
> 
>
> Details: FastNet Software Ltd - XML, Perl, Databases.
> Tagline: High Performance Web Solutions
> Web Sites: http://come.to/fastnet http://sergeant.org
> Available for Consultancy, Contracts and Training.
>



Re: encrypting source code

1999-10-08 Thread Nick Bauman

Right on, brutha!

But seriously, Open Source, no matter how incidentally
noble it is, represents a "better way" to develop
high-quality software for many systems development
goals.

Bottom line: To focus on the nobility of it is to have
a schitzophrenia about the benifits of using open
source.

-Nick

--- Mark Bainter <[EMAIL PROTECTED]> wrote:
> Nedim Cholich [[EMAIL PROTECTED]] wrote:
> > Tom, don't make it religious. Open Source is great
> paradigm, but some things
> > in life are not open source. Giving back to the
> community is noble, but we
> > have to make a living, and we can't all be Perl
> instructors, or write books
> 
> I think that was a little unnecessary don't you? 
> Giving back to the 
> community is not about being 'noble'.  Let's take a
> really obvious 
> example.  If people like Larry and Tom and Randal
> took your attitude you'd
> be paying for this tool.  And it wouldn't be nearly
> as good and we
> probably wouldn't even have mod_perl, embperl or any
> of the other variations.  
> And there would be no CGI.pm, heck there would be no
> CPAN.  You
> don't seem to have any problem taking advantage of
> what an open 
> development model offers you, why is it so difficult
> for people to
> give back?
> 
> > Y'all should embrace using these technologies in a
> corporate world, as a
> > kind of recognition this crowd needs badly.
> 
> Balogna.  "this crowd" doesn't need media
> recognition.  In fact, the
> only thing media recognition can do for (to) this
> crowd is to bring
> more people with this kind of attitude.  That's not
> what we need.
> 
> > > >need to be open source. As a meter of fact,
> most of the work people on
> > this
> > > >list are doing is commercial and not open
> source. That's how we make a
> > > >living!
> 
> I'm not sure that's a statement you can make. 
> First, I doubt you know what
> most of the work people on the list is.  Second, you
> seem to have this wierd
> opinion that commercial and open source are
> antithetical.  This is not the
> case.  I have done a lot of open source work for
> commercial companies.  I
> used to work for an ISP where I released all my work
> in the open.  Stuff
> we did for web clients (email scripts, image manip
> scripts, etc) and 
> sysadmin utilities.  I'm now working for a company
> where we are looking
> at releasing the code for our mod_perl site open. 
> 
> I will never understand this attitude towards an
> open development model.
> Especially from people benefiting from it's
> advantages.
> 
> Note:
>   I don't know Nedim.  I have only been on this
> particular list a short
>   while.  This is in no way meant to be a flame. 
> It's more of a...
>   general rant.. than anything else.  
> 


=
# Nick Bauman
# Technical Programmer
# Founding Child of Simplexity Systems,
# A Non-Profit IT Consortium (Sempher Ubi Sububi)
__
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com



Re: sybase / mod_perl / linux question? [OFFTOPIC]

1999-10-08 Thread Matt Sergeant

On Fri, 08 Oct 1999, Joe Pearson wrote:
> What about raw partitions on linux.  I thought linux does not support
> raw partitions (maybe this has changed?)   Since Sybase really
> recommends databases be put on raw partitions so that disk writes are
> not buffered by the OS.  

Doesn't seem to have hindered it in any way for me. Linus has discussed raw
partitions several times - the upshot being that they tend to be no faster
than using e2fs because e2fs is very fast anyway, and you'd simply have to
implement a lot of the e2fs functions inside of your database anyway.

Anyhow - I don't know about all the internal workings of these things -
just that it works and is damn quick for me.

BTW: Someone benchmarked Oracle on Linux vs Oracle on NT (using TPC code)
and found the Linux version to be about 4-7 (depending on the test) times
faster. So I guess that's a finger in the eye to raw partitions (I think
the NT version can use raw partitions - correct me if I'm wrong).

--


Details: FastNet Software Ltd - XML, Perl, Databases.
Tagline: High Performance Web Solutions
Web Sites: http://come.to/fastnet http://sergeant.org
Available for Consultancy, Contracts and Training.



Re: sybase / mod_perl / linux question? [OFFTOPIC]

1999-10-08 Thread Dave Hodgkinson


"Joe Pearson" <[EMAIL PROTECTED]> writes:

> 
> What about raw partitions on linux.  I thought linux does not support
> raw partitions (maybe this has changed?)   Since Sybase really
> recommends databases be put on raw partitions so that disk writes are
> not buffered by the OS.  

Strangely, I seem to remember on the "Sybase Performance Tuning"
course I went on, the opposite view was taken, since maximum use was
made of cool facilities in the operating system if you went over the
filesystem. This was Sybase 10 though so it may well have changed
since then.

And YMMV.

-- 
David Hodgkinson, Technical Director, Sift PLChttp://www.sift.co.uk
Editor, "The Highway Star"   http://www.deep-purple.com
Dave endorses Yanagisawa saxes, Apache, Perl, Linux, MySQL, emacs, gnus



Re: sybase / mod_perl / linux question? [OFFTOPIC]

1999-10-08 Thread Michael Peppler

Joe Pearson writes:
 > What about raw partitions on linux.  I thought linux does not support
 > raw partitions (maybe this has changed?)   Since Sybase really
 > recommends databases be put on raw partitions so that disk writes are
 > not buffered by the OS.  

You can use chattr +S.
Also the 11.9.2 release uses the O_SYNC flag to open(2).

(and no, raw partitions and async io isn't supported by linux, yet)

Michael

 > --
 > > From: Matt Sergeant <[EMAIL PROTECTED]>
 > > To: [EMAIL PROTECTED]; Jesse Kanner <[EMAIL PROTECTED]>; mod_perl
 > list <[EMAIL PROTECTED]>
 > > Subject: Re: sybase / mod_perl / linux question? [OFFTOPIC]
 > > Date: Thursday, October 07, 1999 5:31 AM
 > > 
 > > On Wed, 06 Oct 1999, Jesse Kanner wrote:
 > > > Be careful here. Last I heard, the 'free' version of sybase
 > ported to
 > > > linux was 'last year's model' and wasn't really that great. It's
 > not the
 > > > same sybase that you'd get if you bought it new.
 > > 
 > > I use the free sybase ase to develop the NNTP backend to O'Reilly's
 > Web
 > > Board, and of course all my local mod_perl web stuff. Been very
 > fast and
 > > very stable. The major difference IIRC between the free ase and the
 > > commercial one is row level locking (there are other diffs, but
 > that's the
 > > one I'm most aware of).
 > > 
 > > --
 > > 
 > > 
 > > Details: FastNet Software Ltd - XML, Perl, Databases.
 > > Tagline: High Performance Web Solutions
 > > Web Sites: http://come.to/fastnet http://sergeant.org
 > > Available for Consultancy, Contracts and Training.

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



Re: internal_redirect and POST

1999-10-08 Thread Dmitry Beransky

Yes, I'm with Andrei on this.  All I want to do is to peek at the content 
been passed and redirect the request based on what's in it.  I did see 
Doug's snippet in the archives, but I decided it didn't apply to me as it 
still wasn't offering a way to retain the content.

This limitation of calling Apache::content (or Apache::read for that 
matter) only once per request seems to be quite arbitrary (I understand the 
reason now, but I still think it's arbitrary).  I'm beginning to think, 
however, that the problem is rooted somewhere in the Apache API and has 
nothing to do with mod_perl, although I suspect that it should be possible 
to work around this limitation within mod_perl.

At 08:31 AM 10/8/99 , Eric Cholet wrote:
>But if you set $r->args to what you read from $r->content before 
>redirecting, won't that work?

Setting Apache::args is a nice work-around, but it won't work with file 
uploads or otherwise large POST requests (will it?).

So my next questions are:  1) is it somehow possible to stuff the result of 
the content/read call back into a request's body for an internal_redirect? 
2) if not, is this the kind of functionality other people would like to 
have? 3) If yes, can mod_perl be changed to implement this functionality or 
should this be brought up on an Apache list?

Thanks everyone

Dmitry

At 08:24 AM 10/8/99 , Andrei A. Voropaev wrote:
>Right :) You just missed the point. I want to read content
>(using $r->content) to check what is being passed and then redirect
>that same content to another handler. That new handler should be able
>to read it from some place. I fool it to believe that method is get
>not post, so it'll try to read $r->args. But it will also return empty
>string.
>
>On Fri, Oct 08, 1999 at 05:05:41PM +0200, Eric Cholet wrote:
> > On Friday, October 08, 1999 3:35 PM, Andrei A. Voropaev
>
> > > Well. I wish you have also mentioned how to unset $r->content()
> > > because it reads content only once. Second time returns undef. The
> >
> > But you shoudn't be radubg $r->content for a GET, right?
> >



Re: Urgent--Any limit on Hash table in Shared Memory?

1999-10-08 Thread lma

Ants,
Thanks for comments. It seems you said the point. Right now, I can 
load 16MB data into a 32MB seg. But if I want to load data more than 
32MB, the error came up. I think it is the semophore problem, because 
from the debug log, I saw that the shmseg is allocated successful. 
Then I tried to untie the variable, it was not successful due to 
semophore problem (I have specified destroy=>1). I have to remove via 
ipcrm. What I still don't quite understand is what is "The Thingy 
Referenced". Would you let me know what man page you are talking 
about? Thanks again!

-Martin

>> Original Message <<

On 10/8/99, 3:06:58 AM, "Anthony Gardner" <[EMAIL PROTECTED]> wrote 
regarding Re: Urgent--Any limit on Hash table in Shared Memory?:


> The only problem I had when creating a hash with loads of data using
> IPC::Shareable was that I constructed the hash incorrectly.

> To begin with, I was using, quoting from the man page, "The Thingy
> Referenced Is Initially False". I was then runnning out of sems and 
mem
> chunks. I then changed my attack to "The Thingy Referenced Is 
Initially
> True". This solved my problem.

> If you've already sussed this then I have no more info for you and 
I've
> wasted your time with this mail.

> -Ants.


> >From: <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Urgent--Any limit on Hash table in Shared Memory?
> >Date: Thu, 07 Oct 1999 19:50:50 GMT
> >
> >I used IPC::shareable module to construct a nested HASH table in
> >shared memory. It worked fine during "on-demand" test. When I move
> >from "on-demand" to "preload", An error came up saying that "No space
> >left on device". The machine has 0.5GB menory and most is still
> >available. Each entry in the Hash table is less than 1K. The logfile 
I
> >printed out during Httpd start indicates that each time, this error
> >shows up when the 128th entry is constructed. So I wonder whether
> >there is any limitation on Shared Hash table and whether there is a
> >way around this problem.
> >
> >Right now, each buffer_size is set to SHMMAX (32M). total 4096 seg is
> >allowed.
> >Another quick question is that whether there is a way to get info on
> >how many share memory segments has been allocated and how many
> >physical memory still available?
> >
> >Any suggestion is appreciated!
> >
> >-Martin
> >
> >
> >
> >

> __
> Get Your Private, Free Email at http://www.hotmail.com





Re: sybase / mod_perl / linux question? [OFFTOPIC]

1999-10-08 Thread Joe Pearson

What about raw partitions on linux.  I thought linux does not support
raw partitions (maybe this has changed?)   Since Sybase really
recommends databases be put on raw partitions so that disk writes are
not buffered by the OS.  

Joe Pearson



--
> From: Matt Sergeant <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]; Jesse Kanner <[EMAIL PROTECTED]>; mod_perl
list <[EMAIL PROTECTED]>
> Subject: Re: sybase / mod_perl / linux question? [OFFTOPIC]
> Date: Thursday, October 07, 1999 5:31 AM
> 
> On Wed, 06 Oct 1999, Jesse Kanner wrote:
> > Be careful here. Last I heard, the 'free' version of sybase
ported to
> > linux was 'last year's model' and wasn't really that great. It's
not the
> > same sybase that you'd get if you bought it new.
> 
> I use the free sybase ase to develop the NNTP backend to O'Reilly's
Web
> Board, and of course all my local mod_perl web stuff. Been very
fast and
> very stable. The major difference IIRC between the free ase and the
> commercial one is row level locking (there are other diffs, but
that's the
> one I'm most aware of).
> 
> --
> 
> 
> Details: FastNet Software Ltd - XML, Perl, Databases.
> Tagline: High Performance Web Solutions
> Web Sites: http://come.to/fastnet http://sergeant.org
> Available for Consultancy, Contracts and Training.



ANNOUNCEMENT: NEW VERSION: HTML::Template 0.95

1999-10-08 Thread Sam Tregar

NAME

HTML::Template - a Perl module to use HTML Templates

CHANGES

0.95
- bug fix: some lines were getting chomped (Eric Zylberstejn)
- *NUMEROUS* bug fixes (David Glasser - Thanks a lot!)
- new FAQ section in documentation
- code cleanup and improved comments

DESCRIPTION

This module attempts make using HTML templates simple and natural.  It
extends standard HTML with a few new HTML-esque tags - ,
, ,  and .  The file
written with HTML and these new tags is called a template.  It is
usually saved separate from your script - possibly even created by
someone else!  Using this module you fill in the values for the
variables, loops and branches declared in the template.  This allows
you to seperate design - the HTML - from the data, which you generate
in the Perl script.

This module is licenced under the GPL.  See the LICENCE section of the
README.


AVAILABILITY

The module is available on CPAN.  You can get it using CPAN.pm or go
to:

http://www.cpan.org/authors/id/S/SA/SAMTREGAR/


MOTIVATION

It is true that there are a number of packages out there to do HTML
templates.  On the one hand you have things like HTML::Embperl which
allows you to freely mix Perl with HTML.  On the other hand lie
home-grown variable substitution solutions.  Hopefully the module can
find a place between the two.

One advantage of this module over a full HTML::Embperl-esque solution
is that it enforces an important divide - design and programming.  By
limiting the programmer to just using simple variables and loops in
the HTML, the template remains accessible to designers and other
non-perl people.  The use of HTML-esque syntax goes further to make
the format understandable to others.  In the future this similarity
could be used to extend existing HTML editors/analyzers to support
this syntax.

An advantage of this module over home-grown tag-replacement schemes is
the support for loops.  In my work I am often called on to produce
tables of data in html.  Producing them using simplistic HTML
templates results in CGIs containing lots of HTML since the HTML
itself could not represent loops.  The introduction of loop statements
in the HTML simplifies this situation considerably.  The designer can
layout a single row and the programmer can fill it in as many times as
necessary - all they must agree on is the parameter names.

For all that, I think the best thing about this module is that it does
just one thing and it does it quickly and carefully.  It doesn't try
to replace Perl and HTML, it just augments them to interact a little
better.  And it's pretty fast.


DOCUMENTATION

The documentation is in Template.pm in the form of POD format
perldocs.  Even the above text might be out of date, so be sure to
check the perldocs for the straight truth.


CONTACT INFO

This module was written by Sam Tregar ([EMAIL PROTECTED]) for Vanguard
Media (http://www.vm.com).




RE: internal_redirect and POST

1999-10-08 Thread Eric Cholet

On Friday, October 08, 1999 5:25 PM, Andrei A. Voropaev [SMTP:[EMAIL PROTECTED]] 
wrote:
> On Fri, Oct 08, 1999 at 05:05:41PM +0200, Eric Cholet wrote:
> > On Friday, October 08, 1999 3:35 PM, Andrei A. Voropaev 
> 
> > > Well. I wish you have also mentioned how to unset $r->content()
> > > because it reads content only once. Second time returns undef. The
> > 
> > But you shoudn't be radubg $r->content for a GET, right?

radubg? I really ought to clean my keyboard sometimes.

> > 
> 
> Right :) You just missed the point. I want to read content
> (using $r->content) to check what is being passed and then redirect
> that same content to another handler. That new handler should be able
> to read it from some place. I fool it to believe that method is get
> not post, so it'll try to read $r->args. But it will also return empty
> string. 

But if you set $r->args to what you read from $r->content before redirecting, won't 
that work?

> 
> So far the only way around it that I know is to chain handlers, and
> not use internal redirect.
> 
> Andrei
> 
> -- 

--
Eric



Re: internal_redirect and POST

1999-10-08 Thread Andrei A. Voropaev

On Fri, Oct 08, 1999 at 05:05:41PM +0200, Eric Cholet wrote:
> On Friday, October 08, 1999 3:35 PM, Andrei A. Voropaev 

> > Well. I wish you have also mentioned how to unset $r->content()
> > because it reads content only once. Second time returns undef. The
> 
> But you shoudn't be radubg $r->content for a GET, right?
> 

Right :) You just missed the point. I want to read content
(using $r->content) to check what is being passed and then redirect
that same content to another handler. That new handler should be able
to read it from some place. I fool it to believe that method is get
not post, so it'll try to read $r->args. But it will also return empty
string. 

So far the only way around it that I know is to chain handlers, and
not use internal redirect.

Andrei

-- 



Installation problem whith Embperl

1999-10-08 Thread Jean-Philippe FAUVELLE

I tried to install HTML::Embperl with Apache/mod_perl on
a Sparc/Solaris server, but 'make test' failed with an error on the
module Apache/Session/Win32.pm.

Did someone already encounter/solve this kind of problem ?

Regards.

__
Jean-Philippe FAUVELLE  <[EMAIL PROTECTED]>
France Telecom Hosting
40 rue Gabriel Crie, 92245 Malakoff Cedex, France
[http://www.fth.net/] [+33 (0) 1 46 12 67 89]


1) My config is:

OS = Solaris
apache V1.3.9
mod_perl V1.21
Apache::Session  V1.03
Perl  V5.00503
Embperl  V1.2b8


2) Apache and mod_perl works fine and were installed at the
same time, with the following commands:

>cd /usr/local/apache/build
>lwp-download http://www.apache.org/dist/apache_1.3.9.tar.gz
>lwp-download http://perl.apache.org/dist/mod_perl-1.21.tar.gz
>tar zvxf apache_1.3.9.tar.gz
>tar zvxf mod_perl-1.21.tar.gz
>cd mod_perl-1.21
>perl Makefile.PL APACHE_SRC=../apache_1.3.9/src \
>   DO_HTTPD=1 USE_APACI=1 PERL_MARK_WHERE=1 EVERYTHING=1 \
>   PERL_CHILD_INIT=1 PERL_STACKED_HANDLERS=1   # pour
Apache::DBI
>make
>make test
>make install
>cd ../apache_1.3.9
>make install

all ran ok


3) Here is the output produced when building Embperl:

>cd opt/Homes/cpan/HTML-Embperl-1.2b8
>perl Makefile.PL

>Build with support for Apache mod_perl?(y/n) [y]
>Searching for Apache sources...
>Look at ..
>Look at ../src
>Look at ./src
>Apache source not found, enter path name or q to quit []
/usr/local/apache/build/apache_1.3.9
>Searching for Apache sources...
>Look at /usr/local/apache/build/apache_1.3.9
>Look at /usr/local/apache/build/apache_1.3.9/src
>Use /usr/local/apache/build/apache_1.3.9/src as Apache source(y/n) [y]
>Will use /opt/FSFutils/apache/build/apache_1.3.9/src for Apache Headers
>Apache Version Server version: Apache/1.3.9 (Unix)
>Test start /opt/FSFutils/apache/build/apache_1.3.9/src/httpd
>Test httpd will run as user nobody and group other
>Test httpd will listen on port 8529
>Found mod_perl  Version 1.21
>Found LWP::UserAgent  Version 1.68
>Found HTML::HeadParser  Version 2.10
>Found Apache::Session  Version 1.03
>Found CGI  Version 2.56
>Checking if your kit is complete...
>Warning: the following files are missing in your kit:
>EmbperlD.pod
>FeaturesD.pod
>IntroD.pod
>Please inform the author.
>Writing Makefile for HTML::Embperl

>make

... all ran ok ...

>make test

>PERL_DL_NONLAZY=0
/usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.00503/su
n4-solaris ->I/usr/local/lib/perl5/5.00503 test.pl
>
>loading...ok
>
>Testing offline mode...
>
>ascii...  ok
>pure.htm...   ok
>plain.htm...  ok

> ... cut (all ok)

>opmask/opmask.htm...  ok
>opmask/opmasktrap.htm...  ok
>
>Testing Execute function...
>
>div.htm from file...  ok
>div.htm from memory...ok
>div.htm to memory...  ok
>div.htm from/to memory... ok
>error.htm to memory...ok
>Use of uninitialized value at (eval 1218) line 1.
>
>Starting httpd...   [Fri Oct  8 17:09:47 1999] [error] Can't locate
Apache/Session/Win32.pm in @INC (@INC >contains: blib/arch blib/lib .
/usr/local/lib/perl5/5.00503/sun4->solaris /usr/local/lib/perl5/5.00503
/usr/local/lib/perl5/site_perl/5.005/sun4->solaris
/usr/local/lib/perl5/site_perl/5.005
/opt/Homes/cpan/HTML-Embperl-1.2b8/test/
/opt/Homes/cpan/HTML->Embperl-1.2b8/test/lib/perl) at (eval 3) line 1.
>BEGIN failed--compilation aborted at (eval 3) line 1.
>BEGIN failed--compilation aborted at
/opt/Homes/cpan/HTML-Embperl-1.2b8/test/conf/startup.pl line 10.
>
>Syntax error on line 41 of
/opt/Homes/cpan/HTML-Embperl-1.2b8/test/conf/httpd.conf:
>Can't locate Apache/Session/Win32.pm in @INC (@INC contains: blib/arch
>blib/lib . /usr/local/lib/perl5/5.00503/sun4->solaris
/usr/local/lib/perl5/5.00503
/usr/local/lib/perl5/site_perl/5.005/sun4->solaris
/usr/local/lib/perl5/site_perl/5.005
/opt/Homes/cpan/HTML-Embperl-1.2b8/test/
/opt/Homes/cpan/HTML->Embperl-1.2b8/test/lib/perl) at (eval 3) line 1.
>BEGIN failed--compilation aborted at (eval 3) line 1.
>BEGIN failed--compilation aborted at
/opt/Homes/cpan/HTML-Embperl-1.2b8/test/conf/startup.pl line 10.






Re: Mailing List Subject Headers

1999-10-08 Thread Matt Sergeant

On Fri, 08 Oct 1999, Jesse Kanner wrote:
> I too would prefer some sort of abreviation prepended to the Subject
> header. This makes it much easier to sort and identify (eg. 'mp:', 'm_p:'
> or 'mod_perl:', etc.). Many other lists I'm on do this: [NTBUGTRAQ] for
> example. When you're subscribed to many lists (esp. technical ones) this
> can be very helpful.

Who in this day isn't either using a mail client that can filter this lists
mail to another folder or able to use procmail to do the same? Personally I
abhor subject prefixes.

> Also, inserting a Reply To header pointing to the list address would be
> helpful.

There are many reasons why you shouldn't do this - but the discussion is
old - do a net search to find out, or I think it's covered in the
documentation to most good mailing list software (ezmlm or majordomo).

--


Details: FastNet Software Ltd - XML, Perl, Databases.
Tagline: High Performance Web Solutions
Web Sites: http://come.to/fastnet http://sergeant.org
Available for Consultancy, Contracts and Training.



RE: internal_redirect and POST

1999-10-08 Thread Eric Cholet

On Friday, October 08, 1999 3:35 PM, Andrei A. Voropaev 
[SMTP:[EMAIL PROTECTED]] wrote:
> On Fri, Oct 08, 1999 at 09:39:30AM +0200, Eric Cholet wrote:
> > On Friday, October 08, 1999 3:35 AM, Dmitry Beransky 
[SMTP:[EMAIL PROTECTED]] wrote:
> > > I've been playing around with internal redirects of POST requests. 
 They
> > > seem to work fine as long as I don't call Apache::content() or any 
other
> > > function that reads a request's content.  However, as soon as I read 
it,
> >
> > This has come up before. Try this (snippet courtesy DougM :-)
> >
> > my $r = shift;
> > $r->method("GET");
> > $r->method_number(M_GET);
> > $r->headers_in->unset("Content-length");
> > $r->internal_redirect_handler("/new/url");
> >
>
> Well. I wish you have also mentioned how to unset $r->content()
> because it reads content only once. Second time returns undef. The

But you shoudn't be radubg $r->content for a GET, right?

> same seems to be true for $r->read.

If you use $r->content then you don't want to use r->read, right?

> As to $r->args it's not mentioned
> in the book that you can call $r->args($new_query_string) to set new

I suggest you complain to the book's authors :-) However I will update 
Apache.pm's pod documentation which also doesn't mention this.

> query string. And if we do internal redirect then we usually need to
> provide the content string for it.

I don't know what we "usually" need to do for an internal redirect. I do 
know that the symptoms you described have come up before, and I fished out 
an answer from the archives.
I'm sorry I didn't provide a turnkey solution, but maybe my answer put you 
on the right track?

>
> Andrei

--
Eric



Re: Mailing List Subject Headers

1999-10-08 Thread Jesse Kanner



On 8 Oct 1999, Frank D. Cringle wrote:

>"Anthony Gardner" <[EMAIL PROTECTED]> writes:
>> I'm not sure if I'm being a bit fussy here, or indeed banging my head 
>> against a wall but can users of these mailing lists make the Subject part of 
>> the msg more descriptive.
>> 
>> 
>> Also, as most of us are on several mailing lists, maybe a prefix of some 
>> sort would be handy. MP for mod_perl or AMP Apache/mod_perl or XML for 
>> ..
>
>I agree with your first point but not the second.  Every message on
>the list already contains sufficient information about its origin, in
>other headers.  You will be much happier if you use a mailreader that
>can sort mail into separate groups based on return-path, or use a
>preprocessor like procmail to do it.
>
>> __
>> Get Your Private, Free Email at http://www.hotmail.com
>
>Hmmm.  hotmail.  I know very little about hotmail.  Doesn't it have
>facilities for this?
>
>-- 
>Frank Cringle,  [EMAIL PROTECTED]
>voice: (+49 2304) 467101; fax: 943357
>


I too would prefer some sort of abreviation prepended to the Subject
header. This makes it much easier to sort and identify (eg. 'mp:', 'm_p:'
or 'mod_perl:', etc.). Many other lists I'm on do this: [NTBUGTRAQ] for
example. When you're subscribed to many lists (esp. technical ones) this
can be very helpful.

Also, inserting a Reply To header pointing to the list address would be
helpful.



-j-







Re: Guide addition?

1999-10-08 Thread Matt Sergeant

On Fri, 08 Oct 1999, Stas Bekman wrote:
> On 7 Oct 1999, Randal L. Schwartz wrote:
> 
> > > "Stas" == Stas Bekman <[EMAIL PROTECTED]> writes:
> > 
> > Stas> yes, there are... you get a code like:
> > 
> > Stas> sub handler{
> > Stas> print "hi\n";
> > 
> > Stas> =pod
> > 
> > Stas> =head1 Hi
> > 
> > Stas> =cut
> >
> > Stas> }
> > 
> > Stas> which is syntaxically incorrect, pod directives should not appear inside
> > Stas> the subs... I'll add this note too...
> > 
> > What's incorrect about that?  Pod is meant to be intertwined with
> > Perl.
> 
> Heh, did you try to run the code which includes, pod directives inside the
> subroutine? At least it didn't work for me with perl5.00503. Does it work
> for you?

Works for me - perhaps you indented the pod directives? (5.00503)

--


Details: FastNet Software Ltd - XML, Perl, Databases.
Tagline: High Performance Web Solutions
Web Sites: http://come.to/fastnet http://sergeant.org
Available for Consultancy, Contracts and Training.



Re: Mailing List Subject Headers

1999-10-08 Thread Frank D. Cringle

"Anthony Gardner" <[EMAIL PROTECTED]> writes:
> I'm not sure if I'm being a bit fussy here, or indeed banging my head 
> against a wall but can users of these mailing lists make the Subject part of 
> the msg more descriptive.
> 
> This will help readers to scroll through quicker and to read what is 
> relevant to them at the time.
> 
> For example, "make test fails" or "Query", or "I have a problem", or "Help" 
> aren't really very descriptive.
> 
> Also, as most of us are on several mailing lists, maybe a prefix of some 
> sort would be handy. MP for mod_perl or AMP Apache/mod_perl or XML for 
> ..

I agree with your first point but not the second.  Every message on
the list already contains sufficient information about its origin, in
other headers.  You will be much happier if you use a mailreader that
can sort mail into separate groups based on return-path, or use a
preprocessor like procmail to do it.

> __
> Get Your Private, Free Email at http://www.hotmail.com

Hmmm.  hotmail.  I know very little about hotmail.  Doesn't it have
facilities for this?

-- 
Frank Cringle,  [EMAIL PROTECTED]
voice: (+49 2304) 467101; fax: 943357



Re: weird mod_perl startup problems

1999-10-08 Thread Eugene Miretskiy

"Young, Geoffrey S." wrote:
> 
> That sounds weird...
> 
> Anyway, did you try adding
> 
> use DBI;

Yes I did try that...

> 
> in your startup.perl script (after Apache::DBI, that is)?
> 
> Also, I think I remember reading someone say that any time they upgrade
> their system, perl, or whatever, they re-compile all their modules.  I
> haven't gone through that yet (and I'm on Linux), but maybe that will help
> if you were getting the startup script to work before?

That script was working fine before...

> 
> As to other associated weirdness, I dunno...
> 
> hope this helps some

Thank for reply...
> 
> --Geoff
> 
> > -Original Message-
> > From: Eugene Miretskiy [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, October 07, 1999 3:33 PM
> > To:   [EMAIL PROTECTED]
> > Subject:  weird mod_perl startup problems
> >
> > Hello,
> >
> > After upgrading my machine to FreeBSD3.3, I ran into the problems loading
> > modules
> > at startup time...
> >
> > I would like to load the following modules at start up (I have them in
> > startup.perl file
> > loaded from httpd.conf):
> >
> >   use Apache::Registry;
> >   use Apache::Request;
> >   use Apache::DBI ();
> >   use MIME::Body;
> >
> > The server does not start -- instead I get this in my error_log:
> >Can't locate object method "trace_msg" via package "DBI" at
> > /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/DBI.pm  line 311.
> >END failed--cleanup aborted.
> >run: Operation not supported by device
> >
> > An interesting thing is that if I comment out MIME::Body (leave
> > Apache::DBI) the server starts ok.
> > If I comment out Apache::DBI (leave MIME::Body) the server also starts ok.
> > Only when both of these modules are loaded I gen into a problem.
> >
> > Here is a snipplet of code from DBI that causes the problem:
> > END {
> > DBI->trace_msg("-> DBI::END\n", 2);
> > ##LINE 311
> > # Let drivers know why we are calling disconnect_all:
> > $DBI::PERL_ENDING = $DBI::PERL_ENDING = 1;  # avoid typo warning
> > DBI->disconnect_all() if %DBI::installed_drh;
> > DBI->trace_msg("<- DBI::END complete\n", 2);
> > }
> >
> > Finally, If I comment out DBI->trace_msg, the server starts fine with both
> > Apache::DBI and
> > MIME::Body loaded.
> >
> > Any ideas to this weirdness?
> >
> > All modules are latest version.
> >
> > Thank you very much.
> >
> > P.S.: please reply to my email address as well ([EMAIL PROTECTED])
> >
> > --
> >   Eugene Miretskiy <[EMAIL PROTECTED]>
> >   InVision, INC.  (516) 543-1000x219
> >   http://www.invision.net

-- 
  Eugene Miretskiy <[EMAIL PROTECTED]>
  InVision, INC.  (516) 543-1000x219  
  http://www.invision.net



Re: Apache::ASP, Sessions and content handlers

1999-10-08 Thread Joshua Chamas

> 2. It appears that I will be using ASP quite heavily and while I don't
>need event handler now, I may have to start using them in the future.
>If that happens, I will have to maintain two sets of session management
>code.
> 
> This is so simple, and, therefore, brilliant!  Ok, #2 is taken care of.  As
> soon as I figure out how to take care of #1, I'm all set.
> 

I'll be thinking about trying to move ASP init code
outside the handler phase, so ASP $Session & such 
would be available in whichever phase you choose.

-- Joshua
_
Joshua Chamas   Chamas Enterprises Inc.
NODEWORKS >> free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com1-562-683-2142



Re: internal_redirect and POST

1999-10-08 Thread Andrei A. Voropaev

On Fri, Oct 08, 1999 at 09:39:30AM +0200, Eric Cholet wrote:
> On Friday, October 08, 1999 3:35 AM, Dmitry Beransky [SMTP:[EMAIL PROTECTED]] wrote:
> > I've been playing around with internal redirects of POST requests.  They 
> > seem to work fine as long as I don't call Apache::content() or any other 
> > function that reads a request's content.  However, as soon as I read it, 
> 
> This has come up before. Try this (snippet courtesy DougM :-)
> 
> my $r = shift;
> $r->method("GET");
> $r->method_number(M_GET);
> $r->headers_in->unset("Content-length");
> $r->internal_redirect_handler("/new/url");
> 

Well. I wish you have also mentioned how to unset $r->content()
because it reads content only once. Second time returns undef. The
same seems to be true for $r->read. As to $r->args it's not mentioned
in the book that you can call $r->args($new_query_string) to set new
query string. And if we do internal redirect then we usually need to
provide the content string for it.

Andrei



Re: Guide addition?

1999-10-08 Thread Stas Bekman

On 7 Oct 1999, Randal L. Schwartz wrote:

> > "Stas" == Stas Bekman <[EMAIL PROTECTED]> writes:
> 
> Stas> yes, there are... you get a code like:
> 
> Stas> sub handler{
> Stas> print "hi\n";
> 
> Stas> =pod
> 
> Stas> =head1 Hi
> 
> Stas> =cut
>
> Stas> }
> 
> Stas> which is syntaxically incorrect, pod directives should not appear inside
> Stas> the subs... I'll add this note too...
> 
> What's incorrect about that?  Pod is meant to be intertwined with
> Perl.

Heh, did you try to run the code which includes, pod directives inside the
subroutine? At least it didn't work for me with perl5.00503. Does it work
for you?


___
Stas Bekman  mailto:[EMAIL PROTECTED]www.singlesheaven.com/stas  
Perl,CGI,Apache,Linux,Web,Java,PC at  www.singlesheaven.com/stas/TULARC
www.apache.org  & www.perl.com  == www.modperl.com  ||  perl.apache.org
single o-> + single o-+ = singlesheavenhttp://www.singlesheaven.com



Re: Comparison PHP,clean mod_perl script,Apache::ASP,HTML::Embperl

1999-10-08 Thread Joshua Chamas

> Performance was a 7 req per sec... :( While clean perl - 24.
> 
> > For other benchmarks, check out:
> >   http://www.chamas.com/hello_world.html
> >

Make sure that your MaxRequests is set high, so you aren't
counting the runtime script compile time, which you would likely 
do away with by pre-compiling with Apache::ASP->Loader() in 
production, and that your benchmark runs for long enough to
have the script compiled in all your httpd children for a while.

Also make sure there isn't a global.asa in Global that 
might be getting picked up and compiled along with the 
test script.

On both my Solaris & WinNT box I found no more than 1/2 
performance loss for the "Hello World" benchmark between 
mod_perl and Apache::ASP, and your longer script should
make this difference less, so I'm trying to help account
for this discrepancy.

--Joshua
_
Joshua Chamas   Chamas Enterprises Inc.
NODEWORKS >> free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com1-562-683-2142



Mailing List Subject Headers

1999-10-08 Thread Anthony Gardner

I'm not sure if I'm being a bit fussy here, or indeed banging my head 
against a wall but can users of these mailing lists make the Subject part of 
the msg more descriptive.

This will help readers to scroll through quicker and to read what is 
relevant to them at the time.

For example, "make test fails" or "Query", or "I have a problem", or "Help" 
aren't really very descriptive.

Also, as most of us are on several mailing lists, maybe a prefix of some 
sort would be handy. MP for mod_perl or AMP Apache/mod_perl or XML for 
..

Don't all sigh, it was only an idea. And I don't want to flood the mail 
lists with follow up mails to this one either. Just keep it in mind, please. 
Thanks.


-Ants.

__
Get Your Private, Free Email at http://www.hotmail.com



Re: Comparison PHP,clean mod_perl script,Apache::ASP,HTML::Embperl

1999-10-08 Thread Sergey Polyakov



On Mon, 4 Oct 1999, Leslie Mikesell wrote:

> According to BeerBong:
> > Huh, another test
> > test.epl
> According to BeerBong:
> 
> > test.epl
> > --
> > use DBI;
> > $dbh  = DBI->connect("DBI:Oracle:SIMain","test","test");
> > PHP3 and mod_perl script with DBD::Oracle - 24 Requests per second
> 
> Is this with or without Apache::DBI loaded?

Of course with it.

> 
>   Les Mikesell
>   [EMAIL PROTECTED]
> 



Re: Comparison PHP,clean mod_perl script,Apache::ASP,HTML::Embperl

1999-10-08 Thread Sergey Polyakov

On Mon, 4 Oct 1999, Joshua Chamas wrote:

Hello, Joshua!

> Sergey,
> 
> You can crank up Apache::ASP's speed by setting StateDir to somehting
> like /tmp/asp, or setting NoState to 1.

StateDir was /tmp/www_samara_ru NoState was 1, I dont need Application and
Session objects.


> Please check out http://www.nodeworks.com/asp/tuning.html

I checked out it more than twice :)


> When well tuned, Apache::ASP scripts will still be 
> slower than tuned Embperl & modperl, but not as much as 
> shown in your testing.
> 

Performance was a 7 req per sec... :( While clean perl - 24.

> For other benchmarks, check out:
>   http://www.chamas.com/hello_world.html
> 
> -- Joshua
> _
> Joshua Chamas Chamas Enterprises Inc.
> NODEWORKS >> free web link monitoring Huntington Beach, CA  USA 
> http://www.nodeworks.com1-562-683-2142
> 
> BeerBong wrote:
> > 
> > Huh, another test
> > 
> > test.epl
> > --
> > 
> > DBTest
> > 
> > 
> > [-
> > use DBI;
> > 
> > $dbh  = DBI->connect("DBI:Oracle:SIMain","test","test");
> > $sth  = $dbh->prepare("select login,fio from test where login like ?");
> > $sth->bind_param(1,"Be%");
> > $sth->execute;
> > $sth->bind_columns(\$login,\$fio);
> > local $^W=0;
> > $escmode =0;
> > -]
> > [$ while ($sth->fetchrow_arrayref) $]
> > [+ $login +] - [+ $fio +]
> > [$ endwhile $]
> > 
> > 
> > 
> > --
> > ./ab -n 1000 -c 10 http://apache/test.epl
> > 19 Requests per second...
> > PHP3 and mod_perl script with DBD::Oracle - 24 Requests per second
> > And I still don't know why PHP3 has the same speed as DBD::Oracle, DBI is
> > neccessary layer, and PHP hasn't it and directly calls to OCI. I guess if
> > Tim Bunce rewrite PHP it will be safer and faster :)
> > Apache::ASP - 7 Requests per second, but Apache::ASP was installed and works
> > without any troubles, EmbPerl has them... I still dont know why error log
> > doesnt work, though it is not neccessary feature, and why my
> > PerlPostReadRequestHandler stops the rewriting Remote IP :(
> > --
> > Sergey Polyakov (BeerBong)
> > Chief of Web Lab (http://www.mustdie.ru/~beerbong)
> 



RE: weird mod_perl startup problems

1999-10-08 Thread Young, Geoffrey S.

That sounds weird...

Anyway, did you try adding

use DBI;

in your startup.perl script (after Apache::DBI, that is)?  

Also, I think I remember reading someone say that any time they upgrade
their system, perl, or whatever, they re-compile all their modules.  I
haven't gone through that yet (and I'm on Linux), but maybe that will help
if you were getting the startup script to work before?

As to other associated weirdness, I dunno...


hope this helps some

--Geoff

> -Original Message-
> From: Eugene Miretskiy [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, October 07, 1999 3:33 PM
> To:   [EMAIL PROTECTED]
> Subject:  weird mod_perl startup problems
> 
> Hello,
> 
> After upgrading my machine to FreeBSD3.3, I ran into the problems loading
> modules
> at startup time...
> 
> I would like to load the following modules at start up (I have them in
> startup.perl file 
> loaded from httpd.conf):
>   
>   use Apache::Registry;
>   use Apache::Request;
>   use Apache::DBI ();
>   use MIME::Body;
> 
> The server does not start -- instead I get this in my error_log:
>Can't locate object method "trace_msg" via package "DBI" at
> /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/DBI.pm  line 311.
>END failed--cleanup aborted.
>run: Operation not supported by device
> 
> An interesting thing is that if I comment out MIME::Body (leave
> Apache::DBI) the server starts ok.
> If I comment out Apache::DBI (leave MIME::Body) the server also starts ok.
> Only when both of these modules are loaded I gen into a problem.
> 
> Here is a snipplet of code from DBI that causes the problem:
> END {
> DBI->trace_msg("-> DBI::END\n", 2);
> ##LINE 311
> # Let drivers know why we are calling disconnect_all:
> $DBI::PERL_ENDING = $DBI::PERL_ENDING = 1;  # avoid typo warning
> DBI->disconnect_all() if %DBI::installed_drh;
> DBI->trace_msg("<- DBI::END complete\n", 2);
> }
> 
> Finally, If I comment out DBI->trace_msg, the server starts fine with both
> Apache::DBI and
> MIME::Body loaded.
> 
> Any ideas to this weirdness?
> 
> All modules are latest version.
> 
> Thank you very much.
> 
> P.S.: please reply to my email address as well ([EMAIL PROTECTED])
> 
> -- 
>   Eugene Miretskiy <[EMAIL PROTECTED]>
>   InVision, INC.  (516) 543-1000x219  
>   http://www.invision.net