Warning only using PHP 5.4 PHP Warning: PHP Startup: Unable to load dynamic library
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.
-
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 ? 0 -
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. 0 -
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. 0
Please sign in to leave a comment.
Comments
3 comments