Re: SetHandler perl-script not working

2010-01-13 Thread Perrin Harkins
On Wed, Jan 13, 2010 at 7:28 AM, Kevin Thorpe kevin.tho...@pibenchmark.com wrote: I tried stripping everything out as suggested and ended up with only the basic httpd.conf and perl.conf installed, still no joy. There's still a ton of stuff in there. You need to take all of the Files, Location,

Re: Apache Blank Pages

2010-01-13 Thread Perrin Harkins
On Wed, Jan 13, 2010 at 7:28 AM, cfaust-dougot cfa...@doyougot.com wrote: If I try to connect to a DB in that 2nd virtual host I have the problem. If I make no connection then there is no problem. Also if I connect to the same DB that the 1st virtual host does, then there is no problem. It's

Re: Caveats to using Perl Sections for server configuration?

2010-01-13 Thread Perrin Harkins
On Wed, Jan 13, 2010 at 3:22 PM, Boysenberry Payne boysenbe...@habitatlife.com wrote: I'm using Perl blocks in my apache conf files for early server configuration. I remember reading someone on this list saying they wouldn't use Perl Sections at all. That might have been me. I don't like

Re: Apache Blank Pages

2010-01-13 Thread Perrin Harkins
On Wed, Jan 13, 2010 at 5:31 PM, cfaust-dougot cfa...@doyougot.com wrote: Do you mean on apache startup? I'm not calling DBI or DBD in startup.pl. Any other module would be after the fork, wouldn't? Some modules (e.g. Class::DBI) will open a connection when you use them. If you're loading any

Re: SetHandler perl-script not working

2010-01-12 Thread Perrin Harkins
On Tue, Jan 12, 2010 at 6:43 AM, Kevin Thorpe kevin.tho...@pibenchmark.com wrote: Location /perl-status    SetHandler perl-script    PerlResponseHandler Apache2::Status    Order deny,allow    Allow from all /Location ...but I'm still getting 404 for the URL. It sounds like something else

Re: Logs show reasonable request handling duration, but proxied clients timing out

2010-01-12 Thread Perrin Harkins
On Tue, Jan 5, 2010 at 11:39 AM, eric.b...@barclayscapital.com wrote: The client uses a 500 millisecond read timeout which is often reached, causing the client process to throw exceptions.  However, when I look at my logs, the %D param shows durations well below this limit. At times I do not

Re: mod_perl precompiling help

2009-12-23 Thread Perrin Harkins
On Tue, Dec 22, 2009 at 12:19 PM, Jason Sonnenschein js...@umich.edu wrote: ENV{MOD_PERL} returns mod_perl/2.0.4 Ok, they are running under mod_perl then. It's pretty much unheard of for a script to run slower under mod_perl than CGI. There may be something serious wrong, like you don't have

Re: mod_perl precompiling help

2009-12-22 Thread Perrin Harkins
On Mon, Dec 21, 2009 at 11:47 PM, Jason Sonnenschein js...@umich.edu wrote: We're running a perl-based web application and not seeing any speedups running under mod_perl. Usually that means you have a configuration problem. Can you check if your scripts are running under mod_perl by looking at

Re: mod_perl works BUT rtld errors with some modules.

2009-12-17 Thread Perrin Harkins
On Wed, Dec 16, 2009 at 10:41 PM, greg.geo...@orica.com wrote: [error] Can't load '/opt/apache/perl/lib/site_perl/5.10.1/aix/auto/ARS/ARS.so' for module ARS: rtld: 0712-001 Symbol xdr_sizeof was referenced       from module /opt/apache/perl/lib/site_perl/5.10.1/aix/auto/ARS/ARS.so(), but a

Re: How to not lock anything?

2009-12-15 Thread Perrin Harkins
On Mon, Dec 14, 2009 at 8:32 PM, D. Dante Lorenso da...@lorenso.com wrote: I have an items table that is heavily updated with 40 million records every 1 or 2 days and I need all those items indexed so they can be searched.  The problem that I'm having is that the table is constantly locked

Re: How to not lock anything?

2009-12-15 Thread Perrin Harkins
On Tue, Dec 15, 2009 at 11:58 AM, Keith Murphy bmur...@paragon-cs.com wrote: Writers do block readers. Just at the row level vs the table level of MyISAM. It's just much less likely for writers to block readers. No, they don't. Not unless you use an extreme isolation level. InnoDB uses

Re: avoiding child death by size limit

2009-12-11 Thread Perrin Harkins
On Fri, Dec 11, 2009 at 11:37 AM, William T dietbud...@gmail.com wrote: You can make sure the variables that the memory was malloc'd for have gone out of scope, and there are not trailing references to them. Perl will then reuse that memory. It will keep the memory allocated to the

Re: avoiding child death by size limit

2009-12-11 Thread Perrin Harkins
On Fri, Dec 11, 2009 at 5:56 PM, André Warnier a...@ice-sa.com wrote: When you say It (perl) will keep the memory, do you mean that - the perl interpreter embedded in this Apache child will keep the memory (and not return it to the OS), but will re-use it if possible for other variable

Re: avoiding child death by size limit

2009-12-10 Thread Perrin Harkins
On Thu, Dec 10, 2009 at 2:28 PM, E R pc88m...@gmail.com wrote: However, the memory allocated will get freed up or re-used by the next request The memory won't get freed unless you undef all the variables manually. Perl keeps that memory otherwise, even when they go out of scope. If you know

Re: APR::Request gets Symbol Not Found

2009-11-18 Thread Perrin Harkins
On Wed, Nov 18, 2009 at 9:55 PM, Bill Karwin b...@karwin.com wrote: However when I try to test that I can load the module: $ perl -MAPR::Request -e true Can't load '/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/APR/Request/Request.bundle' for module APR::Request:

Re: DBI Connectons accumulate under Mod_perl

2009-11-13 Thread Perrin Harkins
On Fri, Nov 13, 2009 at 4:47 AM, Artem Kuchin mat...@itlegion.ru wrote: Nope, i don't use those. Just plain DBI. Parent process does not open up any connections. This is getting really confusing because two of you are on this thread with completely different problems. Artem, if you aren't

Re: DBI Connectons accumulate under Mod_perl

2009-11-13 Thread Perrin Harkins
On Thu, Nov 12, 2009 at 2:22 AM, Kulasekaran, Raja raja.kulaseka...@netapp.com wrote: Below is the log of $Apache::DBI::DEBUG = 2; This looks fine. I don't think anything is wrong with your setup. I'm guessing Oracle keeps those processes around for a while in case they are needed again. You

Re: AJAX pseudo-push

2009-11-12 Thread Perrin Harkins
On Thu, Nov 12, 2009 at 1:53 PM, Nicolas George nicolas.geo...@normalesup.org wrote: There is an increasingly popular technique to emulate server-initiated push over HTTP. I'm sure everyone here knows it well, but for the sake of completeness: the clients sends a XMLHttpRequest to the server in

Re: AJAX pseudo-push

2009-11-12 Thread Perrin Harkins
On Thu, Nov 12, 2009 at 3:33 PM, Nicolas George nicolas.geo...@normalesup.org wrote: I will definitely not use polling, because polling means dozen of useless requests and, when there is actually something, it has to wait to the next round of polling. That's good enough for most applications,

Re: DBI Connectons accumulate under Mod_perl

2009-11-11 Thread Perrin Harkins
On Tue, Nov 10, 2009 at 10:04 AM, Artem Kuchin mat...@itlegion.ru wrote: The weirdest thing is that there are two sites, running pretty much the same software (minor changes to user part, no changes to db part). Connections from one site accumulate, connection from other site do not

Re: Apache::Registry executing scripts multiple times

2009-11-05 Thread Perrin Harkins
On Wed, Nov 4, 2009 at 5:58 PM, Dave Morgan d...@100.com wrote: I have a very simple index_test.pl script which appears to get called by Apache::Registry multiple times. I don't see anything in what you've shown us here that would explain this behavior. I think the problem is in the rest

Re: mod-perl child process

2009-10-29 Thread Perrin Harkins
On Thu, Oct 29, 2009 at 10:05 AM, Kulasekaran, Raja raja.kulaseka...@netapp.com wrote: How do I get the status that particular child process has been killed ? Are you talking about the exit status of the process? You can't get that. What are you trying to do? - Perrin

Re: Storing config values in-memory between sessions

2009-10-29 Thread Perrin Harkins
On Thu, Oct 29, 2009 at 12:13 AM, Mahesh Khambadkone mah...@games2win.com wrote: Confused slightly by the Apache phases and how it plays with older CGI scripts, what would be the best way to implement this in-memory cache that can be dirtied from time to time? You can't keep things in memory

Re: mod-perl child process

2009-10-28 Thread Perrin Harkins
On Wed, Oct 28, 2009 at 12:32 AM, Kulasekaran, Raja raja.kulaseka...@netapp.com wrote: So, How to I control this ?. Is it possible to reuse the existing connection ?. It should be doing that already. Each process will open one connection and keep it open (unless you use different connection

Re: Handler Chain (based on request method)

2009-10-28 Thread Perrin Harkins
On Wed, Oct 28, 2009 at 12:58 PM, Aaron Dalton aa...@daltons.ca wrote: I'm using mod_perl and CGI::Application::Dispatch to create a RESTful web application.  In the one resource, GETs should be sent to the default handler, and all other requests to the dispatcher.  I have tried using Limit

Re: mod-perl child process

2009-10-27 Thread Perrin Harkins
On Tue, Oct 27, 2009 at 8:33 AM, Kulasekaran, Raja raja.kulaseka...@netapp.com wrote: I have configured the mod_perl with oracle persistent connection through Apache::DBI module. On every web page request It creates a process something like below and It never be killed automatically when the

Re: Custom INC per-directory

2009-10-21 Thread Perrin Harkins
On Wed, Oct 21, 2009 at 7:20 AM, Rolf Schaufelberger r...@plusw.de wrote: You could hide these vhosts behind a proxy, and +Parents just works  fine with  different lib direcories. Following the mod-perl performance guide  it is recommended to split your app to frontend an backend apache and so

Re: Custom INC per-directory

2009-10-20 Thread Perrin Harkins
On Tue, Oct 20, 2009 at 5:16 PM, Devin Teske dte...@vicor.com wrote: the problem is that 'require' and 'use' want to conditionally not re- import the library based on the module name (which doesn't change)... ...the solution is to not use 'use' or 'require' and instead beat down on the INC

Re: Alternatives to Apache::DBI?

2009-10-03 Thread Perrin Harkins
On Fri, Oct 2, 2009 at 10:40 PM, David E. Wheeler da...@kineticode.com wrote: It's safe to create a connection on startup with DBIx::Connection though, as it is careful not to cache across fork or thread boundaries. It may be necessary to set InactiveDestroy on any handles you open during

Re: Threading inside a handler script

2009-10-03 Thread Perrin Harkins
On Fri, Oct 2, 2009 at 9:34 AM, Aku Kauste aku.kau...@gmail.com wrote: Well, obviously this doesn't work and I end up getting child pid X exit signal Segmentation fault (11) type errors. Is my aproach completely wrong? What would be the right way to solve this kind of a problem? I

Re: [MP2][SESSION::POSTGRES] Problems retrieving session data.

2009-10-03 Thread Perrin Harkins
On Fri, Oct 2, 2009 at 2:58 AM, Sam Ingarfield sjfingarfi...@gmail.com wrote: For example, let user A have a session associated with him. He has the string 'cow' in $session{animal}. User B, meanwhile, has 'goose' in $session{animal}. Now, intermittently, user A is getting 'goose' when

Re: Alternatives to Apache::DBI?

2009-10-02 Thread Perrin Harkins
Apache::DBI is fine. You can also use DBI-connect_cached, as long as you are careful to avoid making any database connections during server startup and install your own cleanup handler to issue a rollback on all open database handles at the end of every web request. The Apache::DBI code is very

Re: double mod_perl initialization

2009-10-02 Thread Perrin Harkins
On Fri, Oct 2, 2009 at 5:54 PM, Jonathan Swartz swa...@pobox.com wrote: Ok, one more question. Disregarding graceful for the moment - is HUP completely reliable with mod_perl at this point, or is there still a reason (as there once supposedly was) to do a full server stop and start? The

Re: huge httpd processes

2009-09-30 Thread Perrin Harkins
On Wed, Sep 30, 2009 at 10:47 AM, Clinton Gormley cl...@traveljury.com wrote: Do either of these bear any relation to mod_perl's shared memory which you can use by preloading modules at startup? Yes - as I understand it (somebody please correct me if I'm wrong), all of the C libraries (eg XS

Re: huge httpd processes

2009-09-28 Thread Perrin Harkins
On Mon, Sep 28, 2009 at 3:19 PM, Justin Wyllie i...@justinwylliephotography.com wrote: But I'm struggling to understand why my processes are so huge. Using top with the DATA field that shows that almost all the 90 mbs is data not executable code. If this is the correct interpretation of that?

Re: [Mason] unique cookies from WithApacheSession

2009-09-16 Thread Perrin Harkins
On Wed, Sep 16, 2009 at 1:42 PM, Mark Copper mcop...@titaninterface.com wrote: You're right about that.  A table at wikipedia shows the chances of a collision in a pool of 1 trillion (10^12) randomly generated 128 bit numbers is about 1 in a trillion.  I'd say that is practically 0. OTOH, MD5

Re: Ways to scale a mod_perl site

2009-09-16 Thread Perrin Harkins
On Wed, Sep 16, 2009 at 11:49 AM, Igor Chudov ichu...@gmail.com wrote: Any thoughts? In addition to the good advice you're getting on the thread, here are some books you might find useful: - Practical mod_perl -- http://modperlbook.org/ -- is old, but has a lot of general architecture and

Re: Why people not using mod_perl

2009-09-16 Thread Perrin Harkins
On Wed, Sep 16, 2009 at 4:52 AM, Jeff Pang pa...@vfemail.net wrote: I'm just curious, is this performance data still true in today? We have a new project building a website for a goverment which should handle lots of transportation data, servlet and modperl are two choices. I don't know what

Re: Why people not using mod_perl

2009-09-16 Thread Perrin Harkins
On Wed, Sep 16, 2009 at 9:42 PM, Jenn G. practicalp...@gmail.com wrote: I think the more exact statement should be, mod_perl is compiled perl, mod_perl is very fast. But perl CGI...I must say it's very slow. Well, you can say CGI is slow, but Perl CGI is very fast compared to the alternatives.

Re: [Mason] unique cookies from WithApacheSession

2009-09-15 Thread Perrin Harkins
On Tue, Sep 15, 2009 at 11:54 AM, Mark Copper mcop...@titaninterface.com wrote: My question:  Is there a guarantee that two separately generated cookies are different?  Or is it just probable? You're asking about the uniqueness of the IDs in the cookies? Since you chose Apache::Session::MySQL,

Re: a better way to recognize module changes

2009-09-14 Thread Perrin Harkins
. not your project's) modules to load in the parent? Do you just load a page, look at %INC, and then subtract out your personal modules? Do you have to do this every so often to catch new vendor modules that have snuck in as dependencies? On Sep 11, 2009, at 2:52 PM, Perrin Harkins wrote: On Fri

Re: a better way to recognize module changes

2009-09-14 Thread Perrin Harkins
On Fri, Sep 11, 2009 at 6:18 PM, Jonathan Swartz swa...@pobox.com wrote: But if you change a module, wouldn't your first subsequent request hit the 'old' code? That's the benefit of an independent watcher, it'll operate in the time between when you've changed your module and when you hit the

Re: a better way to recognize module changes

2009-09-11 Thread Perrin Harkins
On Fri, Sep 11, 2009 at 5:26 PM, Jonathan Swartz swa...@pobox.com wrote: This is the nicest solution I've seen so far. The only problem I can see is its performance - each potentially-changing module has to be loaded on each request. ** How long does it take for you? I've run a lot of large

Re: distributing software built on mod_perl

2009-09-10 Thread Perrin Harkins
On Thu, Sep 10, 2009 at 9:55 AM, Mike Barborak barbo...@basikgroup.com wrote: So, can anyone point me at other software with these requirements and their solution to this problem? You can look at the installer for Krang (http://krangcms.com) which builds the whole stack. There are also several

Re: planning an upgrade to Perl 5.10.1 and mod_perl

2009-09-10 Thread Perrin Harkins
Hi Mark, The 'relocation' feature of Perl 5.10 has made it clear and easy to have a 5.10 install parallel to a 5.8 install. This was always pretty easy. I've had boxes with half a dozen different 5.8 installs on them for special purposes. You just need to specify a path when you install

Re: Queue / FIFO in MySQL?

2009-09-07 Thread Perrin Harkins
On Mon, Sep 7, 2009 at 8:18 PM, Allen Fowlerallen.fow...@yahoo.com wrote: Note: In this scheme the worker winds up with all new records generated since the last worker claimed any. Not sure how else to guarantee atomicity. I would prefer only n records per request. Ideas? SELECT...FOR UPDATE

Re: [Templates] cache TT's output

2009-09-06 Thread Perrin Harkins
On Sun, Sep 6, 2009 at 3:39 PM, R. Hickssigz...@gmail.com wrote: On 9/2/09 5:34 AM, Jeff Pang wrote: Hello, We're using Template.pm under modperl2. How can we cache TT's output? I mean it won't read and load files from disk each time. Thanks.

Re: Would like mod_perl 1.29 to include more information on fatal errors

2009-09-04 Thread Perrin Harkins
On Fri, Sep 4, 2009 at 12:00 PM, James Olsenjame...@planetolsen.com wrote: The trouble is, our code isn't getting invoked at all. Mod_perl (or something lower-level like that) is dying complaining that our code can't be found on the hits where this happens. Did you try $SIG{__DIE__}? It's a

Re: Would like mod_perl 1.29 to include more information on fatal errors

2009-09-03 Thread Perrin Harkins
On Thu, Sep 3, 2009 at 11:32 AM, James Olsenjame...@planetolsen.com wrote: I would like to know if someone has a patch that will dump out more information about the hit, such as the requested URI, any parameters that are passed, what perl modules are in memory, the process ID, or anything at

Re: RFC: Apache2::CloseKeepAlive

2009-08-27 Thread Perrin Harkins
On Wed, Aug 26, 2009 at 9:23 PM, cr...@animalhead.com wrote: I have no idea what EU::MM is.  Candy from Europe? Good guess, but it's actually ExtUtils::MakeMaker. It's the CPAN install mechanism that Module::Build was written to replace. My plan was to run the script the first time under

Re: RFC: Apache2::CloseKeepAlive

2009-08-26 Thread Perrin Harkins
On Wed, Aug 26, 2009 at 6:43 AM, cr...@animalhead.com wrote: I'm tentatively convinced it's worth contributing, but you're welcome to tell me why it's not. I think that setting a very short Keep-Alive timeout would be almost as good. More importantly, you shouldn't serve any static files from

Re: portability of mod_perl for other web servers/apps

2009-08-26 Thread Perrin Harkins
On Tue, Aug 25, 2009 at 3:00 PM, dbadhanidbadh...@yahoo.com wrote: This may sound far fetched, but has anyone tried porting mod_perl for web servers other than Apache. No, and it wouldn't really work. A generic approach to running persistent code already exists in the form of FastCGI. The

Re: News regarding mod_perl returning empty pages

2009-08-26 Thread Perrin Harkins
Igor, Why don't you try logging the request size from your mod_perl server? If it turns out that it knows when a request is zero bytes, you can just kill the process in a cleanup handler. Also, if you identify the PID of the broken process in this way, you can look back through the logs to see

Re: mod_perl2 interactive startup

2009-08-26 Thread Perrin Harkins
On Tue, Aug 18, 2009 at 4:54 PM, ama...@solutionsforprogress.com wrote: During the mod_perl2 startup this feature works fine at first but mod_perl2 always does a restart and during the second restart STDERR is being redirected to the log files and STDIN is ignored. I suggest stashing the data

Re: News regarding mod_perl returning empty pages

2009-08-26 Thread Perrin Harkins
On Wed, Aug 26, 2009 at 11:12 AM, Igor Chudovichu...@gmail.com wrote: Do you refer to the response size, as opposed to request size? Yes. If so... I like your idea. How would I do that? Just read the logging section of the apache docs. It's a common part of the access log. - Perrin

Re: RFC: Apache2::CloseKeepAlive

2009-08-26 Thread Perrin Harkins
On Wed, Aug 26, 2009 at 11:41 AM, cr...@animalhead.com wrote: The general purpose Perl library is headed at /usr/local/lib/perl5 on my system.  What I was asking is whether there's any reason to put Apache2::CloseKeepAlive in it, being as it's so specialized, or just copy it to a

Re: RFC: Apache2::CloseKeepAlive

2009-08-26 Thread Perrin Harkins
On Wed, Aug 26, 2009 at 12:21 PM, cr...@animalhead.com wrote: How does one specify that?  It sounds like esoteric knowledge that only a few users will know, and I'd like to empower people not to clog up their GP Perl library with a module that can be used in exactly one place. It's in the

Re: RFC: Apache2::CloseKeepAlive

2009-08-26 Thread Perrin Harkins
...@animalhead.com wrote: Including a note about how to do something in an installation dialog, for people who wouldn't otherwise know, is not controlling anything. If that's against CPAN principles, the principles need some work! cmac On Aug 26, 2009, at 9:30 AM, Perrin Harkins wrote: On Wed, Aug 26

Re: Help -- how to fork an Apache process in mod_perl safely? Not Apache2:Subprocess...

2009-08-25 Thread Perrin Harkins
On Tue, Aug 25, 2009 at 8:11 AM, Victor Danilchenkovic...@askonline.net wrote:        I need to be able to fork an Apache process in daemon form, to do some housekeeping which might potentially take a few seconds. However, when I do that, I start getting SQL errors (of the connection lost type)

Re: At random moments, mod_perl starts returning empty pages

2009-08-25 Thread Perrin Harkins
On Tue, Aug 25, 2009 at 11:09 AM, Igor Chudovichu...@gmail.com wrote: The issue is that at random moments, usually once or twice a day, my webserver starts returning completely empty pages instead of actual content. What's in the error_log? - Perrin

Re: At random moments, mod_perl starts returning empty pages

2009-08-25 Thread Perrin Harkins
On Tue, Aug 25, 2009 at 1:07 PM, Igor Chudovichu...@gmail.com wrote: Nothing much is in error_log, I do print some of my outputs, but nothing of interest. What I know is that I can retrieve www.algebra.com/apache-status, it works fine. However, retrieving mod_perl pages returns empty pages.

Re: Simple join very slow

2009-08-20 Thread Perrin Harkins
On Thu, Aug 20, 2009 at 10:43 AM, Johnny Withersjoh...@pixelated.net wrote: MySQL can only use one index at a time. That was fixed years ago, in MySQL 5.0. http://dev.mysql.com/doc/refman/5.0/en/index-merge-optimization.html - Perrin -- MySQL General Mailing List For list archives:

Re: Simple query slow on large table

2009-08-18 Thread Perrin Harkins
On Tue, Aug 18, 2009 at 5:08 AM, Simon Kimbersi...@internetstuff.ltd.uk wrote: I have indexes on siteid, datestamp and msgtype. Queries such as the following are constantly appearing in the slow queries log: SELECT * FROM enquiries WHERE siteid = 59255 AND msgtype = 0 ORDER BY datestamp

Re: Apache::ExtUtils and Slash

2009-08-17 Thread Perrin Harkins
On Mon, Aug 17, 2009 at 7:10 AM, Svipsvi...@gmail.com wrote: I am trying to install Slash (the same software that runs Slashdot.org), which is written in Perl and uses mod_perl for its integration with Apache. Unfortunately, it uses a module called Apache::ExtUtils, and after some research,

Re: mod_deflate and mod_cache can this be combined to improve performance

2009-08-11 Thread Perrin Harkins
On Wed, Aug 5, 2009 at 1:15 AM, Shibi NSshibi...@gmail.com wrote: I have a Server running with Apache 2.2.9/Mod_Perl 2.0.4 , now I am trying to use mod_deflate to compress response. I have lot of static files in my server which doesn't change frequently so i want to caching for these

Re: mod_perl / CGI.pm and 'our' variables

2009-08-05 Thread Perrin Harkins
2009/8/5 Tomáš Bažant tbaz...@suse.cz: yest that works for me if all the packages are in the same file, but if i put the Bar package into a separate file and import it with 'use' directive, $::dbh always returns undef. or could it be that i am using a closure? i'll try to avoid closures...

Re: Apache2::Resource - What happens when the resource limit is consumed by the process

2009-07-31 Thread Perrin Harkins
On Fri, Jul 31, 2009 at 5:31 AM, Shibi NSshibi...@gmail.com wrote: For example I sets the RSS  to 70 M , but due to some bugs one of the process requires 80 M how does the systems handles it ? The process will die. Setting resource limits is meant to be a safety measure to prevent runaway code

Re: mod_perl2.0.4: Apache2::compat errors

2009-07-31 Thread Perrin Harkins
On Fri, Jul 31, 2009 at 1:23 PM, George Karabotsoskara...@gmail.com wrote: I have created this minimal script: #!/usr/bin/env perl use Apache2::compat; and here's what I get: perl -c Tester.pl You can't do that. The mod_perl classes only work when run inside mod_perl. What are you

Re: Which is best compression for Apache 2.2.9/Mod_perl 2.0.4

2009-07-27 Thread Perrin Harkins
On Sat, Jul 25, 2009 at 4:41 AM, Shibi NSshibi...@gmail.com wrote: Which is best compression for Apache 2.2.9/Mod_perl 2.0.4 application - mod_gzip  or mod_deflate ? . Have any idea of recent comparisons. mod_deflate replaced mod_gzip for apache 2. - Perrin

Re: mod_perl / CGI.pm and 'our' variables

2009-07-27 Thread Perrin Harkins
2009/7/21 Tomáš Bažant tbaz...@suse.cz: i'm writing a web application using %SUBJ% and would like to set 'our $dbh = ...' so that i do not need to pass db handler as an argument to functions in different packages every time i need. but this 'global' variable is not seen inside imported package

Re: first time debugging apache/mod_perl Seg fault

2009-07-15 Thread Perrin Harkins
On Wed, Jul 15, 2009 at 12:31 PM, Alan McKayalan.mc...@gmail.com wrote: Nope, I send a snippet of the log it produces to my front-end guy and he told me that this would not really tell us anything more than we already know. Too high level. Are you saying that you can't reproduce the crash by

Re: first time debugging apache/mod_perl Seg fault

2009-07-15 Thread Perrin Harkins
On Tue, Jul 14, 2009 at 3:29 PM, Alan McKayalan.mc...@gmail.com wrote: http://modperlbook.org/html/21-5-8-Noninteractive-Perl-Debugging-Under-mod_perl.html OK, I'm doing this, but it seems that the file it produces only ever gets up to 7.3M and that's it. I'm guessing it is because when

Re: is there a TELL method for mod_perl's STDOUT and STDERR

2009-07-15 Thread Perrin Harkins
On Wed, Jul 15, 2009 at 3:23 PM, E Rpc88m...@gmail.com wrote: I'm trying to use Smart::Comments with mod_perl. The problem is that STDOUT and STDERR are blessed into the Apache class and they do not have a TELL method. I would have thought that the problem would be that it uses a source

Re: graceful restarts, modperl and pre-loaded modules

2009-07-14 Thread Perrin Harkins
On Tue, Jul 14, 2009 at 2:36 PM, Philippe M. Chiassongo...@ectoplasm.org wrote: On a gracefull restart, all perl interpreters are shutdown and new, clean ones replace them, reloading any module you configure for preloading. I don't think this is right, Philippe, unless something has changed

Re: graceful restarts, modperl and pre-loaded modules

2009-07-14 Thread Perrin Harkins
On Tue, Jul 14, 2009 at 3:25 PM, Philippe M. Chiassongo...@ectoplasm.org wrote: Graceful restart used to just re-read the conf, not restart the perl interpreter. Now I believe it does, and it's easy to verify. A loaded PerlModule will get reloaded on graceful restart, that's for sure. That

Re: first time debugging apache/mod_perl Seg fault

2009-07-14 Thread Perrin Harkins
Alan, You might want to try mod_log_forensic to see what the request was that crashed it. - Perrin On Tue, Jul 14, 2009 at 3:29 PM, Alan McKayalan.mc...@gmail.com wrote: http://modperlbook.org/html/21-5-8-Noninteractive-Perl-Debugging-Under-mod_perl.html OK, I'm doing this, but it seems that

Re: FW: Lock timeouts

2009-07-09 Thread Perrin Harkins
Nope, Nathan is right: INSERT...SELECT is a locking statement due to statement-based replication. There's lots of info on this if you google it. The common solution is to dump to disk and load back in with SELECT INTO OUTFILE and LOAD DATA INFILE. - Perrin On Thu, Jul 9, 2009 at 3:55 PM,

Re: Running CGI scripts after mod_perl.

2009-06-26 Thread Perrin Harkins
On Thu, Jun 25, 2009 at 5:51 PM, Anthony R Fletchera...@mail.nih.gov wrote: I have a mod_perl 2 module, running in Apache 2.2, - package Apache2::; use 5; use strict; use Apache2::Const -compile = qw(DECLINED); sub handler {        

Re: Apache crashes relatively often

2009-06-26 Thread Perrin Harkins
On Wed, Jun 17, 2009 at 2:24 PM, fREW Schmidtfri...@gmail.com wrote: We are having weird memory leak issues with Apache and some mod_perl. Basically what happens is that, depending on load, we eventually run out of ram and apache crashes.  We have the setting that will restart apache after a

Re: Running CGI scripts after mod_perl.

2009-06-26 Thread Perrin Harkins
On Fri, Jun 26, 2009 at 6:36 PM, Anthony R Fletchera...@mail.nih.gov wrote: Perrin asks what am I doing. I want to create a custom directory listing and modify the output of various file formats when they match a particular regexp. All the other files (like CGI scripts) should pass through

Re: Apache Children Stuck on futex call

2009-06-22 Thread Perrin Harkins
On Mon, Jun 22, 2009 at 5:59 PM, Sean Thornesean.tho...@gmail.com wrote:  I could switch to prefork, but the servers I have don't have enough RAM to handle the load I need them too. If you want to save RAM, you should run your mod_perl server in prefork, which uses less memory due to

Re: Conf. multiple apache locations with colliding namespaces

2009-06-17 Thread Perrin Harkins
Hi, we're looking for a way to offer version handling to our serverside perl app. You'll find many discussions of this in the mailing archive with multiple options. My first ideas goes as: Location /myApp-v2.0.0/        PerlSwitches -I /some/path/v2.0.0/        PerlResponseHandler run

Re: choose a template

2009-06-17 Thread Perrin Harkins
On Wed, Jun 17, 2009 at 10:36 PM, practicalp...@gmail.com wrote: Template::Toolkit is smart enough, but it requires designners to know some syntax about Perl. How so? I've often used TT with people who didn't know any perl. How is it more difficult for them than HTML::Template is? - Perrin

Re: choose a template

2009-06-17 Thread Perrin Harkins
On Wed, Jun 17, 2009 at 11:37 PM, practicalp...@gmail.com wrote: Here, aren't shopcart.nitems and shopcart.contents method calling of an object like? Yes. If you don't like passing objects, you could just pass the list of items as an array of hashes. One nice thing about TT here is that the

Re: Figuring out which perl file is leaking memory

2009-06-12 Thread Perrin Harkins
On Fri, Jun 12, 2009 at 6:00 AM, Michael Gardnergardne...@gmail.com wrote: The problem is that there are a lot of perl files to check out, and I don't know which one has the leak. What I'm asking is whether there's a way to figure out *which file* is leaking memory, without having to test each

Re: [Templates] comparing times from MySQL date format

2009-06-10 Thread Perrin Harkins
On Wed, Jun 10, 2009 at 9:23 AM, Tosh Cooeyt...@1200group.com wrote: My first instinct is to check date.now versus the second representation of the timestamp but I can't see how to make that conversion that using the Date plugin, nor does there seem to be a trivial way to accomplish this. It's

Re: [Templates] comparing times from MySQL date format

2009-06-10 Thread Perrin Harkins
! Thanks! Tosh Perrin Harkins wrote: On Wed, Jun 10, 2009 at 9:23 AM, Tosh Cooeyt...@1200group.com wrote: My first instinct is to check date.now versus the second representation of the timestamp but I can't see how to make that conversion that using the Date plugin, nor does there seem

Re: Ordering an IN query

2009-06-05 Thread Perrin Harkins
On Fri, Jun 5, 2009 at 9:09 AM, Aaron Fischerafisc...@smith.edu wrote: So I build the query in the order that I want it displayed.  That is display 221593, then 221591, then CC3762, etc.  However, when the query is executed it looks like it automatically sorts the codes in ascending order, so I

Re: a better apachectl?

2009-06-05 Thread Perrin Harkins
On Fri, Jun 5, 2009 at 5:21 PM, Jonathan Swartzswa...@pobox.com wrote: Over the years I've developed (as I'm sure many have :)) a small home-grown replacement for apachectl, to make start/stop/restart easier. I've written a few of those :) Most of mine have too many assumptions to make them

Re: Strange Apache error (appears to be related to bad pidfile)

2009-06-01 Thread Perrin Harkins
On Mon, Jun 1, 2009 at 6:50 AM, Chris Brooks madb...@gmail.com wrote: My first try was to execute apachectl stop and then apachectl start. You won't see the errors if you use apachectl. Just talk to httpd directly instead. - Perrin

Re: Should I be able to DELETE FROM ... WHERE .. IN ( ... ) with multiple a column key?

2009-05-27 Thread Perrin Harkins
On Wed, May 27, 2009 at 6:43 AM, Simon J Mudd sjm...@pobox.com wrote: So is the format of the DELETE FROM .. WHERE ... IN ( ... )  clause I propose valid and SHOULD the optimiser recognise this and be expected to just find the 2 rows by searching on the primary key? Not according to the docs:

Re: Problems with SetEnv and Alias

2009-05-27 Thread Perrin Harkins
On Mon, May 25, 2009 at 2:30 AM, Geoff Toogood ge...@allotz.com wrote: I have a VirtualHost directive which incorporates a mod_perl PerlTransHandler. This VirtualHost block of the config also has some Alias and SetEnv directives defined. The PerlTransHandler module behaves correctly and works

Re: Update with value form another table

2009-05-22 Thread Perrin Harkins
On Fri, May 22, 2009 at 1:22 PM, Chris W 4rfv...@cox.net wrote: Of course study to profile is a one to many relationship.  How do I run an update to set  p.`Date` equal to s.`Date`? This is covered in the docs for UPDATE. Read that and come back if you're stuck. - Perrin -- MySQL General

Re: How to use modules?

2009-05-22 Thread Perrin Harkins
On Fri, May 22, 2009 at 4:20 PM, Bruce Johnson john...@pharmacy.arizona.edu wrote: My script has a use POSIX; in it, which is filling my error log with several hundred error lines: Constant subroutine

Re: ErrorDocument from a registry script

2009-05-07 Thread Perrin Harkins
On Thu, May 7, 2009 at 2:51 PM, Michael Peters mpet...@plusthree.com wrote: Looking at this email thread (http://perl.markmail.org/message/yimclxzgspjtibbn?q=Apache::Registry+404+ErrorDocument#query:Apache%3A%3ARegistry 404 ErrorDocument+page:1+mid:xtfrl2hywqugoqlh+state:results) it seems that

Re: Vulnerability ?

2009-05-06 Thread Perrin Harkins
For mod_perl 2 users, this only affects you if you use ModPerl::PerlRun or ModPerl::Registry. - Perrin On Wed, May 6, 2009 at 7:40 AM, Francois Pernet francois.per...@idsa.ch wrote: Hi, We have received the following vulnerability report: http://www.securityfocus.com/bid/23192/info I read

Re: update site/lib

2009-05-01 Thread Perrin Harkins
Jeff, Since this is a general Perl question, not a mod_perl question, you'd be better off asking on the Win32 perl mailing list or perlmonks.org. - Perrin On Thu, Apr 30, 2009 at 11:20 PM, Jeff Zhuk jeff_z...@yahoo.com wrote: Thank you, KT Lo! I think I am one step closer. I did: ppm

Re: Undefined subroutine error

2009-04-21 Thread Perrin Harkins
On Tue, Apr 21, 2009 at 12:22 PM, Roberto C. Sánchez robe...@connexer.com wrote: So, on a lark I tried moving the PerlModule Example::Image from the .htacess file to the virtual host configuration.  I then restarted apache.  So far, it seems to have been working for several days.  In the past,

Re: finding context in mod_perl handler

2009-04-21 Thread Perrin Harkins
On Tue, Apr 21, 2009 at 1:47 PM, Perrin Harkins phark...@gmail.com wrote: On Tue, Apr 21, 2009 at 6:16 AM, André Warnier a...@ice-sa.com wrote: I mean, I could do something like respectively  PerlSetVar context location:/xyz and  PerlSetVar context dir:/some/path and then check the var

Re: Undefined subroutine error

2009-04-14 Thread Perrin Harkins
On Tue, Apr 14, 2009 at 8:38 AM, Roberto C. Sánchez robe...@connexer.com wrote: OK, so the changes to include the mod_include and mod_disk_cache on the production server did not do the trick.  The problem persists. I think it's all about the way you export your function, but you haven't

<    1   2   3   4   5   6   7   8   9   10   >