cPanel update error - “/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini”

mariusfv

Active Member
Mar 24, 2013
39
7
133
Romania
cPanel Access Level
Root Administrator
  • CLOUDLINUX 7.4 standard [server]
  • v68.0.36
  • Easyapache 4 / Apache 2.4 / PHP 7.0
  • SSD
  • I7
  • 60 GB RAM available
Update error message:

Code:
[2018-03-30 03:46:49 +0300] E [/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini] The “/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini” command (process 22042) reported error number 255 when it ended.
Code:
[2018-03-30 03:46:49 +0300] E Pre Maintenance ended, however it did not exit cleanly (256). Please check the logs for an indication of what happened
Has anyone encountered this error?
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

It looks like the migrate_local_ini_to_php_ini script failed during the update. Could you run that command manually and let us know the output? EX:

Code:
/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini --run --verbose
Thank you.
 

mariusfv

Active Member
Mar 24, 2013
39
7
133
Romania
cPanel Access Level
Root Administrator
The result:

Code:
warn [migrate_local_ini_to_php_ini] Ignoring SCL “alt-php70” because it does not have the right /etc dir (/opt/cloudlinux/alt-php70/root/etc).

warn [migrate_local_ini_to_php_ini] Ignoring SCL “alt-php55” because it does not have the right /etc dir (/opt/cloudlinux/alt-php55/root/etc).

warn [migrate_local_ini_to_php_ini] Ignoring SCL “alt-php56” because it does not have the right /etc dir (/opt/cloudlinux/alt-php56/root/etc).

Processing alt-php72 …
Cpanel::Exception::FeatureNotEnabled/(XID 859xmg) The “alt-php72” package does not provide an executable binary.
 at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 336.
        Cpanel::Exception::create("FeatureNotEnabled", "The \x{e2}\x{80}\x{9c}[_1]\x{e2}\x{80}\x{9d} package does not provide an executable binary.", ARRAY(0x1690a58)) called at /usr/local/cpanel/Cpanel/Exception.pm line 46
        Cpanel::Exception::__ANON__(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, ARRAY(0x1690a58)) called at /usr/local/cpanel/Cpanel/ProgLang/Supported/php.pm line 318
        Cpanel::ProgLang::Supported::php::get_package(Cpanel::ProgLang::Supported::php=HASH(0x1b4aa90), "package", "alt-php72") called at /usr/local/cpanel/Cpanel/ProgLang/Supported/php/Ini.pm line 233
        Cpanel::ProgLang::Supported::php::Ini::new("Cpanel::ProgLang::Supported::php::Ini", "lang", Cpanel::ProgLang::Supported::php=HASH(0x1b4aa90), "package", "alt-php72") called at /usr/local/cpanel/Cpanel/ProgLang/Supported/php.pm line 369
        Cpanel::ProgLang::Supported::php::get_ini(Cpanel::ProgLang::Supported::php=HASH(0x1b4aa90), "package", "alt-php72") called at /usr/local/cpanel/scripts/migrate_local_ini_to_php_ini line 44
        scripts::migrate_local_ini_to_php_ini::run("--run", "--verbose") called at /usr/local/cpanel/scripts/migrate_local_ini_to_php_ini line 27
I do not have installed and I do not use php 5.
I have ea-php70 installed via cPanel EasyApache - I use PHP-FPM!
I have Cloudlinux but without theirs PHP versions, I use Cloudlinux (CageFS) and Kernelecare only for protection against symlink attack. In the last 6 months everything works like a charm, till now.

How can I solve this problem?
It's the second day when I get this error regarding updating on my email
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Processing alt-php72 … Cpanel::Exception::FeatureNotEnabled/(XID 859xmg) The “alt-php72” package does not provide an executable binary. at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 336.
Hello,

Check to see if installing the PHP CLI RPMs for EasyApache 4 solve this error:

Code:
yum install ea-php{54,55,56,71}-php-cli
Thank you.
 

mariusfv

Active Member
Mar 24, 2013
39
7
133
Romania
cPanel Access Level
Root Administrator
I've installed what you told me.
Next day email with error:
Code:
[2018-04-05 03:46:39 +0300] E [/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini] The “/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini” command (process 31812) reported error number 255 when it ended.
After I run as root:

/usr/local/cpanel/scripts/migrate_local_ini_to_php_ini --run --verbose

The new output is:

Code:
[[email protected] /]# /usr/local/cpanel/scripts/migrate_local_ini_to_php_ini --run --verbose
warn [migrate_local_ini_to_php_ini] Ignoring SCL “alt-php53” because it does not have the right /etc dir (/opt/cloudlinux/alt-php53/root/etc).

warn [migrate_local_ini_to_php_ini] Ignoring SCL “alt-php52” because it does not have the right /etc dir (/opt/cloudlinux/alt-php52/root/etc).

warn [migrate_local_ini_to_php_ini] Ignoring SCL “alt-php71” because it does not have the right /etc dir (/opt/cloudlinux/alt-php71/root/etc).

warn [migrate_local_ini_to_php_ini] Ignoring SCL “alt-php54” because it does not have the right /etc dir (/opt/cloudlinux/alt-php54/root/etc).

warn [migrate_local_ini_to_php_ini] Ignoring SCL “alt-php51” because it does not have the right /etc dir (/opt/cloudlinux/alt-php51/root/etc).

warn [migrate_local_ini_to_php_ini] Ignoring SCL “alt-php44” because it does not have the right /etc dir (/opt/cloudlinux/alt-php44/root/etc).

warn [migrate_local_ini_to_php_ini] Ignoring SCL “alt-php70” because it does not have the right /etc dir (/opt/cloudlinux/alt-php70/root/etc).

warn [migrate_local_ini_to_php_ini] Ignoring SCL “alt-php55” because it does not have the right /etc dir (/opt/cloudlinux/alt-php55/root/etc).

warn [migrate_local_ini_to_php_ini] Ignoring SCL “alt-php56” because it does not have the right /etc dir (/opt/cloudlinux/alt-php56/root/etc).

Processing alt-php72 …
Cpanel::Exception::FeatureNotEnabled/(XID ndhag3) The “alt-php72” package does not provide an executable binary.
 at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 336.
        Cpanel::Exception::create("FeatureNotEnabled", "The \x{e2}\x{80}\x{9c}[_1]\x{e2}\x{80}\x{9d} package does not provide an executable binary.", ARRAY(0x134dc88)) called at /usr/local/cpanel/Cpanel/Exception.pm line 46
        Cpanel::Exception::__ANON__(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, ARRAY(0x134dc88)) called at /usr/local/cpanel/Cpanel/ProgLang/Supported/php.pm line 318
        Cpanel::ProgLang::Supported::php::get_package(Cpanel::ProgLang::Supported::php=HASH(0x1397a28), "package", "alt-php72") called at /usr/local/cpanel/Cpanel/ProgLang/Supported/php/Ini.pm line 233
        Cpanel::ProgLang::Supported::php::Ini::new("Cpanel::ProgLang::Supported::php::Ini", "lang", Cpanel::ProgLang::Supported::php=HASH(0x1397a28), "package", "alt-php72") called at /usr/local/cpanel/Cpanel/ProgLang/Supported/php.pm line 369
        Cpanel::ProgLang::Supported::php::get_ini(Cpanel::ProgLang::Supported::php=HASH(0x1397a28), "package", "alt-php72") called at /usr/local/cpanel/scripts/migrate_local_ini_to_php_ini line 44
        scripts::migrate_local_ini_to_php_ini::run("--run", "--verbose") called at /usr/local/cpanel/scripts/migrate_local_ini_to_php_ini line 27
Any chance to solve this update error?

All these errors occurred the very next day after I upgrading MariaDB from 10.0 to MariaDB 10.1 via WHM.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hi @mariusfv,

Could you open a support ticket so we can take a closer look? You can post the ticket number here and we will update this thread with the outcome.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

To update, it looks like the issue was solved after reinstalling the alt-php packages per the instructions at:

CloudLinux Documentation

Thank you.