Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

mod_perl and legacy code

by hesco (Deacon)
on Jun 12, 2009 at 05:50 UTC ( [id://770834]=perlquestion: print w/replies, xml ) Need Help??

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

I'd like to install RT (requiring mod_perl) on a server which is already running other perl applications. What risks do I face of breaking what I've already got and are there any guides for adapting legacy code to be mod_perl safe?

-- Hugh

if( $lal && $lol ) { $life++; }

Replies are listed 'Best First'.
Re: mod_perl and legacy code
by CountZero (Bishop) on Jun 12, 2009 at 06:05 UTC
    Unless RT needs versions of other modules that are mutually incompatible with the needs of already running applications, there should be no problem and even then with some juggling of use lib .. this can be made to work.

    Legacy code will probably need to be run under Apache::Registry. The mod_perl site has this documentation: Guide to Porting.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re: mod_perl and legacy code
by ikegami (Patriarch) on Jun 12, 2009 at 06:10 UTC

    mod_cgi and mod_perl can coexist on a server. If you continue to run your existing apps using mod_cgi, nothing will break cause nothing will change.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2024-04-23 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found