APCu load order issue after installing with EasyApache 4

Whitesky-

Registered
Mar 18, 2020
1
0
1
Florida
cPanel Access Level
Website Owner
I am getting the following error in error_log after installing APCu within WHM on PHP 7.3:
PHP Startup: Unable to load dynamic library 'apc.so' (tried: /opt/cpanel/ea-php73/root/usr/lib64/php/modules/apc.so (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/apc.so: undefined symbol: zif_apcu_store
I've researched a dozen or so threads on this issue and all seem to point to load order:
https://pear.php.net/bugs/bug.php?id=21007&edit=3
On installing PHP extensions using "pecl install <ext>" the extension will be automatically enabled in php.ini. This is fine but it results in a reverse order of "extension=<ext>.so" directive. As "apcu_bc" (compiled as apc.so) depends on apcu which needs to be loaded first.

The output means you are trying to load apc before apcu, which shouldn't happens thanks to the .ini names which ensure correct load order (40-apcu.ini is before 50-apc.ini)
I've tried uninstalling/reinstalling and restarting Apache as other threads recommended, didn't fix.

How can I set the proper order via WHM? Every thread I've seen just says just to do it but now how.

Thanks!
 
Last edited by a moderator:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


Thanks!