Im using CloudLinux in a webhosting environment, with the default php version set to 5.4 in cPanel > PHP Selector.
If I run the phpinfo() function using Php 7.1 command line via /opt/alt/php71/usr/bin/php-cgi , the informational page shows that the modules contained in /etc/cl.php.d/alt-php71/alt_php.ini (or /home/user/.cl.selector/defaults.cfg) are not loaded when the default php version is set to 5.4 in cPanel > PHP Selector.
The same modules contained in the above .ini and .cfg files are loaded If I run the phpinfo() function using Php 7.1 command line via /opt/alt/php71/usr/bin/php-cgi and Php 7.1 is set as the default version in cPanel > PHP Selector.
Is there a way to ensure that the modules are loaded even when the php version called from command line is not the default version in cPanel > PHP Selector ?
Thank You
If I run the phpinfo() function using Php 7.1 command line via /opt/alt/php71/usr/bin/php-cgi , the informational page shows that the modules contained in /etc/cl.php.d/alt-php71/alt_php.ini (or /home/user/.cl.selector/defaults.cfg) are not loaded when the default php version is set to 5.4 in cPanel > PHP Selector.
The same modules contained in the above .ini and .cfg files are loaded If I run the phpinfo() function using Php 7.1 command line via /opt/alt/php71/usr/bin/php-cgi and Php 7.1 is set as the default version in cPanel > PHP Selector.
Is there a way to ensure that the modules are loaded even when the php version called from command line is not the default version in cPanel > PHP Selector ?
Thank You
Comment