Re: [EMAIL PROTECTED] mod_perl and vhost configs

2008-08-20 Thread Peter Milanese
>It looks like "$include" is getting the value "Include" without aninclude file >name. >The reason is very simple. You forgot to declare >$include as local. You're not kidding! It is very temperamental. I resolved the issues, and this portion appears to be working well. I'll attach the resu

Re: [EMAIL PROTECTED] mod_perl and vhost configs

2008-08-20 Thread Krist van Besien
On Wed, Aug 20, 2008 at 14:42, Peter Milanese <[EMAIL PROTECTED]> wrote: > $parms->add_config() has failed: Include takes one argument, Name of the > config > file to be included at > /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Apache2/PerlSections.pm > line 215.\n It looks like "

Re: [EMAIL PROTECTED] mod_perl and vhost configs

2008-08-20 Thread Peter Milanese
Thanks Krist- >So write your perl sections as if you had "use strict;", and declare >all your variables local using "my", unless you want to directly pass >something to apache. >So use: >my $s = Apache2::ServerUtil->server; >You need to do this each time you introduce a local variable, eg: >my

Re: [EMAIL PROTECTED] mod_perl and vhost configs

2008-08-20 Thread Krist van Besien
On Tue, Aug 19, 2008 at 17:58, Peter Milanese <[EMAIL PROTECTED]> wrote: > Not so sure where this break is, or even if my config is done correctly. It > seems to be pretty basic perl, of which I'm pretty veteran. Does anyone know > what's going on ? Here's the code: One thing I found out when imp

Re: [EMAIL PROTECTED] mod_perl and vhost configs

2008-08-20 Thread Torsten Foertsch
On Tue 19 Aug 2008, Peter Milanese wrote: > >     use Sys::Hostname; >     use File::Basename; >     use Apache2::ServerUtil; >     $s = Apache2::ServerUtil->server; Try to add use Apache2::ServerRec (); somewhere before this last line. Torsten -- Need professional mod_perl support? Just hi

[EMAIL PROTECTED] mod_perl and vhost configs

2008-08-19 Thread Peter Milanese
Greetings - I'm having a great time with this. We're implementing our new infrastructure, which is backended with a san via clustered nfs. Thus, I figured why not do some dynamic configuration, right? Do, I have this code, which is just the vhost include. It's below. When I start the httpd