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 … Continue reading softaculous php version not detected while upgrading and Installing Drupal in a cPanel server
Category: PHP
WHMCS showing incorrect time than server time
Fix correct this in the configuration.php of whmcs. Open up your configuration.php (which is in your root WHMCS directory) using any text editor you are using and then at the bottom before the closing php tag add the following line: date_default_timezone_set('Pacific/Auckland');
configure: error: libXpm.(a|so) not found.
While compiling PHP in the server the following error was showing up. checking for png_write_image in -lpng… yes configure: error: libXpm.(a|so) not found. Fix yum install libXpm-devel
configure: error: Unable to locate gmp.h
The following error was getting generated during PHP compilation in the server. checking for bind_textdomain_codeset in -lc… yes checking for GNU MP support… yes configure: error: Unable to locate gmp.h Fix yum install gmp-devel
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing
Following error was getting generated while configuring php on the server checking for utf8_mime2text signature… new checking for U8T_DECOMPOSE… configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information. Fix yum install libc-client-devel
configure: error: Cannot find ldap.h
The following error was getting generated while compiling PHP on the server checking for LDAP support… yes, shared checking for LDAP Cyrus SASL support… yes configure: error: Cannot find ldap.h Fix yum install openldap-devel
for default php PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20131226/htscanner.so’ – /usr/local/lib/php/extensions/no-debug-non-zts-20131226/htscanner.so: cannot open shared object file: No such file or directory in Unknown on line 0
This can be corrected by installing htscanner. Fix pecl install htscanner
Checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h’ not found!
The following error was generated while configuring PHP Checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h’ not found! Fix # yum install unixODBC-devel
Configure: error: Cannot find pspell
While configuring PHP following error was getting generated Configure: error: Cannot find pspell Fix # yum install pspell-devel
configure: error: SNMP sanity check failed. Please check config.log for more information.
The following error was getting generated while PHP compilation. checking whether to enable UCD SNMP hack… yes checking for default_store.h… no checking for kstat_read in -lkstat… no checking for snmp_parse_oid in -lsnmp… no checking for init_snmp in -lsnmp… no configure: error: SNMP sanity check failed. Please check config.log for more information. Fix yum install net-snmp-devel