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.

Error Log - PHP Startup: Unable to load dynamic library

Discussion in 'General Discussion' started by Ivo Danic, Jan 14, 2016.

  1. Ivo Danic

    Ivo Danic Active Member

    Joined:
    Dec 1, 2015
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    México
    cPanel Access Level:
    Root Administrator
    Hi!
    Since some days ago, every time i refresh my site apears a error_log file, this file contains these lines:


    Code:
    [14-Jan-2016 16:55:47 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/php_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20121212/php_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    Code:
    [14-Jan-2016 16:55:47 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/php_mysqli.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20121212/php_mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
    Could you please help me with those errors, thanks for all.!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please post the output from the following command:

    Code:
    php -m|grep mysql
    Also, could you verify if this account utilizes it's own php.ini file within it's home or public_html directory?

    Thank you.
     
  3. Ivo Danic

    Ivo Danic Active Member

    Joined:
    Dec 1, 2015
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    México
    cPanel Access Level:
    Root Administrator
    Only apears this list:

    mysql
    mysqli
    mysqlnd
    pdo_mysql
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    That suggests the modules referenced in the error message exist. Could you verify if this account utilizes it's own php.ini file within it's home or public_html directory?

    Thank you.
     
  5. Ivo Danic

    Ivo Danic Active Member

    Joined:
    Dec 1, 2015
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    México
    cPanel Access Level:
    Root Administrator
    Sorry, im new, so could you please tell me how can i do this? Thanks
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    This command will search for any php.ini files within the account:

    Code:
    find /home/username -type f -name 'php.ini'
    Replace "username" with the username of the account.

    Thank you.
     
  7. Ivo Danic

    Ivo Danic Active Member

    Joined:
    Dec 1, 2015
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    México
    cPanel Access Level:
    Root Administrator
    the command does not return nothing, even no one error. these means something?
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It suggests there's no php.ini file within the account. Do you utilize any custom values in your php.ini file? If not, try running these commands to see if it helps:

    Code:
    mv /usr/local/lib/php.ini /usr/local/lib/php.ini.old
    /scripts/phpini
    Thank you.
     
  9. Ivo Danic

    Ivo Danic Active Member

    Joined:
    Dec 1, 2015
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    México
    cPanel Access Level:
    Root Administrator
    i ran this lines and all my accounts that exist on my vps came down, i remove the .old and then all the services were restored..
    I ran it in the following order... .
    1. first i type mv /usr/local/lib/php.ini /usr/local/lib/php.ini.old
    2. then /scripts/phpini
    But it doesnt help.... :(
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  11. Ivo Danic

    Ivo Danic Active Member

    Joined:
    Dec 1, 2015
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    México
    cPanel Access Level:
    Root Administrator
    Tanks for all!
    You think that this, can this provoke a 500 error?
     
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The "500" error code is likely a separate issue. You can review /usr/local/apache/logs/error_log to determine the full error message when your browser outputs that error code. Were you able to open a support ticket for the initial issue?

    Thank you.
     
  13. Ivo Danic

    Ivo Danic Active Member

    Joined:
    Dec 1, 2015
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    México
    cPanel Access Level:
    Root Administrator
    Yeap, already i send a support ticket, they'll reply me as soon as posible i think so! Jajaja OK! :) Thanks for all!
     
Loading...

Share This Page