Re: disabling directives in .htaccess files

2012-02-13 Thread Tuomo Salo
On Fri, Feb 10, 2012 at 08:50:21AM -0500, Aaron Knister wrote: > this is a personal web hosting setup for 80,000+ individual sites (think > mod_userdir). I might be missing something, but does this not seem to be inherently impossible? 80 kilosites sharing a perl interpreter that persists any g

Re: Is it me or is mod_perl extremely dangerous?

2011-12-07 Thread Tuomo Salo
On Tue, Dec 06, 2011 at 03:55:54PM -0500, Desilets, Alain wrote: > package MyClass; > > my $class_level_attribute; > > sub new { > my ($class) = @_; > $self->{instance_level_attribute} = undef; > bless $self, $class; > return $self; > } > > > The idea here is

Re: I think AuthCookie(DBI) is causing segfaults?

2010-11-11 Thread Tuomo Salo
On Thu, Nov 11, 2010 at 12:58:23AM +0100, Tosh Cooey wrote: > Maybe Apache MPM prefork? How can I tell? Running httpd with the -l (ell) command line option will print a list of module names. If you see "prefork.c", you are using prefork, and if you see "worker.c", you are using the threaded MPM

Re: Strange process behavior

2010-09-21 Thread Tuomo Salo
Are you getting "variable will not stay shared" messages in your error_log? If you are, you might be using a lexical variable outside of the function it was defined in. When this happens, you'll get a closure, which is a useful tool sometimes, but for us regular people it means that old data will

Re: Odd error from subprogram in 'required'

2009-09-18 Thread Tuomo Salo
Bruce Johnson wrote: > I'm getting this error: > > [Thu Sep 17 10:52:13 2009] [error] Undefined subroutine > &ModPerl::ROOT::ModPerl::PerlRunPrefork::home_oraweb_perl_avi_login_2epl::PrintHeader > called at /home/oraweb/perl/avi/login.pl line 43, line 71.\n > [Thu Sep 17 10:52:13 2009] [error] [c

Re: HTTP headers

2005-03-21 Thread Tuomo Salo
Octavian Rasnita wrote: print "Content-type: text/html\n\nTestare\n"; $q->redirect("http://localhost/";); This should print the Content-type: text/html header, then the word "testare" in the body, then the word "Location: http://localhost/";, but it doesn't happen this way. I think this is a "featu

[mp2] return value of print can break legacy apps

2004-12-10 Thread Tuomo Salo
)documented features, and the symptoms can be completely random. The natural workaround is of course to write less stupid code: if($error) { print($q->redirect("url_to_error_page")); return; } However, this could be a thing worth mentioning in a "possible pitfalls&