Re: innodb_lock_wait_timeout

2012-10-11 Thread Perrin Harkins
On Thu, Oct 11, 2012 at 7:29 AM, Markus Falb markus.f...@fasel.at wrote: Should I raise innodb_lock_wait_timeout? What are the disadvantages? The disadvantage is that if the locks still don't clear by the time the timeout is reached, you're just making the other process wait longer before

Re: Coupling Plack/PSGI with mod_perl, or an alternate architecture?

2012-10-10 Thread Perrin Harkins
On Wed, Oct 10, 2012 at 1:46 PM, Eduardo Arino de la Rubia ear...@gmail.com wrote: Greetings! Hi! 1) Has anyone on this list actually run a Plack application *inside* mod_perl? I don't actually know that I understand how one does that. Can you speak to the relative merits of this approach?

Re: reloading perl modules under heavy load

2012-10-04 Thread Perrin Harkins
On Thu, Oct 4, 2012 at 10:36 AM, Jason Aubrey aubre...@gmail.com wrote: Now, we have MaxClients set super high I hope you don't have it set so high that if you hit it you would run out of memory and start swapping... Also possibly relevant is kern.ipc.somaxconn which limits the size of the

Re: reloading perl modules under heavy load

2012-10-03 Thread Perrin Harkins
On Wed, Oct 3, 2012 at 9:45 AM, Jason Aubrey aubre...@gmail.com wrote: Hi All, We have modperl application running on 64bit (2 cores), freebsd 8.2, perl 1.14.1, modperl 2.0.5, apache 2.2.21, 24GB of ram and about 5.5k users. Additional system details are below. Under heavy load we are

Re: apache2 + mod_perl + Catalyst + Session = Segmentation fault

2012-09-28 Thread Perrin Harkins
On Fri, Sep 28, 2012 at 12:33 PM, demerphq demer...@gmail.com wrote: Maybe look at Sereal as an alternative to Storable. https://github.com/Sereal/Sereal/ http://search.cpan.org/~smueller/Sereal-Decoder/lib/Sereal/Decoder.pm

Re: mod_perl build with perlbrew

2012-09-19 Thread Perrin Harkins
On Wed, Sep 19, 2012 at 3:43 PM, bluedome adrian...@gmail.com wrote: I'm building mod_perl with a perl built using perlbrew. The build succeeds but make test fails because @INC is not correct. One thing to consider is that I think perlbrew sets the PERL5LIB environment variable. If you aren't

Re: trouble with perl

2012-08-08 Thread Perrin Harkins
On Wed, Aug 8, 2012 at 1:12 PM, Elim Qiu elim@gmail.com wrote: But when I use browser for the system testing (perl_test.cgi and forum.pl), both report me that DBD:mysql is not installed (or not available) It's possible that DBD::mysql is installed in a place where it's not in the library

Re: trouble with perl

2012-08-07 Thread Perrin Harkins
Hi, This probably means you changed your MySQL libraries but didn't recompile or reinstall DBD::mysql, Usually this kind of issue is solved by reinstalling DBD::mysql in the same way that you previously installed it, so it can build against your current libraries. - Perrin On Mon, Aug 6, 2012

Re: Benchmark!

2012-07-23 Thread Perrin Harkins
On Sun, Jul 22, 2012 at 4:09 AM, Susan su...@buczak.us wrote: and check out the benchmark between the same exact page, which is just a test page in written in perl/mod_perl, it loads a real big image, some perl output text/html etc.. first in cgi, then (handler) apache2::registry, then

Re: mod_perl and Apache::DBI - what happens on request termination

2012-06-04 Thread Perrin Harkins
On Mon, Jun 4, 2012 at 3:43 PM, André Warnier a...@ice-sa.com wrote: So, if the response handler (which runs your script/program which runs the DBI code) is busy doing something with the database server, but not writing anything back to the client, it will happily continue doing that for as

Re: Algorithm for automatic cache invalidation

2012-05-11 Thread Perrin Harkins
On Fri, Apr 27, 2012 at 6:14 PM, Jakub Łopuszański qbo...@gmail.com wrote: Hi, I’d like to share with you an algorithm for cache invalidation that I’ve came up with, and successfully implemented in a real world application. This may be a silly question, but have you benchmarked your cached

Re: highscalability.com report

2012-04-04 Thread Perrin Harkins
On Tue, Apr 3, 2012 at 10:50 PM, Jim Schueler jschue...@eloquency.com wrote: that reports YouPorn.com switched from Perl to PHP.  Apparently there's a reported 10% improvement in speed, but I haven't noticed :). We lost YouPorn?! Tragic! I'd say the joke's on them though. If you rewrite an

Re: Apache::Session::DB_File cleanup issue

2012-04-03 Thread Perrin Harkins
Hi James, There are a couple of issues here. One is that Apache::Session::DB_File doesn't use MLDBM, so you can't use that to read it. It uses DB_File. The other is that Data::Dumper may not do what you hope when you hand it a tied variable, i.e. not a real hash. I'm not certain about that one

Re: acces control via cookies for webdirectories again

2012-03-14 Thread Perrin Harkins
On Wed, Mar 14, 2012 at 3:57 AM, Timon Roth timon.r...@digitalforce.ch wrote: i habe tried also a second scenario with the PerlProcessConnectionHandler and the PerlPreConnectionHandler. i must then first read the header from the client via the socket. thats very cool. but how can i then route

Re: Question about caching

2012-03-13 Thread Perrin Harkins
On Tue, Mar 13, 2012 at 3:51 PM, Dan Axtell daniel.axt...@snet.net wrote: I understand the value of having one light-weight server for static content, and a reverse proxy back to a heavy-weight Apache with mod_perl, and I understand I can use something like Varnish or mod_cache to add a caching

Re: Terminating Child process Dynamically

2012-03-07 Thread Perrin Harkins
- Perrin On Mar 7, 2012 7:00 AM, Torsten Förtsch torsten.foert...@gmx.net wrote: On Friday, 02 March 2012 13:49:34 Perrin Harkins wrote: You can use $r--child_terminate(). 2 remarks: 1) you can use this method at any point in the request cycle. It marks the process to be terminated when

Re: Terminating Child process Dynamically

2012-03-07 Thread Perrin Harkins
2012/3/7 Torsten Förtsch torsten.foert...@gmx.net: Yes, in mp1 it did. Not so in mp2. Oh, I see this was covered on the dev list. It doesn't call perl_destruct() because it may be running under threads, which mp1 didn't need to worry about. - Perrin

Re: Tool to create multiple requests

2012-03-04 Thread Perrin Harkins
Thanks for the explanation. A large system with upwards of 250 databases (on a relatively small number of database machines) as part of the system, these are used by up to a half a dozen web machines which can be forced up to a limit of 50 children per machine... We regularly broke the

Re: Terminating Child process Dynamically

2012-03-02 Thread Perrin Harkins
On Fri, Mar 2, 2012 at 3:20 AM, Shibi Ns shibi...@gmail.com wrote: I would like terminate current sever Child  process after the end of current request because some data is cached and data is changed after the process creation.  The data cached during InitChild phase Is it possible ? It

Re: Tool to create multiple requests

2012-03-02 Thread Perrin Harkins
On Tue, Feb 7, 2012 at 2:05 AM, Tobias Wagener p...@wagener.nu wrote: Now I want to ask if someone knows a tool or perl modules, where I can simulate 50 users. http://www.hpl.hp.com/research/linux/httperf/ It can take a file of URLs to hit in order and it can do MUCH more than 50 users even

Re: Tool to create multiple requests

2012-03-02 Thread Perrin Harkins
On Tue, Feb 7, 2012 at 5:18 AM, James Smith j...@sanger.ac.uk wrote: Apache::DBI sometimes cause issues with too many database connections - we tend to turn it off and use DBIx::Connector as mentioned (and carefully selected caching) here to cope with persistence of connections Can you say

Re: Funding [WAS :Re: trying to compile mod_perl against httpd-2.4.1]

2012-02-29 Thread Perrin Harkins
On Wed, Feb 29, 2012 at 2:33 PM, Dan Axtell daniel.axt...@snet.net wrote: Basically I want to have various virtual hosts be reverse proxied to various back end servers (e.g. mod_perl for some legacy apps, a Catalyst app under fast CGI).  I tried this with Nginx and it all seemed to work but

Re: Funding [WAS :Re: trying to compile mod_perl against httpd-2.4.1]

2012-02-28 Thread Perrin Harkins
2012/2/28 Vincent Veyron vv.li...@wanadoo.fr: I am a tiny one-man company using mod_perl with great success(*) and pleasure, and your post has me very worried that it could end in a hurry :-( Don't panic! There's no immediate danger to mod_perl, and most people are not trying to run on the

Re: Funding [WAS :Re: trying to compile mod_perl against httpd-2.4.1]

2012-02-28 Thread Perrin Harkins
On Tue, Feb 28, 2012 at 4:48 PM, Jan Dubois j...@activestate.com wrote: I find this talk an excellent overview of all the different ways to deploy Perl (PSGI) applications: http://www.slideshare.net/miyagawa/deploying-plack-web-applications-oscon-2011-8706659 There's also a talk I gave a

Re: USING WHERE; USING TEMPORARY; USING filesort

2012-02-24 Thread Perrin Harkins
On Thu, Feb 23, 2012 at 5:50 PM, Daevid Vincent dae...@daevid.com wrote: Anyone have any thoughts on how I might optimize this query? As always, it's all about the indexes. The index it chose on your main table looks pretty weak. You probably should move those non-joining columns out of your

Re: [Templates] Improving performance with TT2

2012-02-19 Thread Perrin Harkins
2012/2/19 Frédéric Buclin lpso...@netscape.net: We at Bugzilla are heavily using Template Toolkit to generate all our templates dynamically. But when doing some profiling with Devel::NYTProf, it appears that TT2 is taking most of the time when processing a CGI script. This means that some

Re: [Templates] Improving performance with TT2

2012-02-19 Thread Perrin Harkins
On Sun, Feb 19, 2012 at 4:20 PM, Perrin Harkins per...@elem.com wrote: [ Please keep replies on the list. ] 2012/2/19 Frédéric Buclin lpso...@netscape.net: Le 19. 02. 12 21:57, Perrin Harkins a écrit : That is slow!  Are you talking about actual CGI, or are you running in a persistent

Re: [Templates] CGI example

2012-02-17 Thread Perrin Harkins
On Fri, Feb 17, 2012 at 5:51 PM, Bill McCormick wpmccorm...@gmail.com wrote: Yes, I think that's what I'm looking for, except for the part where (it seems) he leaves out a lot of details; like there see to be no examples of DB updates via CGI. If you don't know how to update a database in Perl

Re: disabling directives in .htaccess files

2012-02-15 Thread Perrin Harkins
On Sat, Feb 11, 2012 at 7:23 PM, Aaron Knister aar...@umbc.edu wrote: I need to allow htaccess files for users to be able to customize their websites as required (specify authentication/authorization methods, rewrite rules, mime types, custom handlers etc.). I wish I could turn them off but I

Re: disabling directives in .htaccess files

2012-02-11 Thread Perrin Harkins
On Fri, Feb 10, 2012 at 6:46 AM, Aaron Knister aar...@umbc.edu wrote: I'm using mod_perl in a shared hosting environment for some server-side configuration bits. All dynamic content for the users runs through SuEXEC, however this obviously doesn't help in the case of mod_perl so I would like

Re: mod perl installed but not running

2012-02-07 Thread Perrin Harkins
On Tue, Feb 7, 2012 at 7:26 PM, André Warnier a...@ice-sa.com wrote: You can also look at $CGI::POST_MAX in the same documentation. See also LimitRequestBody: http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestbody - Perrin

Re: mod perl installed but not running

2012-01-30 Thread Perrin Harkins
On Sun, Jan 29, 2012 at 5:22 PM, mike cardeiro mcarde...@yahoo.com wrote: can anybody help me.  I have mod_perl installed, I have LoadModule perl_module /usr/local/apache/modules/mod_perl.so in httpd.conf if the installation isn't right, shouldn't the server choke on restart because it cant

Re: Problem with long http request generation time - process restarting

2012-01-27 Thread Perrin Harkins
- Perrin On Jan 13, 2012 6:47 PM, Andrew Merton (subscriptions) amerton.sig...@gmail.com wrote: On 17/12/2011 7:20 a.m., Randolf Richardson wrote: Thanks for the responses :) However - I just read another thread somewhere that made me think of looking in the Event log. It appears that

Re: Problem with long http request generation time - process restarting

2012-01-27 Thread Perrin Harkins
Sorry, just a clumsy cell phone touch. - Perrin On Jan 27, 2012 5:42 PM, Perrin Harkins per...@elem.com wrote: - Perrin On Jan 13, 2012 6:47 PM, Andrew Merton (subscriptions) amerton.sig...@gmail.com wrote: On 17/12/2011 7:20 a.m., Randolf Richardson wrote: Thanks for the responses

Re: preloading modules and apache::dbi

2012-01-19 Thread Perrin Harkins
On Wed, Jan 18, 2012 at 5:08 PM, mike cardeiro mcarde...@yahoo.com wrote: I have a library I want to preload.  This library makes a database connection and assigns it to a variable that is exported so all programs can use this handle. will this global handle db handle be a single handle

Re: preloading modules and apache::dbi

2012-01-19 Thread Perrin Harkins
On Thu, Jan 19, 2012 at 8:48 AM, Josh Narins jnar...@seniorbridge.com wrote: The idea of Apache::DBI is that you get to pool connections. If you call Apache::DBI-new and there is a spare connection, you get it, if not, one is created for you. That's a little misleading. There's no actual

Re: serve items in lib or PATH fashion

2012-01-17 Thread Perrin Harkins
On Tue, Jan 17, 2012 at 4:31 AM, André Warnier a...@ice-sa.com wrote: E.g. I would be happy if I could write this in the Apache configuration : ScriptAlias /cgi-bin/ /var/www/site1/cgi-bin/;/var/www/global/cgi-bin/ and have Apache look first in the local one, then in the global one each time

Re: Cache::Memcached problem

2012-01-17 Thread Perrin Harkins
On Tue, Jan 17, 2012 at 10:50 AM, Idel Fuschini idel.fusch...@gmail.com wrote: No map found matching for GLOB(0x1ed02710) at /usr/lib/perl5/site_perl/5.8.8/Cache/Memcached.pm line 717. anybody know what could be ? I don't find any documentation about that. You'd probably be better off asking

Re: Is it me or is mod_perl extremely dangerous?

2011-12-06 Thread Perrin Harkins
On Tue, Dec 6, 2011 at 5:35 AM, Desilets, Alain alain.desil...@nrc-cnrc.gc.ca wrote: However, even those high quality CPAN modules can fall flat on their face when they are used in contexts that they weren't designed for. For example, I recently discovered that several CPAN modules cannot

Re: Is it me or is mod_perl extremely dangerous?

2011-12-06 Thread Perrin Harkins
On Tue, Dec 6, 2011 at 3:11 PM, Desilets, Alain alain.desil...@nrc-cnrc.gc.ca wrote: I'm using Windows. In my experience, modules that don't work well with multithread, also don't work well with fork, and vice-versa. I wouldn't expect that. In a multi-process situation, files and sockets are

Re: Is it me or is mod_perl extremely dangerous?

2011-12-06 Thread Perrin Harkins
On Tue, Dec 6, 2011 at 3:55 PM, Desilets, Alain alain.desil...@nrc-cnrc.gc.ca wrote: No, I meant more things like this: --- package MyClass; my $class_level_attribute; sub new {        my ($class) = @_;        $self-{instance_level_attribute} = undef;        bless $self,

Re: Is it me or is mod_perl extremely dangerous?

2011-12-05 Thread Perrin Harkins
On Mon, Dec 5, 2011 at 4:06 PM, Desilets, Alain alain.desil...@nrc-cnrc.gc.ca wrote: I am scared witless by the fact that many variables don’t get reinitialized between calls to the CGI scripts. It's harder to write safe code for persistent environments than it is for CGI. There's no question

Re: Apache2::PerlSections $PerlConfig

2011-11-21 Thread Perrin Harkins
On Mon, Nov 21, 2011 at 9:03 AM, Josh Narins jnar...@seniorbridge.com wrote: So, different ways to get this config to apache include: my $r = Apache2::RequestUtil-request; $r-add_config($template-output); But that results in the error Global $r object is not available. and the server does

Re: mod_perl debugging application debugging in shared environments

2011-11-18 Thread Perrin Harkins
On Fri, Nov 18, 2011 at 12:48 PM, Dmitriy Ryajov drya...@gmail.com wrote: I'm running in a shared development environment. I can't run httpd in non detached mode on that machine because the server is used by other devs at the same time, and there is absolutely no way I can get my own sandbox

Re: Apache2::PerlSections $PerlConfig

2011-11-18 Thread Perrin Harkins
On Fri, Nov 18, 2011 at 3:20 PM, Josh Narins jnar...@seniorbridge.comwrote: my $r = Apache2::RequestUtil-request; $r-add_config($template-output); ** ** Which gets me ** ** Syntax error on line 66 of /home/web/rosalind-dev9/etc/httpd/httpd.conf:** ** \t(in cleanup)

Re: mod_perl debugging application debugging in shared environments

2011-11-18 Thread Perrin Harkins
On Fri, Nov 18, 2011 at 3:58 PM, Dmitriy Ryajov drya...@gmail.com wrote: The reasons are mostly legal, the client simply won't allow me to set it up outside the dedicated server. There are also technical reasons, the system is massive and too tight up to the rest of their internal

Re: Apache2::PerlSections $PerlConfig

2011-11-18 Thread Perrin Harkins
On Fri, Nov 18, 2011 at 5:27 PM, Josh Narins jnar...@seniorbridge.com wrote: Thanks, Perrin, but the server isn't starting when I get this error. It's not? You can't define Location blocks and the like after the server has started. Maybe I'm not understanding what you're saying. I'm not sure

Re: about ModPerl::Registry

2011-09-17 Thread Perrin Harkins
2011/9/16 Scott Gifford sgiff...@suspectclass.com: On Fri, Sep 16, 2011 at 12:12 AM, Jeff Pang jeffp...@mail.ru wrote: Hello, When my CGI scripts are moved to run under ModPerl::Registry, and when the script is changed, should I restart Apache each time? Hi Jeff, In general you do, but

Re: Apache::DBI

2011-08-03 Thread Perrin Harkins
On Wed, Aug 3, 2011 at 2:49 AM, Feng He short...@gmail.com wrote: ab -n 100 -c 3 http://bizstatus.game.yy.com/upload/?arguments When the client number is larger than one, the items number in database is not correct. it's always larger than 100, for example, 101, 102, 103 etc. So, what's

Re: High CPU utilization on RHEL5.6/CentOS5.6

2011-08-01 Thread Perrin Harkins
On Wed, Jul 27, 2011 at 8:36 AM, Christopher Stanton christopher.stan...@codaxus.com wrote: Which benchmark module would work best with mod_perl, Perl 5.8 and Perl 5.12? For web apps, I usually write my own test with LWP (or HTTP::Async if you want to simulate a lot of users). To see where

Re: [Templates] sudo cpan XML::Template

2011-07-27 Thread Perrin Harkins
On Wed, Jul 27, 2011 at 2:03 PM, Oliver Ruebenacker cur...@gmail.com wrote:  I'm confused. TT website talks about the module XML::Template, but cpan does not know that module, but instead a lot of modules that start with XML::Template. The distribution is called Template::XML, and the module

Re: ModPerl::RegistryLoader

2011-07-26 Thread Perrin Harkins
2011/7/26 Jiří Pavlovský j...@getnet.cz: That is probably it, I store db handle in a singleton. That, unfortunately is something I cannot change easily Apache::DBI should make this unnecessary. You could change your singleton code to DBI-connect every time and it would just pull the cached

Re: High CPU utilization on RHEL5.6/CentOS5.6

2011-07-26 Thread Perrin Harkins
On Mon, Jul 25, 2011 at 6:43 PM, Christopher Stanton christopher.stan...@codaxus.com wrote: I am seeing high cpu utilization under RHEL5.6 which I don't see on FC14. We are talking sub 10% on FC14 vs 80% on EL5. This is on different hardware, but not that different. Well, you've changed

Re: ModPerl::RegistryLoader

2011-07-25 Thread Perrin Harkins
2011/7/22 Jiří Pavlovský j...@getnet.cz: On 22.7.2011 18:15, Perrin Harkins wrote: However this doesn't work as Apache is segfaulting. That makes it sound like it is working but there's something in your scripts that doesn't like being loaded in the parent process.  Are you opening up

Re: ModPerl::RegistryLoader

2011-07-22 Thread Perrin Harkins
2011/7/21 Jiří Pavlovský j...@getnet.cz: I did RTFM, but the man page was not clear to me, so I asked on the list. Asking on the list is encouraged! We just need specific questions However this doesn't work as Apache is segfaulting. That makes it sound like it is working but there's

Re: ModPerl::RegistryLoader

2011-07-21 Thread Perrin Harkins
2011/7/21 Jiří Pavlovský j...@getnet.cz: So I was looking a solution and found ModPerl::RegistryLoader. I'm just not sure I understand it completely. Is this the compile once at startup solution? Yes, that's what it's for. Do I just put my $rlbb = ModPerl::RegistryLoader-new(); into my

Re: cleanup handler - is it free time?

2011-07-20 Thread Perrin Harkins
2011/7/20 Torsten Förtsch torsten.foert...@gmx.net: If the connection is kept alive the client will think the request is done and send the next one over the same connection. But the server will start processing it only when the cleanup handler returns. A common approach is to use KeepAlive on

Re: Single PerlResponseHander for Web Application

2011-07-19 Thread Perrin Harkins
On Tue, Jul 19, 2011 at 12:55 PM, Jerry Pereira online.je...@gmail.com wrote: I agree, but isn't the Handler tightly coupled to the URI? Yes. rather if i can configure the mapping of URI and sub-handlers in a different configuration file or database, it will be easier to handle URI changes.

Re: Single PerlResponseHander for Web Application

2011-07-19 Thread Perrin Harkins
On Tue, Jul 19, 2011 at 2:02 PM, Jerry Pereira online.je...@gmail.com wrote: Thats right, i was thinking of avoiding restarts and having single place for mapping URIs to classes. You can get that to some degree if you use Apache2::Reload and avoid doing anything too strange in your code. The

Re: Single PerlResponseHander for Web Application

2011-07-18 Thread Perrin Harkins
On Mon, Jul 18, 2011 at 6:02 PM, Jerry Pereira online.je...@gmail.com wrote: Single PerlResponseHandler for my application, all requests will be submitted to this handler, the handler will then dispatch the request to appropriate sub-handlers based on the URI path. Sounds like

Re: Authentication logic [was: Changing browser URL based on condition]

2011-07-16 Thread Perrin Harkins
On Sat, Jul 16, 2011 at 1:01 PM, Vincent Veyron vv.li...@wanadoo.fr wrote: As I said, I replaced the call to tie with : $r-pnotes('session' = Storable::retrieve($session_file)); where $session_file again is retrieved from the cookie. What I can't find out is : how do I store %session into a

Re: mod_perl2 memory growth after restart of Apache

2011-07-15 Thread Perrin Harkins
On Fri, Jul 15, 2011 at 4:54 PM, ChristoDeluxe nab...@cfs.parliant.com wrote: Looking in the archives, I see people (mostly back a few years) saying that people should not use apachectl restart or apachectl graceful (or sending the HUP signal) to restart Apache since it leaks memory. That was

Re: Authentication logic [was: Changing browser URL based on condition]

2011-07-15 Thread Perrin Harkins
On Thu, Jul 14, 2011 at 3:15 PM, Vincent Veyron vv.li...@wanadoo.fr wrote: OK, I must have missed it in the doc, I'll look again. I think you're misunderstand. Storable doesn't do this for you. The idea is you could capture the session in a variable and write that to a database. If you'd

Re: Authentication logic [was: Changing browser URL based on condition]

2011-07-14 Thread Perrin Harkins
On Thu, Jul 14, 2011 at 11:21 AM, Vincent Veyron vv.li...@wanadoo.fr wrote: Could you explain (very briefly) how clustering prevents file storage of a session? A cluster in this case means multiple servers, so they don't share a filesystem. There are ways to share files of course, but the

Re: Authentication logic [was: Changing browser URL based on condition]

2011-07-13 Thread Perrin Harkins
On Tue, Jul 12, 2011 at 8:45 AM, Vincent Veyron vv.li...@wanadoo.fr wrote: -Is there anything wrong with my process? If it's working for you, then it sounds fine. Needing to invoke mod_perl on every hit could be bad if you're trying to protect a lot of otherwise static pages, but it doesn't

Re: mod_perl-1.31 compilation with perl 5.14.1 fails

2011-07-12 Thread Perrin Harkins
On Mon, Jul 11, 2011 at 11:39 PM, Fred Moyer f...@redhotpenguin.com wrote: Looks like a patch for this issue was posted.  Greg, do you want to try out this patch and report back? https://rt.cpan.org/Public/Bug/Display.html?id=64999#txn-954785 This patch fixed it for me on CentOS. - Perrin

Re: Installing mod_perl for 2 versions of Perl?

2011-07-11 Thread Perrin Harkins
2011/7/11 Octavian Rasnita orasn...@gmail.com: Under Ubuntu 10.04, is it possible to install mod_perl for 2 versions of Perl for the same Apache? Just install another apache. It's pretty simple to compile apache and mod_perl against your own perl, and it avoids needing to put a bunch of custom

Re: mod_perl EC2 AMI's or other platform providers?

2011-07-11 Thread Perrin Harkins
I saw Miyagawa at YAPC::NA and it looks like DotCloud is serious about their Perl support. The situation seems pretty good to me. We have DotCloud, for people who want to try something simple very quickly with minimal startup costs. We have cheap virtual servers (e.g. Linode) running linux with

Re: Installing mod_perl for 2 versions of Perl?

2011-07-11 Thread Perrin Harkins
On Mon, Jul 11, 2011 at 3:14 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Perrin Harkins per...@elem.com I am still afraid to compile Perl+Apache+mod_perl since the old days when I needed to do that because there were no other solutions, and when I needed to face some ugly compiling

Re: How do you use mod_perl for your web application?

2011-06-27 Thread Perrin Harkins
On Sun, Jun 26, 2011 at 5:11 PM, Randolf Richardson rand...@modperl.pl wrote:        I believe Catalyst depends on DBIx::Class As Octavian said, there isn't really a connection between the two. Catalyst people often use DBIx::Class, but there's no tie at a code level.        To be fair, I

Re: Apache::DBI and DBIx::Class [was Re: How do you use mod_perl for your web application?]

2011-06-27 Thread Perrin Harkins
Please calm down, folks. Apache::DBI is a module that was designed to help with porting legacy CGI applications to mod_perl. It's a valid criticism to say that the action-at-a-distance parts of it are undesirable in new mod_perl applications. Personally, I have used mostly custom caching code

Re: How do you use mod_perl for your web application?

2011-06-24 Thread Perrin Harkins
On Fri, Jun 24, 2011 at 3:00 PM, Phil Van pv2...@gmail.com wrote: Interesting those are mod_fcgid + CGI, compared to plain Apache + mod_perl + libapeq ? There are a number of modules like CGI and libapreq that run in multiple environments. My benchmark was a Catalyst app that just returned

Re: How do you use mod_perl for your web application?

2011-06-21 Thread Perrin Harkins
On Mon, Jun 20, 2011 at 11:00 PM, Randolf Richardson rand...@modperl.pl wrote:  I have encountered some people (not just in the DBIx::Class community) who have told me things like you should be using FastCGI instead, or you're crazy to not run mod_perl behind a proxy, etc. Well, this is a

Re: How do you use mod_perl for your web application?

2011-06-21 Thread Perrin Harkins
On Tue, Jun 21, 2011 at 2:25 AM, Rolf Schaufelberger r...@plusw.de wrote: We are using Mason 1.x,  a (little) modified version of MasonX::WebApp Us too! Glad to know someone else is using it. Currently,  I can use on Perl instance in all virtual hosts  or add  a separate instance with

Re: How do you use mod_perl for your web application?

2011-06-18 Thread Perrin Harkins
On Fri, Jun 17, 2011 at 7:28 PM, Randolf Richardson rand...@modperl.pl wrote: I suspect that I wouldn't be running into these issues with a framework system designed to work with DBIx::Class. I don't think mod_perl should have more trouble cooperating with DBIx::Class than other web

Re: apache2 or mod_perl2 oddball error

2011-06-17 Thread Perrin Harkins
On Fri, Jun 17, 2011 at 12:34 PM, William Bulley w...@umich.edu wrote:   PerlModule Apache2::Const -compile = ':common'   PerlModule APR::Const -compile = ':common' That syntax used to work? It seems unlikely. I've never seen a PerlModule call with options like this before. I'd expect it to

Re: apache2 or mod_perl2 oddball error

2011-06-17 Thread Perrin Harkins
On Fri, Jun 17, 2011 at 2:18 PM, William Bulley w...@umich.edu wrote: Others have suggested that I strip the parameters - I did and no change. Others suggested I place the module(s) invocation inside (the existing) Perl.../Perl tags - I did and no change.  Go figure? Have you tried making a

Re: apache2 or mod_perl2 oddball error

2011-06-17 Thread Perrin Harkins
On Fri, Jun 17, 2011 at 3:20 PM, William Bulley w...@umich.edu wrote: Recall that all I'm trying to do at this point is to get the apache server up and running.  The fact that these two lines in this include file of this particular application case apachectl -t to error out should have nothing

Re: How do you use mod_perl for your web application?

2011-06-16 Thread Perrin Harkins
On Thu, Jun 16, 2011 at 12:01 AM, Fred Moyer f...@redhotpenguin.com wrote: I'm interested in hearing about what application frameworks (Catalyst, CGI::App, Mojolicious) are used here with mod_perl. Mason 1.x on mod_perl 1.x and apache 1.x, baby! - Perrin

Re: How do you use mod_perl for your web application?

2011-06-16 Thread Perrin Harkins
On Thu, Jun 16, 2011 at 4:07 PM, David E. Wheeler da...@kineticode.com wrote: Whatever old man! I know, it's just a reality of working on applications that have been around for years. These tools are so reliable that they tend to stick around. If I started something new I would probably use

Re: How do you use mod_perl for your web application?

2011-06-16 Thread Perrin Harkins
On Thu, Jun 16, 2011 at 4:18 PM, Fred Moyer f...@redhotpenguin.com wrote: Maybe I'm not completely grokking how people are starting new projects using Plack, but it seems like the way to go is to not use Plack itself to write the code, but to use one of the many web frameworks (Mason2,

Re: Apache::Test 1.36 broken with mod_perl version 1.x

2011-06-02 Thread Perrin Harkins
On Thu, Jun 2, 2011 at 2:54 PM, Fred Moyer f...@redhotpenguin.com wrote:  I'm guessing that most everyone on this list is using mp2 by now. I don't think so. Every place I've worked was using mp1. Not many people use Apache::Test though. - Perrin

Re: [Mason] Good book on automated website testing?

2011-05-27 Thread Perrin Harkins
If you really must test JavaScript, use Selenium. If testing your server-side code is enough, use WWW::Mechanize and make it mimic what your JS does. No idea if they're any good, but Amazon has books on Selenium. - Perrin On Fri, May 27, 2011 at 10:26 AM, Richard Tomasso

Re: [cgiapp] CGI::Application wiki page CatalystCompared updated byJackTean

2011-05-16 Thread Perrin Harkins
On Mon, May 16, 2011 at 1:24 AM, Octavian Rasnita orasn...@gmail.com wrote: The link http://people.plusthree.com/~perrin/mvc_samples.tgz to the code samples doesn't work. Sorry, I don't work there anymore. I will try to find a new home for those eventually. BTW, the comparison tells only

Re: Issue we are facing with Profinling our Mod Perl App

2011-05-05 Thread Perrin Harkins
Hi, 1) Inserted PerlModule Devel::NYTProf::Apache in httpd.conf file. 2) Restarted Apache with a Single Process with the command line option -X. Then, Apache 'Segfaults' (Segmentation fault). Does your app work under -X without NYTProf? My first suggestion would be to use the most up-to-date

Re: [Templates] File Access from mod_perl2

2011-03-31 Thread Perrin Harkins
2011/3/31 Ta hello200...@yahoo.co.jp: The file exists , and its the same code from the book... The most likely problem is permissions. Try becoming the user who the web server runs as and reading the file. There may be a problem with permissions on an enclosing directory. - Perrin

Re: CGI script and Mod_perl 2

2011-03-30 Thread Perrin Harkins
Hi, On Mon, Mar 28, 2011 at 5:43 PM, shant. shantlingayya.sw...@gmail.com wrote: I have  application built using CGI, and  mod_perl , currently all CGI script are running under modperl1 using perlrun option , does they work in mod_perl 2  too or  need any changes ? You will find

Re: [ANNOUNCE] Apache2::AuthAny

2011-03-26 Thread Perrin Harkins
On Fri, Mar 25, 2011 at 8:15 PM, Kim Goldov kgol...@gmail.com wrote: The basic auth type links point to a directory with a random value appended. This random value is kept in the database and cycled with each logout. Very clever! Thanks for your contribution to CPAN. - Perrin

Re: How do i know mod_perl 2 built with backward compatible with mod_perl 1

2011-03-26 Thread Perrin Harkins
On Fri, Mar 25, 2011 at 4:56 PM, shant. shantlingayya.sw...@gmail.com wrote: How do i know mod_perl 2 built with backward compatible with mod_perl 1 Apache::compat is always included. That's the primary mechanism of backwards compatibility in mod_perl 2. - Perrin

Re: [ANNOUNCE] Apache2::AuthAny

2011-03-25 Thread Perrin Harkins
On Wed, Mar 23, 2011 at 4:52 PM, Kim Goldov kgol...@gmail.com wrote: We would like to release Apache2::AuthAny on CPAN. Please go ahead! How did you implement the logout for HTTP auth? - Perrin

Re: http-authentication on postgresql

2011-03-23 Thread Perrin Harkins
Have you tried loading Apache::AuthDBI first? It looks confused about where to find the sub you specified. - Perrin On Tue, Mar 22, 2011 at 11:37 AM, Michel Jansen michel.jan...@web-ict.com wrote: The Apache::AuthDBI package has changed Checkout the errors below! [Tue Mar 22 16:35:50

Re: Isolation level per transaction?

2011-03-04 Thread Perrin Harkins
On Fri, Mar 4, 2011 at 1:32 AM, Angela liu yyll2...@yahoo.com wrote: Can Isolation levels be set per transaction?  I know isolation levels can be set per session or globally, but not sure at transaction level. Given that you can only have one transaction at a time in a session, there is no

Re: Any guide/doc to upgrade to apache 2.2 from apache 1.3?

2011-03-02 Thread Perrin Harkins
http://perl.apache.org/docs/2.0/user/porting/compat.html - Perrin

Re: Is there any utility/tool ? to find mod_perl programs

2011-03-02 Thread Perrin Harkins
http://search.cpan.org/ - Perrin

Re: mod_perl2 vs Starman and other pure perl servers

2011-02-24 Thread Perrin Harkins
Thanks Fred. I'd love some NYTProfile output for mod_perl2 and Starman. - Perrin On Wed, Feb 23, 2011 at 9:35 PM, Fred Moyer f...@redhotpenguin.com wrote: I was curious about how mod_perl2 running Plack::Handler::Apache2 would stack up against some of the pure perl web servers out there in

Re: [Mason] ANNOUNCE: Mason 2

2011-02-24 Thread Perrin Harkins
On Thu, Feb 24, 2011 at 5:49 AM, xiaolan practicalp...@gmail.com wrote: oops is there any big player using Mason these days? Amazon.com. And this list is probably dated, but I'm sure some of them still exist: http://masonhq.com/?MasonPoweredSites I work on some sites using Mason, including

Re: Factoring out Apache::SizeLimit::Core?

2011-02-24 Thread Perrin Harkins
Oh, maybe Proc::Processtable is what you want. - Perrin On Thu, Feb 24, 2011 at 8:46 AM, Perrin Harkins per...@elem.com wrote: Hi Max, I see a couple of things out there, like Memory::Usage.  They don't look as comprehensive though.  It would be fine to take code from SizeLimit if you want

Re: Factoring out Apache::SizeLimit::Core?

2011-02-24 Thread Perrin Harkins
Hi Max, I see a couple of things out there, like Memory::Usage. They don't look as comprehensive though. It would be fine to take code from SizeLimit if you want to put it into some other module. It should probably be distributed outside of mod_perl to make it useful in the way you're

Re: Apache::DBI and DBD::mysql ping not working

2011-02-24 Thread Perrin Harkins
On Wed, Feb 23, 2011 at 4:07 PM, Daniel Manley daniel.man...@points.com wrote: well, I think I figured this one out on my own.  Though I've used Perl for a number of years, I've never gotten to the XS file coding.  and so after running this under perl debug, I finally get the hint that maybe

Re: perl -c fails with FilterSnoop example in docs

2011-02-23 Thread Perrin Harkins
On Tue, Feb 22, 2011 at 3:32 PM, Mark Hedges hed...@formdata.biz wrote: I copied this useful debugging filter at http://perl.apache.org/docs/2.0/user/handlers/filters.html#All_in_One_Filter It works fine, but I can't `perl -c` : Yes, the modules that are built to run in the context of Apache

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