Michael Peters wrote:
Phil Carmody wrote:
I'm currently running only Apache 1.3 (mod_perl 1.22) and am wondering what kinds of issues there might be if I were to want to migrate my server to Apache 2.x and mod_perl 2. Are there any things that I can do (or avoid) to make such a migration as close to trivial as possible.

http://perl.apache.org/docs/2.0/user/porting/compat.html

The biggest problem that I've seen is that not all of the Apache:: modules on CPAN have been ported to Apache2 or been setup to work for both. Most of the big ones have so it depends on what you're using. And it's not that hard to port one of them if you need to.


Another few tips :
Use the latest Perl, the latest Apache2, and the latest mod_perl2 you can find. That is to avoid another round of renaming. Then, install this preferably on a new system, do not overwrite your Apache1 stuff. Start with a clean Apache2 config, and bring over your customised configuration bits and associated modules little by little. Do not try to copy over your http.conf from 1 to 2, and correct it, that will only bring you misery. As Michael said, use the Apache2 versions of the modules if they are available; if they are not, anyway use the latest versions you can find.
Things like CGI are no problem.
If you have developed your own modules in pure perl, usually it boils down to fixing the "use Apache::xxxx" to "use Apache2::xxxx", but there are some more things. If you do it gradually, you will quickly learn what to look for, and it will take less time in the end.

If you are doing this under Linux, you may want to make sure that you have a relatively recent version to start with. Otherwise, if you use the package manager to install the software, it may install some outdated versions, and you'll find your self having to redo things again.


Reply via email to