Skip to main content

PHP Warning: PHP Startup: Unable to load dynamic library

Comments

7 comments

  • cPanelMichael
    Hello, Could you verify where you are receiving that error message? Is this when you access a plugin via cPanel/WHM? Thank you.
    0
  • Mark Shaw
    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
  • Nile Youth
    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 file
    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.

    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 = 128M
    0
  • cPanelMichael
    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
  • Nile Youth
    Hello, Could you verify the full path to the error_log file you are viewing? Thank you.


    /home/username/public_html/error_log
    0
  • Nile Youth
    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 fine
    0
  • cPanelMichael
    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.