. . . . . . . . . . . . . . . . . . . . . .
> Mark StosbergPrincipal Developer
> [EMAIL PROTECTED] Summersault, LLC
> 765-939-9301 ext 202 database driven websites
> . . . . . http://www.summersault.com/ . . . . . . . .
>
>
>
--
~Tyler
a previous
> browser request or something? I'm I just missing something stupid?
%cache is defined outside the scope of the sub so it will persist for
the lifetime of the apache server. The very first time
foobar('somekey') is called it will do the query lookup, the next time
it will return from cache.
>
>
>
> FYI this was all running before on a version of Debian with old apache and
> old mod_perl (early 1.99 and 2.0.x). I've updated mod_perl to 2.0.2 and
> apache to 2.2 and everything still works.
>
>
>
> TIA!!
>
> -Chris
>
>
>
>
>
>
>
>
>
>
>
>
>
>
--
~Tyler
m writing your
> application using PerlResponseHandlers. I'm not sure it qualifies as a
> framework though, maybe just a request framework. It has been measured as
> almost as fast as straight response handlers (assuming that hasn't changed
> from 0.09 to 0.10).
>
--
~Tyler
age in context:
> http://www.nabble.com/Post-data-with-Apache2%3A%3ARequest-tp17452698p17452698.html
> Sent from the mod_perl - General mailing list archive at Nabble.com.
>
>
--
~Tyler
g. Before I get into too much
> detail, I'm just wondering if TT work under mod_perl2. Anyone have any
> experience with it? Got it running perhaps?
Works fine. Check your return types and your headers.
Post a simple example that's not working if you can.
>
> Thx,
> Kirk
>
>
>
>
--
~Tyler
therefore there queue runners spawned every 30 minutes ( sendmail flag
-q30m ) wouldn't have has much work
and our critical outbound messages could get delivered even if some
destination smtp hosts were down?
Thanks
Tyler
HI List,
Does anyone know the formula to convert from GMT to CST
or any functions used by perl to get the time in CST?
Tyler
is a MVC framework. The template toolkit
looks promising.
Tyler
limits on the data sockets can
accept or how long a socket can be available?
Thanks so much!!
Tyler
arily uploaded files.
Thanks
Tyler
root.
Any idea if I need to change something. I looked at ss -h for additional
options and couldn't find any way to show the secure servers.
Thanks so much.
Tyler
ss -a 'src :https'
ns to report this.
Thanks in advance!
Tyler
Hi List,
I know this is off topic, but does anyone know
if you restart the sendmail MTA daemon if all mail in the mail queues
will still
be delivered or any email will be lost as a result?
Thanks so much and redirect me to a sendmail list thanks.
Tyler
I was wondering if anyone knows offhand
how I can open and write to a file with 777 permissons.
And possibly also set the owner to a specified owner string.
I am reading through IO::File, but having some issues.
Thanks
Michael Peters wrote:
Tyler Bird wrote:
Attached is my script if you want to try it and have apache 1.x
require in;
my $time = 120;
for(my $i = 0; $i < $time; $i++)
{
warn("iteration..." . $i);
sleep(1);
Here in your interation, try printi
Tobias Regneri wrote:
Hi Tyler,
I don't think that your script causes the issue.
Is there a timeout value set in the httpd.conf?
Hth,
Tobias
Sorry,
remove the line
require in;
and also the line
in::ct();
and replace the in::ct() line
with
print("Content-type: tex
Tobias Regneri wrote:
Hi Tyler,
I don't think that your script causes the issue.
Is there a timeout value set in the httpd.conf?
Hth,
Tobias
Well there is a Timeout Directive in httpd.conf which I have set to 3000
and the problem still occurs.
If I print the file line by
Hi List,
I have a script that exports records templates from our system to .csv
files.
The thing is that if it run for over 80 seconds then the webserver seems
to never send it to the browser.
My algorithm builds all of the data into an internal string variable
then sends all records at once a
Michael Peters wrote:
Tyler Bird wrote:
I run this script and the log files show the incrementing numbers in the
for loop, but
whats weird is that the browser seems to still be "downloading" you know
that little icon seems to be spinning
and I see no output not and html header o
}
require in;
in::ct();
print("successfully rendered on dev");
exit();
--
any ideas on why the browser is not receiving or the webserver is not
sending this content?
Anybody need any clarifications?
Tyler
/%1.1/%1.2/%0/
# I have to remove the previosu line and add a real document
root to line to get rewrite to work
Tyler.
Hi,
I jumped into the middle of this thread and it seems I am encountering a
segfault in the header just like you have described.
Could you give me an overview of your solution since I do not have your
first emails to this list.
Thanks
Tyler
pubert na wrote:
I fixed it... apparently it
eOnly
Apache directive.
Any ideas?
Thanks
Tyler
5/site_perl/5.8.8/i386-linux-thread-multi/Apache2/compat.pm
line 52.
Compilation failed in require.
BEGIN failed--compilation aborted.
Thanks for any help you can give me.
Tyler
Clinton Gormley wrote:
Clint,
I changed the header I sent from text/html to text/plain and the
segfaulting no longer occuring.
It's more likely to be the headers your server is receiving (eg cookie?)
than the headers it is sending.
Clint, I removed sending any cookies the following
Clinton Gormley wrote:
Hi Tyler
I know next to nothing about reading backtraces, but it looks to me like
your segfault is occurring while your program is trying to parse the
headers.
Before doing any more, I would compile my own version of Apache2,
mod_perl2 and libapreq2, and see if it still
/sbin/httpd
#23 0x00b9bb6a in ap_graceful_stop_signalled () from /usr/sbin/httpd
#24 0x00b9c6cb in ap_mpm_run () from /usr/sbin/httpd
#25 0x00b730d7 in main () from /usr/sbin/httpd
any ideas on what I can do to keep it from segfaulting again?
Tyler
Philippe M. Chiasson wrote:
Tyler Bird wrote:
Ok,
I have a system I converted from cgi to mod_perl.
We recently upgraded to mod_perl 2.0 and apache 2.2 on RHL5
I am having a problem. When I refresh a certain page 5 times or about (
it's completely random )
The page renders fine
Tyler Bird wrote:
Clinton Gormley wrote:
On Wed, 2007-05-23 at 17:04 -0400, Dondi M. Stroma wrote:
I've also gotten segfaults from reading a bad cookie. Another
segfault problem I experienced was caused by using a lexical
variable in a sub in a Registry script that was declared outsi
Ok,
I have a system I converted from cgi to mod_perl.
We recently upgraded to mod_perl 2.0 and apache 2.2 on RHL5
I am having a problem. When I refresh a certain page 5 times or about (
it's completely random )
The page renders fine, but in my logs I see that an apache child died
because o
ou have apache already installed, in which case you would
have apxs, and the static server does not.
I've used the standard static server installation instructrions [1] on
RHEL4 a number of times without problems.
[1] http://perl.apache.org/docs/2.0/user/install/install.html#Static_mod_perl
Thanks.
Martijn.
--
~Tyler
Hi,
Hey I was wondering how I could do essentially the reverse of PerlSetEnv
instead of setting an environment variable for a virtual host inside a
virtual host definition
PerlSetEnv
I want to set it inside of index.i
-- clip ---
my $request = shift;
$request->set_env("HOME", "/home/bi
Torsten Foertsch wrote:
On Thursday 17 May 2007 00:13, Tyler Bird wrote:
I am setting up a new server with mod_perl + apache 2.0 + some legacy code
and am sporadically rececing a segmentation fault to my apache logs like
so.
Maybe this helps:
http://perl.apache.org/docs/2.0/devel
{'SEGV'} = sub { }; ?
Thanks so much,
Tyler
o the whole tree.
If I fall back to .htaccess files and just the section
everything works fine.
Any ideas on my first problem? I have looked at the apache 2.2 docs
which we have and you can do it to it doesn't seem to work.
http://httpd.apache.org/docs/2.2/mod/core.html#directory
Tyler
istry error.
I am running enterprise 5, with apache 2.2, mod_perl 2.0.3 and perl 5.8.8
all installed with the enterprise 5 system.
Any ideas this works fine in the enterprise 2.1 environment.
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
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
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
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
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
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
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
uot;HTTPS" environment
variable means SSL is enabled.
http://httpd.apache.org/docs/2.2/mod/mod_ssl.html
Cheers,
Tyler
In Mod perl 2.0
what is the equivalent of Apache->httpd_conf( qw{ ...
} );
inside of a Section in httpd.conf?
Tyler
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
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:[
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
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
> 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
, etc) but still can’t get it to work.
Does anyone have any recommendations, or thoughts?
Thank you in advance,
Tyler Fullerton.
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
> 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
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
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
> 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
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
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
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
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
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
GI had to be updated to support mod_perl2.
Cheers,
Tyler
you are using, is
trying to "use Apache", when it shouldbe "use Apache2::RequestRec" or some
such thing.
- 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
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
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
n/Driver/aus.pm
http://search.cpan.org/src/CRAKRJACK/Schema-RDBMS-AUS-0.03/lib/CGI/Session/AUS.pm
Cheers,
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
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
t any tips?
Thanks,
Tyler
AKRJACK/CGI-JSONRPC-0.01/t/CGI-JSONRPC.t
Does anybody know what's happening here?
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
et Another Mailing List and ask the httpd developers
themselves. ;-)
Thanks,
Tyler
up? It seems
like it'd be much more natural for there to be a M_HEAD constnat as well..
Thanks,
Tyler
o the trick:
http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlCleanupHandler
Cheers,
Tyler
g to do() the _build/notes file to get this config
data.
Cheers,
Tyler
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
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
(filename and
line_num methods), if I cold only get a Apache2::Directive object
representing the current section..
- Tyler
no warnings 'uninitalized';
to each module that you're being annoyed by.
- 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
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
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
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
s to a postgres mentor I'd have wasted many more
hours on this...)
* I dig the elephant logo.
- 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
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
http://perldesignpatterns.com/perldesignpatterns.html
And this is useful too:
http://www.oreilly.com/catalog/perlbp/
- 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
Vancouver, BC, Canada.
- 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
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
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
; 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
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
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
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
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
hat you're trying to do, I think it's
m{^(?:.*/)?([^/]+)$};
After that, the filename itself should be in $1.
- 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
1 - 100 of 136 matches
Mail list logo