Re: Another header question

2002-10-05 Thread Randy Kobes

On Fri, 4 Oct 2002, Paul Simon wrote:

> Is it possible for me to create a Content-Length header for a
> CGI script via ModPerl::Registry or Apache?

Take a look at
http://perl.apache.org/docs/general/correct_headers/correct_headers.html
for a discussion of headers in general and how in particular
mod_perl can generate them.

-- 
best regards,
randy kobes




perl5/i386-linux/CORE/perl.h small "fix", dont know where to send it

2002-10-05 Thread Martin.Abrle

Hi All,
just started to play with perl2 + apache2 and after getting borred with
warnings about redefinition of macro VOIDINFO, I've putted there #ifndef - I
don't know how to make patch files, but if any maintainer reads this, can
you please add following to perl5/i386-linux/CORE/perl.h ?

#ifndef VOIDUSED
#define VOIDUSED 1
#endif
thanks,
m




Re: Apache::SharedMem

2002-10-05 Thread siberian

We are using IPC::MM and it works great. We use it to 
cache about 5000 strings for our internationlized systems 
( EFIGS-J right now, going to 15 languages soon ). Its 
pretty easy, in our startup handler we have :

my $MM_SIZE = 500;
my $MM_FILE = 'st_cache_mm_file';
my $st_cache_mm = IPC::MM::mm_create($MM_SIZE, $MM_FILE);
my $st_cache_btree = 
IPC::MM::mm_make_btree_table($st_cache_mm);
tie %CACHE::mmcache, 'IPC::MM::BTree', $st_cache_btree;

Then we access it via the $CACHE::mmcache variable by 
language ID/Message ID hashes.

The performance is pretty good, a huge huge improvement 
over direct to database calls. The way we have it 
configured is that each child calls a function per string. 
This function checkes the apache wide MM cache, if it 
doesn't find it then it grabs it from the DB and sticks it 
there for the next child to come along. We were using 'per 
child' caching but it was slow, expensive and gave page 
load speeds with a lot of variance ( .5-1.5 seconds for 
cache, 10 seconds for uncachced ). It was pretty nasty.

We are not really expiring our cache, we just HUP apache 
to re-initialize it since MM is local to the root apache 
process.

Your mileage may vary, ours is pretty good.

John

On Sat, 05 Oct 2002 15:40:05 -0300
  Cristóvão Dalla Costa <[EMAIL PROTECTED]> wrote:
>Does anyone have experience with Apache::SharedMem? I'd 
>like to use it to store an in-perl cache of a few 
>thousand database items, in order to decrease load, but I 
>noticed that it's version 0.09 and not updated in a year, 
>so I became a little suspicious. Any comments?
>
>Thanks.
>




Apache::SharedMem

2002-10-05 Thread Cristóvão Dalla Costa

Does anyone have experience with Apache::SharedMem? I'd like to use it 
to store an in-perl cache of a few thousand database items, in order to 
decrease load, but I noticed that it's version 0.09 and not updated in a 
year, so I became a little suspicious. Any comments?

Thanks.




Re: error from my .htaccess file

2002-10-05 Thread Ged Haywood

Hi there,

On Tue, 1 Oct 2002, Mitchel, Jennifer (Jem) wrote:

[snip]
>   > Syntax error on line 6 of /web/content/askLucent/password-reset/.htaccess:
>   > Invalid command 'PerlAuthenHandler', perhaps mis-spelled or defined by a
>   > module not included in the server configuration
[snip]
> and I did rebuild using perl Makefile.PL EVERYTHING=1 which I confirmed did modify 
>Apache,
> however, I still get the exact same error.

I know nothing about NT authentication, but that may not be important.

Are you sure you're running the new Apache?  (In other words after you
rebuilt it did you 'make install' then stop and restart Apache giving an
absolute path to the correct script or executable in the command line?)

73,
Ged.





Re: mod_perl 1.27 core dumps on all requests.

2002-10-05 Thread Ged Haywood

Hi there,

On Fri, 4 Oct 2002, Richard Homolka wrote:

> attaching a core stack trace

Haven't seen it.

> httpd.conf ... no changes at all from what you get installed from apache.
> ... Other modulkes static or dynamic.

If there are no changes to httpd.conf, how do you load the dynamic modules?

> Constants: static linked mod_perl 1.27, and Perl 5.6, solaris 2.8/sparc.  I 
> don't have root, so mod_perl files installed in apache install tree.

Don't like the sound of this, please explain carefully your directory layout
and how you prepared for the compilation.

> My problem, I get a consistent core dump in perl_handler(),

I suspect that the compilers used to compile Apache, Perl and mod_perl are
different.  Please post the output of 'perl -V' as requested in the docs.

Have you read the mod_perl Guide?  See the mod_perl home page for a link.

73,
Ged.