You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Rohan Carly <se...@rohan.id.au> on 2009/01/10 01:45:59 UTC

mod_perl v2 documentation bugs: location of PerlOptions +Parent, PerlSwitches

I use mod_perl 2.0.3, Apache/2.2.4, Perl 5.8.8 on Linux. I encountered some 
problems that would have been easier to solve with more documentation.

1. mod_perl Directives Argument Types and Allowed Location

http://perl.apache.org/docs/2.0/user/config/config.html#mod_perl_Directives_Argument_Types_and_Allowed_Location

PerlOptions is listed as "DIR"...

>PerlOptions                  ITERATE    DIR

...but when I add
  PerlOptions +Parent

to my apache.conf, I get the error message:
    Invalid per-directory PerlOption: Parent


2. PerlSwitches

Doc here:
  http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlSwitches_

I also noticed that
  PerlSwitches -I/myliblocation
within a <virtualhost></virtualhost> did not throw an error message, but 
seemed to be silently ignored.
When I put it outside of the virtualhost section, it worked as expected.


-- 
Rohan Carly




Re: mod_perl v2 documentation bugs: location of PerlOptions +Parent, PerlSwitches

Posted by Mark Hedges <he...@scriptdolphin.org>.
On Sat, 10 Jan 2009, Rohan Carly wrote:

> I use mod_perl 2.0.3, Apache/2.2.4, Perl 5.8.8 on Linux. I encountered some
> problems that would have been easier to solve with more documentation.

There is a separate documentation mailing list:

  http://perl.apache.org/maillist/docs-dev.html

> > PerlOptions                  ITERATE    DIR
>
> ...but when I add
>  PerlOptions +Parent
>
> to my apache.conf, I get the error message:
>    Invalid per-directory PerlOption: Parent

http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_

... seems to apply to VirtualHost and Location blocks.

> I also noticed that
>  PerlSwitches -I/myliblocation
> within a <virtualhost></virtualhost> did not throw an error message, but
> seemed to be silently ignored.
> When I put it outside of the virtualhost section, it worked as expected.

If you use PerlOptions +Parent, does it work to do:

 <VirtualHost blah.com:80>
     PerlOptions +Parent
     <Perl>
         use lib '/var/blah';
     </Perl>
 </VirtualHost>

Or use the lib dir from a startup script called in the vhost block
with PerlRequire?

Mark