Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'EasyApache' started by mariusfv, Mar 29, 2018.

Tags:
  1. mariusfv

    mariusfv Active Member

    Joined:
    Mar 24, 2013
    Messages:
    29
    Likes Received:
    4
    Trophy Points:
    78
    Location:
    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?
     
    #1 mariusfv, Mar 29, 2018
    Last edited by a moderator: Mar 30, 2018
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. mariusfv

    mariusfv Active Member

    Joined:
    Mar 24, 2013
    Messages:
    29
    Likes Received:
    4
    Trophy Points:
    78
    Location:
    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
     
    #3 mariusfv, Mar 31, 2018
    Last edited: Mar 31, 2018
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  5. mariusfv

    mariusfv Active Member

    Joined:
    Mar 24, 2013
    Messages:
    29
    Likes Received:
    4
    Trophy Points:
    78
    Location:
    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:
    [root@server /]# /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.
     
    #5 mariusfv, Apr 5, 2018
    Last edited: Apr 5, 2018
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  7. mariusfv

    mariusfv Active Member

    Joined:
    Mar 24, 2013
    Messages:
    29
    Likes Received:
    4
    Trophy Points:
    78
    Location:
    Romania
    cPanel Access Level:
    Root Administrator
    Your Support Request ID is: 9419791
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

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

    CloudLinux Documentation

    Thank you.
     
Loading...

Share This Page