MP2: trouble in PerlSection: how to do multiple "PerlSetVar"?

2004-04-01 Thread Will Trillich
"PerlSetVar takes two arguments"... business. what's the workaround? didn't see anything like this in our searchings through the mod_perl list archives... we also tried "grep -ri 'takes two arguments' /usr/lib/perl5/Apache2" and turned up nothing. w

Re: MP2: trouble in PerlSection: how to do multiple "PerlSetVar"?

2004-04-04 Thread Will Trillich
up some perl code to eval, that would contain the whole handler code that creates the mason object with all the necessary parameters. hmm! that could work... but it's a special-case solution to this situation. is there no section interface for this type of thing? -- will trillich http://w

Re: MP2: trouble in PerlSection: how to do multiple "PerlSetVar"?

2004-04-05 Thread Will Trillich
"MasonDeclineDirs 0",], = ], but now, trying it without the subarrays, PerlSetVar => [ "MasonCompRoot/var/www/$site", "MasonDataDir /var/cache/mason/$site", "MasonAutoHandlerName $autohandlername",

Re: MP2: trouble in PerlSection: how to do multiple "PerlSetVar"?

2004-04-05 Thread Will Trillich
new thread Subject: sections: "*:80 has no VirtualHosts" error > |-+----> > | | Will Trillich| > | | <[EMAIL PROTECTED]| > | | om> | > | |

sections: "*:80 has no VirtualHosts" error

2004-04-05 Thread Will Trillich
ons similar to ours, but no definitive answer has crossed our radar just yet... we also found the source code to "vhost.c" -- and the error message comes from function "remove_unused_name_vhosts()" which heavily implies that when the error message shows up, the vhost goe

Re: sections: "*:80 has no VirtualHosts" error

2004-04-07 Thread Will Trillich
On Tue, Apr 06, 2004 at 12:10:08PM -0700, Philippe M. Chiasson wrote: > On Mon, 2004-04-05 at 12:14 -0500, Will Trillich wrote: > > okay. we're trying to use to configure virtual hosts -- here's > > Data::Dumper showing the %VirtualHost hash: > > At a quick glanc

sections: "*:80 has no VirtualHosts" error

2004-04-11 Thread Will Trillich
> On Mon, 2004-04-05 at 12:14 -0500, Will Trillich wrote: > > okay. we're trying to use to configure virtual hosts > > -- here's Data::Dumper showing the %VirtualHost hash: %VirtualHost = ( '*:80' => [ { #[snip] 'ServerName' => &#

MP2: how to do multiple "PerlSetVar" from with sections?

2004-04-11 Thread Will Trillich
#snip PerlSetVar MasonCompRoot/var/www/mysite PerlSetVar MasonDataDir /var/cache/mason/mysite PerlSetVar MasonAutoHandlerName myautohandlername PerlSetVar MasonDHandlerNamemydhandlername PerlSetVar MasonDeclineDirs 0

"*:80 has no VirtualHosts" but only via perl!

2004-04-24 Thread Will Trillich
d of *:80. same result: here (debian sarge, apache 2.0) it's fine as httpd.conf directives, but as perl-configured code, it belches "no virtualhosts". why? Server: Apache/2.0.48 (Debian GNU/Linux) mod_perl/1.99_12 Perl/v5.8.3 mod_ssl/2.0.48 OpenSSL/0.9.7c -- will trillich

Re: "*:80 has no VirtualHosts" but only via perl!

2004-04-30 Thread Will Trillich
still having trouble: On Mon, Apr 26, 2004 at 11:08:15AM -0400, Brian Reichert wrote: > On Sat, Apr 24, 2004 at 11:47:15PM -0500, Will Trillich wrote: > > with httpd.conf directives, these virtualhosts work just fine. > > but trying to use perl to make them more universally >

apache2 -t... can't find Apache.pm?

2006-02-05 Thread will trillich
apache2) so why can't it get its electronic hands on /usr/lib/perl5/Apache.pm? argh! (and, isn't that second-to-last "dot" entry a security-breach-lying-in-wait?) -- will trillich "Their iz ate errers in these sentance."

Re: apache2 -t... can't find Apache.pm?

2006-02-05 Thread will trillich
g > file, right? so the line isn't removed. reasonable approach, but: # cat /etc/apache2/mods-enabled/perl.conf PerlModule Apache2 # even if it isn't needed, why can't it find it in the @INC listed (below) but i *can*? > On 2/6/06, will trillich <[EMAIL PROTECTED]>

Re: apache2 -t... can't find Apache.pm?

2006-02-06 Thread will trillich
On 2/6/06, Ben Kim <[EMAIL PROTECTED]> wrote: > 1. Are the permissions right? when launching apache as root, permissions aren't very significant, are they? > 2. Just curious, by any chance did you update mod_perl from 1.99xxx to > 2.0? this was on a fresh debian setup: apt-get install apache2-

Re: A question for the newbies

2006-02-17 Thread will trillich
t available at the time, php was born. that's my theory, anyway, and i'm sticking to it. i certainly don't detest php (even made some money off of php) it's just that i just like the thoroughness of perl much better. -- will trillich "Their iz ate errers in these sentance."

Re: [offtopic] perl newbie frustrated

2006-07-13 Thread will trillich
pplied to hashes: %x = (one=>1, nine=>9, fifty=>50); $x = {one=>1, two=>2, structure=>{one_one=>1.1,nine_two=>9.2},more=>'yup'} print $x->{structure}->{one_one}; or, more succinctly... print $x->{structure}{one_one}; see man perlref or man perlreftu

Re: [offtopic] perl newbie frustrated

2006-07-13 Thread will trillich
um, lemme clarify a bit there-- On 7/13/06, will trillich <[EMAIL PROTECTED]> wrote: () is a LIST of values, perfect for plopping into an array: @a = (qw/one two three/, 22/7, pi()) a list is a series of values. an array is a place-holder for a series of values. (1..99,'a&#

Re: [offtopic] perl newbie frustrated

2006-07-13 Thread will trillich
On 7/13/06, Matthew <[EMAIL PROTECTED]> wrote: And for cookie points, if anyone knows how to do a real struct in XMLRPC, that would be awesome. how about SOAP::Lite? -- will trillich "The great enemy of clear language is insincerity." -- Eric Arthur Blair (George Orwell)