How to copy all PHP Extensions / Applications to new server?

Arkaic

Active Member
Jun 23, 2015
37
7
58
United Kingdom
cPanel Access Level
Root Administrator
I'm migrating servers and one thing I've never found a solution to is;

How do we efficiently copy all the installed PEAR / PECL modules that are on one server and install on the new one?

For example in WHM -> Software -> Module Installers -> PHP Extensions and Applications Package

We have a long list of these that we'd like to re-install on the new server so ensure there are no missing dependencies for websites.

Is there an "easy" way to list all of these and install via CLI?

Likewise, if we want to install all Extensions/Applications that are currently installed on PHP 7.1 and install it on PHP 7.2, how could we efficiently do this other than typing in each package into the Install box?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
5,447
697
313
cPanel Access Level
Root Administrator
Hey there! I don't have an automated method for either of these at this time. It would likely be a bit quicker to install these over the command line than working through the EA4 interface, but these would both be excellent feature requests if you'd like to submit those using the link in my signature.
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
617
199
343
cPanel Access Level
DataCenter Provider
It's not automatic, but you can create a phpinfo page on the old server and then compare it to a phpinfo page on the new server. it will list all the modules installed section by section.