Changing default PHP version
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 ?
-
you need to set the current sites to php 5.6 (not inherent) then switch your inherent/default php to 7.2 0 -
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 ? 0 -
you can change them all at once VIA WHM multi php handler 0 -
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. 0
Please sign in to leave a comment.
Comments
4 comments