its main
benefits? Is it speed?
On Jan 31, 2008 5:03 AM, Anthony Gardner <[EMAIL PROTECTED]> wrote:
The request object is used in handlers. You can either write handlers or CGI
scripts. Continue using CGI but inorder to reap the benifits of mod-perl, you
will need to run it under Mo
The request object is used in handlers. You can either write handlers or CGI
scripts. Continue using CGI but inorder to reap the benifits of mod-perl, you
will need to run it under ModPerl::Registry.
In your CGI script, while running under ModPerl::Registry., you even have
access to the reque
col. thx for that. I'll have a play.
merci.
Geoffrey Young <[EMAIL PROTECTED]> wrote:
Anthony Gardner wrote:
> I'm trying to write a FixupHandler to clean up the query_string
> before it gets to the response phase. Problem is, I can't. After
> clea
I'm trying to write a FixupHandler to clean up the query_string before it gets
to the response phase. Problem is, I can't. After cleaning it up, I reassign to
$ENV{QUERY_STRING} but in the called response script, the original QUERY_STRING
is present.
I can add new keys to %ENV at the PerlFixupH
Dileep, sorry for the delay in answering but I had to do fresh installs after a
recent ubuntu upgrade.
Okay, with a fresh, default Apache2/MP2 install (from source) I can easily
print using CGI::Application
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +P
Unless I'm missing sth, have you read the docs?
With CGI::Application, you don;t print anything, you just return whatever it is
you want 'printed'
Dileep Eduri <[EMAIL PROTECTED]> wrote:
I have able to solve to maximum extent.
rectified all the errors and able to print the result. this time its
I think you're a bit confused here. Are you writing C programs or Perl
programs? There's an API to mod_perl for C programs and an API to mod_perl for
Perl programs.
The whole point of use MIME::Base64 (); in startup.pl is so as NOT to import
everything from a particular package.
The point of u
This is just a feeler for info. I've played with sqlrelay on my local machine
with mp2 and liked it. I'm now thinking of using it within our production
environment at work.
Has anyone used this with mp2 within a production environment and if so, can
you inform me of its pros/cons.
Thank you.
Oracle.
Thanks for getting back to me . sometimes it's good to talk just to see
things more clearly ;)
-Ants
Clinton Gormley <[EMAIL PROTECTED]> wrote: On Tue, 2007-07-17 at 12:36 +0100,
Anthony Gardner wrote:
> Yes, I'm aware of all of that, but it's the 'yo
I'm a little confused over the use of Apache::DBI or using DBI's connect_cached.
I always thought that Apache::DBI would allow me to use one connection through
multiple processes, but that seems to be not true. After reading the docs more
thoroughly , it seems as though one handle can not be sha
and test prefork MPM.
Thanks for getting back to me, anyway.
-Ants
Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
On Jul 9, 2007, at 9:12 AM, Anthony Gardner wrote:
> http://perl.apache.org/docs/2.0/user/performance/
> mpm.html#Work_with_DataBases_under_Threaded_MPM
>
> I'm
http://perl.apache.org/docs/2.0/user/performance/mpm.html#Work_with_DataBases_under_Threaded_MPM
I'm looking into a problem we're experiencing (lots of netword connections) and
I think the answer lies with Apache::DBI and the version of mod_perl we're
using.
A few questions, does anyone know of
Also, ages ago, I asked the list about seg faults we were having plus I asked
about syswrite and STDOUT being tied to MP etc.
Well, the seg faults were coming from syswrite. Here's the scenario
We have large files that can be downloaded and if a user clicks a file, the
dialogue box as
Okay, to answer my own post from a few days ago (I haven;t been working on it
since the post, just the last 30 mins ;) )
Anyway, the answer to me not seeing PerlPassEnv vars at server startup was
because they were in files that were Include(d) into httpd.conf.
They are now in httpd.conf and eve
Can someone point to a good place for docs on exactly how Apache starts.
I've had a read through ...
http://perl.apache.org/docs/2.0/user/handlers/server.html
.. and my Apache Modules book isn't answering the questions I have.
The problem is, I have startup.pl being run twice when
speak up :)
- Original Message -
From: Anthony Gardner
To: modperl@perl.apache.org
Sent: Friday, June 01, 2007 9:07 AM
Subject: Apache2 ENV
Okay, am being a bit lazy but I though I'd ask here and continue reading the
docs while waiting for replies.
We've finally ported mod_per
Okay, am being a bit lazy but I though I'd ask here and continue reading the
docs while waiting for replies.
We've finally ported mod_perl 1.99 to a lovely new mod_perl 2.0.n but some
things don't work. Namely PerlSetENV
This works under mod_perl but not CGI. Is there something else I should be
Yes, back to this, I'm afraid.
The good news is, things are working (kind of). the bad news is ... to
me, it isn't intuative.
Why am I unable to pass notes to the sub process? I can pass notes back from
the sub process!!
On returning from the sub process, I've lost most of my %ENV conf
Okay, I've just been asked can I whack an entry into the access log file for
the subrequest made?!
I know that subrequests don;t perform the logging phase but is there anything I
can do to force it or for me to write to the access_log for that request?
I've only been able to find how to write t
Cool. you're a diamond.
stay tuned for the next problem!!
Perrin Harkins <[EMAIL PROTECTED]> wrote: On 3/30/07, Anthony Gardner wrote:
> One more question, I had to put the data in notes so that it was available
> in the inital script. Is that the right way to do it?
That'
ch is
also good.
-Ants
Perrin Harkins <[EMAIL PROTECTED]> wrote: On 3/30/07, Anthony Gardner wrote:
> Within the called script, we make a call to $cgi->Vars but this is returning
> the query string from the initial request.
That's just a problem with the way CGI.pm is coded. It
a bit of time getting ti the core of this.
Any further help would be great, thanks
CIA
-Ants
Perrin Harkins <[EMAIL PROTECTED]> wrote: On 3/29/07, Anthony Gardner wrote:
> I can use PassEnv and PerlPassEnv, set them in the calling script and then
> retrieve the values in the c
Yeah, you know what, I was mistakingly using lookup_file for ages and then
changed to lookup_uri but then overlooked the possibilty of adding on the
qsuery string.
Ho hum, will try tomorrow. Am getting there slowly.
Perrin Harkins <[EMAIL PROTECTED]> wrote: On 3/29/07, Anthony Gardner
All, I've now had a chance to look at implementing sub requests and it seems to
be the thing I need but .
I need some more info that I've been unable to get from the book or the web.
To begin with, the environment passed to the sub request has to be managed and
I've half succeeded b
rin Harkins <[EMAIL PROTECTED]> wrote: On 3/26/07, Anthony Gardner wrote:
> The script is running under ModPerlRegistry but nothing is happening.
What's your definition of "nothing" in this case?
> So, am I right in now thinking, because my cgi script gets wrapped by a
This is MP2 ... actually RHE 1.99. We have compiled a test MP2 but
still get seg faults.
Am not at work now but will look at this further tomorrow.
Torsten Foertsch <[EMAIL PROTECTED]> wrote: On Monday 26 March 2007 17:51,
Anthony Gardner wrote:
> As for the $r, it'
r? If so, why oh why isn;t it working
:(
As for the $r, it's coming from Apache->request() but we are
experiencing segfaults
Perrin Harkins <[EMAIL PROTECTED]> wrote: On 3/26/07, Anthony Gardner wrote:
> Can I only use internal_redirect in handlers or is it possibl
Answering my own question . yes, it can only be called from content
handlers.
But any advice on how I can achielve the same result from with cgi scrupts
would be great.
Thank you.
Anthony Gardner <[EMAIL PROTECTED]> wrote: Can I only use internal_redirect in
handlers or
Can I only use internal_redirect in handlers or is it possible to use it within
a cgi script calling another cgi script? All the docs I've seen have used
handlers . I want to do something different ;)
As you know, OK has to be returned immediatly after the internal_redirect so
that's te
anasco <[EMAIL PROTECTED]> wrote:
On Mar 22, 2007, at 11:40 AM, Anthony Gardner wrote:
> If Partial HTML is sent to the client, could it possibly cause
> the IO flush error? The HTML in question would be something like
> .
and sent back thus
are
We're having some problems with the floowing errors
Apache2 IO flush: (103) Software caused connection abort at -e line 0
child pid 31533 exit signal Segmentation fault (11)
(not following each other like that. A lot of requests can be made before one
of them appears)
We are going to recom
Have you tried Apache::StatINC? Actually, is that available for Apache2?
We've also had problems with Apache::Reload here but we're putting that down to
using RHEL mod_perl 1.99 ;) Am waiting to get the latest MP2 installed and
hopefully it'll help sort the problems out.
But I agreee with Perri
Just realised, I could use Apache::Cache. Is there an MP2 version? Couldn't
find one.
Send instant messages to your online friends http://uk.messenger.yahoo.com
Happy New Year mod_perl(ers) (just buttering you up b4 I ask my question ;) )
Am working my way through a lot of existing code that was run as vanilla CGI
and which we are porting to MP2(ish).
anyway, they have their own html templates which are opened and closed for
every request. Doh!!
Befor
Have received the following .. error? warning?
:Apache IO flush: (103) Software caused connection abort at -e line 0
I googled and found that this has been raised in the past and that
Stas was looking for a solution. (October 2005)
My question, is this a mod_perl bug .
H.
Now what am I doing wrong?
I'm trying to tie( *NEWOUT, 'Apache2::RequestIO' ); as per docs
http://perl.apache.org/docs/1.0/guide/porting.html#STDIN__STDOUT_and_STDERR_streams
but I'm getting . Can't locate object method "TIEHANDLE" via package
"Apache2::RequestIO"
I've tried i
Doh!!
Think I've solved it. I used $r instead of Apache2::RequestIO and it works.
Plus, I forgot to uniti STDOUT before tie(ing)
Now, just gotta try it on the ever reliable RHEL 1.99!
Perrin Harkins <[EMAIL PROTECTED]> wrote: Alex Beamish wrote:
> I'm going
> to seriously consider lookin
All,
[input] [input] [input] [input]
i have another strange one for the list and i know, before I even ask,
that i'll be the only one experiencing this :(
Am using RHEL 1.99??? (Apache2) and under cgi-script I can succesfully use
syswrite(ST
1 Dec 2006 15:15:32 +0000 (GMT)
Anthony Gardner wrote:
> it's actually MP .. not too sure, to be honest. I work for a
> largce co. that are using RedHat pkgs and although it claims tp be
> MP2, its version number gives 1.99(sth) and the Apache namespaces are
> Apache a
$ENV{DOCUMENT_ROOT}
}
"Philip M. Gollucci" <[EMAIL PROTECTED]> wrote: Anthony Gardner wrote:
> I'm def not the first to have noticed this, I googled but nothing sprang
> out at me.
>
> I have a pkg var
> our $DOCUMENT_ROOT = WWW::Utils->document_root();
>
>
I'm def not the first to have noticed this, I googled but nothing sprang out at
me.
I have a pkg var
our $DOCUMENT_ROOT = WWW::Utils->document_root();
and I print %ENV at package level
WWW::Utils->printenv();
If, after changing this pkg's code, I issue a new request, the DOCUMENT_ROOT is
set o
I don't know if this is the right place to ask but in the log created by mod_rewrite, it tells me that it's prefixing my local_path with document_root.what I want is the server_root!!This is in a virtual hostRewriteEngine on##RewriteBase SERVERROOT/p4cRewriteRule /cgi-bin/cpindex.pl /cg
Thanks for the suggestions, I'll check them out. as for Apache::TestRequest, I agree with what you say . I thought it'd be a lot of work to write 'test' handlers but didn't know of any other options.cheers"Philip M. Gollucci" <[EMAIL PROTECTED]> wro
I'm trying to think of a way to do a test plan for a site that is already well developed but is going through a structural change rather than a content change.To cut a long story short, for future development we want to implement a good test suite to test the html in the response. At present, they
Perl::Registry?How can you know your modperl scripts can't be run?When you meet problems,you can look at the error_log where you could find most of the problems.And,here is my mp2 config,it can run well for me:PerlModule ModPerl::RegistrySetHandler perl-script PerlResponseHandler
l::RegistrySetHandler perl-scriptPerlResponseHandler ModPerl::Registry PerlOptions +ParseHeadersOptions +ExecCGIGood
luck!-Original Message->From: Anthony Gardner <[EMAIL PROTECTED]>>Sent: Oct 13, 2006 3:53 AM>To: mod_perl >Subject: apache2 and
blems,you can look at the error_log where you could find most of the problems.And,here is my mp2 config,it can run well for me:PerlModule ModPerl::RegistrySetHandler perl-scriptPerlResponseHandler ModPerl::RegistryPerlOptions +ParseHeadersOptions +ExecCGIGood luck!-Original M
yPerlOptions +ParseHeadersOptions +ExecCGIGood luck!-Original Message----->From: Anthony Gardner <[EMAIL PROTECTED]>>Sent: Oct 13, 2006 3:53 AM>To: mod_perl >Subject: apache2 and ptkdb>>I'm having problems getting ptkdb to work under ModPerl::Registry.>&g
I'm having problems getting ptkdb to work under ModPerl::Registry.this works but it won;t be running under mod_perl AllowOverride Limit## SetHandler perl-script## PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders Options +ExecCGIthe following won't work at all Allow
Can s.o point me in the right direction (links or advice) about the best way to use a DB to record accesses to Apache?Can records be added to a DB at the time of the request or is the only way to filter the access_log and then whack them into a db?CIA-Ants
Yahoo! Messenger
NEW - crystal clear
I'm trying to install mod_perl-2.0.2 with httpd-2.2.3 and while compiling mod_perl, I get the following error ... No such file: lib/ModPerl/DummyVersions.pm Not in MANIFEST: .mypacklist Not in MANIFEST: Apache-Test/t/cgi-bin/cookies.pl Not in MANIFEST: Apache-Test/t/REPORT Not in MANIFEST: lib
Switch an email account to Yahoo! Mail, you could win FIFA World Cup tickets.
I need some advice. Scenario, I have a device that is connected to a "proxy". On the "proxy", I want to decrypt the POST request, see what's in there, if it's not what I want, then I want to pass it on its merry way in an encrypted form. If it is what I want, I want to process the request there a
o_invoke()
but my problem involved a ref to a class and a
function name which I haven't seen documented.
Unless s.o. can point me to the right place.
Thanks for the tip and any more info on what is
actually happening when we invoke sub{} would be
great.
-Ants
--- John ORourke &l
This is just Perl related but as it's running under
mod_perl, I'm sure you lot won't mind ;)
I'm trying to benchmark a piece of code with timeit
and I need a code ref. The thing is, I can't make a
code ref out of
$self->method_to_invoke( $arg1, $arg2 );
I've tried various obvious ways but t
Yeah, thta's cheeky. I totally overlooked what push
was returning.
I'll remember for next time.
Cheers all.
--- Damyan Ivanov <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Anthony Gardner wrote:
> > Can s.o. explain what
Can s.o. explain what is wrong with the following code
$r->pnotes('KEY' => push( @{ $ar }, $some_val ) );
because, when it comes to getting the value from
pnotes later with $r->pnotes(KEY), it returns the
number of elements in the array and not the array ref.
I've had to write ..
I've had a lot of experience with this.
You have to make sure the data coming into your
program is utf8.
Imagine trying to do a regex on your french chars. It
won't happen. That's why you have to have utf8 enable.
use utf8;
Have a look at perllocale. There's lots of info there.
The intermitten
Hola,
We're using apache/1.3.33 and mod_perl/1.29.
the problem is, a personal ENV variable is set in my
environment and read from a script like .
my $ENVNAME = $ENV{MY_PERSONAL_ENV} || 'STHELSE';
When the server is started a fresh, I can display my
ENV on my webpage but when I press refre
: SHA1
>
> Hi,
>
> could you explain in more detail what you are trying
> to achieve maybe
> it's because english is not my native language but I
> could not grasp
> anything from your information.
>
> Tom
>
> Anthony Gardner schrieb:
> > Do
Don't go mad with me ;)
I'm looking for a way to log particular msgs and saw
mod_log_config and Custom Log Formats.
Am I right in thinking that I can strip the error msg
contained in ...
$r->notes("ALARM" => "sth very bad has happened")
with ...
%{ALARM}n
placed in a custom log format str
Thanks for taking that seriously.
I for one felt very uncomfotable with that. Especially
if we're fighting to get Perl and associated
technologies respected in an ever increasingly
compettive mkt.
I actually thought some hacker had got in and changed
it!!
-Ants
--- Stas Bekman <[EMAIL PROTE
Can someone tell me why sex, sexy, suck and child
are included in the
for
http://perl.apache.org/docs/2.0/user/intro/start_fast.html
Obviously this isn't a mod_perl thing but it's a
little strange and I think a little scary.
-Ants
__
63 matches
Mail list logo