Re: Trouble with mod_perl API: E.g., Apache2::Directive::conftree()

2014-05-16 Thread John Dunlap
Why can't you just do this? sub handler { my ($apache) = @_; my $documentroot = $apache->document_root; } On Tue, May 13, 2014 at 8:24 PM, Worik Stanton wrote: > I am having a lot of trouble with mod_perl APIs. > > The short of it is that when I say: > > use Apache2::Directive (); > m

Re: Trouble with mod_perl API: E.g., Apache2::Directive::conftree()

2014-05-15 Thread Worik Stanton
On 15/05/14 05:16, Perrin Harkins wrote: > Hi Worik, > > Your ErrorLog question isn't really a mod_perl issue, but I'd suggest > you check for warnings at startup. You may not have APACHE_LOG_DIR > defined, etc. > The ErrorLog issue only happens under mod_perl. Given that all logs were in the a

Re: Trouble with mod_perl API: E.g., Apache2::Directive::conftree()

2014-05-14 Thread Perrin Harkins
Hi Worik, Your ErrorLog question isn't really a mod_perl issue, but I'd suggest you check for warnings at startup. You may not have APACHE_LOG_DIR defined, etc. I don't use Apache2::Directive, so I can't vouch for it. I prefer simpler things like PerlSetVar. There is an automated test for this