Re: preferred LB methods

2005-02-11 Thread Peter Leonard
Funny you should ask this - I got into a big discussion with Greg Whalin last week about this - the solution we use at Primedia is a BigIP, which is of course the expensive approach. Greg made the point that you can build a BigIP pretty easily, the only difference is the lack of fancy GUI-driv

Re: Custom Form using PerlHandler with redirection

2005-02-11 Thread [EMAIL PROTECTED]
On Thu, Feb 10, 2005 at 07:38:44AM -0500, Geoffrey Young wrote: > Pratik wrote: > >>tried on success authentication .. > >>$r->header_out('redirect.html'); > >>return REDIRECT; > > Shouldn't you be doing : > > > > use Apache::Constants qw(REDIRECT OK); > > [] > > [] > > $r-

Re: [mp2] utf8 data garbled on second + subsequent loads

2005-02-11 Thread angie ahl
I've looked into it further and stripped it right back to the start. Now I just have the unicode chars hard coded in the script and printing them to a table. I'm not even passing them through a form now, just printing them. In CGI mode it works perfectly and in MP2 mode it loads fine the first t

Re: [mp2] utf8 data garbled on second + subsequent loads

2005-02-11 Thread Roman Vašíček
It is strange. CGI works ok, but i was unable to get correct output even from module even first time. It seems to be ok for me after switching from perl-script to modperl handler. apache 2.0.48 mod_perl1.99_14 perl5.0.8 SetHandler modperl # perl-script does

[mp2] Memory not being shared

2005-02-11 Thread Kurt Hansen
Hello, I'm having problems getting modules loaded at Apache start to be shared across the children. Here's the output I get from Apache::VMonitor (I've editted down to just 2 children): Size Share VSize RSS M Elapsed LastReq Srvd - - - -- -- -- 12: 89.

Re: [mp2] utf8 data garbled on second + subsequent loads

2005-02-11 Thread angie ahl
Thanks I'll give that a go. What OS are you on out of interest. As I just decided to try in on one of my Linux servers and I'm not having that problem there at all. So I'm now wondering if its a bug in a specific version or maybe even OS X. Thanks Angie On Fri, 11 Feb 2005 13:56:55 +0100, Roma

Re: [mp2] utf8 data garbled on second + subsequent loads

2005-02-11 Thread Roman Vašíček
On Fri, Feb 11, 2005 at 01:56:55PM +0100, Roman Vašíček wrote: > It is strange. CGI works ok, but i was unable to get correct output even > from module even first time. It seems to be ok for me after switching > from perl-script to modperl handler. > > apache2.0.48 > mod_perl

[REMINDER] OSCon 2005 submissions deadline is Feb 13

2005-02-11 Thread Stas Bekman
Please don't forget to submit your talk. The deadline is Feb 13. http://conferences.oreillynet.com/cs/os2005/create/e_sess Thanks. -- __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl

Re: [mp2] Memory not being shared

2005-02-11 Thread Stas Bekman
Kurt Hansen wrote: Hello, I'm having problems getting modules loaded at Apache start to be shared across the children. Here's the output I get from Apache::VMonitor (I've editted down to just 2 children): Size Share VSize RSS M Elapsed LastReq Srvd - - - -- --

Re: [mp2] Memory not being shared

2005-02-11 Thread Kurt Hansen
Stas Bekman wrote: Kurt Hansen wrote: I'm having problems getting modules loaded at Apache start to be shared across the children. Here's the output I get from Apache::VMonitor (I've editted down to just 2 children): Size Share VSize RSS M Elapsed LastReq Srvd - - - -- -- --

[OSCon 2005] RFC

2005-02-11 Thread Philippe M. Chiasson
Here are a few possible talks I could make at OSCon. Feedback would be much appreciated ;-) Presentation: Building & Packaging mod_perl-2.0 Applications. Speaker: Philippe M. Chiasson <[EMAIL PROTECTED]> Duration: 45 minutes This session will provide good advice on how to package a mod_perl-2.0 app

Question: Integrating session user authentication/cgi interaction with static served items

2005-02-11 Thread Jonathan Vanasco
This is a bad subject, so let me elaborate on what is going on: I have a mod_perl webapp that handles content permissions for 'authenticated' and non-authenticated users. 'Authenticated' users are ones with a valid session-id from a login subroutine. These are not Apache style dialog box authen

Re: [OSCon 2005] RFC

2005-02-11 Thread Michael Peters
Philippe M. Chiasson wrote: Here are a few possible talks I could make at OSCon. Feedback would be much appreciated ;-) Presentation: mod_perl 2.0, The Next Generation I would definitely like to see this one. I think I hear the same question all of time. "Why mod_perl 2. What does it do that mod_

Re: [OSCon 2005] RFC

2005-02-11 Thread Pratik
Hi ! All of your presentations sounds really great and exciting. Some of the things that I would personally like to see are : 1. How is mod_perl compared to PHP/JSP ? And how for certain type of applications - where people would choose between PHP and JSP - or think about migrating from PHP to JS

Re: [OSCon 2005] RFC

2005-02-11 Thread Barry Hoggard
On Feb 11, 2005, at 1:43 PM, Philippe M. Chiasson wrote: Presentation: Building & Packaging mod_perl-2.0 Applications. Speaker: Philippe M. Chiasson <[EMAIL PROTECTED]> Duration: 45 minutes This session will provide good advice on how to package a mod_perl-2.0 application. Learn how to create a sel

Re: Question: Integrating session user authentication/cgi interaction with static served items

2005-02-11 Thread Perrin Harkins
On Fri, 2005-02-11 at 13:46 -0500, Jonathan Vanasco wrote: > After glancing around the mod_perl cookbook and practical mod_perl > books, I think i can simply call a mod_perl hook to set the user as > authenticated and (i imagine) use some sort of apache auth system. You would need to use somethi

setting up static and dynamic Apache 2.0 instructions for MP2 newbie

2005-02-11 Thread Barry Hoggard
I am pretty comfortable with setting up a static front end that proxies to a mod_perl server listening on 127.0.0.1 with Apache 1.x and mod_perl 1.x, and mod_rpaf. Are there any caveats I should know about before getting this working on 2.0 before I start setting it up? I have a stand-alone m

Re: [OSCon 2005] RFC

2005-02-11 Thread Jonathan Vanasco
On Feb 11, 2005, at 1:43 PM, Philippe M. Chiasson wrote: Presentation: Building & Packaging mod_perl-2.0 Applications. Speaker: Philippe M. Chiasson <[EMAIL PROTECTED]> Duration: 45 minutes This sounds useful, and I haven't seen much of it around. Presentation: From CGI to mod_perl 2.0, Fast! Spea

Re: [OSCon 2005] RFC

2005-02-11 Thread Perrin Harkins
On Fri, 2005-02-11 at 10:43 -0800, Philippe M. Chiasson wrote: > Presentation: Building & Packaging mod_perl-2.0 Applications. That sounds interesting to me personally. I helped work on packaging for Krang, and I'd like to hear your approach to this. > Presentation: mod_perl-2.0: Advanced Profil

Re: Question: Integrating session user authentication/cgi interaction with static served items

2005-02-11 Thread Jonathan Vanasco
On Feb 11, 2005, at 2:19 PM, Perrin Harkins wrote: We use mod_auth_tkt, but it only supports apache 1.x. I'd like to find something equivalent for 2.x. It is cookie-based and allows for different levels of auth. A pretty useful mod, especially since you can share auth with web apps written in PH

Re: [OSCon 2005] RFC

2005-02-11 Thread Perrin Harkins
On Fri, 2005-02-11 at 14:56 -0500, Jonathan Vanasco wrote: > Re: On Feb 11, 2005, at 2:04 PM, Pratik wrote: > 1. How is mod_perl compared to PHP/JSP ? And how for certain type of > applications - where people would choose between PHP and JSP - or > think about migrating from PHP to JSP - they have

Re: Question: Integrating session user authentication/cgi interaction with static served items

2005-02-11 Thread Perrin Harkins
On Fri, 2005-02-11 at 15:17 -0500, Jonathan Vanasco wrote: > But I don't see why I can't run mod_auth_tkt as an apache1 server > looking for validation for ht_docs, then recreate a compatible > authticket generator using mod_perl (which i'd imagine is just an md5 > of a shared secret + configura

Re: [mp2] Memory not being shared

2005-02-11 Thread Perrin Harkins
On Fri, 2005-02-11 at 12:54 -0500, Kurt Hansen wrote: > Thanks for the help. I do preload almost all the modules in the > startup.pl file. Here it is This looks okay to me. I have sometimes seen behavior like what you're experiencing on specific machines and not on others, while running identica

MP2 Forking - Untie socket

2005-02-11 Thread vsmori
Hello, There's an replacement for function mp1's Apache::SubProcess:cleanup_for_exec in mp2 ? Regards, Vx __ Acabe com aquelas janelinhas que pulam na sua tela. AntiPop-up UOL - É grátis! http://antipopup.uol.com.br/

Re: Apache.pm failed to load!

2005-02-11 Thread Perrin Harkins
On Thu, 2005-02-10 at 22:42 -0800, Vicki Brown wrote: > Everything has been running just fine until today when we accidentally > powered down the server (the hardware as well as the web server). > > Now all we get in the httpd error log is > Apache.pm failed to load! Ouch. Someone must have

Re: [OSCon 2005] RFC

2005-02-11 Thread Dan Brian
If your goal is to convince people to switch to mod_perl, I don't think this will work very well. People choose platforms for practical reasons, the most common being that they already have employees who know that platform. Relative ease of parsing a form has little to do with it, especially sin

Re: [mp2] Memory not being shared

2005-02-11 Thread Kurt Hansen
Perrin Harkins wrote: On Fri, 2005-02-11 at 12:54 -0500, Kurt Hansen wrote: Thanks for the help. I do preload almost all the modules in the startup.pl file. Here it is This looks okay to me. I have sometimes seen behavior like what you're experiencing on specific machines and not on other

Re: [mp2] Memory not being shared

2005-02-11 Thread Perrin Harkins
On Fri, 2005-02-11 at 16:23 -0500, Kurt Hansen wrote: > What do y'all think would be my most fruitful next step, besides testing > out a new machine? Should I switch to static mp2? Non-threaded perl? > Eliminating perl modules to see if there is one causing the problem? Prayer? I wonder if it ha

Re: [mp1 and mp2] Grokking memory

2005-02-11 Thread Perrin Harkins
On Thu, 2005-02-10 at 19:33 -0500, Richard F. Rebel wrote: > Does this report or help illustrate shared COW pages between apache > processes? I certainly though it did, but this work was done by my friend Doug Steinwand, not by me. I don't really know much more about it, but it always seemed to w

Re: [mp2] Memory not being shared

2005-02-11 Thread Kurt Hansen
Perrin Harkins wrote: I wonder if it has something to do with SMP. It would be good to try it on a kernel that is not compiled for SMP. It might be worth compiling your own kernel to test it. Running a non-threaded perl is always a good idea if you are not using threads. Performance will be bett

Re: MP2 Forking - Untie socket

2005-02-11 Thread Stas Bekman
vsmori wrote: Hello, There's an replacement for function mp1's Apache::SubProcess:cleanup_for_exec in mp2 ? http://perl.apache.org/docs/2.0/user/porting/compat.html#C__r_E_gt_cleanup_for_exec_ -- __ Stas BekmanJAm_pH --

Re: Apache.pm failed to load!

2005-02-11 Thread Vicki Brown
At 15:38 -0500 02/11/2005, Perrin Harkins wrote: >Do you have a backup of your application code? I'd suggest building a >fresh apache/perl/mod_perl, verifying that it works, and then putting >your code in place. There are plenty of docs on perl.apache.org to help >you with the install. That's wh

Re: [mp2] Memory not being shared

2005-02-11 Thread Stas Bekman
I plugged vmonitor in the mp2 test suite (which loads a lot of modules) and the conclusions are as following: perl Size Share VSize Rss non-threaded: 24.8M 8.3M 24.8M 20.6M threaded: 30.4M 8.6M 30.4M 26.2M both running perl 5.8.6 under prefork mpm. so you can see that while ther