ftp://theoryx5.uwinnipeg.ca/pub/other/perl-win32-bin-0.6.exe
That is the full URL for the file.
It contains Perl Apache and mod_perl + tons of other modules.
As for mod_perl by itself, I haven't seen that yet, and that is very ify
because you have to use the same compiler for the modules as
Got it... Seems like the query string is decoded twice: Therefore
http://biodoc.ch/de/search;query=%252Btest+%252Bdna+-xyz
works perfectly, since all the '%' are encoded. Then it even works
with slashes :-)
--
Eric Jain
When processing the url
Hi,
I have some problems installing mod_perl.
My system is a Mandrake 7.0 Kernel 2.2.14.
I have compiled apache 1.3.12 mod_ssl 2.6.4/openssl 0.9.5a
with DSO. Next, I compiled php4RC2 with apxs and
apache runs correctly.
But after installing mod_perl with:
perl Makefile.PL USE_APXS=1
On Wed, 7 Jun 2000, Stas Bekman wrote:
On Wed, 7 Jun 2000, ___cliff rayman___ wrote:
Stas Bekman wrote:
Per your request:
The handler:
query | avtime completed failedrps
---
single_print |110
On Wed, 7 Jun 2000, Perrin Harkins wrote:
On Wed, 7 Jun 2000, Matt Sergeant wrote:
On Wed, 7 Jun 2000, Eric Cholet wrote:
This said, i hurry back to s/"constant strings"/'constant strings'/g;
Those two are equal.
Yes, although it's counter-intutive there's no real performance
On Wed, 7 Jun 2000, Stas Bekman wrote:
Ok, you'd get surprised on this one. I cannot make benchmark show me
unbuffered output worse than buffered. Anyone can tell me why? there is
ap_flash call after each print in the unbuffered case, how comes the
results are the same?
I assume that's
The scenario:
A script under a shared location (/www/shared/myscript) parses a html template and
print it out.
For each virtual host exists a template with the same name but different root
directories:
/www/a/htdocs/templates/mytemplate
/www/b/htdocs/templates/mytemplate... and so on
Hello,
I have Problems with mod-perl and a script that use DBI.
As a CGI without mod_perl the script works fine.
With mod_perl I get a:
[notice] child pid 652 exit signal Segmentation fault (11).
What is this? Does the DBI-Module not work with mod_perl?
Should i use Apache::DBI, or what is
The command i use is:
system("./cserver ") or die "system cserver failed: $?";
what i get in the error log is:
null:system cserver failed: 0 at /home/httpd/perl/test.pl line 35
Are sure that cserver fails? I have come across several unix programs that
return 0 on success. You can
Stas,
I just logged on to CPAN to download the latest version of
the guide, and even though CPAN thinks version 1.24 is there
(search for mod_perl_guide) the actual file is not there in
your directory (this was at 11:20 BST (08/06/2000)).
Kees
From: "Matt Sergeant" [EMAIL PROTECTED]
To: "Stas Bekman" [EMAIL PROTECTED]
Cc: "___cliff rayman___" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: 08 June 2000 09:23
Subject: Re: [performance/benchmark] printing techniques
: On Wed, 7 Jun 2000, Stas Bekman wrote:
:
: On Wed, 7 Jun 2000, ___cliff
Hello,
I unfortunately still don't understood the API. How can I process e.g.
the URI in a normal perl script that runs under Apache - mod_perl.
I build Apache 1.3.12 (with DSO) and mod_perl 1.22 on Linux 2.3.35.
For example my script: start-page.pl
--
use Apache::URI ();
my $uri =
Kees Vonk 7249 24549 wrote:
Stas,
I just logged on to CPAN to download the latest version of
the guide, and even though CPAN thinks version 1.24 is there
(search for mod_perl_guide) the actual file is not there in
your directory (this was at 11:20 BST (08/06/2000)).
What server are you
On Thu, Jun 01, 2000 at 07:40:58AM -0400, Greg Estep wrote:
I am using IBM's C complier (cc) under AIX 4.3.3 with Apache 1.3.12,
mod_perl 1.24 (statically linked, not DSO), perl 5.00503, and Embperl
1.3b3.
The "offline", "execute function", and "cgi mode" Embperl tests are
all
On Thu, 8 Jun 2000, Greg Cope wrote:
This may be veering off topic - but its been on my mind for a while now
Apart from thanking Stas for his benchmark work, which I find very
interesting (does he sleep ;-) - this and few few others (benchmarks) have
all touched on the area of
Matt Sergeant wrote:
On Wed, 7 Jun 2000, Stas Bekman wrote:
Ok, you'd get surprised on this one. I cannot make benchmark show me
unbuffered output worse than buffered. Anyone can tell me why? there is
ap_flash call after each print in the unbuffered case, how comes the
results are
On Mon, Jun 05, 2000 at 08:59:39AM -0700, Michael Nachbaur wrote:
AIX's C compiler is as buggy as a Florida chineese resturaunt. I
couldn't even get Apache to install right (it kept saying something to
the effect of "Found /Directory, expected /Directory"...Sheesh!)
Anyhoo, I went to IBMs
The scenario:
A script under a shared location (/www/shared/myscript) parses a html template and
print it out.
For each virtual host exists a template with the same name but different root
directories:
/www/a/htdocs/templates/mytemplate
/www/b/htdocs/templates/mytemplate ... and so on
Steffers wrote:
hello,
first let me apologise for jst jumping straight into asking
questions on the mailing list, but this is really puzzling me. First
some background.
I have been using perl for the past 3 years. I think (note
+think+) that I understand perl quite well,
On Thu, 8 Jun 2000, Richard L. Goerwitz wrote:
As far as I've seen, the fastest template systems are the ones that
convert the template to Perl code. So that's what I do. The templates all
call a method (in my case $Response-Write()) which appends to a
string. If there are no exceptions
Stas,
I was searched at search.cpan.org and then followed the link
from there, as far as I know that is a link to www.perl.com.
Kees
"Stas" == Stas Bekman [EMAIL PROTECTED] writes:
Stas Ouch :( Someone to explain this phenomena? and it's just
Stas fine under the handler puzzled, what can I say...
Continuous array growth and copying?
--
Stephen
"So if she weighs the same as a duck, she's made of wood."... "And
Stephen Zander wrote:
"Stas" == Stas Bekman [EMAIL PROTECTED] writes:
Stas Ouch :( Someone to explain this phenomena? and it's just
Stas fine under the handler puzzled, what can I say...
Continuous array growth and copying?
Is this a question or a suggestion? but in both
"SB" == Stas Bekman [EMAIL PROTECTED] writes:
SB mod_perl Guide Version 1.24 Jun 7, 2000 has been released.
[ ... ]
SB New 2 search engines and splitted version of the Guide. Vivek's version is
SB almost up to date, Randy's is not. So please use Vivek's version for
SB search. The search form
"Drew" == Drew Taylor [EMAIL PROTECTED] writes:
Drew I would like to return a single data structure, but order IS
Drew important (hence the current setup). I was thinking of using
Drew an array, where each element is a hash reference. So I would
Drew return something like this:
Stas,
just did another search and now (13:15 BST) it is there.
Kees
On 8 Jun 2000, Stephen Zander wrote:
"Drew" == Drew Taylor [EMAIL PROTECTED] writes:
Drew I would like to return a single data structure, but order IS
Drew important (hence the current setup). I was thinking of using
Drew an array, where each element is a hash reference. So I
On Thu, Jun 08, 2000 at 01:48:40PM +0100, Matt Sergeant wrote:
On Thu, 8 Jun 2000, Greg Cope wrote:
This may be veering off topic - but its been on my mind for a while now
Apart from thanking Stas for his benchmark work, which I find very
interesting (does he sleep ;-) - this and
On Thu, 8 Jun 2000 [EMAIL PROTECTED] wrote:
As far as I've seen, the fastest template systems are the ones that
convert the template to Perl code. So that's what I do. The templates all
call a method (in my case $Response-Write()) which appends to a
string. If there are no exceptions
* [EMAIL PROTECTED] ([EMAIL PROTECTED]) [000608 11:07]:
I'm curious Matt, as opposed to what?, reparsing the template each
run? Clearly reparsing would be a big loser in terms of performance.
But what other technique could be used..., hrm.., without direct
control over the pipe, I really
Since upgrading to the latest verion of mod_perl I've noticed that I get
remote host names appearing in my access logs rather than IP addresses (in
80% of entries).
My concern is that my machine is try to perform DNS lookups, and the
subsequent load it may add.
My httpd.conf has-
Chris Winters wrote:
The newest version of Template Toolkit (currently in alpha) supports
compiling templates to perl code. See about 2/3 of the way down the
the README at www.template-toolkit.org. Why reinvent the wheel? :)
Also the current stable (1.06) can do this.
--
Bernhard Graf
"Stas" == Stas Bekman [EMAIL PROTECTED] writes:
Stas Is this a question or a suggestion? but in both cases
Stas (mod_perl and perl benchmark) the process doesn't exit, so
Stas the allocated datastructure is reused... anyway it should be
Stas the same. But it's not.
It was a
"Reilly, Thomas" wrote:
If any one can give me a few lines of code I would appreciate it.
One way is:
use IPC::Run qw( run close_terminal ) ;
run(
sub {
# ... your code here ...
sleep 15 ;
},
init = sub {
close_terminal ;
exit if fork ;
On 8 Jun 2000, Stephen Zander wrote:
As Matt has already commented, in the handler the method call
overheads swamps all the other activities. so concat_print
aggrlist_print (yes, method invocation in perl really is that bad).
When you remove that overhead the extra OPs in aggrlist_print
Stephen Zander wrote:
As Matt has already commented, in the handler the method call
overheads swamps all the other activities.
Just to clarify: that's only important if you are doing very few other
activities, or if those other activities also include a high percentage
of method calls:
Please help, this isn't a virus, I just want my asp thing to work.
I get a 500 Internal Server Error when I try to run a ASP file.
I'm using Windows NT Server. And the webserver I'm using is Apache V1.3.12
with Mod_perl
Perl: c:\usr\perl\bin
ASP.PM: c:\usr\perl\site\lib\apache\asp.pm
Other:
On Thu, 8 Jun 2000, Barrie Slaymaker wrote:
Stephen Zander wrote:
As Matt has already commented, in the handler the method call
overheads swamps all the other activities.
Just to clarify: that's only important if you are doing very few other
activities, or if those other activities
"Bernhard" == Bernhard Graf [EMAIL PROTECTED] writes:
Bernhard Chris Winters wrote:
The newest version of Template Toolkit (currently in alpha) supports
compiling templates to perl code. See about 2/3 of the way down the
the README at www.template-toolkit.org. Why reinvent the wheel? :)
Hi All,
(This message is VERY long --I'm trying to include as much information as I
can)
Back on June 3 I posted a message about a problem I was having installing
custom configuration directives. Since then, I have been going over
everything with a fine tooth comb -- which was probably not
[Sorry for the delay: didn't notice this since it was sent only to the list]
Eric Cholet wrote, in part:
I never advocated optimizing at the expense of the above criteria, we
were discussing optimizations only. I certainly believe a program is a
compromise, and have often chosen some of
Matt Sergeant wrote:
You also forgot that print() goes to a tied STDOUT, which is even more of
an overhead...
Yeah, that'd probably swamp almost all other effects Stas is testing right
there, and it explains Stas's test results when varying $|.
- Barrie
In httpd.conf, make sure HostNameLookups is OFF. The default is ON when
you build apache (in the httpd.conf that the build generates).
-- Rob
--On Thursday, June 08, 2000 4:08 PM +0100 David Brown [EMAIL PROTECTED]
wrote:
Since upgrading to the latest verion of mod_perl I've noticed that
The problem was solved offline with the kind help of Bill Mosely, but I'll
post the solution here for the masses.
I had an entry in my httpd.conf to the tune of something like:
Deny from some.bad.domain.com
As this was a name and not an IP address, the machine had to lookup each
incoming IP
Clement Law wrote:
Please help, this isn't a virus, I just want my asp thing to work.
I get a 500 Internal Server Error when I try to run a ASP file.
I'm using Windows NT Server. And the webserver I'm using is Apache V1.3.12
with Mod_perl
Perl: c:\usr\perl\bin
ASP.PM:
On Thu, 08 Jun 2000 14:10:26 -0400, Drew Taylor wrote:
As I believe someone else said earlier, your code is VisualBasic, which
I'm reasonably sure Apache::ASP will NOT run.
Would be truly neat if it did grin! But then the question "why use VB instead of
Perl in a perl based
system
Usually this is a result of an access rule:
deny from all
allow from *.mydomain.com
When this happens Apache needs to do a lookup on
the name even though you specified HostnameLookups
off.
I don't know what mod_perl would have had to do with
it unless the installation modified
Drew wrote:
Steffers wrote:
my $header_ID=$r-header_in('sessionID');
If you're trying to get at the cookie, this is not the way. Either use
Apache::Cookie or CGI.pm to get the cookie contents.
okay. I have changd the line to the usual
my $header_ID=cookie(-name='sessionID');
Uhmmm. The directive...
is not HostnameLookups Off
it ISHostNameLookups Off
The default is on. Case sensitivity. All that... give it a whirl.
We've all done it before
-Original Message-
From: Rob Tanner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 08, 2000 11:36 AM
To:
"KU" == Karyn Ulriksen [EMAIL PROTECTED] writes:
KU Uhmmm. The directive...
KU is not HostnameLookups Off
KU it ISHostNameLookups Off
If apache doesn't recognize a configuration directive, it will puke at
you, not just silently go about its merry way.
I gotta read messages all the way down before I respond.. Duh. You said
they were off and I told you to turn them off. That's probably at least
three demerits for me.
Anyway, unless you have an extremely busy server, those lookups are
generally not that expensive. For instance, I run TCP
Apache 1.3.12, mod_perl 1.24 (USE_EVERYTHING=1), perl 5.6, linux 2.2.12
#0 0x4030d130 in XS_Apache_content_type ()
from /usr/local/apache/libexec/libperl.so
#1 0x4030d104 in XS_Apache_content_type ()
from /usr/local/apache/libexec/libperl.so
#2 0x806b9e4 in run_method ()
#3 0x806bae8
On Thu, 8 Jun 2000, Bernhard Graf wrote:
Chris Winters wrote:
The newest version of Template Toolkit (currently in alpha) supports
compiling templates to perl code. See about 2/3 of the way down the
the README at www.template-toolkit.org. Why reinvent the wheel? :)
Also the current
Drew wrote:
Going by your previous example, you should use
$cookie = $r-header_in('Set-Cookie');
i actually prefer the headers_in after reading about it.
(personal preference and lazy to boot ;)
You might also want to take a look at headers_in() (that's PLURAL). It
is a little more
On Thu, 8 Jun 2000, Greg Cope wrote:
My original question was not related to templates (I'll use embperl for
that)
Well, I'm confused now. You'll use Embperl for templates but you're not
using Embperl for templates?
- the area I was trying to explore was how to read a template (all
HTML
Steffers wrote:
you know, its really funny. We have the book right on our
shelf, but we are more a 'perl cookbook' sort (need an answer
then heres sample code).
Use the tool that best fits the situation. I have both books on my
shelf. ;-)
When I run the Ticket code from chapter 6 i
Drew wrote:
Going by your previous example, you should use
$cookie = $r-header_in('Set-Cookie');
Quick reality check here -- I'm easy to confuse. =o)
Shouldn't that be
$cookie = $r-header_in('Cookie')
to get cookies the browser sends, and then something like
On Thu, 8 Jun 2000, Matt Sergeant wrote:
The one that bugs me is when I see people doing this:
$hash{"$key"}
instead of this:
$hash{$key}
Those two now also result in the same code. ;-)
But the former is just ugly.
Sometimes it's worse than just ugly. See the entry in
Turn on Apache::DBI's debugging messages and see if it's working
properly.
- Perrin
On Wed, 7 Jun 2000, Hui Zhu wrote:
Hi Everybody:
I got big problems. Same query and same script. Sometimes it works fine
but sometimes i get the following
errors (i am so frustrated, have no idea what i
Perrin Harkins wrote:
On Thu, 8 Jun 2000, Greg Cope wrote:
My original question was not related to templates (I'll use embperl for
that)
Well, I'm confused now. You'll use Embperl for templates but you're not
using Embperl for templates?
I use Embperl when I want a templating system
Paul wrote:
Drew wrote:
Going by your previous example, you should use
$cookie = $r-header_in('Set-Cookie');
Quick reality check here -- I'm easy to confuse. =o)
Shouldn't that be
$cookie = $r-header_in('Cookie')
to get cookies the browser sends, and then something like
A server issues Set-Cookie: a client replies with Cookie:
o _
/|/ | Jerrad Pierce \ | __|_ _|
/||/ http://pthbb.org . | _| |
\|| _.-~-._.-~-._.-~-._@" _|\_|___|___|
-Original Message-
From: Drew Taylor [mailto:[EMAIL
No wait, this is wrong twice: see
http://www.apache.org/docs/mod/core.html#hostnamelookups -- default is
off and the directive names are case insensitive.
Karyn Ulriksen wrote:
Uhmmm. The directive...
is not HostnameLookups Off
it ISHostNameLookups Off
The default is on. Case
OK. I'll shut up now. Didn't it use to be this way? Way back in 1.2 or
something? I must have picked up my analness on this somewhere... (because
I *really* am not that anal. If anybody knows whether or not this was true
at one point, I'd like to know (for my mind's own backward
Jerrad Pierce wrote:
A server issues Set-Cookie: a client replies with Cookie:
It makes sense now that I think about it. I always use CGI.pm or
Apache::Cookie to get the cookies so I never had to look at the incoming
cookie headers. Live and learn eh?
Well, it's the end of a long day on a
Sometimes it's worse than just ugly. See the entry in the Perl FAQ:
http://www.perl.com/pub/doc/manual/html/pod/perlfaq4.html#What_s_wrong_with_
always_quoting
Not likely that anyone would be using something as a hash key that would
suffer from being stringified, but possible. It's
I'm using a third party module that writes a bunch of variables to the
subprocess_env table to setup data for the request. It has us making
repeated class method calls like this (for our usage with Mason):
% Blah::foo('bletch') %
where foo is in the Blah package merely doing this:
sub foo {
IIRC (it's been a while!), Apache 1.2 defaulted hOstnAmelOokups On but
it wasn't case sensitive with directive names either.
Karyn Ulriksen wrote:
OK. I'll shut up now. Didn't it use to be this way? Way back in 1.2 or
something? I must have picked up my analness on this somewhere...
Drew wrote:
Well, it's the end of a long day on a long week - does that get me off
the hook? Note to self: double check your memory next time. :-)
yup, its been a long long week alright.
On the downside, i +still+ cant get the cookies to work,
although after faking a session via telnet it
On Thu, 8 Jun 2000, Rob Tanner wrote:
Anyway, unless you have an extremely busy server, those lookups are
generally not that expensive.
In the general case not for you, no (except for a tied up httpd process).
But many many addresses out there have broken name server and then it will
take a
On Thu, 8 Jun 2000, Greg Cope wrote:
- the area I was trying to explore was how to read a template (all
HTML with a few !--TAGS-- in it) and the sub in the new content.
Embperl would work fine for that, but it's overkill. Your substitution
approach is slower than compiling to perl
On Thu, 8 Jun 2000, Rob Tanner wrote:
I gotta read messages all the way down before I respond.. Duh. You said
they were off and I told you to turn them off. That's probably at least
three demerits for me.
Anyway, unless you have an extremely busy server, those lookups are
generally
"Perrin" == Perrin Harkins [EMAIL PROTECTED] writes:
Perrin I think the world's record for most compact implementation
Perrin goes to Randal for a small post you can find in the archive here:
Perrin
http:[EMAIL PROTECTED]
Ahh yes, Apache::Cachet (it's a cache, eh?), mostly proof of concept,
* Server Version: Apache/1.3.13-dev (Unix) mod_perl/1.24_01-dev
* perl, version 5.005_03 built for sun4-solaris
* SunOS 5.6
* Apache::Session 1.5
* Apache::Session::Lock::File 1.00
With taint checking turned on in my modperl server, as in:
PerlTaintCheck Off
PerlWarn Off
PerlFreshRestart Off
I knew Karyn Ulriksen would say on Jun 8 that,
KU] Uhmmm. The directive...
KU]
KU] is not HostnameLookups Off
KU] it ISHostNameLookups Off
KU]
KU] The default is on. Case sensitivity. All that... give it a whirl.
KU] We've all done it before
It's in fact case insensitif.
75 matches
Mail list logo