change default PHP version in MultiPHP Manager for "NEW DOMAINS ONLY"

avinash.pudota

Well-Known Member
Jan 27, 2013
55
6
58
India
cPanel Access Level
Root Administrator
Hi,
Currently the default PHP version in MultiPHP Manager is PHP 5.6. I need to change it to PHP 7.3 (already installed via EA4 and is used by few other domains without any issues)

My issue is, i want to leave the existing "inherit" domains at PHP 5.6 and all newly created cPanel accounts must use PHP 7.3

If there is no possible way, i will continue with first changing the PHP version to 7.3 and check all websites which are having issues with the latest version and revert them to 5.6 but that would be a very log job.
 

PenguinInternet

Well-Known Member
PartnerNOC
Jun 20, 2007
194
26
78
Cardiff, UK
cPanel Access Level
DataCenter Provider
Twitter
You'll need to change the ones set to inherit and therefore using PHP v5.6 to actually specify using v5.6 - this doesn't take long in the PHP manager in WHM as you can sort by PHP version. You can switch the default version to 7.3 which will be used for all newly created accounts.
 
  • Like
Reactions: cPanelLauren

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Exactly as @PenguinInternet states, domains set to inherit will inherit the system's default version. So if you set them to 5.6 specifically then set the system default to 7.3, new domains by default will get the inherited/system default version.
 

avinash.pudota

Well-Known Member
Jan 27, 2013
55
6
58
India
cPanel Access Level
Root Administrator
Thank you, it worked. There was a minor issue, if i manually change a single domain php version in MultiPHP Manager, the sorting order reverts to default and the pagination goes back to page 1 . Also, the browser freezes if i set more than 50 in page size.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
The reordering is a part of how that UI functions but the freezing sounds like a memory issue, and I'd be curious to see how much memory the system has available when it freezes like that.
 

avinash.pudota

Well-Known Member
Jan 27, 2013
55
6
58
India
cPanel Access Level
Root Administrator
I don't remember exact values. The total memory of Local system is 8 GB with around 20 chrome tabs open at that time(processor is around 8yrs old dualcore). The server has total of 32 GB with 16GB free.
Later i tried on another system, and it worked well without any issues even at 100 entries per page