Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Apache/mod_perl on multiple servers

by hbm (Hermit)
on Oct 11, 2012 at 14:39 UTC ( #998460=perlquestion: print w/replies, xml ) Need Help??
hbm has asked for the wisdom of the Perl Monks concerning the following question:

I am planning a new multi-server, shared storage environment for a client's Apache/mod_perl app. In the past, I've installed Perl on shared storage and used it without a problem. But I haven't used mod_perl before, and the documentation makes me think I need one Perl/mod_perl installation per Apache instance.

What is the preferred approach for installing Apache/mod_perl on multiple servers? I'm reading Installing on Multiple Machines, and would like to hear others' experience.

Replies are listed 'Best First'.
Re: Apache/mod_perl on multiple servers
by cord-bin (Friar) on Oct 11, 2012 at 21:09 UTC
    I used perl on shared storage too with NFS but with mod_perl things are different, you will need to compile the module for your apache installation (not instance) and perl version. You can run different instances of apache with the same installation. If you have the same version of perl and apache on all your machines you can tweak a shared perl/mod_perl stuff but we talk hear about a module. If you are in a virtualized environment I would go with a template deployment, otherwise RPMs. You can then create debian packages, I don't know your OS and I hope is not windows.

      Thanks, cord-bin!

      This is Linux, and the same version of Perl and Apache will be used on all servers.

      So if I've installed Perl on the NetApp and Apache/mod_perl on one server; I can then install Apache on the other servers and enable mod_perl by copying the appropriate configuration settings?

        Not sure it applies to your situation, but you may want to look at the ProxyPass ProxyPassReverse directives in Apache

        see also mod_proxy ( eg : You can search the archives of mod_perl's users list on these subjects ( After you've done a little research, you'll get good answers on that list too.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://998460]
Approved by Old_Gray_Bear
Front-paged by Old_Gray_Bear
[ovedpo15]: can't I use just use lib $FindBin::Bin/../ bin" asuming that p2 is in ./bin and p1 is in /config? it says "cant find" altought p2 is
[moritz]: ovedpo15 "use lib" is only for .pm files
[moritz]: if you don't have .pm file, you might to use "require" or "do" with an absolute path

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2018-03-17 20:45 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (226 votes). Check out past polls.