local.ini in latest EA4 update
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.
-
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. 0 -
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: /usr/local/cpanel/scripts/migrate_local_ini_to_php_ini --run
Do you notice any error messages when using this command? Thank you.0 -
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. 0
Please sign in to leave a comment.
Comments
3 comments