Re: FW: Apache::DBI Failed due to +GlobalRequest

2009-09-12 Thread Brad Van Sickle
I've run into this before. It's a bug in v1.07 of Apache::DBI Open up the Apache/DBI.pm source file (on one of my test systems it's installed in /usr/lib/perl5/site_perl/5.8.8/Apache/DBI.pm) aind the following block of code: / if (!$Rollback{$Idx}) { my $r; if (MP2) {

Re: Why people not using mod_perl

2009-09-16 Thread Brad Van Sickle
This is a mod_perl list, so I would expect to see Perl championed pretty heavily, but Java, .net and there ilk are undoubtedly *the* choice for large web applications. I'd like to get into some discussion as to why almost all *large* sites choose these languages. I don't have any experienc

Re: Ways to scale a mod_perl site

2009-09-18 Thread Brad Van Sickle
3) Being enabled by item 2, add more webservers and balancers 4) Create a separate database for cookie data (Apache::Session objects) ??? -- not sure if good idea -- I've never seen the need to do that. In fact, I would suggest you drop sessions altogether if you can. If you need any per-se

Re: Updating cookies in header during request processing

2009-09-18 Thread Brad Van Sickle
All due respect, but hat's a little condescending... I generally cringe when I hear anyone advocating that there is one "right" way to do things that should be used in every instance In addition to Michael's points (which are totally valid) I would add that your solution is great for small/

Re: Custom INC per-directory

2009-10-20 Thread Brad Van Sickle
I don't know the specifics of your project so it's quite possible that I'm missing something, but this all seems like an incredibly bad idea. Sure you can knock some cringe inducing code together and get it to technically work, but the very fact that you need to resort to these sort of unortho

Re: How to get a file listing

2010-02-20 Thread Brad Van Sickle
Apache knows the context, PERL does not. Fully qualify that directory name and it should work. On 2/20/2010 1:01 PM, ceauke wrote: Hi there Here is my code. I get the IMG displayed but also the perl error: No such file or directory. " #!E:\ea12\apps\tech_st\10.1.2\perl\5.6.1\bin\MSWin32-x

mod_perl in larger scale environments

2010-04-14 Thread Brad Van Sickle
Hello I have a lot of experience in large scale web applications using Java and Websphere, but I now find myself needing to scale a web application built on mod_perl, and I have some questions about best practices for doing that since I don't have any sort of deployment manager or an intellig

Re: mod_perl in larger scale environments

2010-04-14 Thread Brad Van Sickle
on my web layer. I'm doing a few things with a few other modules ( mod_rewrite for example) in addition to mod_proxy, and from what I was able to find in my initial look, I didn't see any support for some of those types of things. On 4/14/2010 5:02 PM, Fred Moyer wrote: On Wed, Apr

Re: mod_perl in larger scale environments

2010-04-14 Thread Brad Van Sickle
ce to serve static content (css/js/images/etc...) from the same piece of technology without proxying those requests to another Apache instance running on the same host (or something) Thanks for all the help! On 4/14/2010 5:48 PM, Perrin Harkins wrote: On Wed, Apr 14, 2010 at 5:33 PM, Brad Van S

Re: mod_perl in larger scale environments

2010-04-14 Thread Brad Van Sickle
d memory and shared DB and messaging connections/buses... many of these can be simulated in mod_perl. (Apache::DBI, etc...) On 4/14/2010 6:27 PM, Cosimo Streppone wrote: In data 14 aprile 2010 alle ore 22:57:06, Brad Van Sickle ha scritto: My first question relates to quality of servic

Re: mod_perl in larger scale environments

2010-04-15 Thread Brad Van Sickle
simo Streppone wrote: In data 15 aprile 2010 alle ore 05:11:15, Brad Van Sickle ha scritto: LVS does sound interesting but in your infrastructure layout aren't your single LVS load balancers single points of failure? I simplified a bit too much :) Every LVS machine h

Re: Changing browser URL based on condition

2011-07-11 Thread Brad Van Sickle
Agree with the consensus. The URI should be descriptive of the function, so any requests to /login should be from users who are attempting to... login. The home page should be housed under a separate URL (/home for example) After the user has authenticated, the login module should redirect

Re: Trouble with script execution

2014-05-18 Thread Brad Van Sickle
Yep you need to restart to see your changes. Believe it or not, that's one of the *nice* things about mod_perl. Instead of compiling the code during each execution as PERL does when executed as a purely interpreted language , mod_perl causes each Apache child process to compile the code durin

Re: Sharing read/WRITE data between threads?

2021-08-25 Thread Brad Van Sickle
I've shared read-only data across threads many times a cheap and easy caching mechanims, but as I'm sure you've found in your research, the "copy-on-write" methodology employed by mod_perl prevents you from doing that for mutable data and I'm not aware of a way around that without fundamental c