-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 9:23 PM
To: Beau E. Cox
Cc: Modperl
Subject: Re: [mp2] apache/mod_perl starup failure using cvs 09
[...]
why does Mason needs $r at the server startup? There is no
request object
Beau E. Cox wrote:
Yea, Stas, I clearly see your reasoning. However, this is not a change
of behaviour between mp1 and mp2, but rather between mp2-08 and the
current cvs (09).
since 09 08, it *is* a change in behaviour between mp1 and mp2 ;) though
potentially not the final one.
I will
On Wed, 5 Mar 2003, Stas Bekman wrote:
Great. I've already committed that patch.
Perhaps Ask could load 'Apache::compat' inside Apache::DBI if mp2 is used. Or
to use the mp2 API if mp2 is used.
That seems like it'll be an easy solution. I thought loading
Apache::compat would have global
Ask Bjoern Hansen wrote:
On Wed, 5 Mar 2003, Stas Bekman wrote:
Great. I've already committed that patch.
Perhaps Ask could load 'Apache::compat' inside Apache::DBI if mp2 is used. Or
to use the mp2 API if mp2 is used.
That seems like it'll be an easy solution. I thought loading
Hi Stas -
-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 10:45 PM
To: Beau E. Cox
Cc: Modperl
Subject: Re: [mp2] apache/mod_perl starup failure using cvs 09
Beau E. Cox wrote:
Yea, Stas, I clearly see your reasoning. However, this
Hello All,
I have a perl script that would be running infinitely and updating
an array by processing some data. Now I would like to read the array
values that should not disturb this perl script.
I thought to use the concept of shared variable and write a method
in perl module
I'm having CGI redirect problems mp2 (cvs).
Instead of being redirected to the proper web page, I'm sometimes
getting a 302 Moved page containing a link to the correct URL.
Seems to be related to the following code in modperl_cgi.c:
if (location (location[0] == '/') (r-status == 200)) {
Stas Bekman wrote:
...
Well, actually this is not the case. It behaves exactly the same as in
modperl 1.0. You can use Env::C module (available from CPAN) to easily
debug this:
...
In any case you probably want to rely on getpwuid($), rather than
$ENV{USER} if applicable.
Unfortunately ci
Devi .M wrote:
Hello All,
I have a perl script that would be running infinitely and updating
an array by processing some data. Now I would like to read the array
values that should not disturb this perl script.
I thought to use the concept of shared variable and write a method
in perl module
ASHISH MUKHERJEE wrote:
Hello! I was trying Recipe 11.3 from the mod_perl Cookbook
(Cookbook::Timer). Does this measure real download speed or does it
merely measure server processing time?
well, it measures the time that it takes Apache to complete the response.
this is dependent on a
[snip]
I use this subroutine:
sub let_through {
my ($self, $r, $p) = @_;
$r-set_handlers( PerlAuthzHandler = [\OK] );
$r-set_handlers( PerlAuthenHandler = [\OK] );
$p $r-internal_redirect( $p );
return OK;
}
And under some circumstances might call:
Ask Bjoern Hansen wrote:
On Tue, 4 Mar 2003, Josh Chamas wrote:
I thought it was interesting that Embperl 2 (barely) beat out PHP 4.3.0
on XSLT in both the XSLT Hello XSLT Big tests.
Why is that interesting? A bit more background would be
interesting. :-) (post it to the list maybe).
My
Hi,
My Config:
- Windows 98 SE (+ all WinUpdate-Patches)
- Apache 2.0.44 (+ apr-Patch)
- ActivePerl 5.8.0 (ActivePerl-5.8.0.804-MSWin32-x86.msi)
- mod_perl 1.99_09-dev (ppm install
http://theoryx5.uwinnipeg.ca/ppms/mod_perl.ppd;)
I have the following Problem:
When I call system() from a
How are you telling the server to redirect? You do know it's different
from mp1, right?
In mp2 you need to do:
my $location = 'http://foo.bar.baz';
$r-headers_out-{'Location'} = $location;
# Or use $r-err_headers_out-{'Location'} which you will have
# to do with any other headers you want to
On Wed, 5 Mar 2003, Richard Clarke wrote:
Hi,
I'm trying to figure out why my accesshandler is getting triggered twice
for each request that I make. I'm 100% sure that I'm doing no explicit
lookups/redirects anywhere in my code. The particular uri I am fetching
should only invocate an
Hi!
I've a script that looks like this:
if ($runnung_on_mod_perl) {
Apache-request-register_cleanup(\init_globals);
}
Under mod_perl 1.0 works fine with Apache::Registry.
Can someone give me an Example how to make a register_cleanup with mod_perl
2?
Thanks a lot
Denis
On Wed, 5 Mar 2003, Richard Clarke wrote:
Hi,
I'm trying to figure out why my accesshandler is getting triggered twice
for each request that I make. I'm 100% sure that I'm doing no explicit
lookups/redirects anywhere in my code. The particular uri I am fetching
should only invocate an
Hi,
Anyone got a good/simple way of serving two pages consecutively with the
minimum of load/hassle etc? Preferably just serving two pages from the
same process.
The reason being that I need to go off and get quite a bit of date from
various places and I wanted to feed it back into the page
IIRC, we just had a thread on this a week or two back. We discussed a
couple of solutions Randal had turned into columns in addition to some other
suggestions. Maybe peek through the archives? The thread title I believe
was 'Please wait Handler' but talked about ways to serve the data
Title: RE: Trouble with sysread in modperl
Stas,
Yes we tried reading STDIN and it works:
while ($readData = STDIN) {
$buffer .= $readData;
$bufferLength = length($buffer);
..
}
But it's not working with sysread or read, here are the results for read, the last line is what we
Cheers Fran,
Found it all... I'll have a play...
- Jimbo
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 05 March 2003 16:29
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Serving two pages consecutively
IIRC, we just had a thread on this a
All,
I'm having issues with conflicts between using Port and Listen directives
for access via LAN and ssh tunnel (or proxy).
Can anyone recommend a mailing list I can post my problem to?
Kind Regards
Marty
From les Rosbeufs to les Grenuoilles, Standing up to a bully bigger than
you is bravery
Since I had such a tough time installing mod_perl on
Win2000, I thought I would solicit for experiences
getting Hello, World running with EmbPerl on Apache
HTTPD on Windows2000.
What URL did you download embperl from?
Did you get any errors during installation?
What is the URL you used for
On Thu, 6 Mar 2003, Mark James wrote:
Nick Tonkin wrote:
Now that I think about it, maybe you're using CGI.pm to do your redirect?
If so, maybe the code in CGI.pm has not been correctly updated?
Yes Nick, I'm using CGI.pm version 2.91 (the latest). Its redirect code
sends a Status: 302
On Tue, 4 Mar 2003, Richard Heintze wrote:
I just downloaded the all-in-one and, as per Randy's
instructions, abandoned my current installations of
Apache2 and perl5.8 by uninstalling them.
I just typed in the perl configure.pl command and I
receive:
SetConsoleMode failed, LastError=|6|
Devi .M wrote:
Hello All,
I have a perl script that would be running infinitely and updating
an array by processing some data. Now I would like to read the array
values that should not disturb this perl script.
I thought to use the concept of shared variable and write a method
in perl module
Mark James wrote:
I'm having CGI redirect problems mp2 (cvs).
Instead of being redirected to the proper web page, I'm sometimes
getting a 302 Moved page containing a link to the correct URL.
Seems to be related to the following code in modperl_cgi.c:
if (location (location[0] == '/') (r-status
Stas Bekman wrote:
As suggested by Mark, IPC::Shareable might work if the data set is
small. If it's big you can use a simple dbm to store the data in and
with proper locking
read/write to/from it without disturbing each other.
Yes, and the MLDBM::Sync module would handle that for you behind the
Martin Moss wrote:
All,
I'm having issues with conflicts between using Port and Listen directives
for access via LAN and ssh tunnel (or proxy).
Can anyone recommend a mailing list I can post my problem to?
http://httpd.apache.org/lists.html#http-users
Denis Banovic wrote:
Hi!
I've a script that looks like this:
if ($runnung_on_mod_perl) {
Apache-request-register_cleanup(\init_globals);
}
Under mod_perl 1.0 works fine with Apache::Registry.
Can someone give me an Example how to make a register_cleanup with mod_perl
2?
A copy-n-paste
Hello,
I've looked through the mod_rewrite and Guide documentation and can't seem
find an answer for this, but feel free to point me at TFM to R if I just
missed it.
I have an Apache with many VirtualHosts, and I want to setup proxying so
that a lightweight frontend Apache with
Nick Tonkin wrote:
On Wed, 5 Mar 2003, Richard Clarke wrote:
Hi,
I'm trying to figure out why my accesshandler is getting triggered twice
for each request that I make. I'm 100% sure that I'm doing no explicit
lookups/redirects anywhere in my code. The particular uri I am fetching
should only
Stas Bekman wrote:
Denis Banovic wrote:
Hi!
I've a script that looks like this:
if ($runnung_on_mod_perl) {
Apache-request-register_cleanup(\init_globals);
}
Under mod_perl 1.0 works fine with Apache::Registry.
Can someone give me an Example how to make a register_cleanup with
mod_perl
2?
Stas Bekman wrote:
FWIW, we are discussing the internal DBI pooling mechanism at the
dbi-dev list and having already a sort-of-working prototype. So
hopefully there will be no need for Apache::DBI in the near future, as
DBI will be able to handle pooling internally. However it may take some
Perrin Harkins wrote:
Stas Bekman wrote:
FWIW, we are discussing the internal DBI pooling mechanism at the
dbi-dev list and having already a sort-of-working prototype. So
hopefully there will be no need for Apache::DBI in the near future, as
DBI will be able to handle pooling internally.
Hi Andrew -
I want to simplify my configuration in two ways. I'd prefer not to
maintain two sets of VirtualHost configuration data, and I'd like it
if the block that proxies .pl files to the backend proxy not be
replicated per VirtualHost.
Have you looked at mod_macro? Depending on how
Stas Bekman wrote:
Mark James wrote:
I'm having CGI redirect problems mp2 (cvs).
as the comment just above this line says, that code was copy-n-pasted
from mod_cgi. Can you reproduce the same problem while running a cgi
script?
No, them problem only manifests under mod_perl (2, haven't used 1).
Mark James wrote:
Stas Bekman wrote:
Mark James wrote:
I'm having CGI redirect problems mp2 (cvs).
as the comment just above this line says, that code was copy-n-pasted
from mod_cgi. Can you reproduce the same problem while running a cgi
script?
No, them problem only manifests under
Good afternoon,
On 5/3/03 at 3:30 PM, Andrew Ho [EMAIL PROTECTED] wrote:
I have an Apache with many VirtualHosts, and I want to setup proxying so
that a lightweight frontend Apache with mod_rewrite/mod_proxy proxies
Apache::Registry script requests back to a heavyweight backend Apache
running on
Mark James wrote:
303 See Other is the correct post-POST redirect response:
http://rfc.net/rfc2616.html#s10.3.4
which your first link suggests works in all browsers.
Well, taking a closer look, 303 doesn't work in Netscape 3 or 4.
CGI.pm always returns a 302, though, if necessary, I can
When I've suggested to use Env::C::getenv to debug the problem with env vars,
and Mark decided to use Env::C::setenv to solve it, I've forgotten to warn you
that you shouldn't be using this workaround in the threaded env. If you could,
modperl would have been doing the right thing in first
On Wed, 2003-03-05 at 18:30, Andrew Ho wrote:
I want to simplify my configuration in two ways. I'd prefer not to
maintain two sets of VirtualHost configuration data, and I'd like it if
the block that proxies .pl files to the backend proxy not be replicated
per VirtualHost.
As others pointed
-BEGIN PGP SIGNED MESSAGE-
Hash: MD5
A while ago someone on this list experienced a similar problem
to myself, with ImageMagick crashing an Apache mod_perl server.
If it was you, and if that problem related to Writing an image,
please get in touch off list: I've been given a potential
43 matches
Mail list logo