Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm installing a new CentOS 6.4 box, to move my websites over from my current 5.9 box.

I've ended up with Apache 2.2.4, PHP 5.4.16 (via "powerstack" repo), and Percona 5.6.13 (via percona's own repo).

I was briefly on PHP 5.3.3 via the standard repo, and everything worked then. It's only since moving to PHP 5.4.16 that it's broken. But I'd like to fix it rather than step back down to 5.3.3

Anyway, when I try to start apache, I get these errors:

    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysql.so' - /usr/lib64/php/modules/mysql.so: symbol mysql_options, version libmysqlclient_18 not defined in file libmysqlclient.so.18 with link time reference in Unknown on line 0

    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqli.so' - /usr/lib64/php/modules/mysqli.so: symbol client_errors, version libmysqlclient_18 not defined in file libmysqlclient.so.18 with link time reference in Unknown on line 0

    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysql.so' - /usr/lib64/php/modules/pdo_mysql.so: symbol mysql_options, version libmysqlclient_18 not defined in file libmysqlclient.so.18 with link time reference in Unknown on line 0

Any ideas? Do I need to compile the modules from source or something? Just give me a pointer in the right direction...

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Try to install php from ius community repo. Should work without any problem.

share|improve this answer
    
That does indeed seem to have fixed it. Why though? Were there problems with 5.4.16, or is the "powerstack" repo suspect? Or is it just a case of "something had gone wrong, do a reinstall and it'll probably fix itself"? –  Codemonkey Oct 4 '13 at 12:13
    
(although I opted to use their "stable" branch rather than the "testing" one you linked to) –  Codemonkey Oct 4 '13 at 12:14
    
Yes, you were right. I just thought you want php-5.5 rather than php-5.4, which available in the test repo. I have updated my answer. –  ALex_hha Oct 6 '13 at 17:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.