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.

Warning only using PHP 5.4 PHP Warning: PHP Startup: Unable to load dynamic library

Discussion in 'General Discussion' started by WebzPro, Nov 1, 2014.

  1. WebzPro

    WebzPro Active Member

    Joined:
    Jul 21, 2004
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Just a bit of a back story. There is no issue when using PHP 5.3. This all started when updating to PHP 5.4 that is when the below error showed up. So we decided to go to CloudLinux to use the PHP selector and from what I under stand native version would be cPanel version. We have been moving the native version between PHP 5.3 and 5.4 for testing.

    When using native or non-native version PHP 5.3 no error
    When using native version PHP 5.4 error shows up and is below
    When moving to non-native version PHP 5.4 no error works fine (does cause an email piping issue that we have not been able to work around need native version to work)

    Below is the error so any help is greatly appreciated.

    When native PHP 5.4 is used php error_log throws out errors that is unable to load dynamic libraries, which are loaded in php and .so files for them do exist.

    Error like this one will be registered in error_log when PHP 5.4 is used:

    [31-Oct-2014 21:31:05 America/New_York] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/pdo_sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/pdo_sqlite.so: undefined symbol: php_pdo_register_driver in Unknown on line 0

    All the reported modules are loaded in php, and while some of them don't have .so files, since they are loaded in php automatically, even the modules with existing .so files, in the reported path, get reported as being unable to load.
     
  2. Sys Admin

    Sys Admin Well-Known Member

    Joined:
    Apr 29, 2007
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Which version is installed via easyapache? Did you try to select the modules via WHM > CloudLinux > Selector > Select the PHP 5.x that you want to test > tick all modules that you want > Save

    Are you using the latest available version of cloudlinux & alt-php ?
     
  3. WebzPro

    WebzPro Active Member

    Joined:
    Jul 21, 2004
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Thank you for the reply but this has nothing to do with CloudLinux and the PHP selector. Before install CL we had the issue when upgrading to cPanel to PHP 5.4. Latest version of easyapache was used. Error goes away when using CloudLinux non-native PHP 5.4 selection.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Is the account using a local php.ini file? If so, have you tried temporarily removing it so that /usr/local/lib/php.ini is utilized instead?

    Thank you.
     
Loading...

Share This Page