Use same PHP modules for PHP 7.3 as PHP 7.2?

SoftDux

Well-Known Member
May 27, 2006
1,023
5
168
Johannesburg, South Africa
cPanel Access Level
Root Administrator
Hi,

I see PHP7.3 is available through WHM but when I want to deploy it, I need to select all the PHP modules that I have selected on PHP 7.2 again. Is there any way to automatically select the same PHP and PEAR modules? I'd hate to have to manually do this on multiple servers.

Thanx
 

LucasRolff

Well-Known Member
Community Guide Contributor
May 27, 2013
142
95
78
cPanel Access Level
Root Administrator
You can create an EA4 profile with the packages you want, export it, and import it on all other servers :) The pear modules will be more tricky.
 

LucasRolff

Well-Known Member
Community Guide Contributor
May 27, 2013
142
95
78
cPanel Access Level
Root Administrator
Yes, I know this. While less tedious, it's still a lot of work. Surely it should be possible to re-use / copy the same PHP modules to a new PHP version?
It is.. When you select the new PHP version to enable it, it asks whether you wanna match the modules from other versions :)

You can also do a bash 1-liner:

Code:
rpm -qa --qf "%{NAME}\n" | grep ea-php72 | sed 's/php72/php73/g' | xargs yum install
 
  • Like
Reactions: cPanelLauren

SoftDux

Well-Known Member
May 27, 2006
1,023
5
168
Johannesburg, South Africa
cPanel Access Level
Root Administrator
It is.. When you select the new PHP version to enable it, it asks whether you wanna match the modules from other versions :)

You can also do a bash 1-liner:

Code:
rpm -qa --qf "%{NAME}\n" | grep ea-php72 | sed 's/php72/php73/g' | xargs yum install
Interested, the previous time I wanted to upgrade, it didn't have this option. But I see it now. Let's see how it goes.
 
  • Like
Reactions: cPanelLauren