Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Writing mod_perl in multi-developer environment

by clinton (Priest)
on Aug 24, 2007 at 20:11 UTC ( [id://634953]=note: print w/replies, xml ) Need Help??


in reply to Writing mod_perl in multi-developer environment

Probably the easiest way to do it is to run separate apache servers on the same machine. Use the same binaries, but start each apache with a per-user config file. Just limit the number of children that it starts so that you don't run out of memory

Alternatively, look at PerlOptions +Parent which was added for this purpose. From the docs:

+Parent: Create a new parent Perl interpreter for the given VirtualHost and give it its own interpreter pool (implies the Clone option).

A common problem with mod_perl 1.0 was the shared namespace between all code within the process. Consider two developers using the same server and each wants to run a different version of a module with the same name. This example will create two parent Perl interpreters, one for each <VirtualHost>, each with its own namespace and pointing to a different paths in @INC...

Clint

  • Comment on Re: Writing mod_perl in multi-developer environment

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://634953]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-04-18 16:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found