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
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
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
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
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
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
)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&