Hello. :)
I had mod_perl and Embperl working just fine until I decided to upgrade my
apache/mod_perl bits (largely because there was demand to also allow php to
work, which meant having to go through the headache of building a new apache
that supported mod_perl, mod_php, ssl, etc). I used
Gunther Birznieks wrote:
Sam just posted this to the speedycgi list just now.
[...]
The underlying problem in mod_perl is that apache likes to spread out
web requests to as many httpd's, and therefore as many mod_perl interpreters,
as possible using an LRU selection processes for picking
Embperl wasn't installed at all before, to get the newest version from CPAN
was the correct solution.
I suspected I might need to upgrade my Embperl, so I
fired off the old 'perl -MCPAN -e shell' and tried to 'install
HTML::Embperl'... the only problem is that during the test phase, it keeps
Hi,
thanks for your reply,
Stas Bekman wrote:
On Wed, 20 Dec 2000, Alexander Farber (EED) wrote:
sub mysort
{
my $param = $query - param ('sort') || 'MHO'; # XXX global $query,
# not mod_perl clean?
return $a - {$param} cmp
Hi,
You should not try to post TO a flat html filebut only FROM it.
Hope it help.
[EMAIL PROTECTED] wrote:
Hi!
I have a little problem. A wrote a perl-script to manage guestbook-like
section of my page. Script is working, but from the shell. When I try to
post a data through html
Below is a solution to this problem:
* fork the long running process from mod_perl
* and be able to restart the server
o without killing this process
o without this process keeping the socket busy
and thus preventing the server restart
Thanks to Doug for the hint. You
On Thu, 21 Dec 2000, Alexander Farber (EED) wrote:
Stas Bekman wrote:
On Wed, 20 Dec 2000, Alexander Farber (EED) wrote:
sub mysort
{
my $param = $query - param ('sort') || 'MHO'; # XXX global $query,
# not mod_perl clean?
On Thu, 21 Dec 2000, Kees Vonk 7249 24549 wrote:
Below is a solution to this problem:
* fork the long running process from mod_perl
* and be able to restart the server
o without killing this process
o without this process keeping the socket busy
and thus preventing
I think you could actually make speedycgi even better for shared memory
usage by creating a special directive which would indicate to speedycgi to
preload a series of modules. And then to tell speedy cgi to do forking of
that "master" backend preloaded module process and hand control over to
On Thu, 21 Dec 2000, Kees Vonk 7249 24549 wrote:
BTW, in the official release it'll be called
cleanup_for_exec(), so you better use this one from the
beginning.
Does that mean I don't have to patch SubProcess.xs? Is
cleanup_for_exec available by default?
You'll have it in the next
[ Sorry for accidentally spamming people on the
list. I was ticked off by this "benchmark",
and accidentally forgot to clean up the reply
names. I won't let it happen again :( ]
Matt Sergeant [EMAIL PROTECTED] writes:
On Thu, 21 Dec 2000, Ken Williams wrote:
Well then, why
I have just heard from my editor at O'Reilly that the "mod_perl Pocket
Reference" has now been printed and should be in the bookshops
shortly.
I have updated the quick reference card too, but I am having technical
problems (or rather TeX-nichal problems) in formatting it. Once those
are
"SB" == Stas Bekman [EMAIL PROTECTED] writes:
startup.pl does not get repeated on a restart. However it will when
started with ./apachectl start. I have never encountered this with Apache
1.3.12 or 13.
SB I've just tested it -- it's not.
I just tested it also, and the startup script is run
Gunther Birznieks [EMAIL PROTECTED] writes:
But instead he crafted an experiment to show that in this particular case
(and some applications do satisfy this case) SpeedyCGI has a particular
benefit.
And what do I have to do to repeat it? Unlearn everything in Stas'
guide?
This is why
At 09:53 AM 12/21/00 -0500, Joe Schaefer wrote:
[ Sorry for accidentally spamming people on the
list. I was ticked off by this "benchmark",
and accidentally forgot to clean up the reply
names. I won't let it happen again :( ]
Not sure what you mean here. Some people like the
"KW" == Ken Williams [EMAIL PROTECTED] writes:
KW Well then, why doesn't somebody just make an Apache directive to
KW control how hits are divvied out to the children? Something like
According to memory, mod_perl 2.0 uses a most-recently-used strategy
to pull perl interpreters from the thread
Perrin Harkins wrote:
[cut]
Doesn't that appear to be saying that whichever process gets into the
mutex first will get the new request? In my experience running
development servers on Linux it always seemed as if the the requests
would continue going to the same process until a request
If you just visit the script directly rather than posting to it, do you see the script
source code? If so, it sounds like you have a missing / invalid ScriptAlias entry. If
you just add something like:
ScriptAlias /cgi-bin/ "/home/httpd/html/cgi-bin/"
... on the assumption that '/cgi-bin/' is
Hello
I am trying to find a feasible solution for configuring an apache web
server to serve asp, ssi and jsp.
I am leaning towards RedHat due to my experience with it. I have tried
the lated RH7.0 which comes with mod_perl but not perl-apache-asp. I
have tried an Apache::ASP CPAN install with
Gunther Birznieks wrote:
Sam just posted this to the speedycgi list just now.
[...]
The underlying problem in mod_perl is that apache likes to spread out
web requests to as many httpd's, and therefore as many mod_perl interpreters,
as possible using an LRU selection processes for
I have been trying to install Apache:ASP 2.07 on Solaris 2.6 with Perl
5.6.0. When I try to load an ASP page, I get the following errors:
Errors Output
1.. Can't open /tmp/.state/3d/3d8ae603196.lock: ,
/raid1/perl5.6.0/lib/site_perl/5.6.0/Apache/ASP.pm line 4831
Debug Output
1.. Can't open
Hi,
I have a problem with a "procy" I'm writing.
The proxy mut pass the headers from the response to the response that the Apache
will return to the client. I am using the following method as read from
The Egal Book (Writing Apache Modules)
$headers-scan(sub
{
$r-header_out(@_);
Folks, your discussion is not short of wrong statements that can be easily
proved, but I don't find it useful. Instead please read:
http://perl.apache.org/~dougm/modperl_2.0.html#new
Too quote the most relevant part:
"With 2.0, mod_perl has much better control over which PerlInterpreters
are
Loay Oweis wrote:
Hello
I am trying to find a feasible solution for configuring an apache web
server to serve asp, ssi and jsp.
I am leaning towards RedHat due to my experience with it. I have tried
the lated RH7.0 which comes with mod_perl but not perl-apache-asp. I
have tried an
Ok, the CFP is officially out, let those proposals come in:
All the details can be found here:
http://perl.apache.org/conferences/tpc5-us/cfp.html
Notice that while our cfp resembles the general CFP
http://conferences.oreilly.com/perl5/ it's not the same, so don't confuse
the two. Ours has the
Michael Hurwitch wrote:
I have been trying to install Apache:ASP 2.07 on Solaris 2.6 with Perl
5.6.0. When I try to load an ASP page, I get the following errors:
Errors Output
1.. Can't open /tmp/.state/3d/3d8ae603196.lock: ,
/raid1/perl5.6.0/lib/site_perl/5.6.0/Apache/ASP.pm line 4831
Hi all,
I ran some performance measures
on two perl scripts under
mod_perl, the first script access a Oracle database using the DBD::Oracle
module and the second script access a MS SQL Server database using
the
DBD::Sybase module. The measured response times was very different
at the
two
On Thu, 21 Dec 2000, Edmar Edilton da Silva wrote:
Hi all,
I ran some performance measures on two perl scripts under
mod_perl, the first script access a Oracle database using the
DBD::Oracle
module and the second script access a MS SQL Server database using the
On Thu, 21 Dec 2000, Edmar Edilton da Silva wrote:
Hi all,
I ran some performance measures on two perl scripts under
mod_perl, the first script access a Oracle database using the
DBD::Oracle
module and the second script access a MS SQL Server database using the
DBD::Sybase
Folks, your discussion is not short of wrong statements that can be easily
proved, but I don't find it useful.
I don't follow. Are you saying that my conclusions are wrong, but
you don't want to bother explaining why?
Would you agree with the following statement?
Under apache-1,
At 09:16 PM 12/21/00 +0100, Stas Bekman wrote:
[much removed]
So the moment mod_perl 2.0 hits the shelves, this possible benefit
of speedycgi over mod_perl becomes irrelevant. I think this more or less
summarizes this thread.
I think you are right about the summarization. However, I also think
On Thu, 21 Dec 2000, Sam Horrocks wrote:
Folks, your discussion is not short of wrong statements that can be easily
proved, but I don't find it useful.
I don't follow. Are you saying that my conclusions are wrong, but
you don't want to bother explaining why?
Would you agree
I've put your suggestion on the todo list. It certainly wouldn't hurt to
have that feature, though I think memory sharing becomes a much much smaller
issue once you switch to MRU scheduling.
At the moment I think SpeedyCGI has more pressing needs though - for
example multiple scripts in a
Well, this is new. You choose what sessions at ApacheCon you want.
I don't think it's a fair approach by ApacheCon committee, as by applying
this approach they are going to make the big player even bigger and kill
the emerging technologies, who will definitely not get enough quotes and
thus
I really wasn't trying to work backwards from a benchmark. It was
more of an analysis of the design, and the benchmarks bore it out.
It's sort of like coming up with a theory in science - if you can't get
any experimental data to back up the theory, you're in big trouble.
But if you can at least
Hi Sam,
Processes 1, 2, 3 are running. 1 finishes and requests the mutex, then
2 finishes and requests the mutex, then 3 finishes and requests the mutex.
So when the next three requests come in, they are handled in the same order:
1, then 2, then 3 - this is FIFO or LRU. This is bad
I share your concern Stas.
But I also suspect that if the suggestions looked odd, I doubt they would
blindly accept the web-based votes. Can't entirely rule out bugs in the
voting system and people voting multiple times...
However, I think it's an excellent idea to at least get an idea of
At 02:22 AM 12/22/00 +0100, Stas Bekman wrote:
Well, this is new. You choose what sessions at ApacheCon you want.
I don't think it's a fair approach by ApacheCon committee, as by applying
this approach they are going to make the big player even bigger and kill
the emerging technologies,
On Fri, 22 Dec 2000, Gunther Birznieks wrote:
I share your concern Stas.
But I also suspect that if the suggestions looked odd, I doubt they would
blindly accept the web-based votes. Can't entirely rule out bugs in the
voting system and people voting multiple times...
However, I
[EMAIL PROTECTED] (Perrin Harkins) wrote:
Hi Sam,
[snip]
I am saying that since SpeedyCGI uses MRU to allocate requests to perl
interpreters, it winds up using a lot fewer interpreters to handle the
same number of requests.
What I was saying is that it doesn't make sense for one to need
Hi,
There is an error in the POD for Apache::test under the fetch method. It
states that the return value of the fetch method is dependent on whether
it is called under a scalar or list context, when it is actually dependent
on whether it is called as a function or method. I have attached the
On Tue, 10 Oct 2000, darren chamberlain wrote:
Hi All.
This is a curiosity question, mostly. I have a simple method of sending
debugging messages to the error log:
use constant DEBUG = 1; # Set to 0 to turn off debugging throughout
sub debug ($) {
if (DEBUG) {
return carp
On Wed, 11 Oct 2000, Clayton Mitchell wrote:
I then noticed that URI's of directories lacking a trailing '/' were not
being redirected in the browser and so relative links started to break.
since your PerlHandler is handling the directory, you need to manage that.
mod_autoindex and mod_dir
On Thu, 12 Oct 2000, Rodney Broom wrote:
Hi all,
I've got a set of new modules that do things like session handling, URI
rewriting, authentication, etc. I've got a set of tests to prevent some rewrite
problems that look like this:
if ($uri =~ m|^/cgi-bin/|) {
return
On Wed, 18 Oct 2000, Ernest Lergon wrote:
Dear list members, dear Doug,
it seems to me, that my initial mail of this thread was to long to read
and to be answered - especially because the questions are in the last
paragraph far down below and need scrolling of the message text ;-))
Ok,
On Thu, 19 Oct 2000, Chris Nokleberg wrote:
Following up on my post on this subject a couple of months ago, here is a
proof-of-concept drop-in replacement for Apache::Registry that eliminates
the "my() Scoped Variable in Nested Subroutine" problem.
nice hack!
It requires PERL5OPT = "-d"
On Thu, 26 Oct 2000, Bill Moseley wrote:
I've got Authen and Authz protecting an entire site:
location /
PerlAuthenHandler My::Authen
PerlAuthzHandler My::Authz
AuthType Basic
AuthName Test
require valid-user
/location
I'd like to have one
On Fri, 3 Nov 2000, Paul J. Lucas wrote:
So from within a function, I'm doing
my $r = Apache::Request-new( Apache-request() );
warn "request=", $r-as_string(), "\n";
and, when I to a POST request, I get:
Accept: image/gif, image/x-xbitmap,
On Sun, 5 Nov 2000, Hadmut Danisch wrote:
Hi,
sorry if this was discussed before or if it is
a dull question, but I couldn't find any other
help than subscribing to this list:
I have a Perl Handler Module (PerlAuthenHandler)
and want to lookup environment variables set by other
On Wed, 8 Nov 2000, Paul J. Lucas wrote:
On Wed, 8 Nov 2000, Geoffrey Young wrote:
... Apache::RequestNotes may be able to help - it basically does
cookie/get/post/upload parsing during request init and then stashes
references to the data in pnotes. The result is a consistent interface
On Fri, 10 Nov 2000, Peter J. Schoenster wrote:
Hi,
Anyone use cybersource?
yep, but not using their client. (plug time) i actually had the somewhat
recent pleasure of rewriting their client library from scratch.
that was mostly done because the original is tied to RSA Tipem, which RSA
no
On Mon, 13 Nov 2000, Bob Foster wrote:
Hello Folks,
I'm trying to compile mod_perl-1.24_01with apache_1.3.14 on Solaris 2.6. Everything
works OK until it hits src/modules/perl/perlio.c and then it fails with the following:
perlio.c:90: parse error before `Sfdisc_t'
perlio.c:90:
On Wed, 15 Nov 2000, Jere C. Julian, Jr. wrote:
I'm on a FreeBSD 3.4-RELEASE box and I've just built and tested apache
1.3.14 from source. Then I try to build mod_perl with the following
commands and get the errors below.
...
Symbol.xs:106: `na' undeclared (first use this function)
On Wed, 15 Nov 2000, Todd Finney wrote:
Is returning DONE a Bad Thing?
no. might not be what you want in certain cases, but difficult to guess
what you're doing.
On Thu, 21 Dec 2000, Ken Williams wrote:
So in a sense, I think you're both correct. If "concurrency" means
the number of requests that can be handled at once, both systems are
necessarily (and trivially) equivalent. This isn't a very useful
measurement, though; a more useful one is how
On Thu, 16 Nov 2000, Antonio Pascual wrote:
Hi Everybody.
I'm making a module that modifies the uri at the translation phase,
but I have a doubt.
The way I do it is modifying the uri and returning DECLINED as I read in the
book "Writing Apache Modules with Perl And C".
But working like
On Mon, 27 Nov 2000, The BOFH wrote:
BEGIN {
use Apache ();
use lib Apache-server_root_relative('libperl'); ##
/usr/local/apache/libperl created
}
...
perl -cw modperl_startup.pl returns:
Can't locate object method "server_root_relative" via package "Apache" at
On Tue, 28 Nov 2000, Michael J Schout wrote:
About a month or 2 ago, I had posted a problem where I tried to upgrade from:
...
And reported that after doing this, my httpds would spin on startup. When I
turned on MOD_PERL_TRACE=all, it was showing that it was stuck in an infinite
loop
On Mon, 11 Dec 2000, Chris Allen wrote:
I have just done a complete install of RedHat v7.0 which includes
Perl 5.6.0. Image Magick was running fine on my old system, but now
when I attempt to install it, it gives the following error message
when attempting to do the PerlMagick install:
On Wed, 13 Dec 2000, Dr. Fredo Sartori wrote:
Apache produces segmentation faults when receiving arbirary
requests.
I am running apache-1.3.14 with php-4.0.3pl1, mod_ssl-2.7.1 and
mod_perl-1.24_02 (from the CVS tree) on solaris 2.7.
The perl version installed is 5.6.0.
According to
On Wed, 13 Dec 2000, Geoffrey Young wrote:
BTW, it's always good (at least I've found) to call
my $prev_uri = $r-prev ? $r-prev-uri : $r-uri;
or with one less method call :)
my $prev_uri = ($r-prev || $r)-uri;
On Thu, 21 Dec 2000, Vivek Khera wrote:
"SB" == Stas Bekman [EMAIL PROTECTED] writes:
startup.pl does not get repeated on a restart. However it will when
started with ./apachectl start. I have never encountered this with Apache
1.3.12 or 13.
SB I've just tested it -- it's not.
I
sbekman 00/12/21 07:41:30
Added: conferences/tpc5-us cfp.html
Log:
* creating the conferences dirs infrastructure
* first sketch of the mod_perl cfp (Do not announce it yet!)
Revision ChangesPath
1.1 modperl-site/conferences/tpc5-us/cfp.html
dougm 00/12/21 11:19:12
Modified:.Changes INSTALL.win32
Removed: .INSTALL.activeperl
Log:
INSTALL.win32 updates, obsolete INSTALL.activeperl removed
Revision ChangesPath
1.559 +3 -0 modperl/Changes
Index: Changes
sbekman 00/12/21 12:49:34
Modified:conferences/tpc5-us cfp.html
Log:
* removing images (leftovers from the original cfp)
* correcting/extending some notes
Revision ChangesPath
1.3 +76 -100 modperl-site/conferences/tpc5-us/cfp.html
Index: cfp.html
dougm 00/12/21 22:02:32
Modified:.Changes
Symbol Symbol.xs
Log:
rid PL_na usage in Symbol.xs
Revision ChangesPath
1.561 +2 -0 modperl/Changes
Index: Changes
===
66 matches
Mail list logo