[OT] Var Scope question (under mod_perl, of course!)

2000-06-30 Thread Martin Langhoff
hi, sorry for the off-topic-ness, but I'm being bitten by a variable-scope problem, and maybe if someone is kind enough can help me out. Off-list, of course. I'm writing a module that is called under from embperl and registry scripts, and I'm finding that the following structure doesn't

[OT] Var Scope question (under mod_perl, of course!)

2000-06-30 Thread Martin Langhoff
hi, sorry for the off-topic-ness, but I'm being bitten by a variable-scope problem, and maybe if someone is kind enough can help me out. Off-list, of course. I'm writing a module that is called under from embperl and registry scripts, and I'm finding that the following structure doesn't

Installing mod_perl a dozen times ...

2000-07-18 Thread martin langhoff
hi, i guess once you've been playing with mod_perl for a while, you certainly installed perl, many modules, plus mod_perl, plus apache, plus many more things ... I keep a personal list of all the modules I must d/l and install on a virgin OS, and the correct order, versions and

[OT] auth modules

2000-07-18 Thread martin langhoff
hi, this is a question closely related to Perl, and my lazyness as a Perl programmer. The marketing dept here wants something really weird: they want to publish a datasheet in a 'protected' page, but the want the usr/pw hashes to be 'one time only'. So the user must be deleted after the

Re: Installing mod_perl a dozen times ...

2000-07-18 Thread martin langhoff
I guess that's good and true for those with low-cost + hi-speed + reliable connections. I have a few servers in here, and a dial-up connection i'd rather be careful about ;) anyway, I find it's very important to know all the modules I'm needing/using. Is it me? on the

module multi-config strategy

2000-07-24 Thread martin langhoff
hi list, i'm about to start writing the first of a series of internal modules, aimed at handling common features among sites we develop. Like, let's say, a 'latest news' box or a product guide/database. Now, the idea is to have one codebase, written in a module that serves all

Re: module multi-config strategy

2000-07-25 Thread martin langhoff
Perrin, you mean that I can actually set my environment per virtual-host? that's encouraging in the one-implementation per site scenario. Now I does block any use of persistent variables, unless I store them in a RDBMS or in the 'Globals' module you mentioned. It could really be

Re: mod_eprl or PHP

2000-07-26 Thread martin langhoff
Matt Sergeant wrote: On Wed, 26 Jul 2000 [EMAIL PROTECTED] wrote: PHP does not require mod_perl. They are completely seperate (and often do not like each other when loaded as DSOs). Has anyone figured out why that is yet? wasn't it related to conflicting mysql or dbi

Re: follow-up: very strange bug w/ tainting

2000-07-27 Thread martin langhoff
Alex, did you try this with apache in single process mode (I think it's httpd -X). Your 30% failure rate seems to mean that your after you execute the DBI script you only get the same process about 30% of the time. martin

mod_perl and the tied interface

2000-08-02 Thread martin langhoff
hi, i'm using the Tie::DBI interface under some embperl/mod_perl modules, and, worried about the implications of tying under mod_perl, happily found Doug as one of the coders/authors of perltie. hopefully, Doug's reading and/or someone else can tame my fears. I'm

Apache::Registry spawning zombie shells?

2000-08-22 Thread martin langhoff
hi list, while doing a silly thing (building a set of HTML files with info from a DB file), I found that while the apache server was being crawled by lwp-rget, a lots of zombie shells were being spawned and killed. top was telling me that there were quite a few processes like:

mod_perl-friendly webmail solutions?

2000-08-22 Thread martin langhoff
hi, i'm looking around, searching webmail solutions that run without problems under mod_perl. Although I know there are many, most of them are not very mod_perl friendly. now, the actual questions are - is anyone here running (successfuly) a mod_perl webmail?

Acmemail vs WING (was Re: mod_perl-friendly webmail solutions?)

2000-08-23 Thread martin langhoff
I found the one that Luis suggested, (acmemail) and a few more, including WING. These 2 are the only ones programmed to take advantage of mod_perl. I fear the other ones are not mod_perl aware, so the may not be safe/efficient under mod_perl, so my choices are mainly between these two.

Re: Acmemail vs WING (was Re: mod_perl-friendly webmail solutions?)

2000-08-23 Thread martin langhoff
entropic, is WING something I can deploy and configure/customize (like most webmail solutions) or should code the interface to get it to work? does it support imap folders and address books? martin [EMAIL PROTECTED] wrote: Wing scales well. Its the 'imap' server where you

[OT]starting a long running script

2000-08-29 Thread martin langhoff
hi, i need to start a long-running script from either mod_perl or mod_cgi, and I'm facing all the well-known issues: the apache child waits, until it waits no longer (maybe because the browser itself chose to close the TCP connection, maybe because of an internal timeout), and then the

[OT] DNS question (slightly mod_perl related...)

2000-08-31 Thread martin langhoff
the mod_perl related background: I was recently asked if one of the domains we were hosting could have its users folders mapped in the domain name. Something like folder.domain.com, instead of domain.com/folder . My silly mind tumbled around, mumbling at which apache request I was going

Re: [OT] DNS question (slightly mod_perl related...)

2000-08-31 Thread martin langhoff
Jim Winstead wrote: plan c: use a wildcard record and move on to real problems. :) Bummer! I had thought I actually had a real problem ... gotta move on to find one ! martin [who can't believe this list's so great]

One httpd.conf for both apache heavy and apache-light [IfModule]

2000-09-30 Thread martin langhoff
hi, I'm trying to build a 2 tiered Apache setup, with one light httpd, one mod_perl httpd and a mod_php4 httpd, all running on different ports on the same machine/IP. Right now I'm solving the mod_rewrite mod_proxy stuff (I want the light httpd to transparently proxy requests to the 2nd

Re: One httpd.conf for both apache heavy and apache-light [IfModule]

2000-09-30 Thread martin langhoff
You mean you post-process your httpd.conf ? Phew! mmmh. I'm flabbergasted (sp?) and certainly mesmerized, can you tell us a bit more? Perrin Harkins wrote: Where I work, we use Template Toolkit to generate variations from one httpd.conf template.

Re: One httpd.conf for both apache heavy and apache-light [IfModule]

2000-09-30 Thread martin langhoff
Perrin, Robin, et al at least I don't feel alone on this one :) now let me seize the opportunity and (while you're around, having admitted you're using a 2 tiered apache setup,) ask you if you are doing the mod_rewrite/mod_proxy trick, and how were you able to pull it off.

$r-header_only question (feeling a newbie!)

2000-10-02 Thread martin langhoff
hi, I've been developing with mod_perl for a while, but, thanks to Richter's Embperl module and the excellent backwards compatibility (regarding CGI.pm) I had never got anywhere near Apache::Request -- for production, that is. Now I have this very silly question, that I've

Re: $r-header_only question (feeling a newbie!)

2000-10-02 Thread martin langhoff
... it made no difference ... :( Drew Taylor wrote: I believe all you need to add is "return OK;" after your print statement. Without that, Apache doesn't know what the status of the request should be.

Re: $r-header_only question (feeling a newbie!)

2000-10-02 Thread martin langhoff
Thanks Tim and all, my gathering is that the sample script on page 146 of the Eagle: - needed a 'use Apache::Constants(:common);' line - needed a 'return OK;' line at EOF - had an 'unless' that should've been an 'if'. for-the-record, I did check

Re: $r-header_only question (feeling a newbie!)

2000-10-03 Thread martin langhoff
martin, check out: http://www.ora.com/catalog/wrapmod/errata/wrapmod.699 Well, I guess fair is fair, the correction for page 146 (unless = if) was there, I should've done my research better ... anyway I do seem to be needing 'use Apache::Constants qw(:common);' to run under strict

[mod_rewrite] Remember to set your logLevel down!

2000-10-09 Thread martin langhoff
hi, I've got a 2 tier apache setup running a lightweight apache with mod_rewrite proxying *.pl requests to the heavyweight apache. I'm posting this to share a bit of practical info on how to build such a setup on a per-file basis, as the Guide only deals with per domain/directory

[OT]logging Apache processes w/rotatelogs

2000-10-17 Thread martin langhoff
hi, is anyone using rotatelogs ? I have a bunch of virtualdomains, each with its own, separate log. Then I'm running three different apache binaries (that resulting in a whole lot of daemons). Now I'm trying to use rotatelogs, and I find the pipes are kept open, so I have a

AARRRGH! The Apache Proxy is not transparent wrt cookies!

2000-10-19 Thread martin langhoff
hi, after a lot of struggling, I finally set my multilayered apaches up, and now I find that the proxy is eating my cookies along the way... HEELP! I am proxying through mod_rewrite commands, if that actually makes a difference ... martin

[OT] Will a cookie traverse ports in the same domain?

2000-10-19 Thread martin langhoff
hi, this HTTP protocol (definition and actual implementation) question is making me mad. Will (and should) a cookie be valid withing the same host/domain/subdirectory when changing PORT numbers? All my cookies have stopped working as soon as I've set my mod_perl apache on a high

Re: how to really bang on a script?

2000-10-28 Thread martin langhoff
Chris, i'd bet my head a few months ago someone announced an apache::bench module, that would take a log and run it as a benchmarking secuence of HTTP requests. just get to the list archives and start searching with benchmarks and logs. CPAN is your friend, also. there are at

Re: conflicts between mod_perl and php4

2000-11-08 Thread martin langhoff
Andreas, compile PHP *without* mysql support. Read the PHP docs, it's there... don't worry, it'll still be able to use mysql connections... Andreas Gietl wrote: i've got the following configuration: apache_1.3.12 with php and mod_perl statically linked. Php has compiled-in

sharing Auth across proxied apaches

2000-11-09 Thread martin langhoff
hi, I'm having a big headache with a complex Auth scheme I must implement. It seems I'll have to code quite a bit anyway, but I'm pondering the options I have. Currently, the server setup looks like this: - apache.plain : running at port 80, serving all static content and proxying (with

PerlSetEnv leaking outside its intended(?) scope

2000-11-10 Thread martin langhoff
hi list, I guess it has to do with my terrible ignorance, but I had always thought that PerlSetEnv placed inside a VirtualHost would be visible only inside that particular vhost. Re-reading the F***ing Manual (that is, The Guide), I find no clear evidence of this. So,

Re: [OT] mod_perl evangelism

2000-11-14 Thread martin langhoff
[EMAIL PROTECTED] wrote: Having such tutorials will bring more crowds to mod_perl commutity. The mod_perl commutiny? I think I like it...

OT: packing and unpacking help!

2000-11-23 Thread martin langhoff
hi, sorry to bother the list, but I'm stuck trying to convert this code into something more elegant, using pack() ... my $commandlength = length $command; my $high= (($commandlength (255 8)) 8); my $low = ($commandlength 255); my $commandstr = sprintf("\002%c%c%c",

Re: RFC: mod_perl advocacy project resurrection

2000-12-05 Thread martin langhoff
kevin montuori wrote: additionally, i think that some consideration should be given to how mod_perl is packaged. I think it's of crucial importance the fact that a distro as widespread as RHLinux 6.x had mod_perl messed up. That has forced quite a lot of developers that

Re: RFC: mod_perl advocacy project resurrection

2000-12-05 Thread martin langhoff
Eric Strovink wrote: A number of people have been beating around this bush, so why not just mow it down? A huge win for advocacy would be a small set of complete example applications targetted at, say, the last two RedHat distros. I see a suitable target there ... maybe a SRPM

Re: Smart installing (Re: mod_perl advocacy project resurrection)

2000-12-07 Thread martin langhoff
"Aaron E. Ross" wrote: database abstraction and connection pooling = DBI session management = Apache::Session load balancing = mod_backhand?? data relational mapping = Tangram or Alzabo templates or

Re: debuggers

2000-12-07 Thread martin langhoff
Perrin, In fact, I've always been coding from NT machines -- for my *nix servers, of course. Now the ActiveState people are building a cross-platform and cross-language IDE that integrates with perldebug nicely -- or so it seems. I'm actually starting to like it -- it's built on top of

Re: debuggers

2000-12-07 Thread martin langhoff
Perrin Harkins wrote: I don't know how easy it is to make it play with mod_perl though. Apache::Debug normally just dumps you into the shell debugger. Maybe setting an environment variable would do it. I've always considered mod_perl to be completely debugger-unfriendly. That's

Mem Sizing tool [was: splitting the code sets across more than one mod_perl server]

2000-12-13 Thread martin langhoff
hi, [now to the list, also] maybe all of these mathematical formulae can be made into a smallish perl script that grabs this info from `top ax`. I am not sure that top is the proper source of memory usage across platforms. In fact, as I am not a unix old-timer, I

Re: Email (mod_perl) Apache module?

2000-12-15 Thread martin langhoff
Jeremy Howard wrote: IMHO, the best open source WebMail servers are PHP based true, I am using and patching TWIG quite a lot, and that made me see how messy PHP gets when dealing with libraries and things. It's not nice to see a large app written in PHP... at least not this one. I have

Re: Email (mod_perl) Apache module?

2000-12-15 Thread martin langhoff
brian moseley wrote: (speaking as the author of a proprietary mod_perl webmail...) DO IT!! my fear is that writing it as a mod_perl app, it'd be terribly niche, and we wouldn't get it rolling. I'd rather write a bunch of modules, that can be called from a CGI or a templating

Re: Email (mod_perl) Apache module?

2000-12-15 Thread martin langhoff
Perrin Harkins wrote: Is there a reason you don't want to just hack on WING? I've seen TWIG and its *very* clever, if ugly. It'll let you authenticate against a lot of things. Use IMAP or POP. Use News. Use mysql, Postgres, MySQL, or none. Use cookies or encoded links for state. It's *very*

[OT]Problems with `use locale`

2000-12-20 Thread martin langhoff
hi, sorry for being so OT. The problem is showing up in a mod_perl app, but it's certainly not related at all. Dealing with Spanish as we are, we always have problems with regexp, uc() and lc(). I've found that on my dev box, just adding `use locale` at least uc() and lc()

[OT] Problems preparing a module for CPAN

2000-12-28 Thread Martin Langhoff
hi, once again, steering off-topic ... :( I've got a nice little module (Mail::Vmailmgr) I am trying to bundle in the standard CPAN fashion, so that it has a proper Makefile.PL, etc. I am following my Perl Cookbook, recipe 12.8 ... steps taken: % h2xs -AX -n Mail::Vmailmgr % cd Mail/ % vi

[OT] All of Perldocs to HTML files

2001-01-16 Thread Martin Langhoff
Hi, I know this is is wy OT. Kick me privately, please. I am looking for a way to dump all of the available perldocs into an organized HTML structure. Activestate people are doing it in their standard distro -- but I couldn't find how. They even get cross-module links ("See Also")

Re: Making PHP and mod_perl live together in Apache 1.3.14.

2001-01-27 Thread Martin Langhoff
Mr Wells, I have succesfully built them together following this procedure. I am also including mysql and imap support in PHP. Be aware that many lines that should be a 'one-liner' have been broken by my mailer. untar apache 1.3.12, mod_perl 1.24, php 4.0.3 and c-client (from uw) # build imap

Anyone using virtual server for mod_perl hosts?

2001-01-30 Thread Martin Langhoff
hi, due to some fairly complex issues (money, or lack thereof), I am considering turning a mod_perl server from co-location into a 'virtual server' service, like Verio offers. Far from asking if it is a good solution (I know it is not) I'd like to know if its feasible. I have

Repost: Anyone using virtual server for mod_perl hosts?

2001-01-30 Thread Martin Langhoff
As many people understood I mean some kind of virtual host service, I would like to restate my question. There are companies (Verio at least) offering a 'virtual machine' running a virtualized OS. Verio is offering NetBSD and Solaris. They have a seriouly large iron where many virtual machines

Re: Repost: Anyone using virtual server for mod_perl hosts?

2001-01-30 Thread Martin Langhoff
Blue Lang wrote: Woah.. I had never heard of this. Have you actually been on a box? I'm calling them to see if a demo is available. I have been on such a box, once. Unluckily, I wasn't root, so I could not do much there. Of course, if someone is eating up resources, I'll have to fight

Apache::AuthTicket lookalike for DBM files

2003-04-04 Thread Martin Langhoff
I am looking for a mod_perl implementation of mod_auth_dbm that takes cookies instead of HTTP-AUTH Basic. Or perl implementation of mod_auth_cookie, perhaps (I think mod_auth_cookie does exactly that). I was sure I would find it in CPAN, and, sure enough, AuthTicket and others are there, offering

Re: How to restart the root server from within modperl?

2003-08-14 Thread Martin Langhoff
how can I restart the root httpd server from within modperl? Use `at` to schedule it a minute in the future -- effectively forking it. Note that normally apache starts as root and runs as an unprivileged user. If this is the case you _can_ achieve it using a suid wrapper or sudo, but you'll

Re: mod_perl v2 Forking

2003-09-15 Thread Martin Langhoff
Cameron, Have you tried issuing the command to `at`? If you don't need to interact wih the report generator, and can pass all the parameters in the command line or via a tmp file, this is a great solution. at (and the corresponding atd) will preserve your environment vars and other niceties.