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.
>>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 r
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
Activestate is doing a great work with Komodo. Besides that, there have
been a few threads on this list on IDEs -- search the list for IDE and
you'll find quite a lot.
martin
Jimi Thompson wrote:
>
> Can anyone tell me if there's a good IDE for PERL? I have some big
> projects coming and hav
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
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 r
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 be
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 c
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")
jus
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 Vmai
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() would
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* fl
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 sys
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
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 should
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.
Tha
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 mo
"Aaron E. Ross" wrote:
>database abstraction and connection pooling => DBI
>session management => Apache::Session
>load balancing => mod_backhand??
>data relational mapping => Tangram or Alzabo
>template
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 SR
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
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%
[EMAIL PROTECTED] wrote:
> Having such tutorials will bring more crowds to mod_perl commutity.
The mod_perl commutiny? I think I like it...
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, i
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
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 mysql-su
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 lea
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
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
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 *lot
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 rewritin
> 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 str
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 www.modper
... 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.
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 boile
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.
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.
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
t
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]
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
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
sc
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
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.
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?
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:
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 tying
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
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
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
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 o
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 oth
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 f
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
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
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
54 matches
Mail list logo