Re: Perl in shared hosting environments

2011-09-23 Thread Mallory van Achterberg
On Thu, Sep 22, 2011 at 05:18:52PM -0700, Tatsuhiko Miyagawa wrote: > http://www.reddit.com/r/perl/comments/h6qqr/the_psgi_is_the_limit/ has > an amusing comment thread about the performance and benefit of PSGI > over existing wrappers like CGI.pm, started by "shi4" - you might need > to click the

Re: Perl in shared hosting environments

2011-09-22 Thread Tatsuhiko Miyagawa
On Wed, Sep 21, 2011 at 8:49 AM, Randal L. Schwartz wrote: >> "Dirk" == Dirk Koopman writes: > > > Dirk> Reason include: > > You forgot: > > * My application only requires content generation, and I can completely >  ignore the other 14 phases of serving, because I don't want custom >  redirec

Re: Perl in shared hosting environments

2011-09-22 Thread Tatsuhiko Miyagawa
On Wed, Sep 21, 2011 at 4:04 AM, Dirk Koopman wrote: >> Check out Plack: >> >> http://plackperl.org/   - https://metacpan.org/module/Plack >> >> >> http://blog.plackperl.org/2011/08/plack-basics-for-perl-websites-yapceu-2011.html >> >> Then you can switch between mod_perl / FastCGI / Starman / Tw

Re: Perl in shared hosting environments

2011-09-22 Thread Peter Vereshagin
Hello. 2011/09/21 12:04:47 +0100 Dirk Koopman => To l...@cuckoo.org : DK> > Then you can switch between mod_perl / FastCGI / Starman / Twiggy to your DK> > hearts content (we found Starman is REALLY fast). DK> DK> I am happy to be educated, but I found Plack introduced a load of DK> dependenc

Re: Perl in shared hosting environments

2011-09-21 Thread Tomas Doran
On 21 Sep 2011, at 16:49, Randal L. Schwartz wrote: You forgot: * My application only requires content generation, and I can completely ignore the other 14 phases of serving, because I don't want custom redirects, authentication, authorization, mime interpretation, and/or logging and oth

Re: Perl in shared hosting environments

2011-09-21 Thread Dirk Koopman
On 21/09/11 16:49, Randal L. Schwartz wrote: "Dirk" == Dirk Koopman writes: Dirk> Reason include: You forgot: * My application only requires content generation, and I can completely ignore the other 14 phases of serving, because I don't want custom redirects, authentication, authoriz

Re: Perl in shared hosting environments

2011-09-21 Thread Randal L. Schwartz
> "Dirk" == Dirk Koopman writes: Dirk> Reason include: You forgot: * My application only requires content generation, and I can completely ignore the other 14 phases of serving, because I don't want custom redirects, authentication, authorization, mime interpretation, and/or logging

Re: Perl in shared hosting environments

2011-09-21 Thread David Cantrell
On Wed, Sep 21, 2011 at 11:21:06AM +0100, Dirk Koopman wrote: > * mod_perl processes seem(ed) to get bigger and bigger and need(ed) > to be killed every few 10s of requests to keep memory usage in > bounds. We needed many more (bigger) machines to run mod_perl v > other webservers and FastCG

Re: Perl in shared hosting environments

2011-09-21 Thread Dirk Koopman
On 21/09/11 11:38, Leo Lapworth wrote: On 21 September 2011 11:21, Dirk Koopman wrote: For what it is worth, I stopped using mod_perl (as well as Apache) several years ago and moved onto other webservers and FastCGI. As long as your not completely integrated to mod_perl hooks, e.g. your

Re: Perl in shared hosting environments

2011-09-21 Thread Leo Lapworth
On 21 September 2011 11:21, Dirk Koopman wrote: > > For what it is worth, I stopped using mod_perl (as well as Apache) several > years ago and moved onto other webservers and FastCGI. > As long as your not completely integrated to mod_perl hooks, e.g. your mostly using it for precompile speed

Re: Perl in shared hosting environments

2011-09-21 Thread Dirk Koopman
On 21/09/11 09:55, Tomas Doran wrote: On 21 Sep 2011, at 09:22, Philip Newton wrote: And I agree with Lesley in assuming the answer is "no" - I doubt that you can modify Apache that way to "inject" a module into it from your section of a shared hosting environment. Oh, yes, of course! Your

Re: Perl in shared hosting environments

2011-09-21 Thread Tomas Doran
On 21 Sep 2011, at 09:22, Philip Newton wrote: And I agree with Lesley in assuming the answer is "no" - I doubt that you can modify Apache that way to "inject" a module into it from your section of a shared hosting environment. Oh, yes, of course! Your perl script isn't going to be able to e

Re: Perl in shared hosting environments

2011-09-21 Thread Philip Newton
On Wed, Sep 21, 2011 at 09:28, Tomas Doran wrote: > > On 21 Sep 2011, at 07:51, lesleyb wrote: >> >> I'm just left wondering how far one could exploit this?  I'm guessing >> mod_perl >> would still be out of the question. And probably mod_fcgi. > > Taking fastcgi first - fastcgi just runs a perl s

Re: Perl in shared hosting environments

2011-09-21 Thread Tomas Doran
On 21 Sep 2011, at 07:51, lesleyb wrote: The end effect is to prepend the directories in @INC with the directory $b__dir, which may or may not be the user's home directory, pushing two new ones on the front of @INC and including the original @INC as the last set of directories to be sear

Perl in shared hosting environments

2011-09-21 Thread 'lesleyb'
Hi I came across this script on the MT forums my $b__dir = (-d '/home4/myhome/perl'? \ '/home8/myhome/perl': ( getpwuid($>) )[7].'/perl'); unshift @INC,$b__dir.'5/lib/perl5', $b__dir.'5/lib/perl5/x86_64-linux-thread-multi', map { $b__dir . $_ } @INC; from som