PHP Warning: PHP Startup: Unable to load dynamic library
Hello I have got a lot of this error on my server:
can you help how can I fix it ?
[13-Apr-2017 16:32:55 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/cpanel/3rdparty/php/PHP_VERSION/lib/extensions/no-debug-non-zts-YYYYMMDD/apcu.so' - /usr/local/cpanel/3rdparty/php/PHP_VERSION/lib/extensions/no-debug-non-zts-YYYYMMDD/apcu.so: cannot open shared object file: No such file or directory in Unknown on line 0can you help how can I fix it ?
-
Hello, Could you verify where you are receiving that error message? Is this when you access a plugin via cPanel/WHM? Thank you. 0 -
Hello, This error occurs when there is a extension= or zend_extension that is trying to load "apcu.so" however it cannot be loaded because it cannot be found. It's either in your php.ini file or in one of your custom defined configuration files or in the custom file that is generated for apcu.so which can be found here: /etc/php/7.0/cli/conf.d/20-apcu.ini Its very possible that you have accidentally disabled it in your PHP configuration or deleted it by mistake. Verify that it is in the correct place and if not replace it, or comment out the line. I feel like you are most likely using PHP7.* which is causing the issue, here is the actual fix for this which you need to do at a sudo or root level: sudo apt-get install php7.0-dev pecl channel-update pecl.php.net pecl install apcu Thanks, Mark S. 0 -
Thanks every one for help Hello, Could you verify where you are receiving that error message? Is this when you access a plugin via cPanel/WHM? Thank you.
I got it in error_log fileHello, This error occurs when there is a extension= or zend_extension that is trying to load "apcu.so" however it cannot be loaded because it cannot be found. It's either in your php.ini file or in one of your custom defined configuration files or in the custom file that is generated for apcu.so which can be found here: /etc/php/7.0/cli/conf.d/20-apcu.ini Its very possible that you have accidentally disabled it in your PHP configuration or deleted it by mistake. Verify that it is in the correct place and if not replace it, or comment out the line. I feel like you are most likely using PHP7.* which is causing the issue, here is the actual fix for this which you need to do at a sudo or root level: sudo apt-get install php7.0-dev pecl channel-update pecl.php.net pecl install apcu Thanks, Mark S.
I have put in my php.ini only [apcu] apc.enabled = 1 apc.shm_size = 128M and found in apcu.ini in./opt/cpanel/ea-php56/root/etc/php.d/apcu.ini
[apcu] extension=/opt/cpanel/ea-php56/root/usr/lib64/php/modules/apcu.so apc.enabled = 1 apc.shm_size = 128M0 -
I got it in error_log file
Hello, Could you verify the full path to the error_log file you are viewing? Thank you.0 -
Hello, Could you verify the full path to the error_log file you are viewing? Thank you.
/home/username/public_html/error_log0 -
Thanks every one I have found the Issue and solve it I found a different php.ini working have a bad link /opt/cpanel/ea-php56/root/etc/php.ini
I fix it and now every thing work fine0 -
Hello, I'm happy to see the issue is now addressed. Thank you for updating us with the outcome. Thank you. 0
Please sign in to leave a comment.
Comments
7 comments