Quick change of PHP version without losing settings
Hello cPanel experts,
Whenever a new PHP version becomes stable and I want to change a whole range of accounts to using it, I need to reconfigure my choice of extensions and options, and that's just not my idea of fun.
Is there a way to change the PHP version while retaining extensions and options?
Can extensions and options be configured elsewhere to override those set on the "Select PHP Version" page?
If not, how can this be turned into a feature request?
Cheers,
Gal
-
Hello @galbaras, If I understand correctly, you'd like an option to account for a scenario like this: 1. You decide to enable the bz2 PHP extension, so you browse to "WHM Home " Software " EasyApache 4 " PHP Extensions" and enable the following package: php55-php-bz2 2. Later, you decide to switch the accounts to PHP 5.6, and notice the php56-php-bz2 package isn't automatically enabled and thus you have to manually enable it. If this is correct, I recommend opening a EasyApache 4 - Create a Profile - EasyApache 4 - cPanel Documentation Thank you. 0 -
No, my scenario is very different. I go into cPanel->Select PHP Version, check some boxes for extensions, then change some option and save. Later on, I switch from PHP 7.0 to 7.1 and everything goes back to default :( Although different PHP versions may have different extensions and options, keeping my settings for the ones that are the same seems like better user interface than resetting all of them. With many websites to handle and many settings to change, this quickly amounts to a lot of work, which can be (easily) saved. 0 -
You are referring to CloudLinux's PHP selector. Go to WHM > CloudLinux LVE Manager > Selector Then there is a drop down called: "Choose default modules for" Select each version of PHP and setup your default PHP extensions, do this for each version. Now anytime you change the PHP version in "Select PHP Version", these default extensions will be selected, if for some reason they are not, click the "Default" button at the bottom and it will auto fill them. Hope this helps! 0 -
Sorry, I didn't state that I was on a shared server, where I don't have access to the system-wide settings for PHP. Still, I'm on a reseller package and need to modify many accounts. Can this function be delegated to me? Either way, resetting everything when the PHP version changes doesn't seem right. 0 -
Hello, If you have not root access then you need to contact to your hosting provider as they will change setting server wide. 0 -
Unfortunately, nothing you can do, you can ask your web host but I doubt they will use the defaults YOU want as this would affect all users. Your best bet is to upgrade to a server where you have root access so you can set the defaults yourself, otherwise do a feature request: New Feature Request | cPanel Feature Requests 0 -
They won't, because I'm only one of many clients on the server. I really need a solution that works in cPanel, not WHM. 0 -
Thanks everyone. I've created a feature request for this (currently in moderation). Your votes will be much appreciated: Feature request: Keep extensions and options in the cPanel Select PHP Version when the version changes 0 -
Hello, Keep in mind the "Select PHP Version" feature you see in cPanel is provided by the "PHP Selector" option with CloudLinux. It's not an option that cPanel develops. You should direct feedback about their plugin to: CloudLinux - Main | New template cPanel offers a different option for managing PHP, named "MultiPHP Manager": MultiPHP Manager for cPanel - Documentation - cPanel Documentation Thank you. 0 -
Thank you, Michael. 0
Please sign in to leave a comment.
Comments
10 comments