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

This is more of a systems admin question. We have a perl app on a windows server with activeperl 5.8. I need to move the app to a new server. I have installed the same version of active perl on the new server and copied the web directories. But the app is failing because it does not have all the modules (or packages) installed that the app requires. I tried copying the whole perl directory from the old server to the new but that did not work. I quess the perl modules have to be installed and cannot simply be copied from one server to another? Is there an easier way to migrate a perl app from one server to another, perhaps a tool that helps with this? Or is there an easier way of seeing all the modules installed on the first so I can install them on the second. Thanks.
  • Comment on moving a perl web app to another server

Replies are listed 'Best First'.
Re: moving a perl web app to another server
by Corion (Patriarch) on Jun 08, 2009 at 17:01 UTC

    In theory, copying the whole perl/ directory to the new machine should Just Work, but maybe you have other, external dependencies, like the database driver, ODBC connections or other libraries that are not installed below the perl/ directory.

    If you go the route of doing a fresh install, the cpan utility has the autobundle command, which will create a text file that lists all modules installed on that old installation of Perl. You can then feed that old bundle to the cpan program on the new installation, and it will install all modules listed in the bundle.