Fix
For upgradation issue
# cd /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/hooks
# cp -p pre_upgrade.txt pre_upgrade.php
# vi pre_upgrade.php
function __pre_upgrade($installation){
global $soft, $software, $globals;
// Do stuff here e.g. is as follows
if($soft == 26){ /* Do things only if its WordPress */ }
$version = ‘5.6.16’;
define(‘php_version’, $version);
}
For installation issue
# cp -p pre_install.txt pre_install.php
# vi pre_install.php
function __pre_install(){
global $soft, $software, $globals;
// Do stuff here e.g. is as follows
if($soft == 26){ /* Do things only if its WordPress */ }
$version = ‘5.6.16’;
define(‘php_version’, $version);
}
Here we are changing the PHP version to PHP5.6.