Hello,
Id like to say that Ive been browsing http://perl.apache.org/ and its
snippets section for help however I quickly realised that many of the
examples where written for modperl 2.0 which is why Id like to ask if
anybody could help me with a simple code snippet .. iam sure for the gurus
this w
-loaded in an intelligent manner without regards to load balancing?
In short, the database's interaction with the main application is most
commonly the issue, regardless of the underlying technologies. Start there,
so says I.
Matthew P
gedanken
--
Matthew Paluch
404.375.8898
On Mon, 2009-03-02 at 10:20 -0500, Perrin Harkins wrote:
> On Mon, Mar 2, 2009 at 9:54 AM, Matthew Lenz wrote:
> > According to the docs CGI::Carp doesn't function properly with
> > fatalToBrowser under mod_perl 2.
>
> I'm not sure if that's accurate or not, b
As I've mentioned in previous posts, I'm migrating from an older
environment to a new environment with mod_perl 2.
With mod_perl 1.x we had VERY OLD customised version of CGI::Carp (with
fatalsToBrowser) printing an error to the browser AND sending an email
with backtrace and environment informati
On Fri, 2009-02-27 at 11:29 -0500, Perrin Harkins wrote:
> On Fri, Feb 27, 2009 at 7:58 AM, Matthew Lenz wrote:
> > I looked through the packge diff:
> >
> > http://ftp.de.debian.org/debian/pool/main/liba/libapache2-mod-perl2/libapache2-mod-perl2_2.0.4-5.diff.gz
> &
On Thu, 2009-02-26 at 17:17 -0500, Perrin Harkins wrote:
> On Thu, Feb 26, 2009 at 4:01 PM, Matthew Lenz wrote:
> > Maybe the debian guys did something goofy with the modules. It wouldn't
> > be the first time. That or maybe its just a bug in ModPerl. Even if
> > some
On Thu, 2009-02-26 at 15:49 -0500, Adam Prime wrote:
> André Warnier wrote:
> > Matthew Lenz wrote:
> >> I can't seem to disable warnings on our production environment. 'use
> >> warnings' is not included in any of the config/startup/scripts or custom
&g
I can't seem to disable warnings on our production environment. 'use
warnings' is not included in any of the config/startup/scripts or custom
modules. Its possible I guess that its being used by a CPAN module.
We had a system on Debian 3.1 (apache/mod_perl 1.x)and I have been doing
work to migra
ed to
> those tasks, then you can add locations blocks that SetHandler
> default-handler. ie:
. . .
Thanks very much for this! I went for the etc.
approach in the end as it seemed more suitable for my situation.
My site now seems a lot more alive :-).
best regards,
--
Matthew Tylee Atkinson <[EMAIL PROTECTED]>
x27;m looking forward to getting it all working smoothly.
--
Matthew Tylee Atkinson <[EMAIL PROTECTED]>
My apologies, wrong list...
Matthew Lineen wrote:
Mason Gurus:
I have the following dhandler issue with mason/mod_perl/apache v1.3:
should be
'override/foo'!
Thanks in advance,
Matthew
-
httpd.conf...
Alias /me/inherit /home/me/inherit/one
DirectoryIndex index.html
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
PerlAddVar MasonCompRoot "one => /home/me/inherit/one"
PerlSetVar MasonDataDir /home/me/inherit/masondata
Allow from all
> Memory is cheap / CPU is cheap
My boss makes this same argument and I hate it. Wasting is still wasting.
-Matthew
I just tried using CPAN to install libapreq2.07 and I got this:
cpan> install J/JO/JOESUF/libapreq2-2.07.tar.gz
Running make for J/JO/JOESUF/libapreq2-2.07.tar.gz
Fetching with LWP:
CPAN.pm: Going to build J/JO/JOESUF/libapreq2-2.07.tar.gz
perl: 5.8.0 ok
mod_perl: 2.02 ok
Apache::Test:
o facilitate easy migration.
Is my theory correct? If not, have others been in a situation like this?
Any/all assistance is greatly appreciated.
Thanks,
Matthew
he differences between
( ) array's and [ ] array's, I'd appreciate it.
And for cookie points, if anyone knows how to do a real struct in
XMLRPC, that would be awesome.
Cheers,
Matthew
Hi,
I originally posted this to the embperl listserv, but
I haven't gotten any responses. So maybe somebody
here can help me. I hope!
I'm working on a mechanism to fork a a long running
child process. I've followed the standard mod_perl
forking wisdom in
http://modperlbook.org/html/ch10_02.htm
Both are reporting:
Will look into Apache::DProf
-Matthew
Perrin Harkins wrote:
On Mon, 2006-06-19 at 22:48 -0500, Matthew wrote:
We are finally ready to move to our mod_perl2 handler. I just
finished running some tests against our old CGI (no PerlRun, no
Registry, just plain jane CGI
nce on each and CGI still beat MOD by 0.6
seconds.
Frustrated...
-Matthew
what to look for first?
Thanks,
Matthew
doing as a module?
Thanks,
Matthew
a lot of people (ok, me) prefer to call every script in a startup.pl so
it gets precached into the parent's shared memory
i do it mainly with mp handler routines, but have done it with a few
registry scripts
How exactly to you do that?
-Matthew
has never loaded that script before, process #2 will
compile the changed version and display that.
You make another change and this time #1 handles it, but instead of
seeing result Z, you see result X.
-Matthew
Dani Pardo wrote:
Hi, I'm a little newbie, so please forgive me if the questi
se I should be using for
sessions that is 'better' with MP2?
Thanks,
Matthew
I had a feeling it was Apache::Reload. In the future, we shouldn't need
this module as we won't be making daily changes to the code.
Thanks a million.
-Matthew
Perrin Harkins wrote:
On Wed, 2006-05-03 at 16:48 -0400, Perrin Harkins wrote:
On Tue, 2006-05-02 at 17:43 -0500, Mat
;
if($username eq "you" && $password eq "me") {
print "Success";
} else {
print "Denied";
}
}
-Matthew
Randal L. Schwartz wrote:
"Matthew" == Matthew <[EMAIL PROTECTED]> writes:
Matthew> None of my subroutines are pr
"logintype");
if($cmd eq "logintype") {
&printLogin();
elsif($cmd eq "stats") {
&printStats();
} else {
&messageDie("How the frack did you get here?");
}
ackage::tester
Should I be doing "PerlModule mypackage::tester" above the
section? Or doing "use mypackage::tester" inside startup.pl?
I read something on google that says I should be using Apache::Symbol
but I didn't see a mod_perl2 version of that.
Thanks in advance,
Matthew
};
...code..
}
I just ran a quick test using "ab" on another machine. I did 1000
requests and mysql constantly showed those same 10 connections. So I
guess its working now.
I've got 1 final problem with mod_perl2 but I'll use a different subject
line so to start a new thread.
rrectly use Apache::DBI with mod_perl2 and apache2, that would be
great cause even though I'm "use Apache::DBI", my connections aren't
being cached.
Technically, everything works fine: no perl warnings, pages load
blazingly fast..except the DBI caching.
Thanks alot.
-M
ion would cause this.
Thanks in advance,
Matthew
httpd.conf
--
PerlAddVar MasonAllowGlobals $dbh
PerlAddVar MasonAllowGlobals $dbhEmail
startup.pl
--
use Apache::DBI();
use DBI();
use DBD::mysql ();
autohandler
---
<%once>
use Apache::Cookie qw
gt; ':common';
sub handler {
my $r = shift;
my $time = scalar localtime();
my $package = __PACKAGE__;
$r->content_type('text/html');
$r->puts(<<"END");
Hello World.
END
return Apache2::Const::OK;
}
1;
###
HTH
,Matthew
l and return errors under abnormal circumstances such
as aborted connections. >>>
Matthew Darwin wrote:
Not sure if this helps. It looks like maybe an SSL problem, not related
to mod_perl?
[Wed Sep 21 12:10:20 2005] [info] Initial (No.1) HTTPS request received
for child 246 (ser
-- Restarting.
Matthew Darwin wrote:
Hi all,
Would anyone know where to start looking about how to track down the
source of this following line in error.log:
Apache2::Filter: (620018) APR does not understand this error code at -e
line 0
When this is printed, Apache stops handling requests and
Hi all,
Would anyone know where to start looking about how to track down the
source of this following line in error.log:
Apache2::Filter: (620018) APR does not understand this error code at
-e line 0
When this is printed, Apache stops handling requests and restarts. We
can reproduce this
[EMAIL PROTECTED] All applicants will be asked to submit code samples.
Thanks,
Matthew Berk
CTO, Open List, Inc.
It takes strong Perl to discover great pearls.
dule Apache2::compat SetHandler perl-script PerlHandler Apache2::StatusPerlSetVar StatusOptionsAll OnPerlSetVar StatusTerse OnPerlSetVar StatusTerseSize OnPerlSetVar StatusTerseSizeMainSummary OnPerlModule B::TerseSizeAny thoughts?Thanks,Matthew
ed, such as re-statting the file:
my $finfo = APR::Finfo::stat($filename, APR::FINFO_NORM, $r->pool());
$r->finfo($finfo);
2. Forget about using the PHP Apache module; pipe the output of your
PerlResponseHandler through the command-line PHP interpreter instead.
- Matthew
http://www.openlist.com/
Job details:http://www.openlist.com/about/jobs.htm
Inquiries: [EMAIL PROTECTED] (please send resume, cover
letter)
Thanks,
Matthew Berk
Co-Founder and C.T.O.
Open List, Inc.
It takes strong Perl to discover great pearls.
n't seem like a good solution and others have reported experiencing
the same problem.
Is there a simple fix to this httpd.conf file; is this a known issue
with Apache2+MP2? Any help would be appreciated.
Thanks,
Matthew
-
This URL works correctly:
http://ip.ip.ip.ip/testnomp
hread
limit later!
Many thanks for the advice,
- Matthew
2005: magic_number incremented to 7 by PID 17462
I've checked that threads::shared is working correctly outside of
mod_perl (via the examples on
http://www.perl.com/pub/a/2002/06/11/threads.html ) - any suggestions
where I'm going wrong?
I'm running mod_perl 1.99_12 on Apache 2.0.47 with Perl 5.8.0.
Thanks,
- Matthew
overhead for recompilation. Again, the case was:
- registry script foo.pl
- registry script bar.pl
- library lib.pl
- both scripts require() the library
Best,
Matthew
On Feb 8, 2005, at 11:52 AM, Joe Schaefer wrote:
Matthew Berk <[EMAIL PROTECTED]> writes:
Apologies in advance for the conc
for
Cisco, F5 or another device, but this time around want to stick to the
open source world. We're graduating from round-robin DNS to something
more intelligent, but I want to be sensitive to the the fact that we're
using MP exclusively. Thanks in advance for any feedback.
Matthew
tween the two scripts for use of the library which
they both include().
Besides not keeping strict, which I'm doing intentionally to support a
bit of older code, am I violating a fundamental rule of mod_perl around
namespace contention?
Thanks in advance,
Matthew
AM, Matthew Berk wrote:
Apologies if I'm posting in the wrong place, but here goes:
AMD Opteron, Suse 9.1, perl 5.8.6, Apache 2.0.52, mod_perl 1.99_17
Apache compiles fine. When compiling mod_perl, I execute
"/usr/local/bin/perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs"
and
ry (from libperl):
Compile-time options: USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES
Built under linux
Compiled at Dec 16 2004 22:56:14
@INC:
/usr/local/lib/perl5/5.8.6/x86_64-linux
/usr/local/lib/perl5/5.8.6
/usr/local/lib/perl5/site_perl/5.8.6/x86_64-linux
/usr/local
epend the if-modified-since header to our pages. I'd
like to help google and others to NOT hammer our servers ;)
Thanks in advance,
Matthew
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.or
I am considering upgrading to a 64-bit Opteron-based machine running RH
linux. Using perl 5.8, apache 2, mod_perl. Has anyone run into any
problems running their mod_perl applications on a 64-bit box with a
64-bit linux OS?
Thanks in advance,
Matthew
--
Report problems: http://perl.apache.org
On Fri, 24 Sep 2004, Matthew Hodgson wrote:
Stas Bekman wrote:
Matthew, please try the current cvs, Philippe has been working hard on
improving the static build since _16 was released.
http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution
Okay, my previous
On Thu, 23 Sep 2004, Stas Bekman wrote:
Matthew Hodgson wrote:
Stas Bekman wrote:
Matthew, please try the current cvs, Philippe has been working hard on
improving the static build since _16 was released.
http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution
Stas Bekman wrote:
Matthew, please try the current cvs, Philippe has been working hard on
improving the static build since _16 was released.
http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution
Okay, my previous build using latest mod_perl cvs was slightly
Stas Bekman wrote:
Matthew, please try the current cvs, Philippe has been working hard on
improving the static build since _16 was released.
http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution
-8<-- Start Bug Report --
-8<-- Start Bug Report 8<--
1. Problem Description:
On a plain boring box running debian stable, the simplest build of
apache 2.0.51 with a static linked mod_perl 1.99.16 segfaults
immediately on start. I've been running round in circles on this all
eve
which I reported to
this list.
--
Matthew Darwin
[EMAIL PROTECTED]
http://www.mdarwin.ca
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
enterprise (fortune 500 company) application.
1.99_14 was the latest available at the time the product went into
feature-freeze.
--
Matthew Darwin
[EMAIL PROTECTED]
http://www.mdarwin.ca
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
is it safe to use mp2 and apreq2?
thanks!
Carl
--
Matthew Darwin
[EMAIL PROTECTED]
http://www.mdarwin.ca
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
2.
hmm, this is strange - unrelated to the PerlSetVar issue, but an issue with
Apache-Test for sure :)
to continue, I'll need you to update to at least the latest Apache-Test -
it's available on CPAN. or you can use mod_perl 1.99_14 which contains the
latest Apache-Test in it. updating
-env
make
make install DESTDIR=/tmp/apache-kinnetics-$USER
make clean
cd ..
cd mod_perl
perl Makefile.PL
MP_AP_PREFIX=/tmp/apache-kinnetics-$USER/kinnetics/component/httpd \
LIB=/tmp/apache-kinnetics-$USER/kinnetics/component/httpd/site_perl \
PREFIX=/tmp
make
make test
make install
Nope. Turned off it is the same.
I can upgrade to httpd-2.0.50 if that helps... I already have it compiled.
Randy Kobes wrote:
On Tue, 6 Jul 2004, Matthew Darwin wrote:
The behaviour is consistantly wrong at least...
[Tue Jul 06 18:38:36 2004] [notice] Apache/2.0.49 (Unix)
mod_perl/1.99_14 Perl
package Apache::Kinnetics::Authorize;
use strict;
use Apache::Const -compile => ':common';
sub handler {
return Apache::OK;
}
1;
Geoffrey Young wrote:
Matthew Darwin wrote:
Ok,
I removed this section of httpd.conf, I start seeing output from your
script:
...
ok, that
nnetics::Authenticate',
PerlAuthzHandler => 'Apache::Kinnetics::Authorize',
'require' => 'valid-user'
};
Geoffrey Young wrote:
Matthew Darwin wrote:
The behaviour is consistantly wrong at least...
[Tue Jul 06 18:38:36 2004] [notice] Apache/2.0.49 (Unix)
mod_per
in
concatenation (.) or string at
/kinnetics/component/perllib/site_perl/Apache/Foo.pm line 7,
line 2.
[Tue Jul 06 18:38:42 2004] [warn] [client 10.2.210.1] Value of Foo is: \n
Randy Kobes wrote:
On Mon, 5 Jul 2004, Matthew Darwin wrote:
I can't figure out what I'm doing wrong. I
.../site_perl/Apache/Foo.pm line 10, line 2.
[Mon Jul 5 20:13:12 2004] -e: Value of Foo is 2:
[Mon Jul 05 20:13:12 2004] [error] [client 1.2.3.4] File does not
exist: .../htdocs/nm/foo
--
Matthew Darwin
[EMAIL PROTECTED]
http://www.mdarwin.ca
--
Report problems: http://perl.apache.org/bug
ill a production
release of MP2 be out by then or when does anyone have
an idea when one will be out??
Much thanks,
__
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
--
Matthew Darwin
[EMAIL PROTECTED]
the prefork and prefork
development packages installed (not the worker ones). Does this mean it
is a packaging bug?
bye just now,
--
Matthew T. Atkinson <[EMAIL PROTECTED]>
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List eti
le)
(I have no apache[1] packages installed.)
Any help/info would be greatly appreciated -- I am at a loss as to what
I am doing wrong here...
bye just now,
--
Matthew T. Atkinson <[EMAIL PROTECTED]>
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/
MAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
--
Matthew Darwin
[EMAIL PROTECTED]
http://www.mdarwin.ca
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: ht
Stas Bekman wrote:
Matthew Darwin wrote:
Stas Bekman wrote:
Ah, I suppose this is a typing error:
> my $string < ...
> ...
> EOF
> print $string;
you miss '='
Sorry... writing up exmaples has inherent dangers.
Also try adding utf8::encode($string);
Tri
$r->print() instead?
No difference.
--
Matthew Darwin
[EMAIL PROTECTED]
http://www.mdarwin.ca
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
ch.txt") || die;
my $stuff = <$fh>;
close ($fh);
print $stuff;
print <
--
Matthew Darwin
[EMAIL PROTECTED]
http://www.mdarwin.ca
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Hi Folks,
This one has me stumped. After installing with clean tarballs of
apache_1.3.29 and mod_perl-1.29 on a RedHat 9 box, I'm getting a
segfault upon making
a request. I'm not executing any perl handler at all - in fact, none
are configured in my
httpd.conf. I'm just requesting a file.
t after it is in the correct location).
I'm happy to open a apache bug.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26076
Stas Bekman wrote:
Matthew Darwin wrote:
If you build apache with
./configure \
--prefix=/kinnetics/component/httpd
make install DESTDIR=/tmp/apache-
Also works under 1.99_11
BTW, my perl version is 5.8.1 and apache 2.0.48.
Matthew Darwin wrote:
Note that this works just fine under mod_perl 1.99_10-dev.
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
If you build apache with
./configure \
--prefix=/kinnetics/component/httpd
make install DESTDIR=/tmp/apache-kinnetics-$USER
then when you try compiling mod_perl you get:
perl Makefile.PL \
MP_AP_PREFIX=/tmp/apache-kinnetics-$USER/kinnetics/component/httpd \
LIB=/tmp/ap
Slava:
Are you an idiot?
Just Joking,
Matt
(Sorry, couldn't resist :)
> -Original Message-
> From: Slava Bizyayev [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 12, 2003 3:31 PM
> To: Haroon Rafique
> Cc: 'mod_perl list'
> Subject: RE: [OT] [mod_perl] [Fun] telecommuting
ow can I get the id and password that the client inputed in
that authenticate box .
Would someone give any advice ?
Thanx.
Regards,
Kai
--
Matthew Darwin
[EMAIL PROTECTED]
http://www.mdarwin.ca
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
eturn Apache::OK;
}
The regex I was using in the quoted e-mail below also used $_. Now that
I've changed it and my while() loop in the content handler to a "my"
variable things look much better.
Stas Bekman wrote:
Matthew Darwin wrote:
Stas Bekman wrote:
I'd suggest to take
I've been using mysql+mod_perl for years. You should check that you
aren't connecting to the database in the apache startup phase and then
using the same connection in a handler.
Ged Haywood wrote:
Hi there,
On Tue, 11 Nov 2003, Global Junk wrote:
I'm running Linux Apache/1.3.26 (Unix) mod_p
l.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
--
Matthew Darwin
[EMAIL PROTECTED]
http://www.mdarwin.ca
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
I'm just wondering if anyone has any input on this issue. I'm
implementing an output filter, like so:
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOutputFilterHandler Apache::Kinnetics::Output
and I get the following error on some web pages that have UTF-8 data:
[Wed Nov 0
url?
You can't, unfortunately - the anchor part of the URL is never seen
by the server at all.
- Matthew
dir directory...\n";
return Apache::OK;
}
1;
invoked with
PerlFixupHandler MyApache::Permissions
- Matthew
/something/
returns a 404).
I suspect the problem is on the Apache side; the SetHandler is
overriding all other handlers. Is there any way around this?
I'm using Apache/2.0.47 and mod_perl/1.99_10, on Linux.
- Matthew
gratefully received;
Matthew.
Matthew Hodgson [EMAIL PROTECTED] Tel: +44 7968 722968
Arathorn: Co-Sysadmin, TheOneRing.net®
I now have it working on RedHat 9 with the same configuration options.
So unless someone wants to debug this for interest sake, I'm not
bothered by it any more.
Let me know if you want me to post more info.
Thanks,
Stas Bekman wrote:
Matthew, please submit a complete bug report as expl
;,
stack_end=0xbabc) at ../sysdeps/generic/libc-start.c:129
Matthew Darwin wrote:
When I start httpd without the
LoadModule perl_module modules/mod_perl.so
All is good. When I add the line above, and start "httpd -X"
apache crashes before I even request the first page.
Has anyone else s
When I start httpd without the
LoadModule perl_module modules/mod_perl.so
All is good. When I add the line above, and start "httpd -X"
apache crashes before I even request the first page.
Has anyone else seen this problem?
#0 0x403124c3 in Perl_sv_upgrade () from /foo2/modules/mod_perl.so
#
88 matches
Mail list logo