Unable to load dynamic library

Asked by JARDINC

Hi all,

I have created php54 rpms from the ius community spec and i tried to use the mysql module but it failed.

All is working : http + php-fpm

BUT since i tried to install the php54 mysql module i have some errors when i try to restart the php-fpm and the pdo module is not loaded.

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo.so' - /usr/lib64/php/modules/pdo.so: undefined symbol: executor_globals_id in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysqlnd.so' - /usr/lib64/php/modules/pdo_mysqlnd.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_sqlite.so' - /usr/lib64/php/modules/pdo_sqlite.so: undefined symbol: core_globals_id in Unknown on line 0

I hope you will have an answer / the solution to my issue. :) Many thanks !

Here is the list of the rpms installed on my server (CENTOS 6)

[root@testrpm conf]# rpm -qa php54*
php54-cli-5.4.28-2.ius.CENTOS6.x86_64
php54-mysqlnd-5.4.28-2.ius.CENTOS6.x86_64
php54-pdo-5.4.28-2.ius.CENTOS6.x86_64
php54-common-5.4.28-2.ius.CENTOS6.x86_64
php54-fpm-5.4.28-2.ius.CENTOS6.x86_64

[root@testrpm conf]# rpm -qa httpd
httpd-2.4.7-1.x86_64

In addtion :
.so files are in the correct folder, .ini are in php.d and seems ok.
-----------------------------------
PHP 5.4.28 (cli) (built: May 13 2014 09:48:35)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
-----------------------------------
Server version: Apache/2.4.7 (Unix)
Server built: Jan 7 2014 14:39:51
-----------------------------------

Question information

Language:
English Edit question
Status:
Solved
For:
IUS Community Project Edit question
Assignee:
No assignee Edit question
Solved by:
Carl George
Solved:
Last query:
Last reply:
Revision history for this message
Best Carl George (carl.george) said :
#1

I have a few thoughts/questions.

1. Why are you building your own RPMs for php54 when we provide them?
2. You are using PHP 5.4.28. PHP 5.4.30 is in our public repos. The problem you are having may have already been corrected upstream.
3. CentOS 6 ships with httpd 2.2.15, but you have version 2.4.7. That may be a contributing factor as well.

I tried to reproduce your error using the CentOS 6.5 image on Rackspace Cloud, httpd from stock repo (2.2.15), and the php54 RPMs from the IUS public repo. With this setup, I received no errors while restarting the fpm daemon. This leads me to believe the issue is either a difference between the packages, or a configuration error.

Can you try using our public php54 RPMs and see if that resolves your issue? After that, I would try with the stock httpd to attempt to rule that out as a factor.

Revision history for this message
JARDINC (cedric-jardin) said :
#2

Thanks Carl George, that solved my question.

Revision history for this message
JARDINC (cedric-jardin) said :
#3

Hi,

1. It was to experiment
2. I will now use your repo. And i can confirm that the php5.4.30 version solved my issue

Thanks again ;)