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!

SOLVED local.ini in latest EA4 update

Discussion in 'EasyApache' started by sparek-3, Nov 1, 2017.

  1. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,651
    Likes Received:
    73
    Trophy Points:
    328
    cPanel Access Level:
    Root Administrator
    What's the point of the new local.ini file being loaded in PHP 5.6, PHP 7.0, and PHP 7.1 after the recent EA4 update?

    The files:

    /opt/cpanel/ea-php56/root/etc/php.d/local.ini
    /opt/cpanel/ea-php70/root/etc/php.d/local.ini
    /opt/cpanel/ea-php71/root/etc/php.d/local.ini


    These files are overriding any changes made to the

    /opt/cpanel/ea-php71/root/etc/php.ini
    /opt/cpanel/ea-php70/root/etc/php.ini
    /opt/cpanel/ea-php71/root/etc/php.ini


    files.

    If you enable display_errors in the MultiPHP INI Editor, that change is made to the /opt/cpanel/ea-phpXX/root/etc/php.ini file, but because /opt/cpanel/ea-phpXX/root/etc/php.d/local.ini is being loaded and it has display_errors disabled, then display_errors remains disabled.

    I'm thinking the /opt/cpanel/ea-phpXX/root/etc/php.d/local.ini files were included by mistake in the recent EA4 update.
     
  2. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,651
    Likes Received:
    73
    Trophy Points:
    328
    cPanel Access Level:
    Root Administrator
    Looking at this further, this looks to have been done by something in a cPanel update - /usr/local/cpanel/scripts/migrate_local_ini_to_php_ini

    I'm not really sure when this happened, some where between cPanel 60 and cPanel 66.

    There were so many updates pushed out yesterday, I can't keep them all straight.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,672
    Likes Received:
    1,789
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    As of cPanel & WHM version 64, the system no longer uses local.ini files. If a local.ini file exists on your system, you can run the following command to migrate your file to the system's primary php.ini file:

    Code:
    /usr/local/cpanel/scripts/migrate_local_ini_to_php_ini --run
    Do you notice any error messages when using this command?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,651
    Likes Received:
    73
    Trophy Points:
    328
    cPanel Access Level:
    Root Administrator
    I have resolved this.

    I was upgrading our cPanel 60 servers to cPanel 66 (because cPanel 60 was going EOL) yesterday. cPanel pushed out an update to cPanel 66 during my update process then you also updated EA4 during all of this. This created quite a headache yesterday. I wasn't sure what update had caused this issue, I assumed it was the EA4 update. But later found that this was part of one of the cPanel updates.
     
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice