The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED PHP Warning: PHP Startup: Unable to load dynamic library

Discussion in 'General Discussion' started by Nile Youth, Apr 13, 2017.

Tags:
  1. Nile Youth

    Nile Youth Registered

    Joined:
    Apr 2, 2015
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Hello I have got a lot of this error on my server:

    Code:
    [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 0
    can you help how can I fix it ?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,204
    Likes Received:
    1,297
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you verify where you are receiving that error message? Is this when you access a plugin via cPanel/WHM?

    Thank you.
     
  3. Mark Shaw

    Mark Shaw Member

    Joined:
    Apr 13, 2017
    Messages:
    10
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    PEI Canada
    cPanel Access Level:
    DataCenter Provider
    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.
     
  4. Nile Youth

    Nile Youth Registered

    Joined:
    Apr 2, 2015
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Thanks every one for help

    I got it in error_log file

    I have put in my php.ini

    only
    [apcu]
    apc.enabled = 1
    apc.shm_size = 128M

    and found in apcu.ini in
    Code:
    ./opt/cpanel/ea-php56/root/etc/php.d/apcu.ini
    Code:
    [apcu]
    extension=/opt/cpanel/ea-php56/root/usr/lib64/php/modules/apcu.so
    apc.enabled = 1
    apc.shm_size = 128M
    
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,204
    Likes Received:
    1,297
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you verify the full path to the error_log file you are viewing?

    Thank you.
     
  6. Nile Youth

    Nile Youth Registered

    Joined:
    Apr 2, 2015
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Code:
    /home/username/public_html/error_log
     
  7. Nile Youth

    Nile Youth Registered

    Joined:
    Apr 2, 2015
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Thanks every one I have found the Issue and solve it

    I found a different php.ini working have a bad link

    Code:
    /opt/cpanel/ea-php56/root/etc/php.ini
    I fix it and now every thing work fine
     
    cPanelMichael likes this.
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,204
    Likes Received:
    1,297
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm happy to see the issue is now addressed. Thank you for updating us with the outcome.

    Thank you.
     
Loading...

Share This Page