Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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.

Comment on Apache/mod_perl on multiple servers
Re: Apache/mod_perl on multiple servers
by cord-bin (Pilgrim) 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 : http://marc.info/?l=apache-modperl&m=115557308908428&w=2). You can search the archives of mod_perl's users list on these subjects (http://perl.apache.org/maillist/modperl.html). After you've done a little research, you'll get good answers on that list too.

Log In?
Username:
Password:

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
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2014-10-22 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (118 votes), past polls