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!

PECL module path not updated during EA4 migration

Discussion in 'EasyApache' started by nathanntg, Feb 9, 2018.

  1. nathanntg

    nathanntg Registered

    Mar 30, 2004
    Likes Received:
    Trophy Points:
    I migrated a server to EA4 today, and installing PECL modules does not seem to work as expected. It installs and lists modules as present, but they are not functional (PHP does not list them as installed or available).

    A little comparison with another server highlighted the fact that the
    ext_dir configuration option / "Module Include Path" listed in cPanel appears to be out of date (showing the old, EA3 path that was used). Specifically, it is installing modules to "/usr/local/lib/php/extensions/no-debug-non-zts-20121212", when it should have been installing them to "/opt/cpanel/ea-php56/root/usr/lib64/php/modules/".

    I manually worked around the issue by coping the modules over and it works fine for the time being, but I want to correct that ext_dir to ensure modules are correctly maintained / updated.

    Any guidance on why the EA4 migration may not have updated that path? And how to go about fixing it in a way that works correctly with EasyApache?



    Napkin 02-09-18, 11.58.00 PM.png
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    With most systems already using EasyApache 4, EA4 conversion script bugs like this one are unlikely to receive priority (internal case EA-4994 was open to address a similar concern). You should be able to solve this issue by moving the existing configuration file that stores the module include path for each version of PHP installed on the system, and then reinstalling the Pear RPM. For example, with PHP 5.6:

    mv -v /opt/cpanel/ea-php56/root/etc/pear.conf{,.broken}
    yum reinstall ea-php56-pear
    Then, reinstall any existing PECL modules that were installed prior to the migration. Let us know if this helps.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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