Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

mod_perl sharing modules with other accounts when I don't want it to

by ultranerds (Hermit)
on Mar 19, 2019 at 15:05 UTC ( [id://1231432]=perlquestion: print w/replies, xml ) Need Help??

ultranerds has asked for the wisdom of the Perl Monks concerning the following question:

FYI I have already posted this on SO, but not had any replies yet:

https://serverfault.com/questions/958937/mod-perl-seems-to-be-sharing-modules-across-user-accounts

I'm hoping people here will be more knowledgeable :) Rather than repeating everything I posted on the other forum, I won't put too much.

Basically the issue I'm having is that mod_perl is sharing modules from one <VirtualHost> to another (and I don't want this). I was reading that doing something like this should partition it:

PerlOptions +Clone PerlSwitches -Mlib=/home/steampunkcom/web/uk.steampunkjunkies.com/lib


...but while mod_perl works, it still shares the modules :/ Am I missing something?

Thanks

Andy
  • Comment on mod_perl sharing modules with other accounts when I don't want it to
  • Download Code

Replies are listed 'Best First'.
Re: mod_perl sharing modules with other accounts when I don't want it to
by wazoox (Prior) on Mar 19, 2019 at 17:32 UTC

    From mod_perl documentation, it appears that you may be missing additional parameters:

    <VirtualHost ...> PerlOptions +Clone PerlInterpStart 2 PerlInterpMax 2 </VirtualHost>

    Default is always to share the perl interpreter.

      Thanks. So are you suggesting I just put in:

      PerlOptions +Clone PerlInterpStart 2 PerlInterpMax 2


      Or merge it with something like:

      PerlOptions +ParseHeaders +Parent PerlSwitches -Mlib=/home/steampunkcom/web/foo.co.uk/lib


      Also, should the PerlOptions be in the <VirtualHost>, or <Directory> . I'm pretty sure I tried the +Clone bit, but it still seemed to have the same issue of sharing with other accounts

      Thanks

      Andy

        The perl interpreter options only apply at the vhost level. As the default is "always share", I'm pretty sure you must set these options for all vhosts, too.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1231432]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found