Problem with sections in httpd.conf, mod_perl 1.26

2002-04-15 Thread PinkFreud
I have a rather odd problem, one which I can only assume is a bug somewhere, due to how bizarre it is. I am attmempting to generate virtual host configs via mod_perl, using sections in httpd.conf. Not all hosts will be using a /perl Alias, though, so I'm reading in an external config, which loo

[ANNOUNCE Apache::AccessCookie-0.32] many new flavors

2002-04-15 Thread Peter Bi
This is the second public release of the access control module. You can download it from here: http://mod_perl.home.att.net/AccessCookie_0_32.tar Besides few minor corrections from version 0.31, this one adds several ticket issuing mechanisms and the interface to implement new issuer is becoming

Re: Enforcing user logged in from only 1 browser?

2002-04-15 Thread Peter Bi
If you touch SessionDBI for every request, why don't go directly to the Basic Authentication ? Using AuthCookie would 1) slow down the authentication process (because an extra MD5 hash calculation) and 2) drop off 10% of users who have disabled the cookie. One of the nice features in the AuthCook

[JOB] Senior mod_perl developers needed for LRN, Los Angeles

2002-04-15 Thread Joshua Chamas
Hey mod_perl & ASP Crew, This is very much the same job posting that I sent out for LRN on April 3rd, except the requirement for Java programming experience has been dropped. :) They are looking to seriously bolster their mod_perl team for their star LCEC product, and need some full time senior

[ANNOUNCE] Uttu 0.02

2002-04-15 Thread James G Smith
Uttu 0.02 has been uploaded to CPAN. It may take a little while before it is available. This version of Uttu should be considered beta (for HTML::Mason users) and alpha (for Template Toolkit users). Uttu is a web-site driver which, together with a suitable framework, provides an environment in

Re: [OT] [ANNOUNCE] mod_log_sqlite

2002-04-15 Thread Perrin Harkins
Matt Sergeant wrote: > Is that any different to how it is with file logging? I would guess it's the same, but I don't know the details of how either system implements locking. I'm mostly interested because if SQLite works for this it might work for fast data sharing between processes as well

[DIGEST] mod_perl digest 2002/04/01

2002-04-15 Thread jgsmith
-- mod_perl digest April 1, 2002 - April 14, 2002 -- Recent happenings in the mod_perl world... Features o

Re: Found a sprintf() bug inPerl 5.6.1 (and mod_perl)

2002-04-15 Thread Richard Dice
> I know that roundings are often tricky from language to language (Javascript > has not the same rules for example and a small solid state calculator has > different ones also). . . . > And in Perl I found these rules not very consistent. The effect that you have discovered has nothing to do w

Re: Found a sprintf() bug inPerl 5.6.1 (and mod_perl)

2002-04-15 Thread Dominique Blas
Thank you for your explanation both of you. > alester@flr4[~/play]$ perl sprintf.pl > 056 56.9928946 > > ... > > In general, the chances that you've found a bug in the language or > implementation that's been around as long and is as widely used as Perl > 5.6 is preeetty small. I

Re: Found a sprintf() bug inPerl 5.6.1 (and mod_perl)

2002-04-15 Thread Andy Lester
> correct -269; that's because it's really more like > -268.94315658 instead. Usually, the > "sprintf", "printf", or the "POSIX::floor" and And in this case, that means: alester@flr4[~/play]$ more sprintf.pl #!/usr/bin/perl -w $a=0.57

Re: Found a sprintf() bug inPerl 5.6.1 (and mod_perl)

2002-04-15 Thread Stas Bekman
Dominique Blas wrote: > Sorry, > > I've found the following bug in mod_perl 1.25 and Perl 5.6.1. > Maybe was it already released but in case not here it is : > > perl -e ' > $a=0.57; > print sprintf("%03d", $a * 100)' > > prints "056" instead of "057" > > Same behaviour with $a=0,58 that prin

Re: mod_perl 1.99 (for Apache 2.0.35) building on W2K

2002-04-15 Thread Chuck Goehring
Pascal,   Thanks, I needed some good news.   Chuck - Original Message - From: pascal barbedor To: Chuck Goehring Cc: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 11:41 PM Subject: Re: mod_perl 1.99 (for Apache 2.0.35) building on W2K Hi chuck   for DB

Re: [OT] [ANNOUNCE] mod_log_sqlite

2002-04-15 Thread Tatsuhiko Miyagawa
At Mon, 15 Apr 2002 11:32:55 -0400, Perrin Harkins wrote: > The SQLite FAQ seems to suggest that SQLite isn't very good at parallel > read/write situations: http://www.hwaci.com/sw/sqlite/faq.html#q6 > > Have you seen any problems so far? Yep, that's what I'd expected to happen. Without sqli

Re: [OT] [ANNOUNCE] mod_log_sqlite

2002-04-15 Thread Tatsuhiko Miyagawa
At Mon, 15 Apr 2002 17:09:43 +0100 (BST), Matt Sergeant wrote: > PS: Taso: you sent to [EMAIL PROTECTED], which Ask seems to have > setup to redirect to the right address. Yep. I've made a mistake, which Ask kindly had outsmarted ;) -- Tatsuhiko Miyagawa <[EMAIL PROTECTED]>

Re: [OT] [ANNOUNCE] mod_log_sqlite

2002-04-15 Thread Matt Sergeant
On Mon, 15 Apr 2002, Perrin Harkins wrote: > Tatsuhiko Miyagawa wrote: > > Announcing new Apache module (written in C): > > > > mod_log_sqlite is an Apache logging module for sqlite database. It > > allows you to log your HTTP stats into sqlite, then you can do queries > > using sqlite's SQL feat

Re: Enforcing user logged in from only 1 browser?

2002-04-15 Thread Fran Fabrizio
Jeff wrote: > Forgive a mod_perl newbie for non mod_perl thinking, but this > is (a simplified overview) of how I would approach this: > > request for any protected page > - if no existing session data [so not authenticated] > create new session > remember target page in session >

RE: Enforcing user logged in from only 1 browser?

2002-04-15 Thread Jeff
Forgive a mod_perl newbie for non mod_perl thinking, but this is (a simplified overview) of how I would approach this: request for any protected page - if no existing session data [so not authenticated] create new session remember target page in session redirect to login page

Re: [OT] [ANNOUNCE] mod_log_sqlite

2002-04-15 Thread Perrin Harkins
Tatsuhiko Miyagawa wrote: > Announcing new Apache module (written in C): > > mod_log_sqlite is an Apache logging module for sqlite database. It > allows you to log your HTTP stats into sqlite, then you can do queries > using sqlite's SQL feature (including subselects, views) to HTTP > statistics.

Found a sprintf() bug inPerl 5.6.1 (and mod_perl)

2002-04-15 Thread Dominique Blas
Sorry, I've found the following bug in mod_perl 1.25 and Perl 5.6.1. Maybe was it already released but in case not here it is : perl -e ' $a=0.57; print sprintf("%03d", $a * 100)' prints "056" instead of "057" Same behaviour with $a=0,58 that prints "057". Of course it works for other values

[OT] [ANNOUNCE] mod_log_sqlite

2002-04-15 Thread Tatsuhiko Miyagawa
Announcing new Apache module (written in C): mod_log_sqlite is an Apache logging module for sqlite database. It allows you to log your HTTP stats into sqlite, then you can do queries using sqlite's SQL feature (including subselects, views) to HTTP statistics. http://freshmeat.net/projects/mod_lo

Re: Apache::ServerUtil pb in modperl2

2002-04-15 Thread Randy Kobes
On Sat, 13 Apr 2002, pascal barbedor wrote: > > Does the following, or some variation, work? [ .. ] > > sub handler { > > my $r = shift; > > my $key = $r->dir_config->get('TEST'); > > $r->content_type('text/plain'); > > $r->print($key); > > Apache::OK; > > } > > yes it works p

Re: Enforcing user logged in from only 1 browser?

2002-04-15 Thread Fran Fabrizio
> You would have to do the auth part yourself, as well as the actual > cookie handling, or else hack AuthCookie to cooperate with Apache::Session. This is exactly what I've done. I've modified AuthCookieDBI to create an Apache::Session session as soon as it knows it has a valid user. Then if

Re: "Kind-of" PerlSections, and location question

2002-04-15 Thread Perrin Harkins
Daniel W. Burke wrote: > We have an application we're serving by using the same > set of source code, and setting up different > sections in the virtual host to set different variables > and path aliases based on who the customer is... ... > What I'd like to do (if even possible!), is have someth

Re: Enforcing user logged in from only 1 browser?

2002-04-15 Thread Perrin Harkins
Fran Fabrizio wrote: > Unfortunately, there's some terminology muddling...AuthCookie calls it a > session when it establishes that a user is a valid user and sets a > cookie on their browser. Apache::Session considers a session a series > of page hits from the same user. It assumes you've alr

Re: [ANNOUNCE] Cache::Cache 1.0

2002-04-15 Thread DeWitt Clinton
On Sat, Apr 13, 2002 at 04:33:11PM +0200, Eric Cholet wrote: > I'm seeing this problem when using Apache::SOAP, using Cache::Cache > 0.99 or 1.0. Downgrading to Digest::MD5 2.12 indeed solves it. Hi -- I recently released version 1.01 of Cache::Cache to CPAN. This version uses Digest::SHA1 as a

Re: Enforcing user logged in from only 1 browser?

2002-04-15 Thread Fran Fabrizio
> I'm not sure I follow your session id problem. When I check a session, I ask > the client for it's ID, then look the session up by ID. To 'expire' the > session, I simply delete it from the session store (File or Postgres). The confusion is you aren't using sessions in the authentication s

Re: Enforcing user logged in from only 1 browser?

2002-04-15 Thread gphat
> It's #5 that's troublesome. I wasn't sure how I could expire the older > session (since the session key that matters is sitting client side). I > guess I could keep a table of invalidated session keys, and check > against that every time in along with all the other checks going on in > aut

error compiling modperl2 debug

2002-04-15 Thread [EMAIL PROTECTED]
hi on my way to give a bug report on silver plate...without need to compute pointer arithmetics in head :) there is an error when compiling modperl 2 debug on NT i have perl version 5.6.1 build 629 from activestate i tried perl makefile.pl MP_INST_APACHE2=1 MP_AP_PREFIX=i:/apache2 MP_DEBUG=1

Re: Enforcing user logged in from only 1 browser?

2002-04-15 Thread Fran Fabrizio
[EMAIL PROTECTED] wrote: > How are you handling your sessions? I use Apache::Session::Postgres. I'm using AuthCookie. A customization of AuthCookieDBI to be specific. However, I also use Apache::Session. Basically, I authenticate with AuthCookie, then I pass the authenticated username o

Re: "Kind-of" PerlSections, and location question

2002-04-15 Thread Geoffrey Young
> > what I'm hoping to be able to do should only have to load the > settings once (the first time a request comes in for that location) > for each process, so I'm not too concerned about database access.. > > The main question I need answered first is, is this even possible? IIRC, Jay Lawrenc

Re: "Kind-of" PerlSections, and location question

2002-04-15 Thread Daniel W. Burke
On Mon, 15 Apr 2002, Steven Lembark wrote: > > Have a databae table that stores the information for each > > setting, then load it dynamically as a request comes in... > > mailer dream code: > > > > $ENV{REQUEST_URI} =~ /^\/(.*?)\//; > > $base_path = $1; > > if (!exists($Location{$base_path})) {

[OT] Re: htaccess

2002-04-15 Thread Ernest Lergon
Paul Williams wrote: > > - > AuthUserFile /dev/null > AuthGroupFile /dev/null > RewriteEngine On > RewriteCond %{HTTP_REFERER} !^http://www.myserver.com [NC] > RewriteCond %{HTTP_REFERER} !^http://myserver.com [NC] > RewriteRule /* http:

Re: "Kind-of" PerlSections, and location question

2002-04-15 Thread Steven Lembark
> Have a databae table that stores the information for each > setting, then load it dynamically as a request comes in... > mailer dream code: > > $ENV{REQUEST_URI} =~ /^\/(.*?)\//; > $base_path = $1; > if (!exists($Location{$base_path})) { > ... do database calls to load necessairy informat

Re: Mod_perl slower than mod_cgi, Please Help!

2002-04-15 Thread Stas Bekman
VML wrote: > On Monday 15 April 2002 04:35 pm, you wrote: > >>VML wrote: >> >>>On Monday 15 April 2002 02:49 pm, you wrote: >>> Oh, boy, this is a wrong test :) You benchmark the code execution and not mod_perl against mod_cgi. You should use ab(8) or similar app for this. To learn ho

Re: mod_perl & memory

2002-04-15 Thread Stas Bekman
[EMAIL PROTECTED] wrote: > Hi all. > > Anybody knows, how to view detailed memory usage information > by perl modules. > > Such as > Module1::$var1 - memory size > Module1::$var2 - memory size > > > I can't solve memory leak problem with my site :( > > Thank for help. Apache::Status http:/

mod_perl & memory

2002-04-15 Thread dmitryus
Hi all. Anybody knows, how to view detailed memory usage information by perl modules. Such as Module1::$var1 - memory size Module1::$var2 - memory size I can't solve memory leak problem with my site :( Thank for help.

"Kind-of" PerlSections, and location question

2002-04-15 Thread Daniel W. Burke
I'm wondering if this is possible at all, and if so, how to accomplish it... We have an application we're serving by using the same set of source code, and setting up different sections in the virtual host to set different variables and path aliases based on who the customer is... But we have

Re: Mod_perl slower than mod_cgi, Please Help!

2002-04-15 Thread Stas Bekman
[ whenever someone replies to your question on the list, please keep the replies CC'ed to the list, unless you were asked to make the thread private. don't be shy to continue solving your problem in public, other benefit from this as well.] VML wrote: > On Monday 15 April 2002 02:49 pm, you wr

Re: How to report problems with modperl 2.0

2002-04-15 Thread Stas Bekman
Stas Bekman wrote: > At this time some people will try to run incorrect versions of Apache > and mod_perl and this will cause to most of your problems. So before we > attempt to answer your questions, you have to tell us what versions you > were using. Therefore: > > Whenever you have a proble

Re: Apache::ServerUtil pb in modperl2

2002-04-15 Thread Stas Bekman
pascal barbedor wrote: > > > apache 2.0.35 / mod_perl 1.99_01 / winnt or win2k You don't say which perl version you are using. Please remember to run t/REPORT when sending bug reports. If this is 5.6.0 before we continue, first update to 5.6.1. 5.6.0 is very buggy. 5.6.1 is very stable. > I

Re: Mod_perl slower than mod_cgi, Please Help!

2002-04-15 Thread Stas Bekman
VML wrote: > Hi All, > Our company planning to move from Perl/CGI to mod_perl. > But when we test, mod_perl is slower than mod_cgi. > > I test with these script: > > # TESTING SCRIPT 1 > use Time::HiRes qw(usleep ualarm gettimeofday tv_interval); > $t0 = [gettimeofday]; >

Mod_perl slower than mod_cgi, Please Help!

2002-04-15 Thread VML
Hi All, Our company planning to move from Perl/CGI to mod_perl. But when we test, mod_perl is slower than mod_cgi. I test with these script: # TESTING SCRIPT 1 use Time::HiRes qw(usleep ualarm gettimeofday tv_interval); $t0 = [gettimeofday]; # CODE HERE

Re: bug: calling setlocale(LC_ALL,) more than once crashes httpd with mod_perl

2002-04-15 Thread Vlad Harchev
On Mon, 15 Apr 2002, Stas Bekman wrote: > > > > Unfortunately, I don't have time for compiling and installing it.. > > I hope somebody on this list who has already installed version of recent perl > > will test the problem.. > > Confirmed as working with bleadperl (i.e the latest perl-5.7.3)