1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP Startup: unable to load dynamic library

Discussion in 'General Discussion' started by faia, May 28, 2011.

  1. faia

    faia New Member

    Joined:
    May 28, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    My all websites have an error log with the same error:

    [28-May-2011 18:02:47] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/: cannot read file data: Is a directory in Unknown on line 0
    [28-May-2011 18:02:53] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/: cannot read file data: Is a directory in Unknown on line 0
    [28-May-2011 18:02:55] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/: cannot read file data: Is a directory in Unknown on line 0
    [28-May-2011 18:02:56] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/: cannot read file data: Is a directory in Unknown on line 0
    [28-May-2011 18:03:05] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/: cannot read file data: Is a directory in Unknown on line 0


    How I fixed this issue? :confused:

    Please help me.
     
  2. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    570
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    Re: ERROR LOG - PHP Startup: Unable to load dynamic library

    I would open a support ticket immediately.
    cPanel provides complimentary support that will cover troubleshooting this with you.

    Make sure an provide as much detail as you possibly can about what as lead to this point. I'd also suggest that you provide your root or wheel access (or ask them to give you an ssh public key) so that they may log into the system; it will greatly speed up the process.

    -DavidN
     
    #2 cPanelDavidN, May 30, 2011
    Last edited: May 30, 2011
  3. cPanelTristan

    cPanelTristan Active Member
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,621
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    Hello,

    Please check for an empty extension line in /usr/local/lib/php.ini file:

    Code:
    grep ^extension /usr/local/lib/php.ini
    If you find any "extension =" line without content after the equal (=) sign, then comment out that line and restart Apache. The error you've indicated is almost always due to an empty extension line in the php.ini file.

    Please note that I've moved your thread from Developer Discussions to cPanel and WHM Discussions as this thread would have more to do with that area, since the error is not one to do with our APIs or coding.

    Thanks!
     
  4. DomineauX

    DomineauX Member

    Joined:
    Apr 12, 2003
    Messages:
    404
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    Had this problem as well and the empty extension line was the cause.
    Thanks Tristan.
     
  5. tloosle

    tloosle New Member

    Joined:
    Nov 4, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    I am seeing this problem as well. I did remove empty lines in the php.ini and did an easyapache rebuild. Problem still exisits.

    Is there another cause for this?

    t
     
  6. cPanelTristan

    cPanelTristan Active Member
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,621
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    Can you please post the exact error message you are seeing? Please also ensure the account in question doesn't have its own php.ini file under suPHP that is being loaded.

    Next, can you please post the output of the following command:

    Code:
    php -v
    If there are errors in the /usr/local/lib/php.ini file, they will oftentimes output when checking the PHP version with that command.
     
  7. tloosle

    tloosle New Member

    Joined:
    Nov 4, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    the error is:

    [27-Oct-2011 10:52:25] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/: cannot read file data: Is a directory in Unknown on line 0
    [27-Oct-2011 10:52:25] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/: cannot read file data: Is a directory in Unknown on line 0
    [27-Oct-2011 10:52:30] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/: cannot read file data: Is a directory in Unknown on line 0
    [27-Oct-2011 10:52:30] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/: cannot read file data: Is a directory in Unknown on line 0
    [27-Oct-2011 10:53:02] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/: cannot read file data: Is a directory in Unknown on line 0
    [27-Oct-2011 10:53:02] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/: cannot read file data: Is a directory in Unknown on line 0
    [27-Oct-2011 10:53:39] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/: cannot read file data: Is a directory in Unknown on line 0
    [27-Oct-2011 10:53:39] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/: cannot read file data: Is a directory in Unknown on line 0


    the php version is :
    Last login: Mon Oct 31 11:51:19 2011 from tc.s1i.net
    root@cp [~]# php -v
    PHP 5.3.6 (cli) (built: Oct 31 2011 11:58:30)
    Copyright (c) 1997-2011 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    with the ionCube PHP Loader v4.0.9, Copyright (c) 2002-2011, by ionCube Ltd., and
    with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
    root@cp [~]#

    thanks

    t
     
  8. cPanelTristan

    cPanelTristan Active Member
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,621
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    Does the account in question have its own php.ini file?
     
  9. tloosle

    tloosle New Member

    Joined:
    Nov 4, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    I don't think so. I have not done any php.ini edits or ads in the whm or cpanel for this site.
     
  10. cPanelMichael

    cPanelMichael Well-Known Member
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    17,523
    Likes Received:
    26
    Trophy Points:
    48
    Hello :)

    I suggest opening a support ticket at this point using the following URL:

    Submit A Ticket

    Please post the ticket number here so we may track the issue for you.

    Thank you.
     
  11. Daz2007

    Daz2007 New Member

    Joined:
    May 10, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Nice one! I was getting the same error. Came about when I removed the sushosin extension from the php config in WHM. The fix worked :)
     

Share This Page