Re: perl rpm for CentOS/RHEL 5 available or advice

2008-12-16 Thread Fred Moyer
L 5? I've searched for an perl rpm > without threading but haven't found one for CentOS. Any pitfalls I should be > aware of? I have taken on this dragon of building a perl rpm. I was able to successfully make it happen, but I have some advice for you. Good luck, and don't

perl rpm for CentOS/RHEL 5 available or advice

2008-12-15 Thread Kurt Hansen
Hello, I've rolled my own perl, mod_perl, and Apache from source so far but plan to use rpms going forward to make it easier to setup and maintain multiple machines. As I understand rpms, I can either use the stock rpms from CentOS or create my own by getting the src.rpm, modifying the spec

Thanks for advice

2008-08-27 Thread Niels Larsen
I would like to thank those who helped me, Parrin Harkins and Jim Brandt i think it was, move to mod_perl. Some of the result is here, http://genomics.dk:8001/UTHCT and I learned. I start Apache in CGI mode when adding and debugging, and mod_perl mode when done. That is a pleasant way for me, an

Re: wrote Authen module dealing with cookies : now POST requests get corrupted. Any advice ?

2008-06-21 Thread Adam Prime
be used in an early Apache phase, and leave the input stream in an buggy state. I looked at a couple of other authentication modules using cookies, but they don't seem to use the Apache2::Cookie API. Is that the hypothesis correct ? Does anybody have good advice on that problem ? There i

wrote Authen module dealing with cookies : now POST requests get corrupted. Any advice ?

2008-06-19 Thread Dami Laurent (PJ)
leave the input stream in an buggy state. I looked at a couple of other authentication modules using cookies, but they don't seem to use the Apache2::Cookie API. Is that the hypothesis correct ? Does anybody have good advice on that problem ? Thanks in advance, Laurent Dami

Re: 200 vhosts, 5 sets of libs, 2GB RAM, 1 httpd (seeking advice)

2007-04-12 Thread Chris Hagglund
Thanks everyone for the suggestions. I appreciate it. Will ponder the options. Regards, Chris Hagglund. Perrin Harkins wrote: On 4/11/07, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: Are you aware of the dangers in namespace collision this can cause? I'd guess that he is, and that's why use

Re: 200 vhosts, 5 sets of libs, 2GB RAM, 1 httpd (seeking advice)

2007-04-11 Thread Perrin Harkins
On 4/11/07, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: Are you aware of the dangers in namespace collision this can cause? I'd guess that he is, and that's why uses PerlOptions +Parent. See http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_ The problem with that strategy is th

Re: 200 vhosts, 5 sets of libs, 2GB RAM, 1 httpd (seeking advice)

2007-04-11 Thread Jonathan Vanasco
On Apr 11, 2007, at 11:23 AM, Chris Hagglund wrote: I'm having trouble figuring out the right mix of configuration settings to do what I want, which is to have 5 separate sets libraries (DEV, TEST, PROD, developer1_personal_dev, developer2_personal_dev) get shared by a large number of vhos

Re: 200 vhosts, 5 sets of libs, 2GB RAM, 1 httpd (seeking advice)

2007-04-11 Thread Robert Landrum
Chris Hagglund wrote: The trouble is, as each vhost loads this config file for its plain and SSL vhost directives, the amount of memory being used seems to be going up, and restarting apache is taking longer and longer. Intead of loading it over and over again (twice for vhosts with ssl!) I am

200 vhosts, 5 sets of libs, 2GB RAM, 1 httpd (seeking advice)

2007-04-11 Thread Chris Hagglund
Hi all, I'm having trouble figuring out the right mix of configuration settings to do what I want, which is to have 5 separate sets libraries (DEV, TEST, PROD, developer1_personal_dev, developer2_personal_dev) get shared by a large number of vhosts. The way I am doing it now is each vhost Inc

Re: debugging advice

2006-08-08 Thread Perrin Harkins
On Mon, 2006-08-07 at 12:36 -0400, Jonathan Vanasco wrote: > does anyone have any pointers for this? I *think* that if i do all > the sets in a BEGIN block it should work the way I expect. Since the constant thing is kind of a hack and depends on prototypes, it is easy to break. The only way t

debugging advice

2006-08-07 Thread Jonathan Vanasco
Today I'm: migrating some code from dev to production porting some personal modules to CPAN I've run into an issue where I make heavy use of things like DEBUG >=3 && errorLogger('string') the issue being that I've got so much debug stuff going on, that I've tied it to

MP1 Proxy Advice

2006-04-12 Thread Anthony Gardner
Switch an email account to Yahoo! Mail, you could win FIFA World Cup tickets.

MP1 Proxy Advice

2006-04-12 Thread Anthony Gardner
 I need some advice. Scenario, I have a device that is connected to a "proxy". On the "proxy", I want to decrypt the POST request, see what's in there, if it's not what I want, then I want to pass it on its merry way in an encrypted form. If it is what I want, I wan

Re: advice needed: mod_perl reverse proxy

2005-05-10 Thread Stas Bekman
[EMAIL PROTECTED] wrote: [...] can anyone supply a simple example i then can check on our reverse proxy ? Try: t/response/TestApache/content_length_header.pm Though I haven't tried to call it from the filter, so may be Jeff's suggestion will work. Jeff's suggestion does indeed work. oddly enou

Re: advice needed: mod_perl reverse proxy

2005-05-10 Thread allan
Quoting Stas Bekman <[EMAIL PROTECTED]>: [EMAIL PROTECTED] wrote: Quoting Stas Bekman <[EMAIL PROTECTED]>: allan juul wrote: [...] Use must use $r->set_content_length(). See the mp2 test suite for examples. (i don't have that method available in my mod_perl2) You sure do :) % lookup set_content_

Re: advice needed: mod_perl reverse proxy

2005-05-09 Thread Stas Bekman
[EMAIL PROTECTED] wrote: hi i don't get it. the below filter does output the content alright it seems, but the setting of the header *value* is incorrect. (?) so the $f->print statement prints correct output but the calcualtion length(output) is incorrect (since it evaluates length of this exact

Re: advice needed: mod_perl reverse proxy

2005-05-09 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Quoting Stas Bekman <[EMAIL PROTECTED]>: allan juul wrote: [...] Use must use $r->set_content_length(). See the mp2 test suite for examples. (i don't have that method available in my mod_perl2) You sure do :) % lookup set_content_length To use method 'set_content_length'

Re: Advice

2005-05-08 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Compiling mp2 as non-root was a definite good bit of advice - make test was a success this time - no failures - thanks! This probably negates the entire error report I mailed before - when (i can anticipate some in the next ten minutes!) I run into problems again i'

Advice

2005-05-08 Thread henri
Compiling mp2 as non-root was a definite good bit of advice - make test was a success this time - no failures - thanks! This probably negates the entire error report I mailed before - when (i can anticipate some in the next ten minutes!) I run into problems again i'll be crawling back! Henri

Re: advice needed: mod_perl reverse proxy

2005-05-04 Thread allan
hi i don't get it. the below filter does output the content alright it seems, but the setting of the header *value* is incorrect. (?) so the $f->print statement prints correct output but the calcualtion length(output) is incorrect (since it evaluates length of this exact string "\n" ) why is tha

Re: advice needed: mod_perl reverse proxy

2005-05-04 Thread allan
Quoting Stas Bekman <[EMAIL PROTECTED]>: allan juul wrote: [...] Use must use $r->set_content_length(). See the mp2 test suite for examples. (i don't have that method available in my mod_perl2) You sure do :) % lookup set_content_length To use method 'set_content_length' add: use Apache2::

Re: advice needed: mod_perl reverse proxy

2005-05-03 Thread Stas Bekman
allan juul wrote: [...] Use must use $r->set_content_length(). See the mp2 test suite for examples. (i don't have that method available in my mod_perl2) You sure do :) % lookup set_content_length To use method 'set_content_length' add: use Apache2::Response (); http://perl.apache.org/docs

Re: advice needed: mod_perl reverse proxy

2005-05-03 Thread Jeff Ambrosino
I've had some similar issues, but gotten around them by using erro_headers_out. This worked for me, so you might give it a try: $f->r->headers_out->unset('Content-Length'); $f->r->err_headers_out->set('Content-Length' => length($NewBody)); Obviously "$NewBody" is whatever you're

Re: advice needed: mod_perl reverse proxy

2005-05-03 Thread allan juul
Stas Bekman wrote: allan juul wrote: hi stas Stas Bekman wrote: allan juul wrote: [...] But if you use a mod_perl filter you will still hit the issue of unknown content-length header. yes, of course that's true. there goes caching (: Not really. Nothing prevents you from buffering up the res

Re: advice needed: mod_perl reverse proxy

2005-05-01 Thread Stas Bekman
allan juul wrote: hi stas Stas Bekman wrote: allan juul wrote: [...] But if you use a mod_perl filter you will still hit the issue of unknown content-length header. yes, of course that's true. there goes caching (: Not really. Nothing prevents you from buffering up the response, process it, s

Re: advice needed: mod_perl reverse proxy

2005-04-30 Thread allan juul
hi stas Stas Bekman wrote: allan juul wrote: [...] But if you use a mod_perl filter you will still hit the issue of unknown content-length header. yes, of course that's true. there goes caching (: Not really. Nothing prevents you from buffering up the response, process it, set the content-leng

Re: advice needed: mod_perl reverse proxy

2005-04-21 Thread Alex Greg
On 4/21/05, Dominique Quatravaux <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > allan juul wrote: > > | > | so, is a mod_perl-enabled Apache acting as a proxy just a sick > | idea. it will proxy content and the filter will have to scan all > | response content >

Re: advice needed: mod_perl reverse proxy

2005-04-21 Thread Dominique Quatravaux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 allan juul wrote: | | so, is a mod_perl-enabled Apache acting as a proxy just a sick | idea. it will proxy content and the filter will have to scan all | response content A reverse-proxy in mod_perl is something I do for a living. When scaling up it qui

Re: advice needed: mod_perl reverse proxy

2005-04-20 Thread Stas Bekman
allan juul wrote: [...] i have fiddled with mod_proxy_html to rewrite stuff and that works ok, but have some features that doesn't mix well with our solution (content -type is encoded utf-8, where we proxy to iso-8859-1 for instance. or some html tags are stripped etc.) also caching becomes slo

Re: advice needed: mod_perl reverse proxy

2005-04-20 Thread allan juul
Stas Bekman wrote: allan juul wrote: hi i need advice before i waste too much time on the bleeding obvious. we have a setup where we will reverse proxy content both to our own backend-servers (which run on IIS) and other external servers which content we dont control. one of the reasons we proxy

Re: advice needed: mod_perl reverse proxy

2005-04-20 Thread Devin Murphy
Mod_rewrite? --- allan juul <[EMAIL PROTECTED]> wrote: > hi > > i need advice before i waste too much time on the > bleeding obvious. > > we have a setup where we will reverse proxy content > both to our own > backend-servers (which run on IIS) and other > ext

Re: advice needed: mod_perl reverse proxy

2005-04-20 Thread Stas Bekman
allan juul wrote: hi i need advice before i waste too much time on the bleeding obvious. we have a setup where we will reverse proxy content both to our own backend-servers (which run on IIS) and other external servers which content we dont control. one of the reasons we proxy is because of

advice needed: mod_perl reverse proxy

2005-04-20 Thread allan juul
hi i need advice before i waste too much time on the bleeding obvious. we have a setup where we will reverse proxy content both to our own backend-servers (which run on IIS) and other external servers which content we dont control. one of the reasons we proxy is because of speed/performance we

Re: Advice needed on custom webapp framework

2004-11-17 Thread Jonathan Vanasco
I'm pretty damn sure you did get that right! That would do EXACTLY what i want it to do! I'm gonna play around with that approach when i get home tonight. Thanks! On Nov 17, 2004, at 2:26 PM, Tom Schindl wrote: What you really need here when talking about Pattern-Programming is a "Factory-Class

Re: Advice needed on custom webapp framework

2004-11-17 Thread Tom Schindl
Jonathan Vanasco wrote: package Website1; my $DB = new Website1::DB(); # make a new ref for the website sub handler { my $r = shift; my $user = new Website::User( \$r, \$DB ); my $page = new Website::Page( \$user , \$DB ); my $html = $page->

Re: Advice needed on custom webapp framework

2004-11-17 Thread Jonathan Vanasco
Because i'm an idiot and didn't realize that I was doing that! I'm just used to passing refs everywhere. to get into the whole 'No More passing large vars around' thing, i just stopped passing everything but a ref Silly me! On Nov 17, 2004, at 1:25 PM, Tom Schindl wrote: I don't answer your que

Re: Advice needed on custom webapp framework

2004-11-17 Thread Tom Schindl
27;m creating a user AND a page with a ref to the DB handle - which is wasteful. And requires a lot of extra typing on my part. Ideally, I would have the packages in Website and WebAppFramework lookup the right DB for the Website I can't figure out how to do this in a coherent way thoug

Re: Advice needed on custom webapp framework

2004-11-17 Thread Jonathan Vanasco
Thanks! Right now, I should have been more clear, though -- I'm am kinda doing a bit of each approach you mentioned -- but i am in need of a little more help. I think what i want is more of your second approach right now... Let me elaborate for a moment WebAppFramework::DB.pm Base C

Re: Advice needed on custom webapp framework

2004-11-17 Thread Michael Schout
On Wed, 17 Nov 2004, jonathan vanasco wrote: > Ideally, I would have the packages in Website and WebAppFramework > lookup the right DB for the Website There are many ways to solve this problem. I'll show you 2 ways. I'll focus just on the database part to keep this as short as possible, but th

Advice needed on custom webapp framework

2004-11-17 Thread jonathan vanasco
ef to the DB handle - which is wasteful. And requires a lot of extra typing on my part. Ideally, I would have the packages in Website and WebAppFramework lookup the right DB for the Website I can't figure out how to do this in a coherent way though. Any advice would be excellent. -- Repor

Re: An advice

2004-05-28 Thread Perrin Harkins
On Thu, 2004-05-27 at 22:32, [EMAIL PROTECTED] wrote: > Somebody told me that if i use the data type "bytea" for my images > in postgresql it could be very heavy in the web, does mod_perl > have a good solution for that? If what you mean is that you plan to serve images out of your database, then

An advice

2004-05-27 Thread
Somebody told me that if i use the data type "bytea" for my images in postgresql it could be very heavy in the web, does mod_perl have a good solution for that? Thanks -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette:

Re: need load balancing advice

2003-10-16 Thread Stas Bekman
Ray Zimmerman wrote: At 5:10 PM +0100 10/16/03, Ged Haywood wrote: Have you searched the archives? There was a thread talking about load balancing earlier in the year, see http://groups.yahoo.com/group/modperl/message/49334 for example which might help. Thanks, I hadn't seen this thread. The p

Re: need load balancing advice

2003-10-16 Thread Ray Zimmerman
At 5:10 PM +0100 10/16/03, Ged Haywood wrote: Have you searched the archives? There was a thread talking about load balancing earlier in the year, see http://groups.yahoo.com/group/modperl/message/49334 for example which might help. Thanks, I hadn't seen this thread. The pointer to the URL Rewrit

Re: need load balancing advice

2003-10-16 Thread Ged Haywood
Hi there, On Thu, 16 Oct 2003, Ray Zimmerman wrote: > We have a web app which consists of some very expensive dynamic > pages. Network bandwidth isn't an issue, but web-server CPU load is. > [snip] > the front-end server proxies to in round-robin style. With our > typical load this has solved t

need load balancing advice

2003-10-16 Thread Ray Zimmerman
We have a web app which consists of some very expensive dynamic pages. Network bandwidth isn't an issue, but web-server CPU load is. We used to run a front-end webserver, back-end webserver and database server on the same machine. Recently we tried moving the back-end webserver to two separate