Re: cgiwrap for Apache::ASP?

2000-04-17 Thread Joshua Chamas
Theoretically, you could run Apache::ASP scripts as a CGI program, which could then inherit the suexec environment for execution, creating $Session such as that suexec user. Problem is that I have never gotten ASP to run as a full CGI well. Check out the asp script in the distribution cgi

Re: [3rd correction] Benchmarking Apache::Registry and Perl Content Handler

2000-04-17 Thread Joshua Chamas
Stas Bekman wrote: Geez, mod_perl rocks When I've run the benchmarks on the *strong* machine the results were all different! 700+ RPS for the hello benchmark!!! The only mistery left is why registry is so slow on the slow machine relative to fast machine??? And yeah I've used the

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Gunther Birznieks
No. I have not worked with XSL processers. I tend to use XML SAX parsers as I know they are faster and deterministic-- specially Sun's XML SAX Parser. It could be that the XSL processors are making use of a DOM based structure which is causing all sorts of references to other data structures,

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Matt Sergeant
On Sun, 16 Apr 2000, Leslie Mikesell wrote: Do you happen to know of anyone doing xml/xsl processing in servlets? A programmer here has written some nice looking stuff but it appears that the JVM is never garbage-collecting and will just grow and get slower until someone restarts it. I

dynamically set AuthUserFile

2000-04-17 Thread Scott Alexander
Hi, I'm using part of the URL to tell perl::dbi what DB to connect to. www.mysite.com/mydb/index.html will connect to mydb. I will be creating many different environments. At the moment I edit the httpd.conf file as I add each environment. How can I tell apache what AuthUserFile to use

RE: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Paul G. Weiss
Is this still true under 5.6, now that weak references are available? -P -Original Message- From: Matt Sergeant [mailto:[EMAIL PROTECTED]] Sent: Monday, April 17, 2000 4:14 AM To: Leslie Mikesell Cc: (Gunther Birznieks); [EMAIL PROTECTED] Subject: Re: Modperl/Apache

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread shane
Gunther- (What follows is some servlet talk... and anyone interested in a mod_perl garbage collector?) If you want the ultimate in clean models, you may want to consider coding in Java Servlets. It tends to be longer to write Java than Perl, but it's much cleaner as all memory is shared and

RE: Segfault on DBI-Connect

2000-04-17 Thread Drew Degentesh
Jochen, If you are using the DBD-mysql sources, as distributed by me, the mysql_real_connect function will *never* be called with a NULL argument. This cannot happen, if mysql_init() is called before mysql_real_connect(). (Unless you are using some patches that I have recently reached me

RE: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Matt Sergeant
On Mon, 17 Apr 2000, Paul G. Weiss wrote: Is this still true under 5.6, now that weak references are available? Yes. You still have to do a lot of re-implementation to make weak refs work, and your users have to have the WeakRef module from CPAN. Not a nice situation. -- Matt/ Fastnet

[OT] mysql-modules for Win32 platform

2000-04-17 Thread Erich Markert
I've been trying to get the msql-mysql-modules compiled and installed on my Win98 machine for a couple weeks without much luck. I tried using the latest version of perl 5.6 from active state but ran into nothing but problems. Basically running perl Makefile.PL for Data::ShowTable (a required

RE: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-17 Thread Vivek Khera
"SB" == Stas Bekman [EMAIL PROTECTED] writes: SB Of course, anyone has a sample Perl section handy? I'm still an SB CApache::Registry fan, to be changed soon :) I don't see what Perl sections have to do with using or not Apache::Registry instead of handlers... But, I've been toying with the

RE: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-17 Thread Stas Bekman
On Mon, 17 Apr 2000, Vivek Khera wrote: "SB" == Stas Bekman [EMAIL PROTECTED] writes: SB Of course, anyone has a sample Perl section handy? I'm still an SB CApache::Registry fan, to be changed soon :) I don't see what Perl sections have to do with using or not Apache::Registry instead

Re: [summary] Re: front end proxy and virtual hosts

2000-04-17 Thread Vivek Khera
Looks good; I'd recommend keeping *.html files on the front-end as well, since they tend to be static, and also any traditional *.cgi since they don't need mod_perl's bloat on the fork/exec. Also, specifying "Port 80" inside each virtual on the back-end is not necessary, though perhaps setting a

Re: [OT] mysql-modules for Win32 platform

2000-04-17 Thread Steve Hay
Erich Markert wrote: I've been trying to get the msql-mysql-modules compiled and installed on my Win98 machine for a couple weeks without much luck. I managed to get these working on NT4 with both 5.005_03 and 5.6.0 (both built myself from the standard distribution, not the ActiveState build)

RE: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-17 Thread Matt Sergeant
On Mon, 17 Apr 2000, Vivek Khera wrote: But, I've been toying with the idea of writing an Apache::Dispatch module that would take all URL's of the form something like http://localhost/perl/My/Module/handlerfunc and dispatch the call to My::Module::handlerfunc() Assuming that

Re: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-17 Thread Drew Taylor
Matt Sergeant wrote: On Mon, 17 Apr 2000, Vivek Khera wrote: But, I've been toying with the idea of writing an Apache::Dispatch module that would take all URL's of the form something like http://localhost/perl/My/Module/handlerfunc and dispatch the call to

Re: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-17 Thread Vivek Khera
"DT" == Drew Taylor [EMAIL PROTECTED] writes: DT are beginning the transition to Apache handlers. One other thing that I DT would love is a module to do checkboxes/pull-down list generation ALA DT CGI.pm. I might rip off some code and create a module myself. I think it Have a look at

RE: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-17 Thread Vivek Khera
"MS" == Matt Sergeant [EMAIL PROTECTED] writes: adding handlers as easy as adding Registry scripts. I guess it is sort of an ultra-light-weight Registry, in some sense. MS I've got something pretty similar. Let me know if you want some code. Sure; it is always good to see other ideas...

RE: [RFC] Transitioning from Apache::Registry to Apache handlers

2000-04-17 Thread Matt Sergeant
On Mon, 17 Apr 2000, Vivek Khera wrote: "MS" == Matt Sergeant [EMAIL PROTECTED] writes: adding handlers as easy as adding Registry scripts. I guess it is sort of an ultra-light-weight Registry, in some sense. MS I've got something pretty similar. Let me know if you want some code.

Help needed with Apache::AuthCookie 2.007

2000-04-17 Thread Kenneth Frankel
Could someone provide a good FAQ or example of how to impliment this thing? The package documentation's "just copy the test script" example I'm sure is a great time-saver for the author but when one has problems it's really a pain with all the unrelated testing code. I'm having problems and

Apache::AuthCookie or Apache::AuthDBI or Apache::???

2000-04-17 Thread Kenneth Frankel
What's the best way to authenticate users? I have a site where the entire site is to be protected. I want to log users in at the front of the web site, and keep them logged in as they travel around. I was trying to get AuthCookie to work but haven't been successful so far. Should I

[FIXED] make test indicates server won't start

2000-04-17 Thread Steven D. Arnold
I previously posted a question regarding installing mod_perl. Specifically, when I ran "make test", the script said it started the server, then said it was still waiting for the server to warm up, and finally died. I had built mod_perl in a directory within my home directory. The

Re: [Slightly OT] IPC::Open3 broken in mod_perl/perl 5.6.0?

2000-04-17 Thread Richard Titmuss
Hi, I have also had this problem. I checked the modperl-cvs archive and this problem has been fixed in the development release. I still have an problem using IPC::Open2. This can be demonstrated by: use IPC::Open2; $pid = open2(\*A, \*B, '/usr/bin/ls'); The error log shows:

Re: Apache::AuthCookie or Apache::AuthDBI or Apache::???

2000-04-17 Thread Vivek Khera
"KF" == Kenneth Frankel [EMAIL PROTECTED] writes: KF What's the best way to authenticate users? I have a site where the entire KF site is to be protected. I want to log users in at the front of the web For a site whose contents are entirely protected, I'd use basic auth with a cookie

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: Now with modperl the Perl garbage collector is NEVER used. Because the reference count of those variables is never decremented... it's because it's all in the registry, and it's hard to tell... hmm... what should I throw away, and what should I keep? ;-). What I

Fw: Apache::Registry error message?

2000-04-17 Thread Jason Terry
OK, it happended again. Here is the error log snippet Can't undef active subroutine at /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/Registry.pm line 102. I think i may know a little more about the cause this time thought. It happened immediatly after I made a VERY minor change (put

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread shane
On Mon, Apr 17, 2000 at 11:12:24AM -0700, Perrin Harkins wrote: [EMAIL PROTECTED] wrote: Now with modperl the Perl garbage collector is NEVER used. Because the reference count of those variables is never decremented... it's because it's all in the registry, and it's hard to tell...

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Jim Winstead
On Apr 18, [EMAIL PROTECTED] wrote: On Mon, Apr 17, 2000 at 11:12:24AM -0700, Perrin Harkins wrote: [EMAIL PROTECTED] wrote: Now with modperl the Perl garbage collector is NEVER used. Because the reference count of those variables is never decremented... it's because it's all in the

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread shane
Go out of scope, yes. Destroyed, no. Want to test? No problem. Do the following in a perl script. my($funnything); print"Value of funnything is $funnything"; $funnything="Uh oh... check this out"; You'll find some interesting results on your second interation :-). Even funnier

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Jim Winstead
I get it. You're talking about Apache::Registry scripts. http://perl.apache.org/guide/perl.html#my_Scoped_Variable_in_Nested_S Jim

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Autarch
On Tue, 18 Apr 2000 [EMAIL PROTECTED] wrote: Go out of scope, yes. Destroyed, no. Want to test? No problem. Do the following in a perl script. my($funnything); print"Value of funnything is $funnything"; $funnything="Uh oh... check this out"; This only happens with Apache::Registry

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: my $i=0; dosomefunnierstuff(); sub dosomefunnierstuff { my $funnierstuff; if($funnierstuff=~/funnier/) { dosomefunnierstuff(); } else { $funnierstuff="funnier".$i++; } print "Funnierstuff is

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Jason Simms
This is the first i have seen "delete" referenced. What does it do? How is it used? Well, you should read the manuyal, or "Programming Perl" for the real answer. Or, were you speaking in reference to delete() specifically under mod_perl? In either case, delete() removes the specified key

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread shane
You're right. I am mistaken :-(. Just tested it, and it was something silly in an old script I had lying around that I thought was a bug... my mistake. (Note to self: Test all examples before posting... or you look like an idiot :-) ) Sorry, Shane. I think you're mistaken. Try the

perl job opportunities

2000-04-17 Thread David Hobbs
As these jobs involve perl programming, I thought you may have an interest in the following jobs for developing database-driven web sites at Forum One Communications. Please see www.forumone.com/consult/ for details. SENIOR WEB PROGRAMMER 6+ yrs exp. Unix/CGI programming, with 2+ yrs

Re: Help needed with Apache::AuthCookie 2.007

2000-04-17 Thread Ken Williams
[EMAIL PROTECTED] (Kenneth Frankel) wrote: Could someone provide a good FAQ or example of how to impliment this thing? The package documentation's "just copy the test script" example I'm sure is a great time-saver for the author but when one has problems it's really a pain with all the

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Ken Williams
[EMAIL PROTECTED] wrote: On Mon, Apr 17, 2000 at 01:33:08PM -0600, Jason Terry wrote: This is the first i have seen "delete" referenced. What does it do? How is it used? Thank you -Jason It's the stack cleaner... but it only works for scalars, and maybe arrays, but its better for

Re: mod_perl with jpl

2000-04-17 Thread Gunther Birznieks
I am not going to answer your question directly because I don't know the answer. However, consider that not many people use jpl. Therefore, it is likely that it has more bugs than other parts of Perl. Also consider that the software you use may end up disliking the process model and rely on

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Gunther Birznieks
While I agree that a true garbage collector would be cool. I wonder what the utility would really be when you would primarily want it in mod_perl type stuff. Yet, mod_perl is also great because of speed. One of the nice things about Perl right now is that it is fast and that is partially due

RE: Compiler errors...

2000-04-17 Thread Robert Jenks
Title: RE: Compiler errors... Well this does work better, but as I found out, it doesn't solve my problem. While this does catch runtime errors, it doesn't catch compile-time errors when using Apache::StatINC. However thanks to your hint on how to do this, I was able to patch

RE: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Jeff Stuart
Shane, question for you. No offense intended here at all but what do you have in your apache servers (other than mod_perl) that use 4 to 6 MB? I've got one server that I'm working on that handles close 1 Mil hits per day than runs WITH mod_perl that uses 4 to 6 MB. ;-) Without mod_perl, it

RE: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Gunther Birznieks
If you aren't careful with your programming, an apache HTTPD can always grow pretty quickly because Perl never releases the RAM it allocates previously. While it does that reference count garbage collection, that is internal to the RAM that was allocated. Let's say you need to sort a record

Re: Modperl/Apache deficiencies... Memory usage.

2000-04-17 Thread Stas Bekman
[ By the way, Stas - is there a CVS version of the guide that I can make patches against? I found a few inaccuracies. ] Yeah, but it's not accessible for people from the outside. I think I'll start using the same mechanism apache.org does -- rolling out CVS snapshots every few hours. At this

cvs commit: modperl-2.0/src/modules/perl modperl_gtop.c modperl_gtop.h

2000-04-17 Thread dougm
dougm 00/04/17 00:10:36 Added: src/modules/perl modperl_gtop.c modperl_gtop.h Log: functions for tracing memory usage Revision ChangesPath 1.1 modperl-2.0/src/modules/perl/modperl_gtop.c Index: modperl_gtop.c

cvs commit: modperl-site/embperl Changes.pod.1.html index.html

2000-04-17 Thread richter
richter 00/04/17 14:04:04 Modified:embperl Changes.pod.1.html index.html Log: Embperl Webpages - Changes Revision ChangesPath 1.147 +3 -1 modperl-site/embperl/Changes.pod.1.html Index: Changes.pod.1.html

cvs commit: modperl-2.0/src/modules/perl mod_perl.c mod_perl.h modperl_config.c modperl_config.h modperl_types.h

2000-04-17 Thread dougm
dougm 00/04/17 14:11:07 Modified:lib/ModPerl Code.pm src/modules/perl mod_perl.c mod_perl.h modperl_config.c modperl_config.h modperl_types.h Log: hook in xsinit add PerlSwitches directive Revision ChangesPath 1.11 +6 -1

cvs commit: modperl-site/embperl Changes.pod.1.html index.html

2000-04-17 Thread richter
richter 00/04/17 14:22:53 Modified:embperl Changes.pod.1.html index.html Log: Embperl Webpages - Changes Revision ChangesPath 1.148 +4 -1 modperl-site/embperl/Changes.pod.1.html Index: Changes.pod.1.html