Adi Fairbank [EMAIL PROTECTED] wrote:
On, or in the near vicinity of Mon, 14 Jul 2003 18:49:58 +0300
Stas Bekman [EMAIL PROTECTED] has thus written:
Probably the best bet is to give it some cool unique name, like
Apache::AdiChat and then you are all set, since you are not going to take over
Philippe M. Chiasson wrote:
On Thu, 2003-07-03 at 01:24, Bill Marrs wrote:
This fixed the bug for me.
Great! Will commit it in the near future. (Can't seem to access the cvs
server right now, crappy internet cafe)
-1, this is a wrong solution. print ; should flush just like it did in
mod_perl
It seems that at present it is not possible to build mod_perl 2.0
statically. It can only be built dynamically and loaded using
LoadModule in httpd.conf. This seems strange if the preferred method of
building is static.
What was right for 1.0 doesn't necessarily right for 2.0. mod_perl 2.0 DSO
Anyway, all this started from an attempt to access env. vars from legacy
scripts running under registry. What is the easiest way to get env. var
access without the accompanying performance penalty that mod_perl
documentation talks about?
If you need to have your scripts run unmodified, have
Perrin Harkins wrote:
On Mon, 2003-07-07 at 11:50, Nigel Hamilton wrote:
I thought I could save some RAM by stripping out comments and
whitespace before the eval step - so I quickly wrote a Registry-like
handler that strips comments.
Those don't take up any space in the actual compiled
[sent it out too early]
Stas Bekman wrote:
Also see:
http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlResponseHandler
__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl
Issac Goldstand wrote:
Right. Could you possibly clarify the difference between SetHandler
perl-script and SetHandler modperl? I'm still not sure I've got the
straight of it yet...
You must be kidding ;) Have you read the sections at the URL posted below?
Stas Bekman wrote:
Sreeji K Das
Hi!
On Mon, Jul 14, 2003 at 04:46:37PM -0500, Siva Yendapalli wrote:
I am totally a newbie to mod_perl. I could able to get the content length
using $r-headers_in(Content-Length). but I don't see anything in the $buf
when I call the function $r-read($buf,$r-headers_in(Content-Length)). I
Is
Dominique Quatravaux wrote:
Sorry, getting out of good ideas..
Surprise, surprise: I found out that my code does not work under
mod_perl 1.23 either! And I found the real solution: one has to add
PerlSetupEnv Off
to the Apache configuration file. Now the untainting mumbo-jumbo in
perl
Sreeji K Das wrote:
[...]
I'd also think mod_perl 1.x series may be
discontinued after a while, as 2.x gets to be used
widely (however, it may be a while).
The term discontinued doesn't quite apply to Open Source software. A few
years from now when the majority will move to mod_perl 2.0, mod_perl
Stewart, Eric wrote:
Apologies for duplication - I've discovered some unexpected behavior with the pasting into a W2K session of VPC 6 on Mac 10.2.6 - and then got a little clicky and clicked on the wrong thing. :(
On RedHat Linux 9.0, with Apache 1.3.27, PHP 4.3.2, and mod_perl 1.28, I'm
Steve Hay wrote:
Hi,
I've just spent quite a while tracking down a problem with a web page
generated by a mod_perl program in which 8-bit ISO-8859-1 characters
were not being shown properly. The software runs via Apache::Registry,
and works fine under mod_cgi.
It turns out that the problem
Mustafa Tan wrote:
Is it possible to dynamically ban IP addresses using
mod_perl. Like even the first connection from the
specified ip will be rejected. I know that you can do
this using httpd.conf but I am wondering how to do the
same dynamically while Apache is running.
Also how can I cope with
Beau E. Cox wrote:
Hi -
I am running Apache 2.0.47/mod_perl 1.99-dev-10-cvs
on SuSE Linux 8.2. I am trying to install and use
Apache::DBI.
[...]
2) The documentation says to configure mod_perl with:
perl Makefile.PL PERL_CHILD_INIT=1 PERL_AUTHEN=1 PERL_AUTHZ=1
Shannon Eric Peevey wrote:
[...]
Also, you don't realy have to do that. The old ala mp1 style works
just fine.
use Apache::Const qw(OK DECLINED)
sub handler {
return OK;
}
Well... I must have been smoking crack, 'cause I seem to remember a
simple:
return MP2 ? Apache::OK : OK
[EMAIL PROTECTED] wrote:
Has anyone used the Memoize module extensively in a mod_perl environment?
I am thinking of using it to cache queries from the database, particularly
for lookups (somthing like $obj-get_name_from_id()).
In many cases the data is static so I don't mind is staying over from
Ross Matt-QMR000 wrote:
I like to be removed from this list but the un-scribe does not work for me.
the problem is the mail address that I used way back when has been aliases.
the list's help email explains how to unsubscribe from a different address,
post to [EMAIL PROTECTED] for the details. If
Francisco de Assis Tristão wrote:
Frank,
please, i am trying to configure AuthenNTLM on a solaris 2.8 (SPARC)
machine. But i did not find any sample about how to configure
httpd.conf. May you help me? I had compiled apache 2 version 2.0.46 with
ssl suport (i am configuring it with mod_jk and
Siva Yendapalli wrote:
I am totally a newbie to mod_perl. I could able to get the content
length using $r-headers_in(Content-Length). but I don't see anything
in the $buf when I call the function
$r-read($buf,$r-headers_in(Content-Length)). I am sure I am doing
some thing wrong with the
Alexander Newald wrote:
Hello,
I have installed mod_perl2
(http://perl.apache.org/dist/mod_perl-2.0-current.tar.gz,
mod_perl-1.99_09)
with
cd mod_perl-1.99_09
perl Makefile.PL MP_INST_APACHE2=1 MP_AP_PREFIX=/usr/local/apache2
and added
LoadModule perl_module modules/mod_perl.so
Perl
Are there any plans to have Apache::Cookie or does
mp2 code always has to use CGI if there are cookies needed ?
Swen
Adi Fairbank wrote:
On, or in the near vicinity of Mon, 14 Jul 2003 18:49:58 +0300
Stas Bekman [EMAIL PROTECTED] has thus written:
Probably the best bet is to give it some cool unique name, like
Apache::AdiChat and then you are all set, since you are not going to take over
[...]
What's wrong
Jez Hancock wrote:
Hi,
I've just written a short perl script to perform logging for our virtual
hosts. The code has plenty of comments so I'll paste it below.
My question is: would it be possible to use mod_perl in some way to
perform the function of the script? In testing the speed of the
On Tue, Jul 15, 2003 at 12:19:14PM +0300, Stas Bekman wrote:
Dominique Quatravaux wrote:
Sorry, getting out of good ideas..
Surprise, surprise: I found out that my code does not work under
mod_perl 1.23 either! And I found the real solution: one has to add
PerlSetupEnv Off
to
- Original Message -
From: Stas Bekman [EMAIL PROTECTED]
To: Issac Goldstand [EMAIL PROTECTED]
Issac Goldstand wrote:
Looking at it now, I tend to agree... I just have a vague recollection
of
my first mod_perl 2 handler (Written only 2 weeks ago, though I dabbled
with
the C API
Hi Stas,
Stas Bekman wrote:
Steve Hay wrote:
Hi,
I've just spent quite a while tracking down a problem with a web page
generated by a mod_perl program in which 8-bit ISO-8859-1 characters
were not being shown properly. The software runs via
Apache::Registry, and works fine under mod_cgi.
On Mon, 14 Jul 2003 23:26:06 -0500 (CDT), Geoffrey Young wrote:
Instead of trying to cram multiple perl-script into the same Authen
phase, which btw could not be done without patching Apache and/or
mod_perl,
if by perl-script you mean mod_perl handlers, that's not really true.
This page:
http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__Registry___C_Apache__PerlRun__and_Friends
says that mod_perl 2's ModPerl::Registry does not chdir() into the
script's directory, wheras mod_perl 1's Apache::Registry DOES chdir().
It also says that this will eventually
Randy Kobes wrote:
On Mon, 14 Jul 2003, Stas Bekman wrote:
[ ... ]
Are you talking about the dependencies list? by 'the current
state of affairs with mod_perl 2.0', you mean that it's not
indexed by PAUSE. It's available from CPAN.
Actually, once it gets indexed by CPAN it'll break all the
other
Swen Schillig wrote:
Are there any plans to have Apache::Cookie or does
mp2 code always has to use CGI if there are cookies needed ?
Apache::Cookie is a part of the libapreq-2 library. It'll become available as
soon as Apache::Request is released. You are more then welcome to join the
libapreq
hi
( 03.07.14 20:14 -0700 ) Adi Fairbank:
( I wouldn't want to have any piece of software named after me... just
my personal style. Software lives for too long, especially open
source. It would still be called that long after I'm dead. )
don't be too sure. no one may call it anything at all
- Original Message -
From: Stas Bekman [EMAIL PROTECTED]
To: Alexander Newald [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 12:26 PM
Subject: Re: Bareword Apache::OK not allowed, Apache::PerlSection
Alexander Newald wrote:
Hello,
I have installed mod_perl2
Steve Hay wrote:
5.8.0 is a pretty new perl version, which provides the new
functionality, and it seems that hardly anybody has been using the UTF
stuff with mod_perl.
5.8.0 is actually a couple of days short of being one year old (happy
birthday!), which is increasingly not that new any
Peter B. Ensch wrote:
FWIW, I use the following code when I need to use ``|qx:
local $ENV{PATH} = /bin:/usr/bin;
local @ENV{ qw(IFS CDPATH ENV BASH_ENV) };
But this code must be used in each scope where you intend to use
backticks, a system call Etc. Is there no way to untaint your
PATH
[...]
works fine for me, may be you need to add:
PerlModule Apache2
before your first Perl section?
Also I'd suggest to always run your mod_perl server with:
PerlSwitches -wT
Hello,
I have done all this. As I had some more spare time I tried the cvs version
and found that cvs version is
[putting the test case on the top]
Steve Hay wrote:
In any case a simple test that reproduces the problem will be needed.
This test program reproduces the problem:
use 5.008;
use Encode;
print Content-type: text/plain\n\n, decode('iso-8859-1', 'ü');
Use LWP's get program to
Issac Goldstand wrote:
[...]
(Starting
with mor_perl 2)... I'm toying with the idea of starting the porting
tutorial, but I want to make sure it's written well for clueless people
(which I probably still at least half count as :-)) and with accurate
content.
porting or starting? We already have
ColinB wrote:
This page:
http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__Registry___C_Apache__PerlRun__and_Friends
says that mod_perl 2's ModPerl::Registry does not chdir() into the
script's directory, wheras mod_perl 1's Apache::Registry DOES chdir().
It also says that this
Stas Bekman wrote:
I have attempted to shoe-horn this into mod_perl's print() method (in
src/modules/perl/Apache.xs). Here's the diff against mod_perl
1.28: [Unfortunately, I've had to comment-out the first part of that
if block, because I got an unresolved external symbol error
relating to
At 04:24 AM 7/15/2003, Stas Bekman wrote:
Philippe M. Chiasson wrote:
On Thu, 2003-07-03 at 01:24, Bill Marrs wrote:
This fixed the bug for me.
Great! Will commit it in the near future. (Can't seem to access the cvs
server right now, crappy internet cafe)
-1, this is a wrong solution. print ;
On Tue, Jul 15, 2003 at 04:30:35PM +0300, Stas Bekman wrote:
Peter B. Ensch wrote:
FWIW, I use the following code when I need to use ``|qx:
local $ENV{PATH} = /bin:/usr/bin;
local @ENV{ qw(IFS CDPATH ENV BASH_ENV) };
But this code must be used in each scope where you intend to use
Stas Bekman wrote:
Shannon Eric Peevey wrote:
[...]
Also, you don't realy have to do that. The old ala mp1 style works
just fine.
use Apache::Const qw(OK DECLINED)
sub handler {
return OK;
}
Well... I must have been smoking crack, 'cause I seem to remember a
simple:
return MP2 ?
On Tue, 2003-07-15 at 06:43, Swen Schillig wrote:
Are there any plans to have Apache::Cookie or does
mp2 code always has to use CGI if there are cookies needed ?
Apache::Cookie is part of libapreq (along with Apache::Request), so you
should follow libapreq development for this.
- Perrin
On Tue, 2003-07-15 at 08:44, ColinB wrote:
So how can I go about installing just Apache::Registry from the
mod_perl 1 tar file without having to install ALL of mod_perl 1 ?
Just copy the Apache/Registry.pm file into the same directory that all
your other Apache:: modules are in.
- Perrin
Bill Marrs wrote:
At 04:24 AM 7/15/2003, Stas Bekman wrote:
Philippe M. Chiasson wrote:
On Thu, 2003-07-03 at 01:24, Bill Marrs wrote:
This fixed the bug for me.
Great! Will commit it in the near future. (Can't seem to access the cvs
server right now, crappy internet cafe)
-1, this is a
Stas Bekman wrote:
Shannon Eric Peevey wrote:
[...]
Also, you don't realy have to do that. The old ala mp1 style works
just fine.
use Apache::Const qw(OK DECLINED)
sub handler {
return OK;
}
Well... I must have been smoking crack, 'cause I seem to remember a
simple:
return MP2 ?
Steve Hay wrote:
Stas Bekman wrote:
I have attempted to shoe-horn this into mod_perl's print() method (in
src/modules/perl/Apache.xs). Here's the diff against mod_perl
1.28: [Unfortunately, I've had to comment-out the first part of that
if block, because I got an unresolved external symbol
On Tue, Jul 15, 2003 at 01:32:11PM +0300, Stas Bekman wrote:
Jez Hancock wrote:
My question is: would it be possible to use mod_perl in some way to
perform the function of the script? In testing the speed of the script
seems reasonable enough, is there a better way to do what I'm doing
Perrin Harkins [EMAIL PROTECTED] writes:
On Tue, 2003-07-15 at 06:43, Swen Schillig wrote:
Are there any plans to have Apache::Cookie or does
mp2 code always has to use CGI if there are cookies needed ?
Apache::Cookie is part of libapreq (along with Apache::Request), so you
should follow
On Tue, 2003-07-15 at 14:27, Jez Hancock wrote:
On Tue, Jul 15, 2003 at 01:32:11PM +0300, Stas Bekman wrote:
Take a look at:
http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlLogHandler
a similar code will work for mp1 if you don't use 2.0.
Much obliged, that does look to be
Shannon Eric Peevey wrote:
Stas Bekman wrote:
Shannon Eric Peevey wrote:
[...]
Also, you don't realy have to do that. The old ala mp1 style works
just fine.
use Apache::Const qw(OK DECLINED)
sub handler {
return OK;
}
Well... I must have been smoking crack, 'cause I seem to remember
Perrin Harkins wrote:
On Tue, 2003-07-15 at 14:27, Jez Hancock wrote:
On Tue, Jul 15, 2003 at 01:32:11PM +0300, Stas Bekman wrote:
Take a look at:
http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlLogHandler
a similar code will work for mp1 if you don't use 2.0.
Much obliged, that does
On Tue, 2003-07-15 at 16:11, Stas Bekman wrote:
Is this still correct in the threaded environment where the filehandle is
shared across several threads?
Why would the filehandle be shared? Wouldn't you open a new handle in
each thread?
I expect this would be fine, since the behavior is
On Tue, Jul 15, 2003 at 02:39:18PM -0400, Perrin Harkins wrote:
On Tue, 2003-07-15 at 14:27, Jez Hancock wrote:
Much obliged, that does look to be something I could use. Reminds me I
need to be locking the logfile as well ;)
Actually, if you are just printing one short line I think you'll
I could upgrade to 2.0.47, but it seems unlikely that it would fix
this. Are you sure you're running a mod_perl without Philippe's fix (in
Apache__RequestIO.h), I assumed he eventually checked it in.
No, Philippe hasn't committed it, neither I have used it. If you can test
with 2.9.47 that
Hi!
Just wondering if Apache::HTTP_FORBIDDEN and
Apache::HTTP_INTERNAL_SERVER_ERROR have been implemented? I have been
trying to port Apache::AuthenNTLM, and keep getting:
[Tue Jul 15 16:46:08 2003] [error] failed to resolve handler
`Apache::AuthenNTLM'
[Tue Jul 15 16:46:08 2003] [error]
Chris Faust wrote:
There is a 0.92 version of Apache::DBI is mp2 aware (there may even be
a later version at this point).
We started with mp1 and do to problems we decided to goto mp2 (which
turned out to be non mod_perl and apache related), there wasn't any
major performance increase or
Stas Bekman wrote:
Francisco de Assis Tristão wrote:
Frank,
please, i am trying to configure AuthenNTLM on a solaris 2.8 (SPARC)
machine. But i did not find any sample about how to configure
httpd.conf. May you help me? I had compiled apache 2 version 2.0.46 with
ssl suport (i am configuring it
On Tue, 15 Jul 2003, Shannon Eric Peevey wrote:
Here is an example of my Makefile.PL using ModUtils::AutoInstall:
[ ... ]
I then add the necessary code inside of the .pm file to check
the version of mod_perl on the machine and perform
appropriately. (I hope... ;) ) This allows a module to
Perrin Harkins wrote:
On Tue, 2003-07-15 at 16:11, Stas Bekman wrote:
Is this still correct in the threaded environment where the filehandle is
shared across several threads?
Why would the filehandle be shared? Wouldn't you open a new handle in
each thread?
Because it's shared on the OS
I was upgrading to perl5.8 using
freeBSD
To install via ports, I typed this : cd
/usr/ports/lang/perl5.8 make install clean
rehashuse.perl port
What does rehash do?
And what does use.perl port
do?
61 matches
Mail list logo