, etc) but still can’t get it to work.
Does anyone have any recommendations, or thoughts?
Thank you in advance,
Tyler Fullerton.
I’m still not able to use $ENV{TZ} to modify the
behavior of localtime in a cgi script. Is there some sort of limitation
with cgi scripts run under mod_perl (specifically: PerlRun) that would prevent
this from working?
Thank you,
Tyler Fullerton.
From: Garrett, Philip
(MAN
beneficial to put code in a PerlFixUpHandler that sets the time zone
data?
Thank you for your help,
Tyler Fullerton.
From: Garrett, Philip
(MAN-Corporate) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 03, 2006
11:14 AM
To: Tyler; modperl@perl.apache.org
Subject: RE: Using
Another thing I just noticed is that you ran your tests under
Apache::PerlRun, my mod_perl installation is using as its
PerlResponseHandler ModPerl::PerlRun. What's the difference between the
two?
Thank you,
Tyler.
-Original Message-
From: Garrett, Philip (MAN-Corporate) [mailto:[
Anyone know of examples of mod_perl Object persistance across multiple
servers or of availble Mod_perl object application servers?
-tr
method
(default). Setting the timeout < 0 will
de-acti- vate the validation of the
database handle. This can be used for
drivers, which do not implement the ping-method. Setting the timeout
> 0 will ping the database only if
the last access was more than timeout
seconds before.
Any help would
be appreciated
Sincerely
Yours,
Tyler
Rorabaugh
method
(default). Setting the timeout < 0 will
de-acti- vate the validation of the
database handle. This can be used for
drivers, which do not implement the ping-method. Setting the timeout
> 0 will ping the database only if
the last access was more than timeout
seconds before.
Any help would
be appreciated
Sincerely
Yours,
Tyler
Rorabaugh
-8<-- Start Bug Report 8<--
1. Problem Description:
Hello,
I just tried an upgrade to 2.0RC1... only to have to back out.
All of my scripts run fine, except for one -- which exits with a
segmentation fault reliably.
The segfault h
> Tyler, have you by chance read:
> http://perl.apache.org/docs/2.0/user/help/help.html#Resolving_Segmentation_Faults
> plus the short script that we can reproduce the problem with.
Maybe... I'll look into it in more detail later. My main point was
that no segmentation f
aces instead of Apache:: namespaces.
Any help at all would be appreciated.
Thanks,
Tyler
Philip M. Gollucci <[EMAIL PROTECTED]> wrote:
> Tyler MacDonald wrote:
> >Global symbol "$r" requires explicit package name at
> >/opt/weedns-4/skins/yi/perl5lib/yi/page/css.pm line 16.\nCompilation failed
> >in require at /opt/weedns-4/skins/yi/htdocs/css.pl
Philip M. Gollucci <[EMAIL PROTECTED]> wrote:
> Tyler MacDonald wrote:
> >17 -$r->print(" >HREF=\"/yi.css\" />\n");
> I know this doesn't answer your question, but it popped out at me that
> you're using xhtml /> syntax, but
uot;my()" in HTTP::Request...!!!:
my($class, $method, $uri, $header, $content) = @_;
Thanks,
Tyler
2. Used Components and their Configuration:
*** mod_perl version 2.02
*** using
/opt/apache2/perl5lib/i486-linux-gnu-thread-multi/Apache2/BuildConfig.pm
*** M
ES} =~ m{Devel::Cover}
) {
eval "use Devel::Cover;";
}
Is this the cleanest way to accomplish this? Ideally I would have liked
something that could be done with any mod_perl module without adding code to
the test suite itself... any ideas?
Thanks,
Tyler
Disregard, I just searched the archives and apparently just before I
subscribed to the list Phillippe announced the 'testcover' parameter...
which is documented in Apache::TestMB, but not yet in Apache::TestMM :-/
- Tyler
Tyler MacDonald <[EMAIL PROTECTED]> wrote:
>
vel::Cover to my PerlSwitches. Then everything was happy. :-)
Do you think it would be a good idea to have "make testcover" add
-MDevel::Cover into the httpd.conf for us? I just started playing with
Apache::Test tonight so I'm not too sure how easy/advisable this would be...
Cheers,
Tyler
3 years under mod_per
1.99. It wasn't until the move to mod_perl 2.0.2 these strangeness started
appearing. And if I get rid of ModPerl::Registry and precompile everything,
well, I've been tailing my access_log for two days and haven't seen a single
unexpected error 500 yet. :-)
- Tyler
The problem is with compiling code after the apache server has
already started (ModPerl::Registry, maybe eval qq{} as well, not sure); if I
compile everything during the startup phase, everything's happy.
- Tyler
Perrin Harkins <[EMAIL PROTECTED]> wrote:
> That's pretty strange. I've only seen errors like this before once, and
> that was on a Win32 system running ActiveState's PerlEX on IIS. At the
> time, I thought it might be a threading issue. Are you using a threaded
> MPM? I see that your Perl was
nside one class, different index handling, and some
interesting looking pre/post hook stuff, no visible support for mixing
static and dynamic content) so I don't feel like I've completely wasted my
time writing this... not that I would have anyways, I learned a thing or two
as well!
Cheers,
Tyler
our
original source directory, "make uninstall" should do it. If not, on my
system, the .packlist files get stuck in /usr/local/lib/perl/5.8.7/auto/...
and it looks like you can just do something like;
cat /usr/local/lib/perl/5.8.7/auto/Devel/Cover/.packlist | xargs rm -vf
But I'd try "make uninstall" first.
- Tyler
Tyler MacDonald <[EMAIL PROTECTED]> wrote:
> I'm going to test this extensively this weekend if I get the time,
> including testing it on another system. Unfortuantely the other system is
> also perl 5.6.7, httpd 2.0.55, linux 2.6, so if I get the same problems mo
:C::setenv('TZ', $tz);
$ENV{TZ} = $tz;
POSIX::tzset();
}
Cheers,
Tyler
e, so it's
> hard to be sure that you got everything related to the previous Apache2
> build.
"make uninstall" / ExtUtils::Install::uninstall(/path/to/.packlist)
aren't official? I suppose you'd have to have the old pacakage's source tree
still laying around...
- Tyler
Tyler MacDonald <[EMAIL PROTECTED]> wrote:
> > Can you try this on another system? That would tell you whether or not
> > there is truly anything wrong with the code, or if you should be looking
> > at reinstalling this system.
> I'm going to test this exten
l variable, otherwise you could
facing other rendering and security problems as well.
- Tyler
have them as a global).
It's always a good practice to avoid using global variables unless you
absolutely have to... local variables make it easier to reuse bits and
pieces of your code elsewhere, as well as giving you the added security of
knowing that your data isn't lurking around long after you're done with it.
- Tyler
y_old_timezone;
POSIX::tzset();
return DECLINED;
}
That way, your logs will remain in your system's timezone.
Cheers,
Tyler
o
think it was something quirky about our homebrew apache/mod_perl
configurations (build scripts attached), but it could be something weird
with debian or just with how apache or mod_perl in general interact with it.
I'm starting to think it's more debian's fault, since you're using apa
your web
root and you want to run their handlers) I'd use something like this, with
ModPerl::PackageRegistry:
PerlModule ModPerl::PackageRegistry
SetHandler perl-script
PerlResponseHandler ModPerl::PackageRegistry
PackageNamespaceMy::Site
Cheers,
Tyler
blem under a normal
perl, but when he recompiled his perl to use FreeBSD's malloc (rather than
perl's own), the problem went away; he could restart apache 100,000 times
with no memory leak.
- Tyler
is:
>
> if ($user) {
> return Apache2::Const::OK;
To:
if(ISST::User->getLoggedIn($r)) {
return Apache2::Const::OK;
Cheers,
Tyler
irectory of your ServerRoot...
i'm not sure, but it looks like you are putting "database_util.pl" into your
DocumentRoot instead.
You could do something like;
use Apache2::RequestUtil ();
require $r->document_root . "/database_util.pl";
Cheers,
Tyler
timeout high, er, setting it to a high
value and see if the tests eventually kicked in?
Cheers,
Tyler
while processing the request.
Here's what I'm using:
DBI - 1.48
DBD::Pg - 1.42
mod_perl2 - 2.01
Apache::DBI - 0.9901
Has anybody run into this before? Any known workarounds/config changes I
need?
Thanks,
Tyler
Perrin Harkins <[EMAIL PROTECTED]> wrote:
> Tyler MacDonald wrote:
> >[Fri Jan 13 23:46:28 2006] [error] [client 192.168.99.112] DBD::Pg::db
> >prepare_cached failed
>
> Do you only have the problem with prepare_cached? Can you replicate it
> in a small script t
l... Could this be part of the
problem? Does Apache::DBI interfere with DBI->connect_cached or vice-versa?
- Tyler
back" does the transaction actually close
on the db server:
http://search.cpan.org/~CRAKRJACK/DBIx-Transaction-0.005/
Cheers,
Tyler
he2 request handlers (not registry
scripts) bound to URIs, and be able to place your other files (css, jpegs,
whatever) alongside your .pm files? If so, take a look at this module:
http://search.cpan.org/~CRAKRJACK/ModPerl-PackageRegistry-0.02/
Cheers,
Tyler
File: http://perl.apache.org/style.css
Line: 486
Error: Error in parsing value for property 'display'. Declaration dropped.
Source File: http://perl.apache.org/style.css
Line: 493
It's not a big deal, just thought someone out there should know. :)
Cheers,
Tyler
ary
>
> i'll send a patch
Awesome thanks :) I just noticed it because I'm doing a lot of
javascript <-> mod_perl work right now...
Cheers,
Tyler
hat you're trying to do, I think it's
m{^(?:.*/)?([^/]+)$};
After that, the filename itself should be in $1.
- Tyler
delete $drh->{CachedKids}->{$k};
$n++;
}
}
warn "$$: Cleared $n stale postgresql database handle(s).\n" if $n;
return DECLINE_CMD;
}
This seems reasonably robust, after doing something like:
# ps ax | grep "postmaster: pmx" | grep -v grep | awk '{print $1}' | xargs kill
The first reload is a bit sluggish, but always works.
Cheers,
Tyler
through it's code, I must warn you that while I would keep the interface the
same, I would change it's behaviour a fair bit (mainly the points listed
above). If this is cool with everyone, I'll proceed... if not, there's I'll
stick with my hack, there's plenty of other code I could be writing/fixing.
:)
- Tyler
abase connections, and I'm not convinced it was a result of an
> Apache::DBI bug.
I do know that after refactoring my code to not use Apache::DBI at
all, and not depend on connect_cached() to behave properly, (adding the
PostConfig and PreConnection handlers to be very paranoid about what happens
to the handles), the problem has gone away.
> I do think it would be cool to change the code in Apache::DBI to use
> connect_cached for some of the caching mechanics, although that would
> require changes in DBI as well.
Hmm. What changes in DBI?
Thanks,
Tyler
these last two
changes may need to be diagnosed further.
> It currently checks to see if you've loaded Apache::DBI and sends all
> connect()/connect_cached() calls there, so that would have to be taken
> out to avoid a perpetual feedback loop.
Aaaah. :)
- Tyler
; method does; the code is run inside an
eval; if the sub ref returns true, it's committed, if it returns false or
raises an exception, it's rolled back.
> Well, the hack may work for you, and that may be all that matters in
> your case, but I don't think it's right to make other people think they
> need to use that instead of Apache::DBI or connect_cached.
I didn't!!! Tim told me to save the world!!! :)
- Tyler
rguing about it. I
like a good argument. ;-)
- Tyler
>
> >>> Tyler MacDonald [EMAIL PROTECTED]> 01-Feb-06 17:06 PM >>
>
> Yeah, I ditched Apache::DBI early in diagnosing this problem. Then I
> wrote that hack to solve it, which is what has sta
install" installed. Then you can just do something
like:
cat
/opt/apache2/perl5lib/i486-linux-gnu-thread-multi/auto/mod_perl2/.packlist |
xargs rm -vf
To remove those files.
- Tyler
ry hard at work and aren't going
anywhere soon. And when they do, it'll just be to another office. The IT
teams are working hard to make sure that neither ActiveState or Sophos'
services are interrupted while the pieces of infrastructure we have in
common are being divvied up. :)
- Tyler
Vancouver, BC, Canada.
- Tyler
nd not some contrived thing, try Mason. I don't actually
use the stuff myself, but it looks a hell of a lot more simple and elegant
than TT. :)
- Tyler
http://perldesignpatterns.com/perldesignpatterns.html
And this is useful too:
http://www.oreilly.com/catalog/perlbp/
- Tyler
ere a solution that will make sure that a package using a MB subclass
from another package installs cleanly out of CPAN, whether or not that
subclass is already installed on a system?
Thanks,
Tyler
Mark Galbreath <[EMAIL PROTECTED]> wrote:
> Why is brian d joy's name uncapitalized on the cover of the 4th edition of
> the Llama book?
I always thought it was brian d foy (http://search.cpan.org/~bdfoy/).. and
he did it because he likes it that way. :)
- Tyler
s to a postgres mentor I'd have wasted many more
hours on this...)
* I dig the elephant logo.
- Tyler
my "FOO" environment
variable has become "REDIRECT_FOO".
Is there any clean way to do this? I've also tried internal_fast_redirect
(even though the docs seem to say it's naughty) with the same results.
Thanks,
Tyler
Tyler MacDonald <[EMAIL PROTECTED]> wrote:
> I'm writing a handler whose goal is to set an environment variable, then
> issue an internal redirect to another page;
>
> $r->subprocess_env("FOO", "bar");
> $r->internal_redirect("/somew
iables" warnings if -w switch is on.
If you really want to cause your scripts to crash on every
uninitialized variable so you have to go in and fix it, you can do this:
use warnings FATAL => 'uninitialized';
Cheers,
Tyler
handlers and apache
configuration together:
use File::Basename ();
use File::Spec ();
my $me = Apache2::PerlSections->filename;
unshift @INC, File::Spec::catfile(File::Basename::dirname($me), "perl5lib");
Thanks,
Tyler
no warnings 'uninitalized';
to each module that you're being annoyed by.
- Tyler
(filename and
line_num methods), if I cold only get a Apache2::Directive object
representing the current section..
- Tyler
You know what?
The mod_perl people are freaking geniuses.
This works:
warn __FILE__, " - ", __LINE__, "\n";
crackerjack:/home/faraway/dev# apache2ctl stop
/home/faraway/dev/test.conf - 5
That is so slick!
- Tyler
Jonathan Vanasco <[EMAIL PROT
easily re-used anywhere? It's already got a bit of pod, it just needs a
few tests and some packaging up and it's ready to go.
I'd gladly take this on if I have the authors' blessing.
Cheers,
Tyler
g to do() the _build/notes file to get this config
data.
Cheers,
Tyler
o the trick:
http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlCleanupHandler
Cheers,
Tyler
up? It seems
like it'd be much more natural for there to be a M_HEAD constnat as well..
Thanks,
Tyler
et Another Mailing List and ask the httpd developers
themselves. ;-)
Thanks,
Tyler
hropomorphic way, only on his hind legs, or would he need a pole
for each of his hooves?
Answers to these and any other questions you think might burn me
appreciated.
Thanks,
Tyler
AKRJACK/CGI-JSONRPC-0.01/t/CGI-JSONRPC.t
Does anybody know what's happening here?
Thanks,
Tyler
t any tips?
Thanks,
Tyler
w->apr_config_path'
Use of uninitialized value in substitution (s///) at
i486-linux-gnu-thread-multi/Apache2/Build.pm line 1322.
Use of uninitialized value in length at
i486-linux-gnu-thread-multi/Apache2/Build.pm line 1323.
[EMAIL PROTECTED]:/opt/apache2/perl5lib$
Thanks,
Tyler
ath in APXS's CFLAGS (odd this is
neccessary, since even apxs needs apr to function...)
o Use $(MAKE) in all makefiles instead of make
* mod_bt now has a bugzilla database.
Cheers,
Tyler
n/Driver/aus.pm
http://search.cpan.org/src/CRAKRJACK/Schema-RDBMS-AUS-0.03/lib/CGI/Session/AUS.pm
Cheers,
Tyler
in there looks way more complicated than what i could
> possibly need
>
> can anyone point me in the right direction?
I really thought PerlSetVar could be done at any phase of a request,
but even if it can't, PerlSetEnv can... try using that and
$ENV{DEBUG_MY_APP} or something. :-)
- tyler
rl that was compiled against 2.2.0 is
still working, so it's not a pressing issue for me, but it did seem kind of
odd, and I'm not sure if this is a bug with apache or mod_perl.
Cheers,
Tyler
till getting the same errors on all CGI modules:
> "Can't locate Apache.pm".
Ack! Before you drive yourself nuts with this, read this page:
http://perl.apache.org/docs/2.0/rename.html
Cheers,
Tyler
you are using, is
trying to "use Apache", when it shouldbe "use Apache2::RequestRec" or some
such thing.
- Tyler
GI had to be updated to support mod_perl2.
Cheers,
Tyler
old mod_perl in place. I keep meaning to look into why
this is happening (I really would think fixing this would be a top priority
for a mod_perl maintenence release) but I've been too busy lately. :/
Cheers,
Tyler
at it ran on. I think that is a lot like
driving a car where you can not pop open the hood, or drinking a can of pop
that does not have a list of ingredients on it.
- Tyler
at supports authentication, users, and
sessions as well. It's session component is based on CGI::Session, and it
allows you to configure everything from httpd.conf.
- Tyler
Has anybody figured this out yet? Is there going to be a new version of
mod_perl coming out soon that fixes this problem? It seems pretty serious...
- Tyler
--- Begin Message ---
I just upgraded to httpd 2.2.2 and tried to install mod_perl. This upgrade
was made on top of my existing
I'm having a serious problem with Apache::Resource not killing
children and ending up with all of the children in a hung state at the
memory limit (Linux 2.6, mod_perl 1.29, Apache 1.33).
Here is the snippet from httpd.conf:
PerlModule Apache::Resource
# Both of the next two lines cause children
> I'm having a serious problem with Apache::Resource not killing
> children and ending up with all of the children in a hung state at the
> memory limit (Linux 2.6, mod_perl 1.29, Apache 1.33).
For what it's worth you might want to take a look at Apache::SizeLimit
which was recently upgraded and
On 7/23/06, Fred Tyler <[EMAIL PROTECTED]> wrote:
I'm having a serious problem with Apache::Resource not killing
children and ending up with all of the children in a hung state at the
memory limit (Linux 2.6, mod_perl 1.29, Apache 1.33).
Wow, I finally figured out what was causi
Hi, I just noticed something and I don't know if it is normal: Is %ENV
supposed shared between requests???
I was trying to use $ENV{'HTTP_REFERER'} in a certain script, and as I
reloaded the script over and over I noticed that it would constantly
be changing when the page was loaded directly (and
> I was trying to use $ENV{'HTTP_REFERER'} in a certain script, and as I
> reloaded the script over and over I noticed that it would constantly
> be changing when the page was loaded directly (and therefore there
> should not have been any HTTP_REFERER at all).
In my setup at least, HTTP_REFERER
7;d find in %ENV under CGI? It wasn't in the
CGI->mod_perl porting guide.
Anyway, thanks for the tip.
IIRC, there was a recommded approach to reading %ENV.. A grep didn't
turn up anything usefull, so far. If this thread is still open, I'll
drop a line :)
HTH
Hendrik
On 7/29/06
> after booting a redhat enterprise linux 3 machine with apache 2.0.58,
> perl 5.8.8 and mod_perl 2.0.2,
> it runs well using about 300 M of 1 G physical RAM.
> However, the remaining RAM decreases day by day, and after 2 or 3
> weeks, the machine crashes because swapping takes too much time.
> Ho
dler whose overhead is
going to be at least 10 lines before you even start coding.
I use both extensively and together; mod_perl for the content,
authentication, etc... and mod_rewrite for traffic control.
Cheers,
Tyler
In Mod perl 2.0
what is the equivalent of Apache->httpd_conf( qw{ ...
} );
inside of a Section in httpd.conf?
Tyler
uot;HTTPS" environment
variable means SSL is enabled.
http://httpd.apache.org/docs/2.2/mod/mod_ssl.html
Cheers,
Tyler
Does anybody know if there is a module
or some kind of directive in either perl or mod_perl
to make warnings produce the same affects as errors.
Thanks
Tyler
I was wondering if there was some way I could run a script and have it
detect all unused variables for me?
Anyone got an answer hopefully with out using and add on module?
I was also running how I could run time check all my modules.
Tyler
ep. I'm not
terribly concerned about getting a bit more complicated if it means better
efficiency and/or better control, etc.
Any suggestions?
I was just contsidering using SWF::Chart. Has anyone used that
successfully or what issues would there be (other than the fact that
it is flash).
Thanks,
--
~Tyler
e small subset of any given framework. You should be able to
use any one of them that you want without problems.
-Praveen
Cheers,
--
~Tyler
Errors going to the main apache servers log and not my virtual host.
Has anyone encountered this problem above before?
I am setting up my virtual hosts within a section.
Please??
Tyler
But I was wondering isn't there anything I can do to mod_perl that will
allow a plain warn to send it to my virtualhosts log and not my servers
log.
without using the $r->warn() syntax
warn("hey") really goes t the virtual hosts log and I don't have to put
$r->warn()
Tyler
file out of the way on enterprise 5 it fails
with and Apache::Registry error in the error log
When I do it on enterprise 2.1 it seems ok.
Any ideas?
Tyler
1 - 100 of 136 matches
Mail list logo