flashweb

Well-Known Member
Mar 13, 2003
256
2
168
cPanel Access Level
Root Administrator
Currently PHP 5.6 is set as default on my server, many sites already using it.

I want all new web sites i create on this server use PHP 7.2

Now if i try change default PHP version, then it will switch all current sites to new default PHP version, i don't want this as it will break many sites.

Anyway i can have PHP 7.2 for all newly created cpanel accounts ?
 

flashweb

Well-Known Member
Mar 13, 2003
256
2
168
cPanel Access Level
Root Administrator
Changing all sites manually is not practical as most sites set to inherit and i need this done on multiple servers.

Anyway i can do this in command line or edit some file, so it will change default PHP version for new sites with out altering current sites PHP version ?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
As suggested by @dalem to change the version of PHP for new accounts (this changes the system default as well) go to WHM>>Software>>MultipPHP Manager and set the "System PHP Version" to the version you'd like all the accounts that are set to inherit as well as new accounts to be set to.